Lines Matching refs:vc
87 struct virt_dma_chan vc;
104 to_uniphier_xdmac_chan(struct virt_dma_chan *vc)
106 return container_of(vc, struct uniphier_xdmac_chan, vc);
115 /* xc->vc.lock must be held by caller */
121 vd = vchan_next_desc(&xc->vc);
130 /* xc->vc.lock must be held by caller */
197 /* xc->vc.lock must be held by caller */
217 /* xc->vc.lock must be held by caller */
235 spin_lock(&xc->vc.lock);
261 spin_unlock(&xc->vc.lock);
284 struct virt_dma_chan *vc = to_virt_chan(chan);
315 return vchan_tx_prep(vc, &xd->vd, flags);
324 struct virt_dma_chan *vc = to_virt_chan(chan);
325 struct uniphier_xdmac_chan *xc = to_uniphier_xdmac_chan(vc);
391 return vchan_tx_prep(vc, &xd->vd, flags);
397 struct virt_dma_chan *vc = to_virt_chan(chan);
398 struct uniphier_xdmac_chan *xc = to_uniphier_xdmac_chan(vc);
407 struct virt_dma_chan *vc = to_virt_chan(chan);
408 struct uniphier_xdmac_chan *xc = to_uniphier_xdmac_chan(vc);
413 spin_lock_irqsave(&vc->lock, flags);
421 vchan_get_all_descriptors(vc, &head);
423 spin_unlock_irqrestore(&vc->lock, flags);
425 vchan_dma_desc_free_list(vc, &head);
437 struct virt_dma_chan *vc = to_virt_chan(chan);
438 struct uniphier_xdmac_chan *xc = to_uniphier_xdmac_chan(vc);
441 spin_lock_irqsave(&vc->lock, flags);
443 if (vchan_issue_pending(vc) && !xc->xd)
446 spin_unlock_irqrestore(&vc->lock, flags);
461 xc->vc.desc_free = uniphier_xdmac_desc_free;
463 vchan_init(&xc->vc, &xdev->ddev);
478 return dma_get_slave_channel(&xdev->channels[chan_id].vc.chan);