Lines Matching full:rx_dma
194 * @rx_dma: Local receive DMA data (e.g. chan and direction)
218 struct s3c64xx_spi_dma_data rx_dma; member
283 struct s3c64xx_spi_driver_data, rx_dma); in s3c64xx_spi_dmacb()
315 struct s3c64xx_spi_driver_data, rx_dma); in s3c64xx_prepare_dma()
386 sdd->rx_dma.ch = dma_request_chan(&sdd->pdev->dev, "rx"); in s3c64xx_spi_prepare_transfer()
387 if (IS_ERR(sdd->rx_dma.ch)) { in s3c64xx_spi_prepare_transfer()
389 sdd->rx_dma.ch = NULL; in s3c64xx_spi_prepare_transfer()
396 dma_release_channel(sdd->rx_dma.ch); in s3c64xx_spi_prepare_transfer()
398 sdd->rx_dma.ch = NULL; in s3c64xx_spi_prepare_transfer()
402 spi->dma_rx = sdd->rx_dma.ch; in s3c64xx_spi_prepare_transfer()
416 if (sdd->rx_dma.ch && sdd->tx_dma.ch) { in s3c64xx_spi_unprepare_transfer()
417 dma_release_channel(sdd->rx_dma.ch); in s3c64xx_spi_unprepare_transfer()
419 sdd->rx_dma.ch = NULL; in s3c64xx_spi_unprepare_transfer()
432 if (sdd->rx_dma.ch && sdd->tx_dma.ch) in s3c64xx_spi_can_dma()
538 ret = s3c64xx_prepare_dma(&sdd->rx_dma, &xfer->rx_sg); in s3c64xx_enable_datapath()
830 sdd->rx_dma.ch && sdd->tx_dma.ch) { in s3c64xx_spi_transfer_one()
914 dmaengine_pause(sdd->rx_dma.ch); in s3c64xx_spi_transfer_one()
915 dmaengine_tx_status(sdd->rx_dma.ch, sdd->rx_dma.cookie, &s); in s3c64xx_spi_transfer_one()
916 dmaengine_terminate_all(sdd->rx_dma.ch); in s3c64xx_spi_transfer_one()
1297 sdd->rx_dma.direction = DMA_DEV_TO_MEM; in s3c64xx_spi_probe()
1408 dma_release_channel(sdd->rx_dma.ch); in s3c64xx_spi_remove()