Lines Matching refs:dma_tx
201 struct rockchip_spi_dma_data dma_tx; member
327 dmaengine_terminate_all(rs->dma_tx.ch); in rockchip_spi_handle_err()
466 txconf.direction = rs->dma_tx.direction; in rockchip_spi_prepare_dma()
467 txconf.dst_addr = rs->dma_tx.addr; in rockchip_spi_prepare_dma()
470 dmaengine_slave_config(rs->dma_tx.ch, &txconf); in rockchip_spi_prepare_dma()
473 rs->dma_tx.ch, in rockchip_spi_prepare_dma()
475 rs->dma_tx.direction, DMA_PREP_INTERRUPT); in rockchip_spi_prepare_dma()
495 dma_async_issue_pending(rs->dma_tx.ch); in rockchip_spi_prepare_dma()
720 rs->dma_tx.ch = dma_request_slave_channel(rs->dev, "tx"); in rockchip_spi_probe()
721 if (!rs->dma_tx.ch) in rockchip_spi_probe()
726 if (rs->dma_tx.ch) { in rockchip_spi_probe()
727 dma_release_channel(rs->dma_tx.ch); in rockchip_spi_probe()
728 rs->dma_tx.ch = NULL; in rockchip_spi_probe()
733 if (rs->dma_tx.ch && rs->dma_rx.ch) { in rockchip_spi_probe()
734 rs->dma_tx.addr = (dma_addr_t)(mem->start + ROCKCHIP_SPI_TXDR); in rockchip_spi_probe()
736 rs->dma_tx.direction = DMA_MEM_TO_DEV; in rockchip_spi_probe()
740 master->dma_tx = rs->dma_tx.ch; in rockchip_spi_probe()
753 if (rs->dma_tx.ch) in rockchip_spi_probe()
754 dma_release_channel(rs->dma_tx.ch); in rockchip_spi_probe()
777 if (rs->dma_tx.ch) in rockchip_spi_remove()
778 dma_release_channel(rs->dma_tx.ch); in rockchip_spi_remove()