Home
last modified time | relevance | path

Searched refs:dma_rx (Results 1 – 25 of 52) sorted by relevance

123

/linux/drivers/spi/
A Dspi-pxa2xx-dma.c105 chan = drv_data->controller->dma_rx; in pxa2xx_spi_dma_prepare_one()
126 dmaengine_terminate_async(drv_data->controller->dma_rx); in pxa2xx_spi_dma_transfer()
172 dma_async_issue_pending(drv_data->controller->dma_rx); in pxa2xx_spi_dma_start()
181 dmaengine_terminate_sync(drv_data->controller->dma_rx); in pxa2xx_spi_dma_stop()
200 controller->dma_rx = dma_request_slave_channel_compat(mask, in pxa2xx_spi_dma_setup()
202 if (!controller->dma_rx) { in pxa2xx_spi_dma_setup()
215 if (controller->dma_rx) { in pxa2xx_spi_dma_release()
216 dmaengine_terminate_sync(controller->dma_rx); in pxa2xx_spi_dma_release()
217 dma_release_channel(controller->dma_rx); in pxa2xx_spi_dma_release()
218 controller->dma_rx = NULL; in pxa2xx_spi_dma_release()
A Dspi-bcm2835.c694 chan = ctlr->dma_rx; in bcm2835_spi_prepare_sg()
829 dma_async_issue_pending(ctlr->dma_rx); in bcm2835_spi_transfer_one_dma()
883 if (ctlr->dma_rx) { in bcm2835_dma_release()
884 dmaengine_terminate_sync(ctlr->dma_rx); in bcm2835_dma_release()
885 dma_release_channel(ctlr->dma_rx); in bcm2835_dma_release()
886 ctlr->dma_rx = NULL; in bcm2835_dma_release()
916 if (IS_ERR(ctlr->dma_rx)) { in bcm2835_dma_init()
919 ctlr->dma_rx = NULL; in bcm2835_dma_init()
1140 if (ctlr->dma_rx) { in bcm2835_spi_handle_err()
1178 if (!ctlr->dma_rx) in bcm2835_spi_setup_dma()
[all …]
A Dspi-uniphier.c356 if ((!host->dma_tx && !host->dma_rx) in uniphier_spi_can_dma()
358 || (!host->dma_rx && t->rx_buf)) in uniphier_spi_can_dma()
418 host->dma_rx, in uniphier_spi_transfer_one_dma()
431 dma_async_issue_pending(host->dma_rx); in uniphier_spi_transfer_one_dma()
735 if (IS_ERR_OR_NULL(host->dma_rx)) { in uniphier_spi_probe()
740 host->dma_rx = NULL; in uniphier_spi_probe()
761 if (!IS_ERR_OR_NULL(host->dma_rx)) { in uniphier_spi_probe()
762 dma_release_channel(host->dma_rx); in uniphier_spi_probe()
763 host->dma_rx = NULL; in uniphier_spi_probe()
785 if (host->dma_rx) in uniphier_spi_remove()
[all …]
A Dspi-rockchip.c460 ctlr->dma_rx, in rockchip_spi_prepare_dma()
499 dma_async_issue_pending(ctlr->dma_rx); in rockchip_spi_prepare_dma()
617 dmaengine_pause(ctlr->dma_rx); in rockchip_spi_target_abort()
618 status = dmaengine_tx_status(ctlr->dma_rx, ctlr->dma_rx->cookie, &state); in rockchip_spi_target_abort()
874 if (IS_ERR(ctlr->dma_rx)) { in rockchip_spi_probe()
880 ctlr->dma_rx = NULL; in rockchip_spi_probe()
883 if (ctlr->dma_tx && ctlr->dma_rx) { in rockchip_spi_probe()
912 if (ctlr->dma_rx) in rockchip_spi_probe()
913 dma_release_channel(ctlr->dma_rx); in rockchip_spi_probe()
937 if (ctlr->dma_rx) in rockchip_spi_remove()
[all …]
A Dspi-sun6i.c226 dmaengine_slave_config(host->dma_rx, &rxconf); in sun6i_spi_prepare_dma()
257 dmaengine_terminate_sync(host->dma_rx); in sun6i_spi_prepare_dma()
264 dma_async_issue_pending(host->dma_rx); in sun6i_spi_prepare_dma()
522 dmaengine_terminate_sync(host->dma_rx); in sun6i_spi_transfer_one()
716 if (IS_ERR(host->dma_rx)) { in sun6i_spi_probe()
722 host->dma_rx = NULL; in sun6i_spi_probe()
725 if (host->dma_tx && host->dma_rx) { in sun6i_spi_probe()
758 if (host->dma_rx) in sun6i_spi_probe()
759 dma_release_channel(host->dma_rx); in sun6i_spi_probe()
776 if (host->dma_rx) in sun6i_spi_remove()
[all …]
A Dspi-pic32.c309 if (!host->dma_rx || !host->dma_tx) in pic32_spi_dma_transfer()
346 dma_async_issue_pending(host->dma_rx); in pic32_spi_dma_transfer()
352 dmaengine_terminate_all(host->dma_rx); in pic32_spi_dma_transfer()
552 dmaengine_terminate_all(host->dma_rx); in pic32_spi_one_transfer()
612 if (IS_ERR(host->dma_rx)) { in pic32_spi_dma_prep()
618 host->dma_rx = NULL; in pic32_spi_dma_prep()
642 if (host->dma_rx) { in pic32_spi_dma_prep()
643 dma_release_channel(host->dma_rx); in pic32_spi_dma_prep()
644 host->dma_rx = NULL; in pic32_spi_dma_prep()
661 if (pic32s->host->dma_rx) in pic32_spi_dma_unprep()
[all …]
A Dspi-ep93xx.c91 struct dma_chan *dma_rx; member
292 chan = espi->dma_rx; in ep93xx_spi_dma_prepare()
380 chan = espi->dma_rx; in ep93xx_spi_dma_finish()
426 dma_async_issue_pending(espi->dma_rx); in ep93xx_spi_dma_transfer()
501 if (espi->dma_rx && xfer->len > SPI_FIFO_SIZE) in ep93xx_spi_transfer_one()
582 espi->dma_rx = dma_request_chan(dev, "rx"); in ep93xx_spi_setup_dma()
583 if (IS_ERR(espi->dma_rx)) { in ep93xx_spi_setup_dma()
597 dma_release_channel(espi->dma_rx); in ep93xx_spi_setup_dma()
598 espi->dma_rx = NULL; in ep93xx_spi_setup_dma()
607 if (espi->dma_rx) { in ep93xx_spi_release_dma()
[all …]
A Dspi-at91-usart.c140 ctlr->dma_rx = dma_request_chan(dev, "rx"); in at91_usart_spi_configure_dma()
141 if (IS_ERR(ctlr->dma_rx)) { in at91_usart_spi_configure_dma()
142 err = PTR_ERR(ctlr->dma_rx); in at91_usart_spi_configure_dma()
176 if (!IS_ERR_OR_NULL(ctlr->dma_rx)) in at91_usart_spi_configure_dma()
177 dma_release_channel(ctlr->dma_rx); in at91_usart_spi_configure_dma()
179 ctlr->dma_rx = NULL; in at91_usart_spi_configure_dma()
187 if (ctlr->dma_rx) in at91_usart_spi_release_dma()
188 dma_release_channel(ctlr->dma_rx); in at91_usart_spi_release_dma()
195 if (ctlr->dma_rx) in at91_usart_spi_stop_dma()
196 dmaengine_terminate_all(ctlr->dma_rx); in at91_usart_spi_stop_dma()
[all …]
A Dspi-fsl-lpspi.c198 if (!controller->dma_rx) in fsl_lpspi_can_dma()
597 dma_async_issue_pending(controller->dma_rx); in fsl_lpspi_dma_transfer()
625 dmaengine_terminate_all(controller->dma_rx); in fsl_lpspi_dma_transfer()
635 dmaengine_terminate_all(controller->dma_rx); in fsl_lpspi_dma_transfer()
645 dmaengine_terminate_all(controller->dma_rx); in fsl_lpspi_dma_transfer()
668 if (controller->dma_rx) { in fsl_lpspi_dma_exit()
669 dma_release_channel(controller->dma_rx); in fsl_lpspi_dma_exit()
670 controller->dma_rx = NULL; in fsl_lpspi_dma_exit()
696 if (IS_ERR(controller->dma_rx)) { in fsl_lpspi_dma_init()
697 ret = PTR_ERR(controller->dma_rx); in fsl_lpspi_dma_init()
[all …]
A Dspi-davinci.c119 struct dma_chan *dma_rx; member
395 if (dspi->dma_rx && dspi->dma_tx) in davinci_spi_of_setup()
657 dma_async_issue_pending(dspi->dma_rx); in davinci_spi_bufs()
754 if (IS_ERR(dspi->dma_rx)) in davinci_spi_request_dma()
755 return PTR_ERR(dspi->dma_rx); in davinci_spi_request_dma()
759 dma_release_channel(dspi->dma_rx); in davinci_spi_request_dma()
956 dspi->dma_rx = NULL; in davinci_spi_probe()
996 if (dspi->dma_rx) { in davinci_spi_probe()
997 dma_release_channel(dspi->dma_rx); in davinci_spi_probe()
1028 if (dspi->dma_rx) { in davinci_spi_remove()
[all …]
A Dspi-omap2-mcspi.c95 struct dma_chan *dma_rx; member
528 dma_async_issue_pending(mcspi_dma->dma_rx); in omap2_mcspi_rx_dma()
1014 if (IS_ERR(mcspi_dma->dma_rx)) { in omap2_mcspi_request_dma()
1015 ret = PTR_ERR(mcspi_dma->dma_rx); in omap2_mcspi_request_dma()
1016 mcspi_dma->dma_rx = NULL; in omap2_mcspi_request_dma()
1025 dma_release_channel(mcspi_dma->dma_rx); in omap2_mcspi_request_dma()
1026 mcspi_dma->dma_rx = NULL; in omap2_mcspi_request_dma()
1045 if (mcspi_dma->dma_rx) { in omap2_mcspi_release_dma()
1046 dma_release_channel(mcspi_dma->dma_rx); in omap2_mcspi_release_dma()
1047 mcspi_dma->dma_rx = NULL; in omap2_mcspi_release_dma()
[all …]
A Dspi-stm32.c356 struct dma_chan *dma_rx; member
1440 if (spi->rx_buf && spi->dma_rx) { in stm32_spi_transfer_one_dma()
1449 spi->dma_rx, xfer->rx_sg.sgl, in stm32_spi_transfer_one_dma()
1512 if (spi->dma_rx) in stm32_spi_transfer_one_dma()
2208 if (IS_ERR(spi->dma_rx)) { in stm32_spi_probe()
2209 ret = PTR_ERR(spi->dma_rx); in stm32_spi_probe()
2210 spi->dma_rx = NULL; in stm32_spi_probe()
2216 ctrl->dma_rx = spi->dma_rx; in stm32_spi_probe()
2219 if (spi->dma_tx || spi->dma_rx) in stm32_spi_probe()
2252 if (spi->dma_rx) in stm32_spi_probe()
[all …]
A Dspi-ingenic.c180 rx_desc = spi_ingenic_prepare_dma(ctlr, ctlr->dma_rx, in spi_ingenic_dma_tx()
188 dmaengine_terminate_async(ctlr->dma_rx); in spi_ingenic_dma_tx()
193 dma_async_issue_pending(ctlr->dma_rx); in spi_ingenic_dma_tx()
359 ctlr->dma_rx = chan; in spi_ingenic_request_dma()
372 if (ctlr->dma_rx) in spi_ingenic_release_dma()
373 dma_release_channel(ctlr->dma_rx); in spi_ingenic_release_dma()
A Dspi-atmel.c585 if (IS_ERR(host->dma_rx)) { in atmel_spi_configure_dma()
586 err = PTR_ERR(host->dma_rx); in atmel_spi_configure_dma()
602 dma_chan_name(host->dma_rx)); in atmel_spi_configure_dma()
606 if (!IS_ERR(host->dma_rx)) in atmel_spi_configure_dma()
607 dma_release_channel(host->dma_rx); in atmel_spi_configure_dma()
611 host->dma_tx = host->dma_rx = NULL; in atmel_spi_configure_dma()
617 if (host->dma_rx) in atmel_spi_stop_dma()
618 dmaengine_terminate_all(host->dma_rx); in atmel_spi_stop_dma()
625 if (host->dma_rx) { in atmel_spi_release_dma()
626 dma_release_channel(host->dma_rx); in atmel_spi_release_dma()
[all …]
A Dspi-qup.c426 chan = host->dma_rx; in spi_qup_prep_sg()
446 dmaengine_terminate_all(host->dma_rx); in spi_qup_dma_terminate()
519 dma_async_issue_pending(host->dma_rx); in spi_qup_do_dma()
924 IS_ERR_OR_NULL(host->dma_rx)) in spi_qup_can_dma()
947 if (!IS_ERR_OR_NULL(host->dma_rx)) in spi_qup_release_dma()
948 dma_release_channel(host->dma_rx); in spi_qup_release_dma()
962 host->dma_rx = dma_request_chan(dev, "rx"); in spi_qup_init_dma()
963 if (IS_ERR(host->dma_rx)) in spi_qup_init_dma()
964 return PTR_ERR(host->dma_rx); in spi_qup_init_dma()
983 ret = dmaengine_slave_config(host->dma_rx, rx_conf); in spi_qup_init_dma()
[all …]
A Dspi-imx.c241 if (!controller->dma_rx) in spi_imx_can_dma()
1316 if (controller->dma_rx) { in spi_imx_sdma_exit()
1317 dma_release_channel(controller->dma_rx); in spi_imx_sdma_exit()
1318 controller->dma_rx = NULL; in spi_imx_sdma_exit()
1345 if (IS_ERR(controller->dma_rx)) { in spi_imx_sdma_init()
1346 ret = PTR_ERR(controller->dma_rx); in spi_imx_sdma_init()
1348 controller->dma_rx = NULL; in spi_imx_sdma_init()
1444 dma_async_issue_pending(controller->dma_rx); in spi_imx_dma_transfer()
1451 dmaengine_terminate_all(controller->dma_rx); in spi_imx_dma_transfer()
1469 dmaengine_terminate_all(controller->dma_rx); in spi_imx_dma_transfer()
[all …]
/linux/drivers/mtd/nand/raw/
A Dintel-nand-controller.c119 struct dma_chan *dma_rx; member
273 dmaengine_terminate_async(ebu_host->dma_rx); in ebu_dma_rx_callback()
301 chan = ebu_host->dma_rx; in ebu_dma_start()
569 if (ebu_host->dma_rx) in ebu_dma_cleanup()
570 dma_release_channel(ebu_host->dma_rx); in ebu_dma_cleanup()
648 ebu_host->dma_rx = dma_request_chan(dev, "rx"); in ebu_nand_probe()
649 if (IS_ERR(ebu_host->dma_rx)) { in ebu_nand_probe()
650 ret = dev_err_probe(dev, PTR_ERR(ebu_host->dma_rx), in ebu_nand_probe()
652 ebu_host->dma_rx = NULL; in ebu_nand_probe()
/linux/drivers/net/ethernet/micrel/
A Dks8842.c148 ((adapter)->dma_rx.channel != -1))
160 struct ks8842_rx_dma_ctl dma_rx; member
545 struct ks8842_rx_dma_ctl *ctl = &adapter->dma_rx; in __ks8842_start_new_rx_dma()
596 struct ks8842_rx_dma_ctl *ctl = &adapter->dma_rx; in ks8842_rx_frame_dma_tasklet()
839 if (adapter->dma_rx.adesc) in ks8842_dma_rx_cb()
840 tasklet_schedule(&adapter->dma_rx.tasklet); in ks8842_dma_rx_cb()
864 struct ks8842_rx_dma_ctl *rx_ctl = &adapter->dma_rx; in ks8842_stop_dma()
886 struct ks8842_rx_dma_ctl *rx_ctl = &adapter->dma_rx; in ks8842_dealloc_dma_bufs()
989 adapter->dma_rx.channel = -1; in ks8842_open()
1174 adapter->dma_rx.channel = pdata->rx_dma_channel; in ks8842_probe()
[all …]
/linux/Documentation/devicetree/bindings/net/
A Didt,3243x-emac.yaml27 - const: dma_rx
65 reg-names = "emac", "dma_rx", "dma_tx";
/linux/drivers/net/ethernet/samsung/sxgbe/
A Dsxgbe_dma.c45 dma_addr_t dma_rx, int t_rsize, int r_rsize) in sxgbe_dma_channel_init() argument
71 writel(upper_32_bits(dma_rx), in sxgbe_dma_channel_init()
73 writel(lower_32_bits(dma_rx), in sxgbe_dma_channel_init()
84 dma_addr = dma_rx + ((r_rsize - 1) * SXGBE_DESC_SIZE_BYTES); in sxgbe_dma_channel_init()
/linux/drivers/mmc/host/
A Djz4740_mmc.c178 struct dma_chan *dma_rx; member
224 if (host->dma_rx) in jz4740_mmc_release_dma_channels()
225 dma_release_channel(host->dma_rx); in jz4740_mmc_release_dma_channels()
247 host->dma_rx = dma_request_chan(mmc_dev(host->mmc), "rx"); in jz4740_mmc_acquire_dma_channels()
248 if (IS_ERR(host->dma_rx)) { in jz4740_mmc_acquire_dma_channels()
251 return PTR_ERR(host->dma_rx); in jz4740_mmc_acquire_dma_channels()
266 if (host->dma_rx) { in jz4740_mmc_acquire_dma_channels()
267 struct device *dev = host->dma_rx->device->dev; in jz4740_mmc_acquire_dma_channels()
280 if ((data->flags & MMC_DATA_READ) && host->dma_rx) in jz4740_mmc_get_dma_chan()
281 return host->dma_rx; in jz4740_mmc_get_dma_chan()
A Domap.c132 struct dma_chan *dma_rx; member
426 c = host->dma_rx; in mmc_omap_release_dma()
1011 c = host->dma_rx; in mmc_omap_prepare_data()
1086 host->dma_tx : host->dma_rx; in mmc_omap_start_request()
1454 if (IS_ERR(host->dma_rx)) { in mmc_omap_probe()
1455 ret = PTR_ERR(host->dma_rx); in mmc_omap_probe()
1462 host->dma_rx = NULL; in mmc_omap_probe()
1507 if (host->dma_rx) in mmc_omap_probe()
1508 dma_release_channel(host->dma_rx); in mmc_omap_probe()
1541 if (host->dma_rx) in mmc_omap_remove()
[all …]
/linux/drivers/i2c/busses/
A Di2c-sh_mobile.c136 struct dma_chan *dma_rx; member
448 ? pd->dma_rx : pd->dma_tx; in sh_mobile_i2c_cleanup_dma()
511 struct dma_chan *chan = read ? pd->dma_rx : pd->dma_tx; in sh_mobile_i2c_xfer_dma()
518 chan = pd->dma_rx = sh_mobile_i2c_request_dma_chan(pd->dev, DMA_DEV_TO_MEM, in sh_mobile_i2c_xfer_dma()
819 if (!IS_ERR(pd->dma_rx)) { in sh_mobile_i2c_release_dma()
820 dma_release_channel(pd->dma_rx); in sh_mobile_i2c_release_dma()
821 pd->dma_rx = ERR_PTR(-EPROBE_DEFER); in sh_mobile_i2c_release_dma()
919 pd->dma_rx = pd->dma_tx = ERR_PTR(-EPROBE_DEFER); in sh_mobile_i2c_probe()
A Di2c-rcar.c161 struct dma_chan *dma_rx; member
447 ? priv->dma_rx : priv->dma_tx; in rcar_i2c_cleanup_dma()
482 struct dma_chan *chan = read ? priv->dma_rx : priv->dma_tx; in rcar_i2c_dma()
854 chan = read ? priv->dma_rx : priv->dma_tx; in rcar_i2c_request_dma()
862 priv->dma_rx = chan; in rcar_i2c_request_dma()
874 if (!IS_ERR(priv->dma_rx)) { in rcar_i2c_release_dma()
875 dma_release_channel(priv->dma_rx); in rcar_i2c_release_dma()
876 priv->dma_rx = ERR_PTR(-EPROBE_DEFER); in rcar_i2c_release_dma()
1152 priv->dma_rx = priv->dma_tx = ERR_PTR(-EPROBE_DEFER); in rcar_i2c_probe()
/linux/Documentation/devicetree/bindings/serial/
A Dbrcm,bcm7271-uart.yaml39 - const: dma_rx
90 reg-names = "uart", "dma_arb", "dma_rx", "dma_tx", "dma_intr2";

Completed in 89 milliseconds

123