/linux-6.3-rc2/drivers/spi/ |
A D | spi-pxa2xx-dma.c | 95 chan = drv_data->controller->dma_tx; in pxa2xx_spi_dma_prepare_one() 162 dmaengine_terminate_async(drv_data->controller->dma_tx); in pxa2xx_spi_dma_prepare() 170 dma_async_issue_pending(drv_data->controller->dma_tx); in pxa2xx_spi_dma_start() 179 dmaengine_terminate_sync(drv_data->controller->dma_tx); in pxa2xx_spi_dma_stop() 194 if (!controller->dma_tx) in pxa2xx_spi_dma_setup() 200 dma_release_channel(controller->dma_tx); in pxa2xx_spi_dma_setup() 201 controller->dma_tx = NULL; in pxa2xx_spi_dma_setup() 217 if (controller->dma_tx) { in pxa2xx_spi_dma_release() 218 dmaengine_terminate_sync(controller->dma_tx); in pxa2xx_spi_dma_release() 219 dma_release_channel(controller->dma_tx); in pxa2xx_spi_dma_release() [all …]
|
A D | spi-uniphier.c | 356 if ((!master->dma_tx && !master->dma_rx) in uniphier_spi_can_dma() 357 || (!master->dma_tx && t->tx_buf) in uniphier_spi_can_dma() 445 master->dma_tx, in uniphier_spi_transfer_one_dma() 458 dma_async_issue_pending(master->dma_tx); in uniphier_spi_transfer_one_dma() 717 if (IS_ERR_OR_NULL(master->dma_tx)) { in uniphier_spi_probe() 722 master->dma_tx = NULL; in uniphier_spi_probe() 765 if (!IS_ERR_OR_NULL(master->dma_tx)) { in uniphier_spi_probe() 766 dma_release_channel(master->dma_tx); in uniphier_spi_probe() 767 master->dma_tx = NULL; in uniphier_spi_probe() 783 if (master->dma_tx) in uniphier_spi_remove() [all …]
|
A D | spi-at91-usart.c | 136 if (IS_ERR_OR_NULL(ctlr->dma_tx)) { in at91_usart_spi_configure_dma() 137 if (IS_ERR(ctlr->dma_tx)) { in at91_usart_spi_configure_dma() 138 err = PTR_ERR(ctlr->dma_tx); in at91_usart_spi_configure_dma() 189 if (!IS_ERR_OR_NULL(ctlr->dma_tx)) in at91_usart_spi_configure_dma() 190 dma_release_channel(ctlr->dma_tx); in at91_usart_spi_configure_dma() 193 ctlr->dma_tx = NULL; in at91_usart_spi_configure_dma() 204 if (ctlr->dma_tx) in at91_usart_spi_release_dma() 205 dma_release_channel(ctlr->dma_tx); in at91_usart_spi_release_dma() 212 if (ctlr->dma_tx) in at91_usart_spi_stop_dma() 213 dmaengine_terminate_all(ctlr->dma_tx); in at91_usart_spi_stop_dma() [all …]
|
A D | spi-sun6i.c | 227 dmaengine_slave_config(master->dma_tx, &txconf); in sun6i_spi_prepare_dma() 229 txdesc = dmaengine_prep_slave_sg(master->dma_tx, in sun6i_spi_prepare_dma() 248 dma_async_issue_pending(master->dma_tx); in sun6i_spi_prepare_dma() 442 dmaengine_terminate_sync(master->dma_tx); in sun6i_spi_transfer_one() 623 if (IS_ERR(master->dma_tx)) { in sun6i_spi_probe() 630 master->dma_tx = NULL; in sun6i_spi_probe() 643 if (master->dma_tx && master->dma_rx) { in sun6i_spi_probe() 679 if (master->dma_tx) in sun6i_spi_probe() 680 dma_release_channel(master->dma_tx); in sun6i_spi_probe() 692 if (master->dma_tx) in sun6i_spi_remove() [all …]
|
A D | spi-bcm2835.c | 613 dmaengine_terminate_async(ctlr->dma_tx); in bcm2835_spi_dma_rx_done() 684 chan = ctlr->dma_tx; in bcm2835_spi_prepare_sg() 805 dma_async_issue_pending(ctlr->dma_tx); in bcm2835_spi_transfer_one_dma() 819 dmaengine_terminate_sync(ctlr->dma_tx); in bcm2835_spi_transfer_one_dma() 863 if (ctlr->dma_tx) { in bcm2835_dma_release() 875 dma_release_channel(ctlr->dma_tx); in bcm2835_dma_release() 876 ctlr->dma_tx = NULL; in bcm2835_dma_release() 905 if (IS_ERR(ctlr->dma_tx)) { in bcm2835_dma_init() 907 ret = PTR_ERR(ctlr->dma_tx); in bcm2835_dma_init() 908 ctlr->dma_tx = NULL; in bcm2835_dma_init() [all …]
|
A D | spi-pic32.c | 309 if (!master->dma_rx || !master->dma_tx) in pic32_spi_dma_transfer() 347 dma_async_issue_pending(master->dma_tx); in pic32_spi_dma_transfer() 553 dmaengine_terminate_all(master->dma_tx); in pic32_spi_one_transfer() 623 if (IS_ERR(master->dma_tx)) { in pic32_spi_dma_prep() 624 if (PTR_ERR(master->dma_tx) == -EPROBE_DEFER) in pic32_spi_dma_prep() 629 master->dma_tx = NULL; in pic32_spi_dma_prep() 647 if (master->dma_tx) { in pic32_spi_dma_prep() 648 dma_release_channel(master->dma_tx); in pic32_spi_dma_prep() 649 master->dma_tx = NULL; in pic32_spi_dma_prep() 664 if (pic32s->master->dma_tx) in pic32_spi_dma_unprep() [all …]
|
A D | spi-fsl-lpspi.c | 576 dmaengine_terminate_all(controller->dma_tx); in fsl_lpspi_dma_transfer() 584 dma_async_issue_pending(controller->dma_tx); in fsl_lpspi_dma_transfer() 597 dmaengine_terminate_all(controller->dma_tx); in fsl_lpspi_dma_transfer() 607 dmaengine_terminate_all(controller->dma_tx); in fsl_lpspi_dma_transfer() 617 dmaengine_terminate_all(controller->dma_tx); in fsl_lpspi_dma_transfer() 646 if (controller->dma_tx) { in fsl_lpspi_dma_exit() 647 dma_release_channel(controller->dma_tx); in fsl_lpspi_dma_exit() 648 controller->dma_tx = NULL; in fsl_lpspi_dma_exit() 660 if (IS_ERR(controller->dma_tx)) { in fsl_lpspi_dma_init() 661 ret = PTR_ERR(controller->dma_tx); in fsl_lpspi_dma_init() [all …]
|
A D | spi-rockchip.c | 288 dmaengine_terminate_async(ctlr->dma_tx); in rockchip_spi_handle_err() 489 ctlr->dma_tx, in rockchip_spi_prepare_dma() 517 dma_async_issue_pending(ctlr->dma_tx); in rockchip_spi_prepare_dma() 657 dmaengine_terminate_sync(ctlr->dma_tx); in rockchip_spi_slave_abort() 884 if (IS_ERR(ctlr->dma_tx)) { in rockchip_spi_probe() 891 ctlr->dma_tx = NULL; in rockchip_spi_probe() 904 if (ctlr->dma_tx && ctlr->dma_rx) { in rockchip_spi_probe() 936 if (ctlr->dma_tx) in rockchip_spi_probe() 937 dma_release_channel(ctlr->dma_tx); in rockchip_spi_probe() 964 if (ctlr->dma_tx) in rockchip_spi_remove() [all …]
|
A D | spi-stm32.c | 307 struct dma_chan *dma_tx; member 659 if (spi->cur_usedma && spi->dma_tx) in stm32f4_spi_disable() 1248 if (spi->tx_buf && spi->dma_tx) { in stm32_spi_transfer_one_dma() 1253 spi->dma_tx, xfer->tx_sg.sgl, in stm32_spi_transfer_one_dma() 1862 if (IS_ERR(spi->dma_tx)) { in stm32_spi_probe() 1863 ret = PTR_ERR(spi->dma_tx); in stm32_spi_probe() 1864 spi->dma_tx = NULL; in stm32_spi_probe() 1870 master->dma_tx = spi->dma_tx; in stm32_spi_probe() 1885 if (spi->dma_tx || spi->dma_rx) in stm32_spi_probe() 1915 if (spi->dma_tx) in stm32_spi_probe() [all …]
|
A D | spi-omap2-mcspi.c | 92 struct dma_chan *dma_tx; member 426 dma_async_issue_pending(mcspi_dma->dma_tx); in omap2_mcspi_tx_dma() 641 dmaengine_terminate_sync(mcspi_dma->dma_tx); in omap2_mcspi_txrx_dma() 1006 if (IS_ERR(mcspi_dma->dma_tx)) { in omap2_mcspi_request_dma() 1007 ret = PTR_ERR(mcspi_dma->dma_tx); in omap2_mcspi_request_dma() 1008 mcspi_dma->dma_tx = NULL; in omap2_mcspi_request_dma() 1033 if (mcspi_dma->dma_tx) { in omap2_mcspi_release_dma() 1034 dma_release_channel(mcspi_dma->dma_tx); in omap2_mcspi_release_dma() 1035 mcspi_dma->dma_tx = NULL; in omap2_mcspi_release_dma() 1294 if (!mcspi_dma->dma_rx || !mcspi_dma->dma_tx) in omap2_mcspi_can_dma() [all …]
|
A D | spi-davinci.c | 121 struct dma_chan *dma_tx; member 396 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() 752 dspi->dma_tx = dma_request_chan(sdev, "tx"); in davinci_spi_request_dma() 753 if (IS_ERR(dspi->dma_tx)) { in davinci_spi_request_dma() 755 return PTR_ERR(dspi->dma_tx); in davinci_spi_request_dma() 964 dspi->dma_tx = NULL; in davinci_spi_probe() 1002 dma_release_channel(dspi->dma_tx); in davinci_spi_probe() [all …]
|
A D | spi-ingenic.c | 184 tx_desc = spi_ingenic_prepare_dma(ctlr, ctlr->dma_tx, in spi_ingenic_dma_tx() 193 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() 349 ctlr->dma_tx = dma_request_slave_channel(dev, "tx"); in spi_ingenic_request_dma() 350 if (!ctlr->dma_tx) in spi_ingenic_request_dma() 367 if (ctlr->dma_tx) in spi_ingenic_release_dma() 368 dma_release_channel(ctlr->dma_tx); in spi_ingenic_release_dma()
|
A D | spi-ep93xx.c | 94 struct dma_chan *dma_tx; member 303 chan = espi->dma_tx; in ep93xx_spi_dma_prepare() 387 chan = espi->dma_tx; in ep93xx_spi_dma_finish() 431 dma_async_issue_pending(espi->dma_tx); in ep93xx_spi_dma_transfer() 614 espi->dma_tx = dma_request_channel(mask, ep93xx_spi_dma_filter, in ep93xx_spi_setup_dma() 616 if (!espi->dma_tx) { in ep93xx_spi_setup_dma() 638 if (espi->dma_tx) { in ep93xx_spi_release_dma() 639 dma_release_channel(espi->dma_tx); in ep93xx_spi_release_dma()
|
A D | spi-sh-msiof.c | 770 dma_sync_single_for_device(p->ctlr->dma_tx->device->dev, in sh_msiof_dma_once() 772 desc_tx = dmaengine_prep_slave_single(p->ctlr->dma_tx, in sh_msiof_dma_once() 806 dma_async_issue_pending(p->ctlr->dma_tx); in sh_msiof_dma_once() 856 dmaengine_terminate_sync(p->ctlr->dma_tx); in sh_msiof_dma_once() 932 while (ctlr->dma_tx && len > 15) { in sh_msiof_transfer_one() 1198 if (!ctlr->dma_tx) in sh_msiof_request_dma() 1214 tx_dev = ctlr->dma_tx->device->dev; in sh_msiof_request_dma() 1238 dma_release_channel(ctlr->dma_tx); in sh_msiof_request_dma() 1239 ctlr->dma_tx = NULL; in sh_msiof_request_dma() 1247 if (!ctlr->dma_tx) in sh_msiof_release_dma() [all …]
|
A D | spi-atmel.c | 500 if (IS_ERR(host->dma_tx)) { in atmel_spi_configure_dma() 501 err = PTR_ERR(host->dma_tx); in atmel_spi_configure_dma() 523 dma_chan_name(host->dma_tx), in atmel_spi_configure_dma() 530 if (!IS_ERR(host->dma_tx)) in atmel_spi_configure_dma() 531 dma_release_channel(host->dma_tx); in atmel_spi_configure_dma() 533 host->dma_tx = host->dma_rx = NULL; in atmel_spi_configure_dma() 541 if (host->dma_tx) in atmel_spi_stop_dma() 542 dmaengine_terminate_all(host->dma_tx); in atmel_spi_stop_dma() 551 if (host->dma_tx) { in atmel_spi_release_dma() 552 dma_release_channel(host->dma_tx); in atmel_spi_release_dma() [all …]
|
A D | spi-qup.c | 400 chan = master->dma_tx; in spi_qup_prep_sg() 420 dmaengine_terminate_all(master->dma_tx); in spi_qup_dma_terminate() 498 dma_async_issue_pending(master->dma_tx); in spi_qup_do_dma() 904 IS_ERR_OR_NULL(master->dma_tx)) in spi_qup_can_dma() 921 if (!IS_ERR_OR_NULL(master->dma_tx)) in spi_qup_release_dma() 922 dma_release_channel(master->dma_tx); in spi_qup_release_dma() 938 master->dma_tx = dma_request_chan(dev, "tx"); in spi_qup_init_dma() 939 if (IS_ERR(master->dma_tx)) { in spi_qup_init_dma() 940 ret = PTR_ERR(master->dma_tx); in spi_qup_init_dma() 961 ret = dmaengine_slave_config(master->dma_tx, tx_conf); in spi_qup_init_dma() [all …]
|
/linux-6.3-rc2/arch/powerpc/platforms/512x/ |
A D | mpc512x_lpbfifo.c | 169 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.3-rc2/drivers/mmc/host/ |
A D | jz4740_mmc.c | 178 struct dma_chan *dma_tx; member 222 dma_release_channel(host->dma_tx); in jz4740_mmc_release_dma_channels() 231 host->dma_tx = dma_request_chan(dev, "tx-rx"); in jz4740_mmc_acquire_dma_channels() 232 if (!IS_ERR(host->dma_tx)) in jz4740_mmc_acquire_dma_channels() 235 if (PTR_ERR(host->dma_tx) != -ENODEV) { in jz4740_mmc_acquire_dma_channels() 237 return PTR_ERR(host->dma_tx); in jz4740_mmc_acquire_dma_channels() 241 if (IS_ERR(host->dma_tx)) { in jz4740_mmc_acquire_dma_channels() 243 return PTR_ERR(host->dma_tx); in jz4740_mmc_acquire_dma_channels() 249 dma_release_channel(host->dma_tx); in jz4740_mmc_acquire_dma_channels() 257 if (host->dma_tx) { in jz4740_mmc_acquire_dma_channels() [all …]
|
A D | omap.c | 129 struct dma_chan *dma_tx; member 411 c = host->dma_tx; in mmc_omap_release_dma() 1001 c = host->dma_tx; in mmc_omap_prepare_data() 1077 host->dma_tx : host->dma_rx; in mmc_omap_start_request() 1393 if (IS_ERR(host->dma_tx)) { in mmc_omap_probe() 1394 ret = PTR_ERR(host->dma_tx); in mmc_omap_probe() 1398 host->dma_tx = NULL; in mmc_omap_probe() 1406 if (host->dma_tx) in mmc_omap_probe() 1454 if (host->dma_tx) in mmc_omap_probe() 1455 dma_release_channel(host->dma_tx); in mmc_omap_probe() [all …]
|
/linux-6.3-rc2/drivers/mtd/nand/raw/ |
A D | intel-nand-controller.c | 118 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() 642 ebu_host->dma_tx = dma_request_chan(dev, "tx"); in ebu_nand_probe() 643 if (IS_ERR(ebu_host->dma_tx)) { in ebu_nand_probe() 644 ret = dev_err_probe(dev, PTR_ERR(ebu_host->dma_tx), in ebu_nand_probe()
|
/linux-6.3-rc2/Documentation/devicetree/bindings/net/ |
A D | idt,3243x-emac.yaml | 28 - const: dma_tx 65 reg-names = "emac", "dma_rx", "dma_tx";
|
/linux-6.3-rc2/drivers/net/ethernet/samsung/sxgbe/ |
A D | sxgbe_dma.c | 44 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.3-rc2/drivers/net/ethernet/micrel/ |
A D | ks8842.c | 147 #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.3-rc2/drivers/i2c/busses/ |
A D | i2c-sh_mobile.c | 135 struct dma_chan *dma_tx; 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() 521 chan = pd->dma_tx = sh_mobile_i2c_request_dma_chan(pd->dev, DMA_MEM_TO_DEV, in sh_mobile_i2c_xfer_dma() 820 if (!IS_ERR(pd->dma_tx)) { in sh_mobile_i2c_release_dma() 821 dma_release_channel(pd->dma_tx); in sh_mobile_i2c_release_dma() 822 pd->dma_tx = ERR_PTR(-EPROBE_DEFER); in sh_mobile_i2c_release_dma() 929 pd->dma_rx = pd->dma_tx = ERR_PTR(-EPROBE_DEFER); in sh_mobile_i2c_probe()
|
/linux-6.3-rc2/Documentation/devicetree/bindings/serial/ |
A D | brcm,bcm7271-uart.yaml | 40 - const: dma_tx 90 reg-names = "uart", "dma_arb", "dma_rx", "dma_tx", "dma_intr2";
|