Lines Matching refs:vchan
199 struct virt_dma_chan vchan; member
224 return container_of(chan->vchan.chan.device, struct stm32_dma_device, in stm32_dma_get_dev()
230 return container_of(c, struct stm32_dma_chan, vchan.chan); in to_stm32_dma_chan()
240 return &chan->vchan.chan.dev->device; in chan2dev()
498 spin_lock_irqsave(&chan->vchan.lock, flags); in stm32_dma_terminate_all()
508 vchan_get_all_descriptors(&chan->vchan, &head); in stm32_dma_terminate_all()
509 spin_unlock_irqrestore(&chan->vchan.lock, flags); in stm32_dma_terminate_all()
510 vchan_dma_desc_free_list(&chan->vchan, &head); in stm32_dma_terminate_all()
519 vchan_synchronize(&chan->vchan); in stm32_dma_synchronize()
563 vdesc = vchan_next_desc(&chan->vchan); in stm32_dma_start_transfer()
605 dev_dbg(chan2dev(chan), "vchan %pK: started\n", &chan->vchan); in stm32_dma_start_transfer()
666 dev_dbg(chan2dev(chan), "vchan %pK: paused\n", &chan->vchan); in stm32_dma_handle_chan_paused()
718 dev_dbg(chan2dev(chan), "vchan %pK: reconfigured after pause/resume\n", &chan->vchan); in stm32_dma_post_resume_reconfigure()
751 spin_lock(&chan->vchan.lock); in stm32_dma_chan_irq()
798 spin_unlock(&chan->vchan.lock); in stm32_dma_chan_irq()
808 spin_lock_irqsave(&chan->vchan.lock, flags); in stm32_dma_issue_pending()
809 if (vchan_issue_pending(&chan->vchan) && !chan->desc && !chan->busy) { in stm32_dma_issue_pending()
810 dev_dbg(chan2dev(chan), "vchan %pK: issued\n", &chan->vchan); in stm32_dma_issue_pending()
814 spin_unlock_irqrestore(&chan->vchan.lock, flags); in stm32_dma_issue_pending()
826 spin_lock_irqsave(&chan->vchan.lock, flags); in stm32_dma_pause()
834 spin_unlock_irqrestore(&chan->vchan.lock, flags); in stm32_dma_pause()
855 spin_lock_irqsave(&chan->vchan.lock, flags); in stm32_dma_resume()
911 spin_unlock_irqrestore(&chan->vchan.lock, flags); in stm32_dma_resume()
913 dev_dbg(chan2dev(chan), "vchan %pK: resumed\n", &chan->vchan); in stm32_dma_resume()
1129 return vchan_tx_prep(&chan->vchan, &desc->vdesc, flags); in stm32_dma_prep_slave_sg()
1217 return vchan_tx_prep(&chan->vchan, &desc->vdesc, flags); in stm32_dma_prep_dma_cyclic()
1269 return vchan_tx_prep(&chan->vchan, &desc->vdesc, flags); in stm32_dma_prep_dma_memcpy()
1417 spin_lock_irqsave(&chan->vchan.lock, flags); in stm32_dma_tx_status()
1418 vdesc = vchan_find_desc(&chan->vchan, cookie); in stm32_dma_tx_status()
1427 spin_unlock_irqrestore(&chan->vchan.lock, flags); in stm32_dma_tx_status()
1460 spin_lock_irqsave(&chan->vchan.lock, flags); in stm32_dma_free_chan_resources()
1463 spin_unlock_irqrestore(&chan->vchan.lock, flags); in stm32_dma_free_chan_resources()
1523 c = dma_get_slave_channel(&chan->vchan.chan); in stm32_dma_of_xlate()
1631 chan->vchan.desc_free = stm32_dma_desc_free; in stm32_dma_probe()
1632 vchan_init(&chan->vchan, dd); in stm32_dma_probe()