Lines Matching refs:ch
158 struct dma_chan *ch; member
322 dmaengine_terminate_all(rs->dma_rx.ch); in rockchip_spi_handle_err()
327 dmaengine_terminate_all(rs->dma_tx.ch); in rockchip_spi_handle_err()
453 dmaengine_slave_config(rs->dma_rx.ch, &rxconf); in rockchip_spi_prepare_dma()
456 rs->dma_rx.ch, 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()
487 dma_async_issue_pending(rs->dma_rx.ch); 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()
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()
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()
740 master->dma_tx = rs->dma_tx.ch; in rockchip_spi_probe()
741 master->dma_rx = rs->dma_rx.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()
755 if (rs->dma_rx.ch) in rockchip_spi_probe()
756 dma_release_channel(rs->dma_rx.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()
779 if (rs->dma_rx.ch) in rockchip_spi_remove()
780 dma_release_channel(rs->dma_rx.ch); in rockchip_spi_remove()