Lines Matching refs:vd
81 struct virt_dma_desc vd; member
140 return container_of(t, struct bcm2835_desc, vd.tx); in to_bcm2835_dma_desc()
143 static void bcm2835_dma_desc_free(struct virt_dma_desc *vd) in bcm2835_dma_desc_free() argument
145 struct bcm2835_desc *desc = container_of(vd, struct bcm2835_desc, vd); in bcm2835_dma_desc_free()
146 dma_free_coherent(desc->vd.tx.chan->device->dev, in bcm2835_dma_desc_free()
190 struct virt_dma_desc *vd = vchan_next_desc(&c->vc); in bcm2835_dma_start_desc() local
193 if (!vd) { in bcm2835_dma_start_desc()
198 list_del(&vd->node); in bcm2835_dma_start_desc()
200 c->desc = d = to_bcm2835_dma_desc(&vd->tx); in bcm2835_dma_start_desc()
221 vchan_cyclic_callback(&d->vd); in bcm2835_dma_callback()
287 struct virt_dma_desc *vd; in bcm2835_dma_tx_status() local
296 vd = vchan_find_desc(&c->vc, cookie); in bcm2835_dma_tx_status()
297 if (vd) { in bcm2835_dma_tx_status()
299 bcm2835_dma_desc_size(to_bcm2835_dma_desc(&vd->tx)); in bcm2835_dma_tx_status()
300 } else if (c->desc && c->desc->vd.tx.cookie == cookie) { in bcm2835_dma_tx_status()
436 return vchan_tx_prep(&c->vc, &d->vd, flags); in bcm2835_dma_prep_dma_cyclic()
478 bcm2835_dma_desc_free(&c->desc->vd); in bcm2835_dma_terminate_all()