Lines Matching refs:vd

25 	struct virt_dma_desc *vd = to_virt_desc(tx);  in vchan_tx_submit()  local
32 list_move_tail(&vd->node, &vc->desc_submitted); in vchan_tx_submit()
36 vc, vd, cookie); in vchan_tx_submit()
55 struct virt_dma_desc *vd = to_virt_desc(tx); in vchan_tx_desc_free() local
59 list_del(&vd->node); in vchan_tx_desc_free()
63 vc, vd, vd->tx.cookie); in vchan_tx_desc_free()
64 vc->desc_free(vd); in vchan_tx_desc_free()
72 struct virt_dma_desc *vd; in vchan_find_desc() local
74 list_for_each_entry(vd, &vc->desc_issued, node) in vchan_find_desc()
75 if (vd->tx.cookie == cookie) in vchan_find_desc()
76 return vd; in vchan_find_desc()
89 struct virt_dma_desc *vd, *_vd; in vchan_complete() local
95 vd = vc->cyclic; in vchan_complete()
96 if (vd) { in vchan_complete()
98 dmaengine_desc_get_callback(&vd->tx, &cb); in vchan_complete()
106 list_for_each_entry_safe(vd, _vd, &head, node) { in vchan_complete()
107 dmaengine_desc_get_callback(&vd->tx, &cb); in vchan_complete()
109 list_del(&vd->node); in vchan_complete()
110 vchan_vdesc_fini(vd); in vchan_complete()
118 struct virt_dma_desc *vd, *_vd; in vchan_dma_desc_free_list() local
120 list_for_each_entry_safe(vd, _vd, head, node) { in vchan_dma_desc_free_list()
121 if (dmaengine_desc_test_reuse(&vd->tx)) { in vchan_dma_desc_free_list()
122 list_move_tail(&vd->node, &vc->desc_allocated); in vchan_dma_desc_free_list()
124 dev_dbg(vc->chan.device->dev, "txd %p: freeing\n", vd); in vchan_dma_desc_free_list()
125 list_del(&vd->node); in vchan_dma_desc_free_list()
126 vc->desc_free(vd); in vchan_dma_desc_free_list()