Lines Matching refs:vd
89 struct virt_dma_desc vd; member
203 return container_of(t, struct bcm2835_desc, vd.tx); in to_bcm2835_dma_desc()
217 static void bcm2835_dma_desc_free(struct virt_dma_desc *vd) in bcm2835_dma_desc_free() argument
220 container_of(vd, struct bcm2835_desc, vd)); in bcm2835_dma_desc_free()
442 struct virt_dma_desc *vd = vchan_next_desc(&c->vc); in bcm2835_dma_start_desc() local
445 if (!vd) { in bcm2835_dma_start_desc()
450 list_del(&vd->node); in bcm2835_dma_start_desc()
452 c->desc = d = to_bcm2835_dma_desc(&vd->tx); in bcm2835_dma_start_desc()
490 vchan_cyclic_callback(&d->vd); in bcm2835_dma_callback()
492 vchan_cookie_complete(&c->desc->vd); in bcm2835_dma_callback()
568 struct virt_dma_desc *vd; in bcm2835_dma_tx_status() local
577 vd = vchan_find_desc(&c->vc, cookie); in bcm2835_dma_tx_status()
578 if (vd) { in bcm2835_dma_tx_status()
580 bcm2835_dma_desc_size(to_bcm2835_dma_desc(&vd->tx)); in bcm2835_dma_tx_status()
581 } else if (c->desc && c->desc->vd.tx.cookie == cookie) { in bcm2835_dma_tx_status()
639 return vchan_tx_prep(&c->vc, &d->vd, flags); in bcm2835_dma_prep_dma_memcpy()
691 return vchan_tx_prep(&c->vc, &d->vd, flags); in bcm2835_dma_prep_slave_sg()
777 return vchan_tx_prep(&c->vc, &d->vd, flags); in bcm2835_dma_prep_dma_cyclic()
800 if (c->desc->vd.tx.flags & DMA_PREP_INTERRUPT) in bcm2835_dma_terminate_all()
801 vchan_terminate_vdesc(&c->desc->vd); in bcm2835_dma_terminate_all()
803 vchan_vdesc_fini(&c->desc->vd); in bcm2835_dma_terminate_all()