Lines Matching refs:vd
89 struct virt_dma_desc vd; member
146 return container_of(t, struct bcm2835_desc, vd.tx); in to_bcm2835_dma_desc()
149 static void bcm2835_dma_desc_free(struct virt_dma_desc *vd) in bcm2835_dma_desc_free() argument
151 struct bcm2835_desc *desc = container_of(vd, struct bcm2835_desc, vd); in bcm2835_dma_desc_free()
199 struct virt_dma_desc *vd = vchan_next_desc(&c->vc); in bcm2835_dma_start_desc() local
202 if (!vd) { in bcm2835_dma_start_desc()
207 list_del(&vd->node); in bcm2835_dma_start_desc()
209 c->desc = d = to_bcm2835_dma_desc(&vd->tx); in bcm2835_dma_start_desc()
230 vchan_cyclic_callback(&d->vd); in bcm2835_dma_callback()
303 struct virt_dma_desc *vd; in bcm2835_dma_tx_status() local
312 vd = vchan_find_desc(&c->vc, cookie); in bcm2835_dma_tx_status()
313 if (vd) { in bcm2835_dma_tx_status()
315 bcm2835_dma_desc_size(to_bcm2835_dma_desc(&vd->tx)); in bcm2835_dma_tx_status()
316 } else if (c->desc && c->desc->vd.tx.cookie == cookie) { in bcm2835_dma_tx_status()
455 return vchan_tx_prep(&c->vc, &d->vd, flags); in bcm2835_dma_prep_dma_cyclic()
508 bcm2835_dma_desc_free(&c->desc->vd); in bcm2835_dma_terminate_all()