Lines Matching refs:txchan
54 ret = dma_get_slave_caps(dws->txchan, &caps); in dw_spi_dma_maxburst_init()
80 ret = dma_get_slave_caps(dws->txchan, &tx); in dw_spi_dma_caps_init()
138 dws->txchan = dma_request_channel(mask, dw_spi_dma_chan_filter, tx); in dw_spi_dma_init_mfld()
139 if (!dws->txchan) in dw_spi_dma_init_mfld()
143 dws->host->dma_tx = dws->txchan; in dw_spi_dma_init_mfld()
158 dma_release_channel(dws->txchan); in dw_spi_dma_init_mfld()
159 dws->txchan = NULL; in dw_spi_dma_init_mfld()
179 dws->txchan = dma_request_chan(dev, "tx"); in dw_spi_dma_init_generic()
180 if (IS_ERR(dws->txchan)) { in dw_spi_dma_init_generic()
181 ret = PTR_ERR(dws->txchan); in dw_spi_dma_init_generic()
182 dws->txchan = NULL; in dw_spi_dma_init_generic()
187 dws->host->dma_tx = dws->txchan; in dw_spi_dma_init_generic()
200 dma_release_channel(dws->txchan); in dw_spi_dma_init_generic()
201 dws->txchan = NULL; in dw_spi_dma_init_generic()
211 if (dws->txchan) { in dw_spi_dma_exit()
212 dmaengine_terminate_sync(dws->txchan); in dw_spi_dma_exit()
213 dma_release_channel(dws->txchan); in dw_spi_dma_exit()
336 return dmaengine_slave_config(dws->txchan, &txconf); in dw_spi_dma_config_tx()
346 txdesc = dmaengine_prep_slave_sg(dws->txchan, sgl, nents, in dw_spi_dma_submit_tx()
358 dmaengine_terminate_sync(dws->txchan); in dw_spi_dma_submit_tx()
527 dma_async_issue_pending(dws->txchan); in dw_spi_dma_transfer_all()
613 dma_async_issue_pending(dws->txchan); in dw_spi_dma_transfer_one()
674 dmaengine_terminate_sync(dws->txchan); in dw_spi_dma_stop()