Lines Matching refs:rxchan
45 ret = dma_get_slave_caps(dws->rxchan, &caps); in dw_spi_dma_maxburst_init()
84 ret = dma_get_slave_caps(dws->rxchan, &rx); in dw_spi_dma_caps_init()
132 dws->rxchan = dma_request_channel(mask, dw_spi_dma_chan_filter, rx); in dw_spi_dma_init_mfld()
133 if (!dws->rxchan) in dw_spi_dma_init_mfld()
142 dws->host->dma_rx = dws->rxchan; in dw_spi_dma_init_mfld()
161 dma_release_channel(dws->rxchan); in dw_spi_dma_init_mfld()
162 dws->rxchan = NULL; in dw_spi_dma_init_mfld()
172 dws->rxchan = dma_request_chan(dev, "rx"); in dw_spi_dma_init_generic()
173 if (IS_ERR(dws->rxchan)) { in dw_spi_dma_init_generic()
174 ret = PTR_ERR(dws->rxchan); in dw_spi_dma_init_generic()
175 dws->rxchan = NULL; in dw_spi_dma_init_generic()
186 dws->host->dma_rx = dws->rxchan; in dw_spi_dma_init_generic()
203 dma_release_channel(dws->rxchan); in dw_spi_dma_init_generic()
204 dws->rxchan = NULL; in dw_spi_dma_init_generic()
216 if (dws->rxchan) { in dw_spi_dma_exit()
217 dmaengine_terminate_sync(dws->rxchan); in dw_spi_dma_exit()
218 dma_release_channel(dws->rxchan); in dw_spi_dma_exit()
437 return dmaengine_slave_config(dws->rxchan, &rxconf); in dw_spi_dma_config_rx()
447 rxdesc = dmaengine_prep_slave_sg(dws->rxchan, sgl, nents, in dw_spi_dma_submit_rx()
459 dmaengine_terminate_sync(dws->rxchan); in dw_spi_dma_submit_rx()
524 dma_async_issue_pending(dws->rxchan); in dw_spi_dma_transfer_all()
611 dma_async_issue_pending(dws->rxchan); in dw_spi_dma_transfer_one()
678 dmaengine_terminate_sync(dws->rxchan); in dw_spi_dma_stop()