Lines Matching full:dma_tx
179 struct dma_chan *dma_tx; member
223 dma_release_channel(host->dma_tx); in jz4740_mmc_release_dma_channels()
232 host->dma_tx = dma_request_chan(dev, "tx-rx"); in jz4740_mmc_acquire_dma_channels()
233 if (!IS_ERR(host->dma_tx)) in jz4740_mmc_acquire_dma_channels()
236 if (PTR_ERR(host->dma_tx) != -ENODEV) { in jz4740_mmc_acquire_dma_channels()
238 return PTR_ERR(host->dma_tx); in jz4740_mmc_acquire_dma_channels()
241 host->dma_tx = dma_request_chan(mmc_dev(host->mmc), "tx"); in jz4740_mmc_acquire_dma_channels()
242 if (IS_ERR(host->dma_tx)) { in jz4740_mmc_acquire_dma_channels()
243 dev_err(mmc_dev(host->mmc), "Failed to get dma_tx channel\n"); in jz4740_mmc_acquire_dma_channels()
244 return PTR_ERR(host->dma_tx); in jz4740_mmc_acquire_dma_channels()
250 dma_release_channel(host->dma_tx); in jz4740_mmc_acquire_dma_channels()
258 if (host->dma_tx) { in jz4740_mmc_acquire_dma_channels()
259 struct device *dev = host->dma_tx->device->dev; in jz4740_mmc_acquire_dma_channels()
283 return host->dma_tx; in jz4740_mmc_get_dma_chan()