Lines Matching refs:dma_tx
135 ctlr->dma_tx = dma_request_chan(dev, "tx"); in at91_usart_spi_configure_dma()
136 if (IS_ERR_OR_NULL(ctlr->dma_tx)) { in at91_usart_spi_configure_dma()
137 if (IS_ERR(ctlr->dma_tx)) { in at91_usart_spi_configure_dma()
138 err = PTR_ERR(ctlr->dma_tx); in at91_usart_spi_configure_dma()
178 if (dmaengine_slave_config(ctlr->dma_tx, &slave_config)) { in at91_usart_spi_configure_dma()
189 if (!IS_ERR_OR_NULL(ctlr->dma_tx)) in at91_usart_spi_configure_dma()
190 dma_release_channel(ctlr->dma_tx); in at91_usart_spi_configure_dma()
193 ctlr->dma_tx = NULL; in at91_usart_spi_configure_dma()
204 if (ctlr->dma_tx) in at91_usart_spi_release_dma()
205 dma_release_channel(ctlr->dma_tx); in at91_usart_spi_release_dma()
212 if (ctlr->dma_tx) in at91_usart_spi_stop_dma()
213 dmaengine_terminate_all(ctlr->dma_tx); in at91_usart_spi_stop_dma()
221 struct dma_chan *txchan = ctlr->dma_tx; in at91_usart_spi_dma_transfer()