Lines Matching full:rx_dma
188 * @rx_dma: Local receive DMA data (e.g. chan and direction)
212 struct s3c64xx_spi_dma_data rx_dma; member
277 struct s3c64xx_spi_driver_data, rx_dma); in s3c64xx_spi_dmacb()
309 struct s3c64xx_spi_driver_data, rx_dma); in prepare_dma()
380 sdd->rx_dma.ch = dma_request_chan(&sdd->pdev->dev, "rx"); in s3c64xx_spi_prepare_transfer()
381 if (IS_ERR(sdd->rx_dma.ch)) { in s3c64xx_spi_prepare_transfer()
383 sdd->rx_dma.ch = NULL; in s3c64xx_spi_prepare_transfer()
390 dma_release_channel(sdd->rx_dma.ch); in s3c64xx_spi_prepare_transfer()
392 sdd->rx_dma.ch = NULL; in s3c64xx_spi_prepare_transfer()
396 spi->dma_rx = sdd->rx_dma.ch; in s3c64xx_spi_prepare_transfer()
410 if (sdd->rx_dma.ch && sdd->tx_dma.ch) { in s3c64xx_spi_unprepare_transfer()
411 dma_release_channel(sdd->rx_dma.ch); in s3c64xx_spi_unprepare_transfer()
413 sdd->rx_dma.ch = NULL; in s3c64xx_spi_unprepare_transfer()
426 if (sdd->rx_dma.ch && sdd->tx_dma.ch) in s3c64xx_spi_can_dma()
495 ret = prepare_dma(&sdd->rx_dma, &xfer->rx_sg); in s3c64xx_enable_datapath()
787 sdd->rx_dma.ch && sdd->tx_dma.ch) { in s3c64xx_spi_transfer_one()
871 dmaengine_pause(sdd->rx_dma.ch); in s3c64xx_spi_transfer_one()
872 dmaengine_tx_status(sdd->rx_dma.ch, sdd->rx_dma.cookie, &s); in s3c64xx_spi_transfer_one()
873 dmaengine_terminate_all(sdd->rx_dma.ch); in s3c64xx_spi_transfer_one()
1231 sdd->rx_dma.direction = DMA_DEV_TO_MEM; in s3c64xx_spi_probe()
1342 dma_release_channel(sdd->rx_dma.ch); in s3c64xx_spi_remove()