/linux-6.3-rc2/drivers/spi/ |
A D | spi-pxa2xx-dma.c | 102 chan = drv_data->controller->dma_rx; in pxa2xx_spi_dma_prepare_one() 123 dmaengine_terminate_async(drv_data->controller->dma_rx); in pxa2xx_spi_dma_transfer() 169 dma_async_issue_pending(drv_data->controller->dma_rx); in pxa2xx_spi_dma_start() 178 dmaengine_terminate_sync(drv_data->controller->dma_rx); in pxa2xx_spi_dma_stop() 197 controller->dma_rx = dma_request_slave_channel_compat(mask, in pxa2xx_spi_dma_setup() 199 if (!controller->dma_rx) { in pxa2xx_spi_dma_setup() 212 if (controller->dma_rx) { in pxa2xx_spi_dma_release() 213 dmaengine_terminate_sync(controller->dma_rx); in pxa2xx_spi_dma_release() 214 dma_release_channel(controller->dma_rx); in pxa2xx_spi_dma_release() 215 controller->dma_rx = NULL; in pxa2xx_spi_dma_release()
|
A D | spi-bcm2835.c | 690 chan = ctlr->dma_rx; in bcm2835_spi_prepare_sg() 825 dma_async_issue_pending(ctlr->dma_rx); in bcm2835_spi_transfer_one_dma() 879 if (ctlr->dma_rx) { in bcm2835_dma_release() 881 dma_release_channel(ctlr->dma_rx); in bcm2835_dma_release() 882 ctlr->dma_rx = NULL; in bcm2835_dma_release() 912 if (IS_ERR(ctlr->dma_rx)) { in bcm2835_dma_init() 914 ret = PTR_ERR(ctlr->dma_rx); in bcm2835_dma_init() 915 ctlr->dma_rx = NULL; in bcm2835_dma_init() 1149 if (ctlr->dma_rx) { in bcm2835_spi_handle_err() 1188 if (!ctlr->dma_rx) in bcm2835_spi_setup_dma() [all …]
|
A D | spi-uniphier.c | 356 if ((!master->dma_tx && !master->dma_rx) in uniphier_spi_can_dma() 358 || (!master->dma_rx && t->rx_buf)) in uniphier_spi_can_dma() 418 master->dma_rx, in uniphier_spi_transfer_one_dma() 431 dma_async_issue_pending(master->dma_rx); in uniphier_spi_transfer_one_dma() 735 if (IS_ERR_OR_NULL(master->dma_rx)) { in uniphier_spi_probe() 740 master->dma_rx = NULL; in uniphier_spi_probe() 761 if (!IS_ERR_OR_NULL(master->dma_rx)) { in uniphier_spi_probe() 762 dma_release_channel(master->dma_rx); in uniphier_spi_probe() 763 master->dma_rx = NULL; in uniphier_spi_probe() 785 if (master->dma_rx) in uniphier_spi_remove() [all …]
|
A D | spi-sun6i.c | 207 dmaengine_slave_config(master->dma_rx, &rxconf); in sun6i_spi_prepare_dma() 236 dmaengine_terminate_sync(master->dma_rx); in sun6i_spi_prepare_dma() 243 dma_async_issue_pending(master->dma_rx); in sun6i_spi_prepare_dma() 441 dmaengine_terminate_sync(master->dma_rx); in sun6i_spi_transfer_one() 634 if (IS_ERR(master->dma_rx)) { in sun6i_spi_probe() 640 master->dma_rx = NULL; in sun6i_spi_probe() 643 if (master->dma_tx && master->dma_rx) { in sun6i_spi_probe() 676 if (master->dma_rx) in sun6i_spi_probe() 677 dma_release_channel(master->dma_rx); in sun6i_spi_probe() 694 if (master->dma_rx) in sun6i_spi_remove() [all …]
|
A D | spi-at91-usart.c | 149 if (IS_ERR_OR_NULL(ctlr->dma_rx)) { in at91_usart_spi_configure_dma() 150 if (IS_ERR(ctlr->dma_rx)) { in at91_usart_spi_configure_dma() 151 err = PTR_ERR(ctlr->dma_rx); in at91_usart_spi_configure_dma() 191 if (!IS_ERR_OR_NULL(ctlr->dma_rx)) in at91_usart_spi_configure_dma() 192 dma_release_channel(ctlr->dma_rx); in at91_usart_spi_configure_dma() 194 ctlr->dma_rx = NULL; in at91_usart_spi_configure_dma() 202 if (ctlr->dma_rx) in at91_usart_spi_release_dma() 203 dma_release_channel(ctlr->dma_rx); in at91_usart_spi_release_dma() 210 if (ctlr->dma_rx) in at91_usart_spi_stop_dma() 211 dmaengine_terminate_all(ctlr->dma_rx); in at91_usart_spi_stop_dma() [all …]
|
A D | spi-rockchip.c | 467 ctlr->dma_rx, in rockchip_spi_prepare_dma() 506 dma_async_issue_pending(ctlr->dma_rx); in rockchip_spi_prepare_dma() 624 dmaengine_pause(ctlr->dma_rx); in rockchip_spi_slave_abort() 625 status = dmaengine_tx_status(ctlr->dma_rx, ctlr->dma_rx->cookie, &state); in rockchip_spi_slave_abort() 895 if (IS_ERR(ctlr->dma_rx)) { in rockchip_spi_probe() 901 ctlr->dma_rx = NULL; in rockchip_spi_probe() 904 if (ctlr->dma_tx && ctlr->dma_rx) { in rockchip_spi_probe() 933 if (ctlr->dma_rx) in rockchip_spi_probe() 934 dma_release_channel(ctlr->dma_rx); in rockchip_spi_probe() 966 if (ctlr->dma_rx) in rockchip_spi_remove() [all …]
|
A D | spi-pic32.c | 309 if (!master->dma_rx || !master->dma_tx) in pic32_spi_dma_transfer() 346 dma_async_issue_pending(master->dma_rx); in pic32_spi_dma_transfer() 352 dmaengine_terminate_all(master->dma_rx); in pic32_spi_dma_transfer() 552 dmaengine_terminate_all(master->dma_rx); in pic32_spi_one_transfer() 612 if (IS_ERR(master->dma_rx)) { in pic32_spi_dma_prep() 618 master->dma_rx = NULL; in pic32_spi_dma_prep() 642 if (master->dma_rx) { in pic32_spi_dma_prep() 643 dma_release_channel(master->dma_rx); in pic32_spi_dma_prep() 644 master->dma_rx = NULL; in pic32_spi_dma_prep() 661 if (pic32s->master->dma_rx) in pic32_spi_dma_unprep() [all …]
|
A D | spi-fsl-lpspi.c | 181 if (!controller->dma_rx) in fsl_lpspi_can_dma() 570 dma_async_issue_pending(controller->dma_rx); in fsl_lpspi_dma_transfer() 598 dmaengine_terminate_all(controller->dma_rx); in fsl_lpspi_dma_transfer() 608 dmaengine_terminate_all(controller->dma_rx); in fsl_lpspi_dma_transfer() 618 dmaengine_terminate_all(controller->dma_rx); in fsl_lpspi_dma_transfer() 641 if (controller->dma_rx) { in fsl_lpspi_dma_exit() 642 dma_release_channel(controller->dma_rx); in fsl_lpspi_dma_exit() 643 controller->dma_rx = NULL; in fsl_lpspi_dma_exit() 669 if (IS_ERR(controller->dma_rx)) { in fsl_lpspi_dma_init() 670 ret = PTR_ERR(controller->dma_rx); in fsl_lpspi_dma_init() [all …]
|
A D | spi-ep93xx.c | 93 struct dma_chan *dma_rx; member 296 chan = espi->dma_rx; in ep93xx_spi_dma_prepare() 384 chan = espi->dma_rx; in ep93xx_spi_dma_finish() 430 dma_async_issue_pending(espi->dma_rx); in ep93xx_spi_dma_transfer() 505 if (espi->dma_rx && xfer->len > SPI_FIFO_SIZE) in ep93xx_spi_transfer_one() 603 espi->dma_rx = dma_request_channel(mask, ep93xx_spi_dma_filter, in ep93xx_spi_setup_dma() 605 if (!espi->dma_rx) { in ep93xx_spi_setup_dma() 624 dma_release_channel(espi->dma_rx); in ep93xx_spi_setup_dma() 625 espi->dma_rx = NULL; in ep93xx_spi_setup_dma() 634 if (espi->dma_rx) { in ep93xx_spi_release_dma() [all …]
|
A D | spi-davinci.c | 120 struct dma_chan *dma_rx; member 396 if (dspi->dma_rx && dspi->dma_tx) in davinci_spi_of_setup() 657 dma_async_issue_pending(dspi->dma_rx); in davinci_spi_bufs() 749 if (IS_ERR(dspi->dma_rx)) in davinci_spi_request_dma() 750 return PTR_ERR(dspi->dma_rx); in davinci_spi_request_dma() 754 dma_release_channel(dspi->dma_rx); in davinci_spi_request_dma() 963 dspi->dma_rx = NULL; in davinci_spi_probe() 1000 if (dspi->dma_rx) { in davinci_spi_probe() 1001 dma_release_channel(dspi->dma_rx); in davinci_spi_probe() 1033 if (dspi->dma_rx) { in davinci_spi_remove() [all …]
|
A D | spi-omap2-mcspi.c | 93 struct dma_chan *dma_rx; member 513 dma_async_issue_pending(mcspi_dma->dma_rx); in omap2_mcspi_rx_dma() 998 if (IS_ERR(mcspi_dma->dma_rx)) { in omap2_mcspi_request_dma() 999 ret = PTR_ERR(mcspi_dma->dma_rx); in omap2_mcspi_request_dma() 1000 mcspi_dma->dma_rx = NULL; in omap2_mcspi_request_dma() 1009 dma_release_channel(mcspi_dma->dma_rx); in omap2_mcspi_request_dma() 1010 mcspi_dma->dma_rx = NULL; in omap2_mcspi_request_dma() 1029 if (mcspi_dma->dma_rx) { in omap2_mcspi_release_dma() 1030 dma_release_channel(mcspi_dma->dma_rx); in omap2_mcspi_release_dma() 1031 mcspi_dma->dma_rx = NULL; in omap2_mcspi_release_dma() [all …]
|
A D | spi-stm32.c | 308 struct dma_chan *dma_rx; member 1232 if (spi->rx_buf && spi->dma_rx) { in stm32_spi_transfer_one_dma() 1241 spi->dma_rx, xfer->rx_sg.sgl, in stm32_spi_transfer_one_dma() 1304 if (spi->dma_rx) in stm32_spi_transfer_one_dma() 1874 if (IS_ERR(spi->dma_rx)) { in stm32_spi_probe() 1875 ret = PTR_ERR(spi->dma_rx); in stm32_spi_probe() 1876 spi->dma_rx = NULL; in stm32_spi_probe() 1882 master->dma_rx = spi->dma_rx; in stm32_spi_probe() 1885 if (spi->dma_tx || spi->dma_rx) in stm32_spi_probe() 1917 if (spi->dma_rx) in stm32_spi_probe() [all …]
|
A D | spi-ingenic.c | 179 rx_desc = spi_ingenic_prepare_dma(ctlr, ctlr->dma_rx, in spi_ingenic_dma_tx() 187 dmaengine_terminate_async(ctlr->dma_rx); in spi_ingenic_dma_tx() 192 dma_async_issue_pending(ctlr->dma_rx); in spi_ingenic_dma_tx() 353 ctlr->dma_rx = dma_request_slave_channel(dev, "rx"); in spi_ingenic_request_dma() 355 if (!ctlr->dma_rx) in spi_ingenic_request_dma() 369 if (ctlr->dma_rx) in spi_ingenic_release_dma() 370 dma_release_channel(ctlr->dma_rx); in spi_ingenic_release_dma()
|
A D | spi-atmel.c | 507 if (IS_ERR(host->dma_rx)) { in atmel_spi_configure_dma() 508 err = PTR_ERR(host->dma_rx); in atmel_spi_configure_dma() 524 dma_chan_name(host->dma_rx)); in atmel_spi_configure_dma() 528 if (!IS_ERR(host->dma_rx)) in atmel_spi_configure_dma() 529 dma_release_channel(host->dma_rx); in atmel_spi_configure_dma() 533 host->dma_tx = host->dma_rx = NULL; in atmel_spi_configure_dma() 539 if (host->dma_rx) in atmel_spi_stop_dma() 540 dmaengine_terminate_all(host->dma_rx); in atmel_spi_stop_dma() 547 if (host->dma_rx) { in atmel_spi_release_dma() 548 dma_release_channel(host->dma_rx); in atmel_spi_release_dma() [all …]
|
A D | spi-qup.c | 402 chan = master->dma_rx; in spi_qup_prep_sg() 422 dmaengine_terminate_all(master->dma_rx); in spi_qup_dma_terminate() 489 dma_async_issue_pending(master->dma_rx); in spi_qup_do_dma() 896 IS_ERR_OR_NULL(master->dma_rx)) in spi_qup_can_dma() 919 if (!IS_ERR_OR_NULL(master->dma_rx)) in spi_qup_release_dma() 920 dma_release_channel(master->dma_rx); in spi_qup_release_dma() 934 master->dma_rx = dma_request_chan(dev, "rx"); in spi_qup_init_dma() 935 if (IS_ERR(master->dma_rx)) in spi_qup_init_dma() 936 return PTR_ERR(master->dma_rx); in spi_qup_init_dma() 955 ret = dmaengine_slave_config(master->dma_rx, rx_conf); in spi_qup_init_dma() [all …]
|
A D | spi-imx.c | 241 if (!controller->dma_rx) in spi_imx_can_dma() 1287 if (controller->dma_rx) { in spi_imx_sdma_exit() 1288 dma_release_channel(controller->dma_rx); in spi_imx_sdma_exit() 1289 controller->dma_rx = NULL; in spi_imx_sdma_exit() 1316 if (IS_ERR(controller->dma_rx)) { in spi_imx_sdma_init() 1317 ret = PTR_ERR(controller->dma_rx); in spi_imx_sdma_init() 1319 controller->dma_rx = NULL; in spi_imx_sdma_init() 1415 dma_async_issue_pending(controller->dma_rx); in spi_imx_dma_transfer() 1422 dmaengine_terminate_all(controller->dma_rx); in spi_imx_dma_transfer() 1440 dmaengine_terminate_all(controller->dma_rx); in spi_imx_dma_transfer() [all …]
|
/linux-6.3-rc2/drivers/mtd/nand/raw/ |
A D | intel-nand-controller.c | 119 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() 649 ebu_host->dma_rx = dma_request_chan(dev, "rx"); in ebu_nand_probe() 650 if (IS_ERR(ebu_host->dma_rx)) { in ebu_nand_probe() 651 ret = dev_err_probe(dev, PTR_ERR(ebu_host->dma_rx), in ebu_nand_probe() 653 ebu_host->dma_rx = NULL; in ebu_nand_probe()
|
/linux-6.3-rc2/drivers/net/ethernet/micrel/ |
A D | ks8842.c | 148 ((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-6.3-rc2/Documentation/devicetree/bindings/net/ |
A D | idt,3243x-emac.yaml | 27 - const: dma_rx 65 reg-names = "emac", "dma_rx", "dma_tx";
|
/linux-6.3-rc2/drivers/net/ethernet/samsung/sxgbe/ |
A D | sxgbe_dma.c | 45 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.3-rc2/drivers/mmc/host/ |
A D | jz4740_mmc.c | 177 struct dma_chan *dma_rx; member 223 if (host->dma_rx) in jz4740_mmc_release_dma_channels() 224 dma_release_channel(host->dma_rx); in jz4740_mmc_release_dma_channels() 246 host->dma_rx = dma_request_chan(mmc_dev(host->mmc), "rx"); in jz4740_mmc_acquire_dma_channels() 247 if (IS_ERR(host->dma_rx)) { in jz4740_mmc_acquire_dma_channels() 250 return PTR_ERR(host->dma_rx); in jz4740_mmc_acquire_dma_channels() 265 if (host->dma_rx) { in jz4740_mmc_acquire_dma_channels() 266 struct device *dev = host->dma_rx->device->dev; in jz4740_mmc_acquire_dma_channels() 279 if ((data->flags & MMC_DATA_READ) && host->dma_rx) in jz4740_mmc_get_dma_chan() 280 return host->dma_rx; in jz4740_mmc_get_dma_chan()
|
A D | omap.c | 127 struct dma_chan *dma_rx; member 414 c = host->dma_rx; in mmc_omap_release_dma() 1006 c = host->dma_rx; in mmc_omap_prepare_data() 1077 host->dma_tx : host->dma_rx; in mmc_omap_start_request() 1403 if (IS_ERR(host->dma_rx)) { in mmc_omap_probe() 1404 ret = PTR_ERR(host->dma_rx); in mmc_omap_probe() 1411 host->dma_rx = NULL; in mmc_omap_probe() 1456 if (host->dma_rx) in mmc_omap_probe() 1457 dma_release_channel(host->dma_rx); in mmc_omap_probe() 1490 if (host->dma_rx) in mmc_omap_remove() [all …]
|
/linux-6.3-rc2/drivers/i2c/busses/ |
A D | i2c-sh_mobile.c | 136 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() 825 if (!IS_ERR(pd->dma_rx)) { in sh_mobile_i2c_release_dma() 826 dma_release_channel(pd->dma_rx); in sh_mobile_i2c_release_dma() 827 pd->dma_rx = 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()
|
A D | i2c-rcar.c | 137 struct dma_chan *dma_rx; member 380 ? priv->dma_rx : priv->dma_tx; in rcar_i2c_cleanup_dma() 415 struct dma_chan *chan = read ? priv->dma_rx : priv->dma_tx; in rcar_i2c_dma() 787 chan = read ? priv->dma_rx : priv->dma_tx; in rcar_i2c_request_dma() 795 priv->dma_rx = chan; in rcar_i2c_request_dma() 807 if (!IS_ERR(priv->dma_rx)) { in rcar_i2c_release_dma() 808 dma_release_channel(priv->dma_rx); in rcar_i2c_release_dma() 809 priv->dma_rx = ERR_PTR(-EPROBE_DEFER); in rcar_i2c_release_dma() 1084 priv->dma_rx = priv->dma_tx = ERR_PTR(-EPROBE_DEFER); in rcar_i2c_probe()
|
/linux-6.3-rc2/Documentation/devicetree/bindings/serial/ |
A D | brcm,bcm7271-uart.yaml | 39 - const: dma_rx 90 reg-names = "uart", "dma_arb", "dma_rx", "dma_tx", "dma_intr2";
|