Lines Matching refs:vchan
213 struct virt_dma_chan vchan; member
738 return container_of(c, struct edma_chan, vchan.chan); in to_edma_chan()
757 struct device *dev = echan->vchan.chan.device->dev; in edma_execute()
762 vdesc = vchan_next_desc(&echan->vchan); in edma_execute()
851 spin_lock_irqsave(&echan->vchan.lock, flags); in edma_terminate_all()
868 vchan_get_all_descriptors(&echan->vchan, &head); in edma_terminate_all()
869 spin_unlock_irqrestore(&echan->vchan.lock, flags); in edma_terminate_all()
870 vchan_dma_desc_free_list(&echan->vchan, &head); in edma_terminate_all()
879 vchan_synchronize(&echan->vchan); in edma_synchronize()
1135 return vchan_tx_prep(&echan->vchan, &edesc->vdesc, tx_flags); in edma_prep_slave_sg()
1245 return vchan_tx_prep(&echan->vchan, &edesc->vdesc, tx_flags); in edma_prep_dma_memcpy()
1402 return vchan_tx_prep(&echan->vchan, &edesc->vdesc, tx_flags); in edma_prep_dma_cyclic()
1407 struct device *dev = echan->vchan.chan.device->dev; in edma_completion_handler()
1410 spin_lock(&echan->vchan.lock); in edma_completion_handler()
1415 spin_unlock(&echan->vchan.lock); in edma_completion_handler()
1439 spin_unlock(&echan->vchan.lock); in edma_completion_handler()
1491 struct device *dev = echan->vchan.chan.device->dev; in edma_error_handler()
1498 spin_lock(&echan->vchan.lock); in edma_error_handler()
1528 spin_unlock(&echan->vchan.lock); in edma_error_handler()
1671 vchan_free_chan_resources(&echan->vchan); in edma_free_chan_resources()
1703 spin_lock_irqsave(&echan->vchan.lock, flags); in edma_issue_pending()
1704 if (vchan_issue_pending(&echan->vchan) && !echan->edesc) in edma_issue_pending()
1706 spin_unlock_irqrestore(&echan->vchan.lock, flags); in edma_issue_pending()
1749 dev_dbg_ratelimited(echan->vchan.chan.device->dev, in edma_residue()
1807 spin_lock_irqsave(&echan->vchan.lock, flags); in edma_tx_status()
1810 else if ((vdesc = vchan_find_desc(&echan->vchan, cookie))) in edma_tx_status()
1812 spin_unlock_irqrestore(&echan->vchan.lock, flags); in edma_tx_status()
1913 echan->vchan.desc_free = edma_desc_free; in edma_dma_init()
1916 vchan_init(&echan->vchan, m_ddev); in edma_dma_init()
1918 vchan_init(&echan->vchan, s_ddev); in edma_dma_init()
2151 chan = &echan->vchan.chan; in of_edma_xlate()
2424 &dmadev->channels, vchan.chan.device_node) { in edma_cleanupp_vchan()
2425 list_del(&echan->vchan.chan.device_node); in edma_cleanupp_vchan()
2426 tasklet_kill(&echan->vchan.task); in edma_cleanupp_vchan()