Lines Matching refs:vdesc
116 struct virt_dma_desc vdesc; member
160 struct virt_dma_desc *vdesc) in to_jz4780_dma_desc() argument
162 return container_of(vdesc, struct jz4780_dma_desc, vdesc); in to_jz4780_dma_desc()
209 static void jz4780_dma_desc_free(struct virt_dma_desc *vdesc) in jz4780_dma_desc_free() argument
211 struct jz4780_dma_desc *desc = to_jz4780_dma_desc(vdesc); in jz4780_dma_desc_free()
212 struct jz4780_dma_chan *jzchan = to_jz4780_dma_chan(vdesc->tx.chan); in jz4780_dma_desc_free()
328 jz4780_dma_desc_free(&jzchan->desc->vdesc); in jz4780_dma_prep_slave_sg()
348 return vchan_tx_prep(&jzchan->vchan, &desc->vdesc, flags); in jz4780_dma_prep_slave_sg()
374 jz4780_dma_desc_free(&jzchan->desc->vdesc); in jz4780_dma_prep_dma_cyclic()
400 return vchan_tx_prep(&jzchan->vchan, &desc->vdesc, flags); in jz4780_dma_prep_dma_cyclic()
427 return vchan_tx_prep(&jzchan->vchan, &desc->vdesc, flags); in jz4780_dma_prep_dma_memcpy()
433 struct virt_dma_desc *vdesc; in jz4780_dma_begin() local
438 vdesc = vchan_next_desc(&jzchan->vchan); in jz4780_dma_begin()
439 if (!vdesc) in jz4780_dma_begin()
442 list_del(&vdesc->node); in jz4780_dma_begin()
444 jzchan->desc = to_jz4780_dma_desc(vdesc); in jz4780_dma_begin()
447 if (jzchan->desc->type == DMA_CYCLIC && vdesc->tx.callback) { in jz4780_dma_begin()
514 vchan_terminate_vdesc(&jzchan->desc->vdesc); in jz4780_dma_terminate_all()
573 struct virt_dma_desc *vdesc; in jz4780_dma_tx_status() local
583 vdesc = vchan_find_desc(&jzchan->vchan, cookie); in jz4780_dma_tx_status()
584 if (vdesc) { in jz4780_dma_tx_status()
587 to_jz4780_dma_desc(vdesc), 0); in jz4780_dma_tx_status()
588 } else if (cookie == jzchan->desc->vdesc.tx.cookie) { in jz4780_dma_tx_status()
594 if (vdesc && jzchan->desc && vdesc == &jzchan->desc->vdesc in jz4780_dma_tx_status()
627 vchan_cyclic_callback(&jzchan->desc->vdesc); in jz4780_dma_chan_irq()
629 vchan_cookie_complete(&jzchan->desc->vdesc); in jz4780_dma_chan_irq()