Lines Matching refs:vd
52 struct virt_dma_desc vd; member
63 #define to_usb_dmac_desc(vd) container_of(vd, struct usb_dmac_desc, vd) argument
224 struct virt_dma_desc *vd; in usb_dmac_chan_start_desc() local
226 vd = vchan_next_desc(&chan->vc); in usb_dmac_chan_start_desc()
227 if (!vd) { in usb_dmac_chan_start_desc()
237 list_del(&vd->node); in usb_dmac_chan_start_desc()
239 chan->desc = to_usb_dmac_desc(vd); in usb_dmac_chan_start_desc()
442 return vchan_tx_prep(&uchan->vc, &desc->vd, dma_flags); in usb_dmac_prep_slave_sg()
507 struct virt_dma_desc *vd; in usb_dmac_chan_get_residue() local
512 vd = vchan_find_desc(&chan->vc, cookie); in usb_dmac_chan_get_residue()
513 if (!vd) in usb_dmac_chan_get_residue()
515 desc = to_usb_dmac_desc(vd); in usb_dmac_chan_get_residue()
565 static void usb_dmac_virt_desc_free(struct virt_dma_desc *vd) in usb_dmac_virt_desc_free() argument
567 struct usb_dmac_desc *desc = to_usb_dmac_desc(vd); in usb_dmac_virt_desc_free()
568 struct usb_dmac_chan *chan = to_usb_dmac_chan(vd->tx.chan); in usb_dmac_virt_desc_free()
588 desc->done_cookie = desc->vd.tx.cookie; in usb_dmac_isr_transfer_end()
589 desc->vd.tx_result.result = DMA_TRANS_NOERROR; in usb_dmac_isr_transfer_end()
590 desc->vd.tx_result.residue = desc->residue; in usb_dmac_isr_transfer_end()
591 vchan_cookie_complete(&desc->vd); in usb_dmac_isr_transfer_end()