Lines Matching refs:chan
51 struct dma_chan *chan = host->chan_rx; in tmio_mmc_start_dma_rx() local
86 ret = dma_map_sg(chan->device->dev, sg, host->sg_len, DMA_FROM_DEVICE); in tmio_mmc_start_dma_rx()
88 desc = dmaengine_prep_slave_sg(chan, sg, ret, in tmio_mmc_start_dma_rx()
108 dma_release_channel(chan); in tmio_mmc_start_dma_rx()
110 chan = host->chan_tx; in tmio_mmc_start_dma_rx()
111 if (chan) { in tmio_mmc_start_dma_rx()
113 dma_release_channel(chan); in tmio_mmc_start_dma_rx()
127 struct dma_chan *chan = host->chan_tx; in tmio_mmc_start_dma_tx() local
166 ret = dma_map_sg(chan->device->dev, sg, host->sg_len, DMA_TO_DEVICE); in tmio_mmc_start_dma_tx()
168 desc = dmaengine_prep_slave_sg(chan, sg, ret, in tmio_mmc_start_dma_tx()
188 dma_release_channel(chan); in tmio_mmc_start_dma_tx()
190 chan = host->chan_rx; in tmio_mmc_start_dma_tx()
191 if (chan) { in tmio_mmc_start_dma_tx()
193 dma_release_channel(chan); in tmio_mmc_start_dma_tx()
218 struct dma_chan *chan = NULL; in tmio_mmc_issue_tasklet_fn() local
224 chan = host->chan_rx; in tmio_mmc_issue_tasklet_fn()
226 chan = host->chan_tx; in tmio_mmc_issue_tasklet_fn()
233 if (chan) in tmio_mmc_issue_tasklet_fn()
234 dma_async_issue_pending(chan); in tmio_mmc_issue_tasklet_fn()
343 struct dma_chan *chan = host->chan_tx; in tmio_mmc_release_dma() local
345 dma_release_channel(chan); in tmio_mmc_release_dma()
348 struct dma_chan *chan = host->chan_rx; in tmio_mmc_release_dma() local
350 dma_release_channel(chan); in tmio_mmc_release_dma()