Lines Matching refs:vc

116  * @vc:                    An instance for struct virt_dma_chan
122 struct virt_dma_chan vc;
135 * @vc: The pointer to all available VCs
144 struct mtk_cqdma_vchan *vc;
155 return container_of(chan, struct mtk_cqdma_vchan, vc.chan);
272 lockdep_assert_held(&cvc->vc.lock);
275 list_for_each_entry_safe(vd, vd2, &cvc->vc.desc_issued, node) {
333 spin_lock(&cvc->vc.lock);
347 spin_unlock(&cvc->vc.lock);
433 list_for_each_entry(vd, &cvc->vc.desc_issued, node)
455 spin_lock_irqsave(&cvc->vc.lock, flags);
457 spin_unlock_irqrestore(&cvc->vc.lock, flags);
477 spin_lock_irqsave(&cvc->vc.lock, vc_flags);
479 if (vchan_issue_pending(&cvc->vc))
482 spin_unlock_irqrestore(&cvc->vc.lock, vc_flags);
552 struct virt_dma_chan *vc = to_virt_chan(c);
560 spin_lock_irqsave(&vc->lock, flags);
561 list_splice_tail_init(&vc->desc_allocated, &head);
562 list_splice_tail_init(&vc->desc_submitted, &head);
563 list_splice_tail_init(&vc->desc_issued, &head);
564 spin_unlock_irqrestore(&vc->lock, flags);
567 vchan_dma_desc_free_list(vc, &head);
579 spin_lock_irqsave(&cvc->vc.lock, vc_flags);
587 spin_unlock_irqrestore(&cvc->vc.lock, vc_flags);
595 vchan_synchronize(&cvc->vc);
597 WARN_ONCE(!list_empty(&cvc->vc.desc_completed),
615 struct mtk_cqdma_vchan *vc = to_cqdma_vchan(c);
652 vc->pc = pc;
751 struct mtk_cqdma_vchan *vc;
841 cqdma->vc = devm_kcalloc(&pdev->dev, cqdma->dma_requests,
842 sizeof(*cqdma->vc), GFP_KERNEL);
843 if (!cqdma->vc)
847 vc = &cqdma->vc[i];
848 vc->vc.desc_free = mtk_cqdma_vdesc_free;
849 vchan_init(&vc->vc, dd);
850 init_completion(&vc->issue_completion);
891 struct mtk_cqdma_vchan *vc;
897 vc = &cqdma->vc[i];
899 list_del(&vc->vc.chan.device_node);
900 tasklet_kill(&vc->vc.task);