Lines Matching refs:chan_tx
247 struct dma_chan *chan_tx; member
323 chan = host->chan_tx; in sh_mmcif_start_dma_rx()
325 host->chan_tx = NULL; in sh_mmcif_start_dma_rx()
342 struct dma_chan *chan = host->chan_tx; in sh_mmcif_start_dma_tx()
369 host->chan_tx = NULL; in sh_mmcif_start_dma_tx()
430 host->chan_tx = sh_mmcif_request_dma_pdata(host, in sh_mmcif_request_dma()
435 host->chan_tx = dma_request_chan(dev, "tx"); in sh_mmcif_request_dma()
436 if (IS_ERR(host->chan_tx)) in sh_mmcif_request_dma()
437 host->chan_tx = NULL; in sh_mmcif_request_dma()
442 dev_dbg(dev, "%s: got channel TX %p RX %p\n", __func__, host->chan_tx, in sh_mmcif_request_dma()
445 if (!host->chan_tx || !host->chan_rx || in sh_mmcif_request_dma()
446 sh_mmcif_dma_slave_config(host, host->chan_tx, DMA_MEM_TO_DEV) || in sh_mmcif_request_dma()
453 if (host->chan_tx) in sh_mmcif_request_dma()
454 dma_release_channel(host->chan_tx); in sh_mmcif_request_dma()
457 host->chan_tx = host->chan_rx = NULL; in sh_mmcif_request_dma()
464 if (host->chan_tx) { in sh_mmcif_release_dma()
465 struct dma_chan *chan = host->chan_tx; in sh_mmcif_release_dma()
466 host->chan_tx = NULL; in sh_mmcif_release_dma()
1124 if (host->chan_tx) in sh_mmcif_end_cmd()
1142 dma_unmap_sg(host->chan_tx->device->dev, in sh_mmcif_end_cmd()
1169 dmaengine_terminate_all(host->chan_tx); in sh_mmcif_end_cmd()