Lines Matching refs:vchan
24 return container_of(c, struct st_fdma_chan, vchan.chan); in to_st_fdma_chan()
79 vdesc = vchan_next_desc(&fchan->vchan); in st_fdma_xfer_desc()
85 cmd = FDMA_CMD_START(fchan->vchan.chan.chan_id); in st_fdma_xfer_desc()
94 dev_dbg(fchan->fdev->dev, "start chan:%d\n", fchan->vchan.chan.chan_id); in st_fdma_xfer_desc()
101 int ch_id = fchan->vchan.chan.chan_id; in st_fdma_ch_sta_update()
139 spin_lock(&fchan->vchan.lock); in st_fdma_irq_handler()
157 spin_unlock(&fchan->vchan.lock); in st_fdma_irq_handler()
282 fchan->vchan.chan.chan_id, fchan->cfg.type); in st_fdma_alloc_chan_res()
294 __func__, fchan->vchan.chan.chan_id); in st_fdma_free_chan_res()
299 spin_lock_irqsave(&fchan->vchan.lock, flags); in st_fdma_free_chan_res()
301 spin_unlock_irqrestore(&fchan->vchan.lock, flags); in st_fdma_free_chan_res()
343 return vchan_tx_prep(&fchan->vchan, &fdesc->vdesc, flags); in st_fdma_prep_dma_memcpy()
351 int ch_id = fchan->vchan.chan.chan_id; in config_reqctrl()
503 return vchan_tx_prep(&fchan->vchan, &fdesc->vdesc, flags); in st_fdma_prep_dma_cyclic()
552 return vchan_tx_prep(&fchan->vchan, &fdesc->vdesc, flags); in st_fdma_prep_slave_sg()
593 spin_lock_irqsave(&fchan->vchan.lock, flags); in st_fdma_tx_status()
594 vd = vchan_find_desc(&fchan->vchan, cookie); in st_fdma_tx_status()
602 spin_unlock_irqrestore(&fchan->vchan.lock, flags); in st_fdma_tx_status()
612 spin_lock_irqsave(&fchan->vchan.lock, flags); in st_fdma_issue_pending()
614 if (vchan_issue_pending(&fchan->vchan) && !fchan->fdesc) in st_fdma_issue_pending()
617 spin_unlock_irqrestore(&fchan->vchan.lock, flags); in st_fdma_issue_pending()
624 int ch_id = fchan->vchan.chan.chan_id; in st_fdma_pause()
629 spin_lock_irqsave(&fchan->vchan.lock, flags); in st_fdma_pause()
632 spin_unlock_irqrestore(&fchan->vchan.lock, flags); in st_fdma_pause()
642 int ch_id = fchan->vchan.chan.chan_id; in st_fdma_resume()
646 spin_lock_irqsave(&fchan->vchan.lock, flags); in st_fdma_resume()
652 spin_unlock_irqrestore(&fchan->vchan.lock, flags); in st_fdma_resume()
662 int ch_id = fchan->vchan.chan.chan_id; in st_fdma_terminate_all()
667 spin_lock_irqsave(&fchan->vchan.lock, flags); in st_fdma_terminate_all()
670 vchan_get_all_descriptors(&fchan->vchan, &head); in st_fdma_terminate_all()
671 spin_unlock_irqrestore(&fchan->vchan.lock, flags); in st_fdma_terminate_all()
672 vchan_dma_desc_free_list(&fchan->vchan, &head); in st_fdma_terminate_all()
734 list_del(&fchan->vchan.chan.device_node); in st_fdma_free()
735 tasklet_kill(&fchan->vchan.task); in st_fdma_free()
798 fchan->vchan.desc_free = st_fdma_free_desc; in st_fdma_probe()
799 vchan_init(&fchan->vchan, &fdev->dma_device); in st_fdma_probe()