Lines Matching refs:vc
131 struct virt_dma_chan vc;
169 return container_of(c, struct moxart_chan, vc.chan);
192 spin_lock_irqsave(&ch->vc.lock, flags);
203 vchan_get_all_descriptors(&ch->vc, &head);
204 spin_unlock_irqrestore(&ch->vc.lock, flags);
205 vchan_dma_desc_free_list(&ch->vc, &head);
325 return vchan_tx_prep(&ch->vc, &d->vd, tx_flags);
360 vchan_free_chan_resources(&ch->vc);
387 dev_dbg(chan2dev(&ch->vc.chan), "%s: set %u DMA cycles (len=%u)\n",
420 vd = vchan_next_desc(&ch->vc);
440 spin_lock_irqsave(&ch->vc.lock, flags);
441 if (vchan_issue_pending(&ch->vc) && !ch->desc)
443 spin_unlock_irqrestore(&ch->vc.lock, flags);
468 dev_dbg(chan2dev(&ch->vc.chan), "%s: size=%zu\n", __func__, size);
488 spin_lock_irqsave(&ch->vc.lock, flags);
489 vd = vchan_find_desc(&ch->vc, cookie);
496 spin_unlock_irqrestore(&ch->vc.lock, flags);
525 dev_dbg(chan2dev(&ch->vc.chan), "%s\n", __func__);
533 dev_dbg(chan2dev(&ch->vc.chan), "%s: ch=%p ch->base=%p ctrl=%x\n",
539 spin_lock(&ch->vc.lock);
544 moxart_dma_start_desc(&ch->vc.chan);
546 spin_unlock(&ch->vc.lock);
597 ch->vc.desc_free = moxart_dma_desc_free;
598 vchan_init(&ch->vc, &mdc->dma_slave);