Lines Matching full:rx_dma
178 * @rx_dma: Local receive DMA data (e.g. chan and direction)
197 struct s3c64xx_spi_dma_data rx_dma; member
259 struct s3c64xx_spi_driver_data, rx_dma); in s3c64xx_spi_dmacb()
291 struct s3c64xx_spi_driver_data, rx_dma); in prepare_dma()
362 sdd->rx_dma.ch = dma_request_chan(&sdd->pdev->dev, "rx"); in s3c64xx_spi_prepare_transfer()
363 if (IS_ERR(sdd->rx_dma.ch)) { in s3c64xx_spi_prepare_transfer()
365 sdd->rx_dma.ch = NULL; in s3c64xx_spi_prepare_transfer()
372 dma_release_channel(sdd->rx_dma.ch); in s3c64xx_spi_prepare_transfer()
374 sdd->rx_dma.ch = NULL; in s3c64xx_spi_prepare_transfer()
378 spi->dma_rx = sdd->rx_dma.ch; in s3c64xx_spi_prepare_transfer()
392 if (sdd->rx_dma.ch && sdd->tx_dma.ch) { in s3c64xx_spi_unprepare_transfer()
393 dma_release_channel(sdd->rx_dma.ch); in s3c64xx_spi_unprepare_transfer()
395 sdd->rx_dma.ch = NULL; in s3c64xx_spi_unprepare_transfer()
408 if (sdd->rx_dma.ch && sdd->tx_dma.ch) { in s3c64xx_spi_can_dma()
479 ret = prepare_dma(&sdd->rx_dma, &xfer->rx_sg); in s3c64xx_enable_datapath()
773 sdd->rx_dma.ch && sdd->tx_dma.ch) { in s3c64xx_spi_transfer_one()
858 dmaengine_pause(sdd->rx_dma.ch); in s3c64xx_spi_transfer_one()
859 dmaengine_tx_status(sdd->rx_dma.ch, sdd->rx_dma.cookie, &s); in s3c64xx_spi_transfer_one()
860 dmaengine_terminate_all(sdd->rx_dma.ch); in s3c64xx_spi_transfer_one()
1197 sdd->rx_dma.direction = DMA_DEV_TO_MEM; in s3c64xx_spi_probe()
1308 dma_release_channel(sdd->rx_dma.ch); in s3c64xx_spi_remove()