Lines Matching refs:vchan
231 struct virt_dma_chan vchan; member
259 return container_of(chan->vchan.chan.device, struct stm32_mdma_device, in stm32_mdma_get_dev()
265 return container_of(c, struct stm32_mdma_chan, vchan.chan); in to_stm32_mdma_chan()
275 return &chan->vchan.chan.dev->device; in chan2dev()
782 return vchan_tx_prep(&chan->vchan, &desc->vdesc, flags); in stm32_mdma_prep_slave_sg()
873 return vchan_tx_prep(&chan->vchan, &desc->vdesc, flags); in stm32_mdma_prep_dma_cyclic()
1059 return vchan_tx_prep(&chan->vchan, &desc->vdesc, flags); in stm32_mdma_prep_dma_memcpy()
1096 vdesc = vchan_next_desc(&chan->vchan); in stm32_mdma_start_transfer()
1137 dev_dbg(chan2dev(chan), "vchan %pK: started\n", &chan->vchan); in stm32_mdma_start_transfer()
1145 spin_lock_irqsave(&chan->vchan.lock, flags); in stm32_mdma_issue_pending()
1147 if (!vchan_issue_pending(&chan->vchan)) in stm32_mdma_issue_pending()
1150 dev_dbg(chan2dev(chan), "vchan %pK: issued\n", &chan->vchan); in stm32_mdma_issue_pending()
1156 spin_unlock_irqrestore(&chan->vchan.lock, flags); in stm32_mdma_issue_pending()
1165 spin_lock_irqsave(&chan->vchan.lock, flags); in stm32_mdma_pause()
1167 spin_unlock_irqrestore(&chan->vchan.lock, flags); in stm32_mdma_pause()
1170 dev_dbg(chan2dev(chan), "vchan %pK: pause\n", &chan->vchan); in stm32_mdma_pause()
1185 spin_lock_irqsave(&chan->vchan.lock, flags); in stm32_mdma_resume()
1205 spin_unlock_irqrestore(&chan->vchan.lock, flags); in stm32_mdma_resume()
1207 dev_dbg(chan2dev(chan), "vchan %pK: resume\n", &chan->vchan); in stm32_mdma_resume()
1218 spin_lock_irqsave(&chan->vchan.lock, flags); in stm32_mdma_terminate_all()
1225 vchan_get_all_descriptors(&chan->vchan, &head); in stm32_mdma_terminate_all()
1226 spin_unlock_irqrestore(&chan->vchan.lock, flags); in stm32_mdma_terminate_all()
1228 vchan_dma_desc_free_list(&chan->vchan, &head); in stm32_mdma_terminate_all()
1237 vchan_synchronize(&chan->vchan); in stm32_mdma_synchronize()
1292 spin_lock_irqsave(&chan->vchan.lock, flags); in stm32_mdma_tx_status()
1294 vdesc = vchan_find_desc(&chan->vchan, cookie); in stm32_mdma_tx_status()
1303 spin_unlock_irqrestore(&chan->vchan.lock, flags); in stm32_mdma_tx_status()
1339 spin_lock(&chan->vchan.lock); in stm32_mdma_irq_handler()
1347 spin_unlock(&chan->vchan.lock); in stm32_mdma_irq_handler()
1400 spin_unlock(&chan->vchan.lock); in stm32_mdma_irq_handler()
1441 spin_lock_irqsave(&chan->vchan.lock, flags); in stm32_mdma_free_chan_resources()
1444 spin_unlock_irqrestore(&chan->vchan.lock, flags); in stm32_mdma_free_chan_resources()
1629 chan->vchan.desc_free = stm32_mdma_desc_free; in stm32_mdma_probe()
1630 vchan_init(&chan->vchan, dd); in stm32_mdma_probe()