Lines Matching refs:vc
68 struct virt_dma_chan vc; member
84 to_milbeaut_hdmac_chan(struct virt_dma_chan *vc) in to_milbeaut_hdmac_chan() argument
86 return container_of(vc, struct milbeaut_hdmac_chan, vc); in to_milbeaut_hdmac_chan()
101 vd = vchan_next_desc(&mc->vc); in milbeaut_hdmac_next_desc()
177 spin_lock(&mc->vc.lock); in milbeaut_hdmac_interrupt()
203 spin_unlock(&mc->vc.lock); in milbeaut_hdmac_interrupt()
215 struct virt_dma_chan *vc = to_virt_chan(chan); in milbeaut_hdmac_chan_config() local
216 struct milbeaut_hdmac_chan *mc = to_milbeaut_hdmac_chan(vc); in milbeaut_hdmac_chan_config()
218 spin_lock(&mc->vc.lock); in milbeaut_hdmac_chan_config()
220 spin_unlock(&mc->vc.lock); in milbeaut_hdmac_chan_config()
227 struct virt_dma_chan *vc = to_virt_chan(chan); in milbeaut_hdmac_chan_pause() local
228 struct milbeaut_hdmac_chan *mc = to_milbeaut_hdmac_chan(vc); in milbeaut_hdmac_chan_pause()
231 spin_lock(&mc->vc.lock); in milbeaut_hdmac_chan_pause()
235 spin_unlock(&mc->vc.lock); in milbeaut_hdmac_chan_pause()
242 struct virt_dma_chan *vc = to_virt_chan(chan); in milbeaut_hdmac_chan_resume() local
243 struct milbeaut_hdmac_chan *mc = to_milbeaut_hdmac_chan(vc); in milbeaut_hdmac_chan_resume()
246 spin_lock(&mc->vc.lock); in milbeaut_hdmac_chan_resume()
250 spin_unlock(&mc->vc.lock); in milbeaut_hdmac_chan_resume()
261 struct virt_dma_chan *vc = to_virt_chan(chan); in milbeaut_hdmac_prep_slave_sg() local
284 return vchan_tx_prep(vc, &md->vd, flags); in milbeaut_hdmac_prep_slave_sg()
289 struct virt_dma_chan *vc = to_virt_chan(chan); in milbeaut_hdmac_terminate_all() local
290 struct milbeaut_hdmac_chan *mc = to_milbeaut_hdmac_chan(vc); in milbeaut_hdmac_terminate_all()
296 spin_lock_irqsave(&vc->lock, flags); in milbeaut_hdmac_terminate_all()
307 vchan_get_all_descriptors(vc, &head); in milbeaut_hdmac_terminate_all()
309 spin_unlock_irqrestore(&vc->lock, flags); in milbeaut_hdmac_terminate_all()
311 vchan_dma_desc_free_list(vc, &head); in milbeaut_hdmac_terminate_all()
325 struct virt_dma_chan *vc; in milbeaut_hdmac_tx_status() local
338 vc = to_virt_chan(chan); in milbeaut_hdmac_tx_status()
340 spin_lock_irqsave(&vc->lock, flags); in milbeaut_hdmac_tx_status()
342 mc = to_milbeaut_hdmac_chan(vc); in milbeaut_hdmac_tx_status()
364 vd = vchan_find_desc(vc, cookie); in milbeaut_hdmac_tx_status()
375 spin_unlock_irqrestore(&vc->lock, flags); in milbeaut_hdmac_tx_status()
382 struct virt_dma_chan *vc = to_virt_chan(chan); in milbeaut_hdmac_issue_pending() local
383 struct milbeaut_hdmac_chan *mc = to_milbeaut_hdmac_chan(vc); in milbeaut_hdmac_issue_pending()
386 spin_lock_irqsave(&vc->lock, flags); in milbeaut_hdmac_issue_pending()
388 if (vchan_issue_pending(vc) && !mc->md) in milbeaut_hdmac_issue_pending()
391 spin_unlock_irqrestore(&vc->lock, flags); in milbeaut_hdmac_issue_pending()
407 struct virt_dma_chan *vc; in milbeaut_hdmac_xlate() local
417 vc = to_virt_chan(chan); in milbeaut_hdmac_xlate()
418 mc = to_milbeaut_hdmac_chan(vc); in milbeaut_hdmac_xlate()
449 mc->vc.desc_free = milbeaut_hdmac_desc_free; in milbeaut_hdmac_chan_init()
450 vchan_init(&mc->vc, &mdev->ddev); in milbeaut_hdmac_chan_init()