Lines Matching refs:dma_tx
201 struct rockchip_spi_dma_data dma_tx; member
332 dmaengine_terminate_all(rs->dma_tx.ch); in rockchip_spi_handle_err()
471 txconf.direction = rs->dma_tx.direction; in rockchip_spi_prepare_dma()
472 txconf.dst_addr = rs->dma_tx.addr; in rockchip_spi_prepare_dma()
475 dmaengine_slave_config(rs->dma_tx.ch, &txconf); in rockchip_spi_prepare_dma()
478 rs->dma_tx.ch, in rockchip_spi_prepare_dma()
480 rs->dma_tx.direction, DMA_PREP_INTERRUPT); in rockchip_spi_prepare_dma()
500 dma_async_issue_pending(rs->dma_tx.ch); in rockchip_spi_prepare_dma()
724 rs->dma_tx.ch = dma_request_slave_channel(rs->dev, "tx"); in rockchip_spi_probe()
725 if (!rs->dma_tx.ch) in rockchip_spi_probe()
730 if (rs->dma_tx.ch) { in rockchip_spi_probe()
731 dma_release_channel(rs->dma_tx.ch); in rockchip_spi_probe()
732 rs->dma_tx.ch = NULL; in rockchip_spi_probe()
737 if (rs->dma_tx.ch && rs->dma_rx.ch) { in rockchip_spi_probe()
738 rs->dma_tx.addr = (dma_addr_t)(mem->start + ROCKCHIP_SPI_TXDR); in rockchip_spi_probe()
740 rs->dma_tx.direction = DMA_MEM_TO_DEV; in rockchip_spi_probe()
744 master->dma_tx = rs->dma_tx.ch; in rockchip_spi_probe()
757 if (rs->dma_tx.ch) in rockchip_spi_probe()
758 dma_release_channel(rs->dma_tx.ch); in rockchip_spi_probe()
781 if (rs->dma_tx.ch) in rockchip_spi_remove()
782 dma_release_channel(rs->dma_tx.ch); in rockchip_spi_remove()