Lines Matching refs:vc
69 struct virt_dma_chan vc;
81 to_milbeaut_xdmac_chan(struct virt_dma_chan *vc)
83 return container_of(vc, struct milbeaut_xdmac_chan, vc);
92 /* mc->vc.lock must be held by caller */
98 vd = vchan_next_desc(&mc->vc);
111 /* mc->vc.lock must be held by caller */
149 /* mc->vc.lock must be held by caller */
165 spin_lock(&mc->vc.lock);
179 spin_unlock(&mc->vc.lock);
192 struct virt_dma_chan *vc = to_virt_chan(chan);
203 return vchan_tx_prep(vc, &md->vd, flags);
208 struct virt_dma_chan *vc = to_virt_chan(chan);
209 struct milbeaut_xdmac_chan *mc = to_milbeaut_xdmac_chan(vc);
215 spin_lock_irqsave(&vc->lock, flags);
228 vchan_get_all_descriptors(vc, &head);
230 spin_unlock_irqrestore(&vc->lock, flags);
232 vchan_dma_desc_free_list(vc, &head);
244 struct virt_dma_chan *vc = to_virt_chan(chan);
245 struct milbeaut_xdmac_chan *mc = to_milbeaut_xdmac_chan(vc);
248 spin_lock_irqsave(&vc->lock, flags);
250 if (vchan_issue_pending(vc) && !mc->md)
253 spin_unlock_irqrestore(&vc->lock, flags);
286 mc->vc.desc_free = milbeaut_xdmac_desc_free;
287 vchan_init(&mc->vc, &mdev->ddev);