Lines Matching refs:vd
22 struct virt_dma_desc *vd = to_virt_desc(tx); in vchan_tx_submit() local
29 list_move_tail(&vd->node, &vc->desc_submitted); in vchan_tx_submit()
33 vc, vd, cookie); in vchan_tx_submit()
52 struct virt_dma_desc *vd = to_virt_desc(tx); in vchan_tx_desc_free() local
56 list_del(&vd->node); in vchan_tx_desc_free()
60 vc, vd, vd->tx.cookie); in vchan_tx_desc_free()
61 vc->desc_free(vd); in vchan_tx_desc_free()
69 struct virt_dma_desc *vd; in vchan_find_desc() local
71 list_for_each_entry(vd, &vc->desc_issued, node) in vchan_find_desc()
72 if (vd->tx.cookie == cookie) in vchan_find_desc()
73 return vd; in vchan_find_desc()
86 struct virt_dma_desc *vd, *_vd; in vchan_complete() local
92 vd = vc->cyclic; in vchan_complete()
93 if (vd) { in vchan_complete()
95 dmaengine_desc_get_callback(&vd->tx, &cb); in vchan_complete()
101 dmaengine_desc_callback_invoke(&cb, &vd->tx_result); in vchan_complete()
103 list_for_each_entry_safe(vd, _vd, &head, node) { in vchan_complete()
104 dmaengine_desc_get_callback(&vd->tx, &cb); in vchan_complete()
106 list_del(&vd->node); in vchan_complete()
107 dmaengine_desc_callback_invoke(&cb, &vd->tx_result); in vchan_complete()
108 vchan_vdesc_fini(vd); in vchan_complete()
114 struct virt_dma_desc *vd, *_vd; in vchan_dma_desc_free_list() local
116 list_for_each_entry_safe(vd, _vd, head, node) { in vchan_dma_desc_free_list()
117 list_del(&vd->node); in vchan_dma_desc_free_list()
118 vchan_vdesc_fini(vd); in vchan_dma_desc_free_list()