Home
last modified time | relevance | path

Searched full:dma_rx (Results 1 – 25 of 59) sorted by relevance

123

/linux-6.12.1/drivers/spi/
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()
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()
415 dmaengine_slave_config(host->dma_rx, &rxconf); in uniphier_spi_transfer_one_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()
466 dmaengine_terminate_sync(host->dma_rx); in uniphier_spi_transfer_one_dma()
595 dmaengine_terminate_async(host->dma_rx); in uniphier_spi_handle_err()
734 host->dma_rx = dma_request_chan(&pdev->dev, "rx"); in uniphier_spi_probe()
735 if (IS_ERR_OR_NULL(host->dma_rx)) { in uniphier_spi_probe()
736 if (PTR_ERR(host->dma_rx) == -EPROBE_DEFER) { in uniphier_spi_probe()
[all …]
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()
155 if (dmaengine_slave_config(ctlr->dma_rx, &slave_config)) { 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()
[all …]
Dspi-rockchip.c284 dmaengine_terminate_async(ctlr->dma_rx); in rockchip_spi_handle_err()
457 dmaengine_slave_config(ctlr->dma_rx, &rxconf); in rockchip_spi_prepare_dma()
460 ctlr->dma_rx, in rockchip_spi_prepare_dma()
487 dmaengine_terminate_sync(ctlr->dma_rx); in rockchip_spi_prepare_dma()
498 ctlr->dma_rx->cookie = dmaengine_submit(rxdesc); 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()
648 dmaengine_terminate_sync(ctlr->dma_rx); in rockchip_spi_target_abort()
873 ctlr->dma_rx = dma_request_chan(rs->dev, "rx"); in rockchip_spi_probe()
[all …]
Dspi-ep93xx.c77 * @dma_rx: RX DMA channel
91 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()
584 ret = dev_err_probe(dev, PTR_ERR(espi->dma_rx), "rx DMA setup failed"); in ep93xx_spi_setup_dma()
597 dma_release_channel(espi->dma_rx); in ep93xx_spi_setup_dma()
[all …]
Dspi-sun6i.c226 dmaengine_slave_config(host->dma_rx, &rxconf); in sun6i_spi_prepare_dma()
228 rxdesc = dmaengine_prep_slave_sg(host->dma_rx, 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()
715 host->dma_rx = dma_request_chan(&pdev->dev, "rx"); in sun6i_spi_probe()
716 if (IS_ERR(host->dma_rx)) { in sun6i_spi_probe()
717 if (PTR_ERR(host->dma_rx) == -EPROBE_DEFER) { 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()
[all …]
Dspi-fsl-lpspi.c198 if (!controller->dma_rx) in fsl_lpspi_can_dma()
396 ret = dmaengine_slave_config(controller->dma_rx, &rx); in fsl_lpspi_dma_configure()
587 desc_rx = dmaengine_prep_slave_sg(controller->dma_rx, in fsl_lpspi_dma_transfer()
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()
655 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()
[all …]
Dspi-pic32.c309 if (!host->dma_rx || !host->dma_tx) in pic32_spi_dma_transfer()
312 desc_rx = dmaengine_prep_slave_sg(host->dma_rx, 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()
381 ret = dmaengine_slave_config(host->dma_rx, &cfg); in pic32_spi_dma_config()
552 dmaengine_terminate_all(host->dma_rx); in pic32_spi_one_transfer()
611 host->dma_rx = dma_request_chan(dev, "spi-rx"); in pic32_spi_dma_prep()
612 if (IS_ERR(host->dma_rx)) { in pic32_spi_dma_prep()
613 if (PTR_ERR(host->dma_rx) == -EPROBE_DEFER) in pic32_spi_dma_prep()
618 host->dma_rx = NULL; in pic32_spi_dma_prep()
[all …]
Dspi-bcm2835.c530 dma_sync_single_for_device(ctlr->dma_rx->device->dev, in bcm2835_spi_transfer_prologue()
653 dmaengine_terminate_async(ctlr->dma_rx); in bcm2835_spi_dma_tx_done()
694 chan = ctlr->dma_rx; in bcm2835_spi_prepare_sg()
829 dma_async_issue_pending(ctlr->dma_rx); in bcm2835_spi_transfer_one_dma()
839 dmaengine_terminate_async(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()
915 ctlr->dma_rx = dma_request_chan(dev, "rx"); in bcm2835_dma_init()
[all …]
Dspi-davinci.c119 struct dma_chan *dma_rx; member
395 if (dspi->dma_rx && dspi->dma_tx) in davinci_spi_of_setup()
621 dmaengine_slave_config(dspi->dma_rx, &dma_rx_conf); in davinci_spi_bufs()
624 rxdesc = dmaengine_prep_slave_sg(dspi->dma_rx, in davinci_spi_bufs()
657 dma_async_issue_pending(dspi->dma_rx); in davinci_spi_bufs()
753 dspi->dma_rx = dma_request_chan(sdev, "rx"); in davinci_spi_request_dma()
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()
[all …]
Dspi-omap2-mcspi.c95 struct dma_chan *dma_rx; member
486 dmaengine_slave_config(mcspi_dma->dma_rx, &cfg); in omap2_mcspi_rx_dma()
517 tx = dmaengine_prep_slave_sg(mcspi_dma->dma_rx, sg_out[0], in omap2_mcspi_rx_dma()
528 dma_async_issue_pending(mcspi_dma->dma_rx); in omap2_mcspi_rx_dma()
533 dmaengine_terminate_sync(mcspi_dma->dma_rx); in omap2_mcspi_rx_dma()
1012 mcspi_dma->dma_rx = dma_request_chan(mcspi->dev, in omap2_mcspi_request_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()
[all …]
Dspi-stm32.c323 * @dma_rx: dma channel for RX transfer
356 struct dma_chan *dma_rx; member
838 if (spi->cur_usedma && spi->dma_rx) in stm32fx_spi_disable()
839 dmaengine_terminate_async(spi->dma_rx); in stm32fx_spi_disable()
881 if (spi->cur_usedma && spi->dma_rx) in stm32h7_spi_disable()
882 dmaengine_terminate_async(spi->dma_rx); in stm32h7_spi_disable()
1440 if (spi->rx_buf && spi->dma_rx) { in stm32_spi_transfer_one_dma()
1441 stm32_spi_dma_config(spi, spi->dma_rx, &rx_dma_conf, DMA_DEV_TO_MEM); in stm32_spi_transfer_one_dma()
1442 dmaengine_slave_config(spi->dma_rx, &rx_dma_conf); in stm32_spi_transfer_one_dma()
1449 spi->dma_rx, xfer->rx_sg.sgl, in stm32_spi_transfer_one_dma()
[all …]
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()
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 …]
Dspi-atmel.c562 if (dmaengine_slave_config(host->dma_rx, &slave_config)) { in atmel_spi_dma_slave_config()
584 host->dma_rx = dma_request_chan(dev, "rx"); in atmel_spi_configure_dma()
585 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()
[all …]
Dspi-imx.c241 if (!controller->dma_rx) in spi_imx_can_dma()
1234 ret = dmaengine_slave_config(controller->dma_rx, &rx); in spi_imx_dma_configure()
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()
1344 controller->dma_rx = dma_request_chan(dev, "rx"); in spi_imx_sdma_init()
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()
1432 desc_rx = dmaengine_prep_slave_sg(controller->dma_rx, in spi_imx_dma_transfer()
[all …]
/linux-6.12.1/drivers/mtd/nand/raw/
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-6.12.1/Documentation/devicetree/bindings/net/
Didt,3243x-emac.yaml27 - const: dma_rx
65 reg-names = "emac", "dma_rx", "dma_tx";
/linux-6.12.1/drivers/net/ethernet/micrel/
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()
594 struct ks8842_adapter *adapter = from_tasklet(adapter, t, dma_rx.tasklet); in ks8842_rx_frame_dma_tasklet()
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()
918 struct ks8842_rx_dma_ctl *rx_ctl = &adapter->dma_rx; in ks8842_alloc_dma_bufs()
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/serial/
Dbrcm,bcm7271-uart.yaml39 - const: dma_rx
90 reg-names = "uart", "dma_arb", "dma_rx", "dma_tx", "dma_intr2";
/linux-6.12.1/drivers/mmc/host/
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()
249 dev_err(mmc_dev(host->mmc), "Failed to get dma_rx channel\n"); 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()
[all …]
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()
1453 host->dma_rx = dma_request_chan(&pdev->dev, "rx"); in mmc_omap_probe()
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()
[all …]
/linux-6.12.1/drivers/net/ethernet/samsung/sxgbe/
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-6.12.1/Documentation/devicetree/bindings/sound/
Drenesas,rz-ssi.yaml35 - const: dma_rx
118 interrupt-names = "int_req", "dma_rx", "dma_tx";
/linux-6.12.1/drivers/i2c/busses/
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()

123