Lines Matching refs:vd
55 struct virt_dma_desc *vd, unsigned long tx_flags) in vchan_tx_prep() argument
59 dma_async_tx_descriptor_init(&vd->tx, &vc->chan); in vchan_tx_prep()
60 vd->tx.flags = tx_flags; in vchan_tx_prep()
61 vd->tx.tx_submit = vchan_tx_submit; in vchan_tx_prep()
63 return &vd->tx; in vchan_tx_prep()
84 static inline void vchan_cookie_complete(struct virt_dma_desc *vd) in vchan_cookie_complete() argument
86 struct virt_dma_chan *vc = to_virt_chan(vd->tx.chan); in vchan_cookie_complete()
89 cookie = vd->tx.cookie; in vchan_cookie_complete()
90 dma_cookie_complete(&vd->tx); in vchan_cookie_complete()
92 vd, cookie); in vchan_cookie_complete()
93 list_add_tail(&vd->node, &vc->desc_completed); in vchan_cookie_complete()
102 static inline void vchan_cyclic_callback(struct virt_dma_desc *vd) in vchan_cyclic_callback() argument
104 struct virt_dma_chan *vc = to_virt_chan(vd->tx.chan); in vchan_cyclic_callback()
106 vc->cyclic = vd; in vchan_cyclic_callback()