Home
last modified time | relevance | path

Searched full:dma_tx (Results 1 – 25 of 62) sorted by relevance

123

/linux-6.12.1/drivers/spi/
Dspi-pxa2xx-dma.c98 chan = drv_data->controller->dma_tx; in pxa2xx_spi_dma_prepare_one()
127 dmaengine_terminate_async(drv_data->controller->dma_tx); in pxa2xx_spi_dma_transfer()
165 dmaengine_terminate_async(drv_data->controller->dma_tx); in pxa2xx_spi_dma_prepare()
173 dma_async_issue_pending(drv_data->controller->dma_tx); in pxa2xx_spi_dma_start()
182 dmaengine_terminate_sync(drv_data->controller->dma_tx); in pxa2xx_spi_dma_stop()
195 controller->dma_tx = dma_request_slave_channel_compat(mask, in pxa2xx_spi_dma_setup()
197 if (!controller->dma_tx) in pxa2xx_spi_dma_setup()
203 dma_release_channel(controller->dma_tx); in pxa2xx_spi_dma_setup()
204 controller->dma_tx = NULL; in pxa2xx_spi_dma_setup()
220 if (controller->dma_tx) { in pxa2xx_spi_dma_release()
[all …]
Dspi-uniphier.c356 if ((!host->dma_tx && !host->dma_rx) in uniphier_spi_can_dma()
357 || (!host->dma_tx && t->tx_buf) in uniphier_spi_can_dma()
442 dmaengine_slave_config(host->dma_tx, &txconf); in uniphier_spi_transfer_one_dma()
445 host->dma_tx, in uniphier_spi_transfer_one_dma()
458 dma_async_issue_pending(host->dma_tx); in uniphier_spi_transfer_one_dma()
590 dmaengine_terminate_async(host->dma_tx); in uniphier_spi_handle_err()
716 host->dma_tx = dma_request_chan(&pdev->dev, "tx"); in uniphier_spi_probe()
717 if (IS_ERR_OR_NULL(host->dma_tx)) { in uniphier_spi_probe()
718 if (PTR_ERR(host->dma_tx) == -EPROBE_DEFER) { in uniphier_spi_probe()
722 host->dma_tx = NULL; in uniphier_spi_probe()
[all …]
Dspi-at91-usart.c134 ctlr->dma_tx = dma_request_chan(dev, "tx"); in at91_usart_spi_configure_dma()
135 if (IS_ERR(ctlr->dma_tx)) { in at91_usart_spi_configure_dma()
136 err = PTR_ERR(ctlr->dma_tx); in at91_usart_spi_configure_dma()
163 if (dmaengine_slave_config(ctlr->dma_tx, &slave_config)) { in at91_usart_spi_configure_dma()
174 if (!IS_ERR_OR_NULL(ctlr->dma_tx)) in at91_usart_spi_configure_dma()
175 dma_release_channel(ctlr->dma_tx); in at91_usart_spi_configure_dma()
178 ctlr->dma_tx = NULL; in at91_usart_spi_configure_dma()
189 if (ctlr->dma_tx) in at91_usart_spi_release_dma()
190 dma_release_channel(ctlr->dma_tx); in at91_usart_spi_release_dma()
197 if (ctlr->dma_tx) in at91_usart_spi_stop_dma()
[all …]
Dspi-fsl-lpspi.c385 ret = dmaengine_slave_config(controller->dma_tx, &tx); in fsl_lpspi_dma_configure()
599 desc_tx = dmaengine_prep_slave_sg(controller->dma_tx, in fsl_lpspi_dma_transfer()
603 dmaengine_terminate_all(controller->dma_tx); in fsl_lpspi_dma_transfer()
611 dma_async_issue_pending(controller->dma_tx); in fsl_lpspi_dma_transfer()
624 dmaengine_terminate_all(controller->dma_tx); in fsl_lpspi_dma_transfer()
634 dmaengine_terminate_all(controller->dma_tx); in fsl_lpspi_dma_transfer()
644 dmaengine_terminate_all(controller->dma_tx); in fsl_lpspi_dma_transfer()
654 dmaengine_terminate_all(controller->dma_tx); in fsl_lpspi_dma_transfer()
673 if (controller->dma_tx) { in fsl_lpspi_dma_exit()
674 dma_release_channel(controller->dma_tx); in fsl_lpspi_dma_exit()
[all …]
Dspi-sun6i.c248 dmaengine_slave_config(host->dma_tx, &txconf); in sun6i_spi_prepare_dma()
250 txdesc = dmaengine_prep_slave_sg(host->dma_tx, in sun6i_spi_prepare_dma()
269 dma_async_issue_pending(host->dma_tx); in sun6i_spi_prepare_dma()
523 dmaengine_terminate_sync(host->dma_tx); in sun6i_spi_transfer_one()
704 host->dma_tx = dma_request_chan(&pdev->dev, "tx"); in sun6i_spi_probe()
705 if (IS_ERR(host->dma_tx)) { in sun6i_spi_probe()
707 if (PTR_ERR(host->dma_tx) == -EPROBE_DEFER) { in sun6i_spi_probe()
712 host->dma_tx = NULL; in sun6i_spi_probe()
725 if (host->dma_tx && host->dma_rx) { in sun6i_spi_probe()
761 if (host->dma_tx) in sun6i_spi_probe()
[all …]
Dspi-pic32.c309 if (!host->dma_rx || !host->dma_tx) in pic32_spi_dma_transfer()
322 desc_tx = dmaengine_prep_slave_sg(host->dma_tx, in pic32_spi_dma_transfer()
347 dma_async_issue_pending(host->dma_tx); in pic32_spi_dma_transfer()
374 ret = dmaengine_slave_config(host->dma_tx, &cfg); in pic32_spi_dma_config()
553 dmaengine_terminate_all(host->dma_tx); in pic32_spi_one_transfer()
622 host->dma_tx = dma_request_chan(dev, "spi-tx"); in pic32_spi_dma_prep()
623 if (IS_ERR(host->dma_tx)) { in pic32_spi_dma_prep()
624 if (PTR_ERR(host->dma_tx) == -EPROBE_DEFER) in pic32_spi_dma_prep()
629 host->dma_tx = NULL; in pic32_spi_dma_prep()
647 if (host->dma_tx) { in pic32_spi_dma_prep()
[all …]
Dspi-ep93xx.c78 * @dma_tx: TX DMA channel
92 struct dma_chan *dma_tx; member
299 chan = espi->dma_tx; in ep93xx_spi_dma_prepare()
383 chan = espi->dma_tx; in ep93xx_spi_dma_finish()
427 dma_async_issue_pending(espi->dma_tx); in ep93xx_spi_dma_transfer()
588 espi->dma_tx = dma_request_chan(dev, "tx"); in ep93xx_spi_setup_dma()
589 if (IS_ERR(espi->dma_tx)) { in ep93xx_spi_setup_dma()
590 ret = dev_err_probe(dev, PTR_ERR(espi->dma_tx), "tx DMA setup failed"); in ep93xx_spi_setup_dma()
611 if (espi->dma_tx) { in ep93xx_spi_release_dma()
612 dma_release_channel(espi->dma_tx); in ep93xx_spi_release_dma()
Dspi-rockchip.c281 dmaengine_terminate_async(ctlr->dma_tx); in rockchip_spi_handle_err()
479 dmaengine_slave_config(ctlr->dma_tx, &txconf); in rockchip_spi_prepare_dma()
482 ctlr->dma_tx, in rockchip_spi_prepare_dma()
510 dma_async_issue_pending(ctlr->dma_tx); in rockchip_spi_prepare_dma()
650 dmaengine_terminate_sync(ctlr->dma_tx); in rockchip_spi_target_abort()
862 ctlr->dma_tx = dma_request_chan(rs->dev, "tx"); in rockchip_spi_probe()
863 if (IS_ERR(ctlr->dma_tx)) { in rockchip_spi_probe()
865 if (PTR_ERR(ctlr->dma_tx) == -EPROBE_DEFER) { in rockchip_spi_probe()
870 ctlr->dma_tx = NULL; in rockchip_spi_probe()
883 if (ctlr->dma_tx && ctlr->dma_rx) { in rockchip_spi_probe()
[all …]
Dspi-bcm2835.c617 dmaengine_terminate_async(ctlr->dma_tx); in bcm2835_spi_dma_rx_done()
688 chan = ctlr->dma_tx; in bcm2835_spi_prepare_sg()
809 dma_async_issue_pending(ctlr->dma_tx); in bcm2835_spi_transfer_one_dma()
823 dmaengine_terminate_sync(ctlr->dma_tx); in bcm2835_spi_transfer_one_dma()
867 if (ctlr->dma_tx) { in bcm2835_dma_release()
868 dmaengine_terminate_sync(ctlr->dma_tx); in bcm2835_dma_release()
874 dma_unmap_page_attrs(ctlr->dma_tx->device->dev, in bcm2835_dma_release()
879 dma_release_channel(ctlr->dma_tx); in bcm2835_dma_release()
880 ctlr->dma_tx = NULL; in bcm2835_dma_release()
908 ctlr->dma_tx = dma_request_chan(dev, "tx"); in bcm2835_dma_init()
[all …]
Dspi-omap2-mcspi.c94 struct dma_chan *dma_tx; member
428 dmaengine_slave_config(mcspi_dma->dma_tx, &cfg); in omap2_mcspi_tx_dma()
430 tx = dmaengine_prep_slave_sg(mcspi_dma->dma_tx, xfer->tx_sg.sgl, in omap2_mcspi_tx_dma()
441 dma_async_issue_pending(mcspi_dma->dma_tx); in omap2_mcspi_tx_dma()
656 dmaengine_terminate_sync(mcspi_dma->dma_tx); in omap2_mcspi_txrx_dma()
1020 mcspi_dma->dma_tx = dma_request_chan(mcspi->dev, in omap2_mcspi_request_dma()
1022 if (IS_ERR(mcspi_dma->dma_tx)) { in omap2_mcspi_request_dma()
1023 ret = PTR_ERR(mcspi_dma->dma_tx); in omap2_mcspi_request_dma()
1024 mcspi_dma->dma_tx = NULL; in omap2_mcspi_request_dma()
1049 if (mcspi_dma->dma_tx) { in omap2_mcspi_release_dma()
[all …]
Dspi-davinci.c120 struct dma_chan *dma_tx; member
395 if (dspi->dma_rx && dspi->dma_tx) in davinci_spi_of_setup()
622 dmaengine_slave_config(dspi->dma_tx, &dma_tx_conf); in davinci_spi_bufs()
640 txdesc = dmaengine_prep_slave_sg(dspi->dma_tx, in davinci_spi_bufs()
658 dma_async_issue_pending(dspi->dma_tx); in davinci_spi_bufs()
757 dspi->dma_tx = dma_request_chan(sdev, "tx"); in davinci_spi_request_dma()
758 if (IS_ERR(dspi->dma_tx)) { in davinci_spi_request_dma()
760 return PTR_ERR(dspi->dma_tx); in davinci_spi_request_dma()
957 dspi->dma_tx = NULL; in davinci_spi_probe()
998 dma_release_channel(dspi->dma_tx); in davinci_spi_probe()
[all …]
Dspi-ingenic.c185 tx_desc = spi_ingenic_prepare_dma(ctlr, ctlr->dma_tx, in spi_ingenic_dma_tx()
194 dma_async_issue_pending(ctlr->dma_tx); in spi_ingenic_dma_tx()
336 ret = dma_get_slave_caps(ctlr->dma_tx, &caps); in spi_ingenic_can_dma()
354 ctlr->dma_tx = chan; in spi_ingenic_request_dma()
370 if (ctlr->dma_tx) in spi_ingenic_release_dma()
371 dma_release_channel(ctlr->dma_tx); in spi_ingenic_release_dma()
Dspi-stm32.c322 * @dma_tx: dma channel for TX transfer
355 struct dma_chan *dma_tx; member
836 if (spi->cur_usedma && spi->dma_tx) in stm32fx_spi_disable()
837 dmaengine_terminate_async(spi->dma_tx); in stm32fx_spi_disable()
879 if (spi->cur_usedma && spi->dma_tx) in stm32h7_spi_disable()
880 dmaengine_terminate_async(spi->dma_tx); in stm32h7_spi_disable()
1456 if (spi->tx_buf && spi->dma_tx) { in stm32_spi_transfer_one_dma()
1457 stm32_spi_dma_config(spi, spi->dma_tx, &tx_dma_conf, DMA_MEM_TO_DEV); in stm32_spi_transfer_one_dma()
1458 dmaengine_slave_config(spi->dma_tx, &tx_dma_conf); in stm32_spi_transfer_one_dma()
1461 spi->dma_tx, xfer->tx_sg.sgl, in stm32_spi_transfer_one_dma()
[all …]
Dspi-qup.c424 chan = host->dma_tx; in spi_qup_prep_sg()
444 dmaengine_terminate_all(host->dma_tx); in spi_qup_dma_terminate()
528 dma_async_issue_pending(host->dma_tx); in spi_qup_do_dma()
932 IS_ERR_OR_NULL(host->dma_tx)) in spi_qup_can_dma()
949 if (!IS_ERR_OR_NULL(host->dma_tx)) in spi_qup_release_dma()
950 dma_release_channel(host->dma_tx); in spi_qup_release_dma()
966 host->dma_tx = dma_request_chan(dev, "tx"); in spi_qup_init_dma()
967 if (IS_ERR(host->dma_tx)) { in spi_qup_init_dma()
968 ret = PTR_ERR(host->dma_tx); in spi_qup_init_dma()
989 ret = dmaengine_slave_config(host->dma_tx, tx_conf); in spi_qup_init_dma()
[all …]
Dspi-sh-msiof.c772 dma_sync_single_for_device(p->ctlr->dma_tx->device->dev, in sh_msiof_dma_once()
774 desc_tx = dmaengine_prep_slave_single(p->ctlr->dma_tx, in sh_msiof_dma_once()
808 dma_async_issue_pending(p->ctlr->dma_tx); in sh_msiof_dma_once()
858 dmaengine_terminate_sync(p->ctlr->dma_tx); in sh_msiof_dma_once()
934 while (ctlr->dma_tx && len > 15) { in sh_msiof_transfer_one()
1209 ctlr->dma_tx = sh_msiof_request_dma_chan(dev, DMA_MEM_TO_DEV, in sh_msiof_request_dma()
1211 if (!ctlr->dma_tx) in sh_msiof_request_dma()
1227 tx_dev = ctlr->dma_tx->device->dev; in sh_msiof_request_dma()
1251 dma_release_channel(ctlr->dma_tx); in sh_msiof_request_dma()
1252 ctlr->dma_tx = NULL; in sh_msiof_request_dma()
[all …]
Dspi-atmel.c548 if (dmaengine_slave_config(host->dma_tx, &slave_config)) { in atmel_spi_dma_slave_config()
577 host->dma_tx = dma_request_chan(dev, "tx"); in atmel_spi_configure_dma()
578 if (IS_ERR(host->dma_tx)) { in atmel_spi_configure_dma()
579 err = PTR_ERR(host->dma_tx); in atmel_spi_configure_dma()
601 dma_chan_name(host->dma_tx), in atmel_spi_configure_dma()
608 if (!IS_ERR(host->dma_tx)) in atmel_spi_configure_dma()
609 dma_release_channel(host->dma_tx); in atmel_spi_configure_dma()
611 host->dma_tx = host->dma_rx = NULL; in atmel_spi_configure_dma()
619 if (host->dma_tx) in atmel_spi_stop_dma()
620 dmaengine_terminate_all(host->dma_tx); in atmel_spi_stop_dma()
[all …]
/linux-6.12.1/drivers/mmc/host/
Djz4740_mmc.c179 struct dma_chan *dma_tx; member
223 dma_release_channel(host->dma_tx); in jz4740_mmc_release_dma_channels()
232 host->dma_tx = dma_request_chan(dev, "tx-rx"); in jz4740_mmc_acquire_dma_channels()
233 if (!IS_ERR(host->dma_tx)) in jz4740_mmc_acquire_dma_channels()
236 if (PTR_ERR(host->dma_tx) != -ENODEV) { in jz4740_mmc_acquire_dma_channels()
238 return PTR_ERR(host->dma_tx); in jz4740_mmc_acquire_dma_channels()
241 host->dma_tx = dma_request_chan(mmc_dev(host->mmc), "tx"); in jz4740_mmc_acquire_dma_channels()
242 if (IS_ERR(host->dma_tx)) { in jz4740_mmc_acquire_dma_channels()
243 dev_err(mmc_dev(host->mmc), "Failed to get dma_tx channel\n"); in jz4740_mmc_acquire_dma_channels()
244 return PTR_ERR(host->dma_tx); in jz4740_mmc_acquire_dma_channels()
[all …]
Domap.c134 struct dma_chan *dma_tx; member
423 c = host->dma_tx; in mmc_omap_release_dma()
1006 c = host->dma_tx; in mmc_omap_prepare_data()
1086 host->dma_tx : host->dma_rx; in mmc_omap_start_request()
1443 host->dma_tx = dma_request_chan(&pdev->dev, "tx"); in mmc_omap_probe()
1444 if (IS_ERR(host->dma_tx)) { in mmc_omap_probe()
1445 ret = PTR_ERR(host->dma_tx); in mmc_omap_probe()
1449 host->dma_tx = NULL; in mmc_omap_probe()
1457 if (host->dma_tx) in mmc_omap_probe()
1458 dma_release_channel(host->dma_tx); in mmc_omap_probe()
[all …]
/linux-6.12.1/arch/powerpc/platforms/512x/
Dmpc512x_lpbfifo.c169 struct dma_async_tx_descriptor *dma_tx = NULL; in mpc512x_lpbfifo_kick() local
259 dma_tx = dmaengine_prep_slave_sg(lpbfifo.chan, &sg, in mpc512x_lpbfifo_kick()
261 if (!dma_tx) { in mpc512x_lpbfifo_kick()
265 dma_tx->callback = mpc512x_lpbfifo_callback; in mpc512x_lpbfifo_kick()
266 dma_tx->callback_param = NULL; in mpc512x_lpbfifo_kick()
315 cookie = dma_tx->tx_submit(dma_tx); in mpc512x_lpbfifo_kick()
/linux-6.12.1/Documentation/devicetree/bindings/net/
Didt,3243x-emac.yaml28 - const: dma_tx
65 reg-names = "emac", "dma_rx", "dma_tx";
/linux-6.12.1/drivers/mtd/nand/raw/
Dintel-nand-controller.c118 struct dma_chan *dma_tx; member
282 dmaengine_terminate_async(ebu_host->dma_tx); in ebu_dma_tx_callback()
305 chan = ebu_host->dma_tx; in ebu_dma_start()
572 if (ebu_host->dma_tx) in ebu_dma_cleanup()
573 dma_release_channel(ebu_host->dma_tx); in ebu_dma_cleanup()
641 ebu_host->dma_tx = dma_request_chan(dev, "tx"); in ebu_nand_probe()
642 if (IS_ERR(ebu_host->dma_tx)) { in ebu_nand_probe()
643 ret = dev_err_probe(dev, PTR_ERR(ebu_host->dma_tx), in ebu_nand_probe()
/linux-6.12.1/Documentation/devicetree/bindings/serial/
Dbrcm,bcm7271-uart.yaml40 - const: dma_tx
90 reg-names = "uart", "dma_arb", "dma_rx", "dma_tx", "dma_intr2";
/linux-6.12.1/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_dma.c44 int fix_burst, int pbl, dma_addr_t dma_tx, in sxgbe_dma_channel_init() argument
66 writel(upper_32_bits(dma_tx), in sxgbe_dma_channel_init()
68 writel(lower_32_bits(dma_tx), in sxgbe_dma_channel_init()
80 dma_addr = dma_tx + ((t_rsize - 1) * SXGBE_DESC_SIZE_BYTES); in sxgbe_dma_channel_init()
/linux-6.12.1/drivers/net/ethernet/micrel/
Dks8842.c147 #define KS8842_USE_DMA(adapter) (((adapter)->dma_tx.channel != -1) && \
159 struct ks8842_tx_dma_ctl dma_tx; member
424 struct ks8842_tx_dma_ctl *ctl = &adapter->dma_tx; in ks8842_tx_frame_dma()
847 struct ks8842_tx_dma_ctl *ctl = &adapter->dma_tx; in ks8842_dma_tx_cb()
863 struct ks8842_tx_dma_ctl *tx_ctl = &adapter->dma_tx; in ks8842_stop_dma()
885 struct ks8842_tx_dma_ctl *tx_ctl = &adapter->dma_tx; in ks8842_dealloc_dma_bufs()
917 struct ks8842_tx_dma_ctl *tx_ctl = &adapter->dma_tx; in ks8842_alloc_dma_bufs()
990 adapter->dma_tx.channel = -1; in ks8842_open()
1044 if (adapter->dma_tx.adesc) in ks8842_xmit_frame()
1175 adapter->dma_tx.channel = pdata->tx_dma_channel; in ks8842_probe()
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/sound/
Drenesas,rz-ssi.yaml36 - const: dma_tx
118 interrupt-names = "int_req", "dma_rx", "dma_tx";

123