Lines Matching refs:dma_rx
208 struct rockchip_spi_dma_data dma_rx; member
328 dmaengine_terminate_async(rs->dma_rx.ch); in rockchip_spi_handle_err()
455 rxconf.direction = rs->dma_rx.direction; in rockchip_spi_prepare_dma()
456 rxconf.src_addr = rs->dma_rx.addr; in rockchip_spi_prepare_dma()
462 dmaengine_slave_config(rs->dma_rx.ch, &rxconf); in rockchip_spi_prepare_dma()
465 rs->dma_rx.ch, in rockchip_spi_prepare_dma()
467 rs->dma_rx.direction, DMA_PREP_INTERRUPT); in rockchip_spi_prepare_dma()
492 dmaengine_terminate_sync(rs->dma_rx.ch); in rockchip_spi_prepare_dma()
506 dma_async_issue_pending(rs->dma_rx.ch); in rockchip_spi_prepare_dma()
772 rs->dma_rx.ch = dma_request_chan(rs->dev, "rx"); in rockchip_spi_probe()
773 if (IS_ERR(rs->dma_rx.ch)) { in rockchip_spi_probe()
774 if (PTR_ERR(rs->dma_rx.ch) == -EPROBE_DEFER) { in rockchip_spi_probe()
779 rs->dma_rx.ch = NULL; in rockchip_spi_probe()
782 if (rs->dma_tx.ch && rs->dma_rx.ch) { in rockchip_spi_probe()
783 dma_get_slave_caps(rs->dma_rx.ch, &(rs->dma_caps)); in rockchip_spi_probe()
785 rs->dma_rx.addr = (dma_addr_t)(mem->start + ROCKCHIP_SPI_RXDR); in rockchip_spi_probe()
787 rs->dma_rx.direction = DMA_DEV_TO_MEM; in rockchip_spi_probe()
791 master->dma_rx = rs->dma_rx.ch; in rockchip_spi_probe()
803 if (rs->dma_rx.ch) in rockchip_spi_probe()
804 dma_release_channel(rs->dma_rx.ch); in rockchip_spi_probe()
836 if (rs->dma_rx.ch) in rockchip_spi_remove()
837 dma_release_channel(rs->dma_rx.ch); in rockchip_spi_remove()