/openbmc/u-boot/test/dm/ |
H A D | dma.c | 41 struct dma dma_tx, dma_rx; in dm_test_dma() local 52 ut_assertok(dma_get_by_name(dev, "rx0", &dma_rx)); in dm_test_dma() 55 ut_assertok(dma_enable(&dma_rx)); in dm_test_dma() 66 ut_asserteq(len, dma_receive(&dma_rx, &dst_ptr, &meta2)); in dm_test_dma() 70 ut_assertok(dma_disable(&dma_rx)); in dm_test_dma() 73 ut_assertok(dma_free(&dma_rx)); in dm_test_dma() 83 struct dma dma_tx, dma_rx; in dm_test_dma_rx() local 94 ut_assertok(dma_get_by_name(dev, "rx0", &dma_rx)); in dm_test_dma_rx() 97 ut_assertok(dma_enable(&dma_rx)); in dm_test_dma_rx() 115 ut_assertok(dma_disable(&dma_rx)); in dm_test_dma_rx() [all …]
|
/openbmc/linux/drivers/spi/ |
H 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()
|
H 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() 880 dmaengine_terminate_sync(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() 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 …]
|
H 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 …]
|
H A D | spi-at91-usart.c | 148 if (IS_ERR_OR_NULL(ctlr->dma_rx)) { in at91_usart_spi_configure_dma() 149 if (IS_ERR(ctlr->dma_rx)) { in at91_usart_spi_configure_dma() 150 err = PTR_ERR(ctlr->dma_rx); in at91_usart_spi_configure_dma() 190 if (!IS_ERR_OR_NULL(ctlr->dma_rx)) in at91_usart_spi_configure_dma() 191 dma_release_channel(ctlr->dma_rx); in at91_usart_spi_configure_dma() 193 ctlr->dma_rx = NULL; in at91_usart_spi_configure_dma() 201 if (ctlr->dma_rx) in at91_usart_spi_release_dma() 202 dma_release_channel(ctlr->dma_rx); in at91_usart_spi_release_dma() 209 if (ctlr->dma_rx) in at91_usart_spi_stop_dma() 210 dmaengine_terminate_all(ctlr->dma_rx); in at91_usart_spi_stop_dma() [all …]
|
H A D | spi-sun6i.c | 226 dmaengine_slave_config(master->dma_rx, &rxconf); in sun6i_spi_prepare_dma() 257 dmaengine_terminate_sync(master->dma_rx); in sun6i_spi_prepare_dma() 264 dma_async_issue_pending(master->dma_rx); in sun6i_spi_prepare_dma() 521 dmaengine_terminate_sync(master->dma_rx); in sun6i_spi_transfer_one() 715 if (IS_ERR(master->dma_rx)) { in sun6i_spi_probe() 721 master->dma_rx = NULL; in sun6i_spi_probe() 724 if (master->dma_tx && master->dma_rx) { in sun6i_spi_probe() 757 if (master->dma_rx) in sun6i_spi_probe() 758 dma_release_channel(master->dma_rx); in sun6i_spi_probe() 775 if (master->dma_rx) in sun6i_spi_remove() [all …]
|
H A D | spi-rockchip.c | 469 ctlr->dma_rx, in rockchip_spi_prepare_dma() 508 dma_async_issue_pending(ctlr->dma_rx); in rockchip_spi_prepare_dma() 626 dmaengine_pause(ctlr->dma_rx); in rockchip_spi_target_abort() 627 status = dmaengine_tx_status(ctlr->dma_rx, ctlr->dma_rx->cookie, &state); in rockchip_spi_target_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 …]
|
H A D | spi-pic32.c | 309 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 …]
|
H A D | spi-fsl-lpspi.c | 198 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 …]
|
H 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 …]
|
H A D | spi-davinci.c | 119 struct dma_chan *dma_rx; member 395 if (dspi->dma_rx && dspi->dma_tx) in davinci_spi_of_setup() 656 dma_async_issue_pending(dspi->dma_rx); in davinci_spi_bufs() 748 if (IS_ERR(dspi->dma_rx)) in davinci_spi_request_dma() 749 return PTR_ERR(dspi->dma_rx); in davinci_spi_request_dma() 753 dma_release_channel(dspi->dma_rx); in davinci_spi_request_dma() 953 dspi->dma_rx = NULL; in davinci_spi_probe() 990 if (dspi->dma_rx) { in davinci_spi_probe() 991 dma_release_channel(dspi->dma_rx); in davinci_spi_probe() 1023 if (dspi->dma_rx) { in davinci_spi_remove() [all …]
|
H A D | spi-omap2-mcspi.c | 93 struct dma_chan *dma_rx; member 515 dma_async_issue_pending(mcspi_dma->dma_rx); in omap2_mcspi_rx_dma() 1001 if (IS_ERR(mcspi_dma->dma_rx)) { in omap2_mcspi_request_dma() 1002 ret = PTR_ERR(mcspi_dma->dma_rx); in omap2_mcspi_request_dma() 1003 mcspi_dma->dma_rx = NULL; in omap2_mcspi_request_dma() 1012 dma_release_channel(mcspi_dma->dma_rx); in omap2_mcspi_request_dma() 1013 mcspi_dma->dma_rx = NULL; in omap2_mcspi_request_dma() 1032 if (mcspi_dma->dma_rx) { in omap2_mcspi_release_dma() 1033 dma_release_channel(mcspi_dma->dma_rx); in omap2_mcspi_release_dma() 1034 mcspi_dma->dma_rx = NULL; in omap2_mcspi_release_dma() [all …]
|
H A D | spi-stm32.c | 320 struct dma_chan *dma_rx; member 1261 if (spi->rx_buf && spi->dma_rx) { in stm32_spi_transfer_one_dma() 1270 spi->dma_rx, xfer->rx_sg.sgl, in stm32_spi_transfer_one_dma() 1333 if (spi->dma_rx) in stm32_spi_transfer_one_dma() 1930 if (IS_ERR(spi->dma_rx)) { in stm32_spi_probe() 1931 ret = PTR_ERR(spi->dma_rx); in stm32_spi_probe() 1932 spi->dma_rx = NULL; in stm32_spi_probe() 1938 ctrl->dma_rx = spi->dma_rx; in stm32_spi_probe() 1941 if (spi->dma_tx || spi->dma_rx) in stm32_spi_probe() 1974 if (spi->dma_rx) in stm32_spi_probe() [all …]
|
H 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()
|
H A D | spi-atmel.c | 588 if (IS_ERR(host->dma_rx)) { in atmel_spi_configure_dma() 589 err = PTR_ERR(host->dma_rx); in atmel_spi_configure_dma() 605 dma_chan_name(host->dma_rx)); in atmel_spi_configure_dma() 609 if (!IS_ERR(host->dma_rx)) in atmel_spi_configure_dma() 610 dma_release_channel(host->dma_rx); in atmel_spi_configure_dma() 614 host->dma_tx = host->dma_rx = NULL; in atmel_spi_configure_dma() 620 if (host->dma_rx) in atmel_spi_stop_dma() 621 dmaengine_terminate_all(host->dma_rx); in atmel_spi_stop_dma() 628 if (host->dma_rx) { in atmel_spi_release_dma() 629 dma_release_channel(host->dma_rx); in atmel_spi_release_dma() [all …]
|
H A D | spi-qup.c | 401 chan = host->dma_rx; in spi_qup_prep_sg() 421 dmaengine_terminate_all(host->dma_rx); in spi_qup_dma_terminate() 488 dma_async_issue_pending(host->dma_rx); in spi_qup_do_dma() 895 IS_ERR_OR_NULL(host->dma_rx)) in spi_qup_can_dma() 918 if (!IS_ERR_OR_NULL(host->dma_rx)) in spi_qup_release_dma() 919 dma_release_channel(host->dma_rx); in spi_qup_release_dma() 933 host->dma_rx = dma_request_chan(dev, "rx"); in spi_qup_init_dma() 934 if (IS_ERR(host->dma_rx)) in spi_qup_init_dma() 935 return PTR_ERR(host->dma_rx); in spi_qup_init_dma() 954 ret = dmaengine_slave_config(host->dma_rx, rx_conf); in spi_qup_init_dma() [all …]
|
H A D | spi-imx.c | 241 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 …]
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H 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() 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()
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | idt,3243x-emac.yaml | 27 - const: dma_rx 65 reg-names = "emac", "dma_rx", "dma_tx";
|
/openbmc/linux/drivers/net/ethernet/micrel/ |
H 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 …]
|
/openbmc/linux/drivers/net/ethernet/samsung/sxgbe/ |
H 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()
|
/openbmc/linux/Documentation/devicetree/bindings/serial/ |
H A D | brcm,bcm7271-uart.yaml | 39 - const: dma_rx 90 reg-names = "uart", "dma_arb", "dma_rx", "dma_tx", "dma_intr2";
|
/openbmc/linux/drivers/mmc/host/ |
H 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()
|
/openbmc/linux/drivers/i2c/busses/ |
H 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() 925 pd->dma_rx = pd->dma_tx = ERR_PTR(-EPROBE_DEFER); in sh_mobile_i2c_probe()
|
H A D | i2c-rcar.c | 138 struct dma_chan *dma_rx; member 389 ? priv->dma_rx : priv->dma_tx; in rcar_i2c_cleanup_dma() 424 struct dma_chan *chan = read ? priv->dma_rx : priv->dma_tx; in rcar_i2c_dma() 796 chan = read ? priv->dma_rx : priv->dma_tx; in rcar_i2c_request_dma() 804 priv->dma_rx = chan; in rcar_i2c_request_dma() 816 if (!IS_ERR(priv->dma_rx)) { in rcar_i2c_release_dma() 817 dma_release_channel(priv->dma_rx); in rcar_i2c_release_dma() 818 priv->dma_rx = ERR_PTR(-EPROBE_DEFER); in rcar_i2c_release_dma() 1092 priv->dma_rx = priv->dma_tx = ERR_PTR(-EPROBE_DEFER); in rcar_i2c_probe()
|