Lines Matching full:dma_tx
322 * @dma_tx: dma channel for TX transfer
355 struct dma_chan *dma_tx; member
836 if (spi->cur_usedma && spi->dma_tx) in stm32fx_spi_disable()
837 dmaengine_terminate_async(spi->dma_tx); in stm32fx_spi_disable()
879 if (spi->cur_usedma && spi->dma_tx) in stm32h7_spi_disable()
880 dmaengine_terminate_async(spi->dma_tx); in stm32h7_spi_disable()
1456 if (spi->tx_buf && spi->dma_tx) { in stm32_spi_transfer_one_dma()
1457 stm32_spi_dma_config(spi, spi->dma_tx, &tx_dma_conf, DMA_MEM_TO_DEV); in stm32_spi_transfer_one_dma()
1458 dmaengine_slave_config(spi->dma_tx, &tx_dma_conf); in stm32_spi_transfer_one_dma()
1461 spi->dma_tx, xfer->tx_sg.sgl, in stm32_spi_transfer_one_dma()
1467 if ((spi->tx_buf && spi->dma_tx && !tx_dma_desc) || in stm32_spi_transfer_one_dma()
1498 dma_async_issue_pending(spi->dma_tx); in stm32_spi_transfer_one_dma()
2195 spi->dma_tx = dma_request_chan(spi->dev, "tx"); in stm32_spi_probe()
2196 if (IS_ERR(spi->dma_tx)) { in stm32_spi_probe()
2197 ret = PTR_ERR(spi->dma_tx); in stm32_spi_probe()
2198 spi->dma_tx = NULL; in stm32_spi_probe()
2204 ctrl->dma_tx = spi->dma_tx; in stm32_spi_probe()
2219 if (spi->dma_tx || spi->dma_rx) in stm32_spi_probe()
2250 if (spi->dma_tx) in stm32_spi_probe()
2251 dma_release_channel(spi->dma_tx); in stm32_spi_probe()
2275 if (ctrl->dma_tx) in stm32_spi_remove()
2276 dma_release_channel(ctrl->dma_tx); in stm32_spi_remove()