Lines Matching refs:dma_rx
200 struct rockchip_spi_dma_data dma_rx; member
322 dmaengine_terminate_all(rs->dma_rx.ch); in rockchip_spi_handle_err()
449 rxconf.direction = rs->dma_rx.direction; in rockchip_spi_prepare_dma()
450 rxconf.src_addr = rs->dma_rx.addr; in rockchip_spi_prepare_dma()
453 dmaengine_slave_config(rs->dma_rx.ch, &rxconf); in rockchip_spi_prepare_dma()
456 rs->dma_rx.ch, in rockchip_spi_prepare_dma()
458 rs->dma_rx.direction, DMA_PREP_INTERRUPT); in rockchip_spi_prepare_dma()
487 dma_async_issue_pending(rs->dma_rx.ch); in rockchip_spi_prepare_dma()
724 rs->dma_rx.ch = dma_request_slave_channel(rs->dev, "rx"); in rockchip_spi_probe()
725 if (!rs->dma_rx.ch) { in rockchip_spi_probe()
733 if (rs->dma_tx.ch && rs->dma_rx.ch) { in rockchip_spi_probe()
735 rs->dma_rx.addr = (dma_addr_t)(mem->start + ROCKCHIP_SPI_RXDR); in rockchip_spi_probe()
737 rs->dma_rx.direction = DMA_DEV_TO_MEM; in rockchip_spi_probe()
741 master->dma_rx = rs->dma_rx.ch; in rockchip_spi_probe()
755 if (rs->dma_rx.ch) in rockchip_spi_probe()
756 dma_release_channel(rs->dma_rx.ch); in rockchip_spi_probe()
779 if (rs->dma_rx.ch) in rockchip_spi_remove()
780 dma_release_channel(rs->dma_rx.ch); in rockchip_spi_remove()