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()
433 host->chan_tx = sh_mmcif_request_dma_pdata(host, in sh_mmcif_request_dma()
438 host->chan_tx = dma_request_chan(dev, "tx"); in sh_mmcif_request_dma()
439 if (IS_ERR(host->chan_tx)) in sh_mmcif_request_dma()
440 host->chan_tx = NULL; in sh_mmcif_request_dma()
445 dev_dbg(dev, "%s: got channel TX %p RX %p\n", __func__, host->chan_tx, in sh_mmcif_request_dma()
448 if (!host->chan_tx || !host->chan_rx || in sh_mmcif_request_dma()
449 sh_mmcif_dma_slave_config(host, host->chan_tx, DMA_MEM_TO_DEV) || in sh_mmcif_request_dma()
456 if (host->chan_tx) in sh_mmcif_request_dma()
457 dma_release_channel(host->chan_tx); in sh_mmcif_request_dma()
460 host->chan_tx = host->chan_rx = NULL; in sh_mmcif_request_dma()
467 if (host->chan_tx) { in sh_mmcif_release_dma()
468 struct dma_chan *chan = host->chan_tx; in sh_mmcif_release_dma()
469 host->chan_tx = NULL; in sh_mmcif_release_dma()
1126 if (host->chan_tx) in sh_mmcif_end_cmd()
1144 dma_unmap_sg(host->chan_tx->device->dev, in sh_mmcif_end_cmd()
1171 dmaengine_terminate_sync(host->chan_tx); in sh_mmcif_end_cmd()