Lines Matching refs:dma_rx
200 struct rockchip_spi_dma_data dma_rx; member
327 dmaengine_terminate_all(rs->dma_rx.ch); in rockchip_spi_handle_err()
454 rxconf.direction = rs->dma_rx.direction; in rockchip_spi_prepare_dma()
455 rxconf.src_addr = rs->dma_rx.addr; in rockchip_spi_prepare_dma()
458 dmaengine_slave_config(rs->dma_rx.ch, &rxconf); in rockchip_spi_prepare_dma()
461 rs->dma_rx.ch, in rockchip_spi_prepare_dma()
463 rs->dma_rx.direction, DMA_PREP_INTERRUPT); in rockchip_spi_prepare_dma()
492 dma_async_issue_pending(rs->dma_rx.ch); in rockchip_spi_prepare_dma()
728 rs->dma_rx.ch = dma_request_slave_channel(rs->dev, "rx"); in rockchip_spi_probe()
729 if (!rs->dma_rx.ch) { in rockchip_spi_probe()
737 if (rs->dma_tx.ch && rs->dma_rx.ch) { in rockchip_spi_probe()
739 rs->dma_rx.addr = (dma_addr_t)(mem->start + ROCKCHIP_SPI_RXDR); in rockchip_spi_probe()
741 rs->dma_rx.direction = DMA_DEV_TO_MEM; in rockchip_spi_probe()
745 master->dma_rx = rs->dma_rx.ch; in rockchip_spi_probe()
759 if (rs->dma_rx.ch) in rockchip_spi_probe()
760 dma_release_channel(rs->dma_rx.ch); in rockchip_spi_probe()
783 if (rs->dma_rx.ch) in rockchip_spi_remove()
784 dma_release_channel(rs->dma_rx.ch); in rockchip_spi_remove()