/kernel/linux/linux-5.10/drivers/spi/ |
H A D | spi-pxa2xx-dma.c | 102 chan = drv_data->controller->dma_tx; in pxa2xx_spi_dma_prepare_one() 131 dmaengine_terminate_async(drv_data->controller->dma_tx); in pxa2xx_spi_dma_transfer() 171 dmaengine_terminate_async(drv_data->controller->dma_tx); in pxa2xx_spi_dma_prepare() 179 dma_async_issue_pending(drv_data->controller->dma_tx); in pxa2xx_spi_dma_start() 188 dmaengine_terminate_sync(drv_data->controller->dma_tx); in pxa2xx_spi_dma_stop() 201 controller->dma_tx = dma_request_slave_channel_compat(mask, in pxa2xx_spi_dma_setup() 203 if (!controller->dma_tx) in pxa2xx_spi_dma_setup() 209 dma_release_channel(controller->dma_tx); in pxa2xx_spi_dma_setup() 210 controller->dma_tx = NULL; in pxa2xx_spi_dma_setup() 226 if (controller->dma_tx) { in pxa2xx_spi_dma_release() [all...] |
H A D | spi-at91-usart.c | 135 ctlr->dma_tx = dma_request_chan(dev, "tx"); in at91_usart_spi_configure_dma() 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() 178 if (dmaengine_slave_config(ctlr->dma_tx, &slave_config)) { 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() [all...] |
H 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() 442 dmaengine_slave_config(master->dma_tx, &txconf); in uniphier_spi_transfer_one_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() 590 dmaengine_terminate_async(master->dma_tx); in uniphier_spi_handle_err() 716 master->dma_tx = dma_request_chan(&pdev->dev, "tx"); in uniphier_spi_probe() 717 if (IS_ERR_OR_NULL(master->dma_tx)) { in uniphier_spi_probe() 718 if (PTR_ERR(master->dma_tx) == -EPROBE_DEFER) { in uniphier_spi_probe() 722 master->dma_tx in uniphier_spi_probe() [all...] |
H A D | spi-fsl-lpspi.c | 357 ret = dmaengine_slave_config(controller->dma_tx, &tx); in fsl_lpspi_dma_configure() 571 desc_tx = dmaengine_prep_slave_sg(controller->dma_tx, in fsl_lpspi_dma_transfer() 575 dmaengine_terminate_all(controller->dma_tx); in fsl_lpspi_dma_transfer() 583 dma_async_issue_pending(controller->dma_tx); in fsl_lpspi_dma_transfer() 596 dmaengine_terminate_all(controller->dma_tx); in fsl_lpspi_dma_transfer() 606 dmaengine_terminate_all(controller->dma_tx); in fsl_lpspi_dma_transfer() 616 dmaengine_terminate_all(controller->dma_tx); in fsl_lpspi_dma_transfer() 626 dmaengine_terminate_all(controller->dma_tx); in fsl_lpspi_dma_transfer() 645 if (controller->dma_tx) { in fsl_lpspi_dma_exit() 646 dma_release_channel(controller->dma_tx); in fsl_lpspi_dma_exit() [all...] |
H A D | spi-pic32.c | 309 if (!master->dma_rx || !master->dma_tx) in pic32_spi_dma_transfer() 322 desc_tx = dmaengine_prep_slave_sg(master->dma_tx, in pic32_spi_dma_transfer() 347 dma_async_issue_pending(master->dma_tx); in pic32_spi_dma_transfer() 375 ret = dmaengine_slave_config(master->dma_tx, &cfg); in pic32_spi_dma_config() 555 dmaengine_terminate_all(master->dma_tx); in pic32_spi_one_transfer() 626 master->dma_tx = dma_request_chan(dev, "spi-tx"); in pic32_spi_dma_prep() 627 if (IS_ERR(master->dma_tx)) { in pic32_spi_dma_prep() 628 if (PTR_ERR(master->dma_tx) == -EPROBE_DEFER) in pic32_spi_dma_prep() 633 master->dma_tx = NULL; in pic32_spi_dma_prep() 651 if (master->dma_tx) { in pic32_spi_dma_prep() [all...] |
H A D | spi-rockchip.c | 266 dmaengine_terminate_async(ctlr->dma_tx); in rockchip_spi_handle_err() 442 dmaengine_slave_config(ctlr->dma_tx, &txconf); in rockchip_spi_prepare_dma() 445 ctlr->dma_tx, in rockchip_spi_prepare_dma() 470 dma_async_issue_pending(ctlr->dma_tx); in rockchip_spi_prepare_dma() 573 dmaengine_terminate_sync(ctlr->dma_tx); in rockchip_spi_slave_abort() 768 ctlr->dma_tx = dma_request_chan(rs->dev, "tx"); in rockchip_spi_probe() 769 if (IS_ERR(ctlr->dma_tx)) { in rockchip_spi_probe() 771 if (PTR_ERR(ctlr->dma_tx) == -EPROBE_DEFER) { in rockchip_spi_probe() 776 ctlr->dma_tx = NULL; in rockchip_spi_probe() 789 if (ctlr->dma_tx in rockchip_spi_probe() [all...] |
H A D | spi-bcm2835.c | 604 dmaengine_terminate_async(ctlr->dma_tx); in bcm2835_spi_dma_rx_done() 676 chan = ctlr->dma_tx; in bcm2835_spi_prepare_sg() 797 dma_async_issue_pending(ctlr->dma_tx); in bcm2835_spi_transfer_one_dma() 811 dmaengine_terminate_sync(ctlr->dma_tx); in bcm2835_spi_transfer_one_dma() 857 if (ctlr->dma_tx) { in bcm2835_dma_release() 858 dmaengine_terminate_sync(ctlr->dma_tx); in bcm2835_dma_release() 864 dma_unmap_page_attrs(ctlr->dma_tx->device->dev, in bcm2835_dma_release() 869 dma_release_channel(ctlr->dma_tx); in bcm2835_dma_release() 870 ctlr->dma_tx = NULL; in bcm2835_dma_release() 909 ctlr->dma_tx in bcm2835_dma_init() [all...] |
H A D | spi-omap2-mcspi.c | 92 struct dma_chan *dma_tx; member 414 dmaengine_slave_config(mcspi_dma->dma_tx, &cfg); in omap2_mcspi_tx_dma() 416 tx = dmaengine_prep_slave_sg(mcspi_dma->dma_tx, xfer->tx_sg.sgl, in omap2_mcspi_tx_dma() 427 dma_async_issue_pending(mcspi_dma->dma_tx); in omap2_mcspi_tx_dma() 642 dmaengine_terminate_sync(mcspi_dma->dma_tx); in omap2_mcspi_txrx_dma() 999 mcspi_dma->dma_tx = dma_request_chan(mcspi->dev, in omap2_mcspi_request_dma() 1001 if (IS_ERR(mcspi_dma->dma_tx)) { in omap2_mcspi_request_dma() 1002 ret = PTR_ERR(mcspi_dma->dma_tx); in omap2_mcspi_request_dma() 1003 mcspi_dma->dma_tx = NULL; in omap2_mcspi_request_dma() 1028 if (mcspi_dma->dma_tx) { in omap2_mcspi_release_dma() [all...] |
H 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() 969 dspi->dma_tx = NULL; in davinci_spi_probe() 1007 dma_release_channel(dspi->dma_tx); in davinci_spi_probe() [all...] |
H A D | spi-ep93xx.c | 78 * @dma_tx: TX DMA channel 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()
|
H A D | spi-stm32.c | 286 * @dma_tx: dma channel for TX transfer 314 struct dma_chan *dma_tx; member 689 if (spi->cur_usedma && spi->dma_tx) in stm32f4_spi_disable() 690 dmaengine_terminate_all(spi->dma_tx); in stm32f4_spi_disable() 753 if (spi->cur_usedma && spi->dma_tx) in stm32h7_spi_disable() 754 dmaengine_terminate_all(spi->dma_tx); in stm32h7_spi_disable() 1310 if (spi->tx_buf && spi->dma_tx) { in stm32_spi_transfer_one_dma() 1312 dmaengine_slave_config(spi->dma_tx, &tx_dma_conf); in stm32_spi_transfer_one_dma() 1315 spi->dma_tx, xfer->tx_sg.sgl, in stm32_spi_transfer_one_dma() 1321 if ((spi->tx_buf && spi->dma_tx in stm32_spi_transfer_one_dma() [all...] |
/kernel/linux/linux-6.6/drivers/spi/ |
H A D | spi-pxa2xx-dma.c | 95 chan = drv_data->controller->dma_tx; in pxa2xx_spi_dma_prepare_one() 124 dmaengine_terminate_async(drv_data->controller->dma_tx); in pxa2xx_spi_dma_transfer() 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() 192 controller->dma_tx = dma_request_slave_channel_compat(mask, in pxa2xx_spi_dma_setup() 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() [all...] |
H A D | spi-sun6i.c | 248 dmaengine_slave_config(master->dma_tx, &txconf); in sun6i_spi_prepare_dma() 250 txdesc = dmaengine_prep_slave_sg(master->dma_tx, in sun6i_spi_prepare_dma() 269 dma_async_issue_pending(master->dma_tx); in sun6i_spi_prepare_dma() 522 dmaengine_terminate_sync(master->dma_tx); in sun6i_spi_transfer_one() 703 master->dma_tx = dma_request_chan(&pdev->dev, "tx"); in sun6i_spi_probe() 704 if (IS_ERR(master->dma_tx)) { in sun6i_spi_probe() 706 if (PTR_ERR(master->dma_tx) == -EPROBE_DEFER) { in sun6i_spi_probe() 711 master->dma_tx = NULL; in sun6i_spi_probe() 724 if (master->dma_tx && master->dma_rx) { in sun6i_spi_probe() 760 if (master->dma_tx) in sun6i_spi_probe() [all...] |
H A D | spi-at91-usart.c | 134 ctlr->dma_tx = dma_request_chan(dev, "tx"); in at91_usart_spi_configure_dma() 135 if (IS_ERR_OR_NULL(ctlr->dma_tx)) { in at91_usart_spi_configure_dma() 136 if (IS_ERR(ctlr->dma_tx)) { in at91_usart_spi_configure_dma() 137 err = PTR_ERR(ctlr->dma_tx); in at91_usart_spi_configure_dma() 177 if (dmaengine_slave_config(ctlr->dma_tx, &slave_config)) { in at91_usart_spi_configure_dma() 188 if (!IS_ERR_OR_NULL(ctlr->dma_tx)) in at91_usart_spi_configure_dma() 189 dma_release_channel(ctlr->dma_tx); in at91_usart_spi_configure_dma() 192 ctlr->dma_tx = NULL; in at91_usart_spi_configure_dma() 203 if (ctlr->dma_tx) in at91_usart_spi_release_dma() 204 dma_release_channel(ctlr->dma_tx); in at91_usart_spi_release_dma() [all...] |
H 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() 442 dmaengine_slave_config(master->dma_tx, &txconf); in uniphier_spi_transfer_one_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() 590 dmaengine_terminate_async(master->dma_tx); in uniphier_spi_handle_err() 716 master->dma_tx = dma_request_chan(&pdev->dev, "tx"); in uniphier_spi_probe() 717 if (IS_ERR_OR_NULL(master->dma_tx)) { in uniphier_spi_probe() 718 if (PTR_ERR(master->dma_tx) == -EPROBE_DEFER) { in uniphier_spi_probe() 722 master->dma_tx in uniphier_spi_probe() [all...] |
H A D | spi-fsl-lpspi.c | 362 ret = dmaengine_slave_config(controller->dma_tx, &tx); in fsl_lpspi_dma_configure() 576 desc_tx = dmaengine_prep_slave_sg(controller->dma_tx, in fsl_lpspi_dma_transfer() 580 dmaengine_terminate_all(controller->dma_tx); in fsl_lpspi_dma_transfer() 588 dma_async_issue_pending(controller->dma_tx); in fsl_lpspi_dma_transfer() 601 dmaengine_terminate_all(controller->dma_tx); in fsl_lpspi_dma_transfer() 611 dmaengine_terminate_all(controller->dma_tx); in fsl_lpspi_dma_transfer() 621 dmaengine_terminate_all(controller->dma_tx); in fsl_lpspi_dma_transfer() 631 dmaengine_terminate_all(controller->dma_tx); in fsl_lpspi_dma_transfer() 650 if (controller->dma_tx) { in fsl_lpspi_dma_exit() 651 dma_release_channel(controller->dma_tx); in fsl_lpspi_dma_exit() [all...] |
H A D | spi-pic32.c | 309 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...] |
H 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() 864 dmaengine_terminate_sync(ctlr->dma_tx); in bcm2835_dma_release() 870 dma_unmap_page_attrs(ctlr->dma_tx->device->dev, in bcm2835_dma_release() 875 dma_release_channel(ctlr->dma_tx); in bcm2835_dma_release() 876 ctlr->dma_tx = NULL; in bcm2835_dma_release() 904 ctlr->dma_tx in bcm2835_dma_init() [all...] |
H 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()
|
H A D | spi-davinci.c | 120 struct dma_chan *dma_tx; member 395 if (dspi->dma_rx && dspi->dma_tx) in davinci_spi_of_setup() 621 dmaengine_slave_config(dspi->dma_tx, &dma_tx_conf); in davinci_spi_bufs() 639 txdesc = dmaengine_prep_slave_sg(dspi->dma_tx, in davinci_spi_bufs() 657 dma_async_issue_pending(dspi->dma_tx); in davinci_spi_bufs() 751 dspi->dma_tx = dma_request_chan(sdev, "tx"); in davinci_spi_request_dma() 752 if (IS_ERR(dspi->dma_tx)) { in davinci_spi_request_dma() 754 return PTR_ERR(dspi->dma_tx); in davinci_spi_request_dma() 954 dspi->dma_tx = NULL; in davinci_spi_probe() 992 dma_release_channel(dspi->dma_tx); in davinci_spi_probe() [all...] |
H A D | spi-ep93xx.c | 78 * @dma_tx: TX DMA channel 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()
|
H A D | spi-rockchip.c | 290 dmaengine_terminate_async(ctlr->dma_tx); in rockchip_spi_handle_err() 488 dmaengine_slave_config(ctlr->dma_tx, &txconf); in rockchip_spi_prepare_dma() 491 ctlr->dma_tx, in rockchip_spi_prepare_dma() 519 dma_async_issue_pending(ctlr->dma_tx); in rockchip_spi_prepare_dma() 659 dmaengine_terminate_sync(ctlr->dma_tx); in rockchip_spi_target_abort() 883 ctlr->dma_tx = dma_request_chan(rs->dev, "tx"); in rockchip_spi_probe() 884 if (IS_ERR(ctlr->dma_tx)) { in rockchip_spi_probe() 886 if (PTR_ERR(ctlr->dma_tx) == -EPROBE_DEFER) { in rockchip_spi_probe() 891 ctlr->dma_tx = NULL; in rockchip_spi_probe() 904 if (ctlr->dma_tx in rockchip_spi_probe() [all...] |
H A D | spi-stm32.c | 290 * @dma_tx: dma channel for TX transfer 319 struct dma_chan *dma_tx; member 677 if (spi->cur_usedma && spi->dma_tx) in stm32f4_spi_disable() 678 dmaengine_terminate_async(spi->dma_tx); in stm32f4_spi_disable() 720 if (spi->cur_usedma && spi->dma_tx) in stm32h7_spi_disable() 721 dmaengine_terminate_async(spi->dma_tx); in stm32h7_spi_disable() 1277 if (spi->tx_buf && spi->dma_tx) { in stm32_spi_transfer_one_dma() 1279 dmaengine_slave_config(spi->dma_tx, &tx_dma_conf); in stm32_spi_transfer_one_dma() 1282 spi->dma_tx, xfer->tx_sg.sgl, in stm32_spi_transfer_one_dma() 1288 if ((spi->tx_buf && spi->dma_tx in stm32_spi_transfer_one_dma() [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/512x/ |
H 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()
|
/kernel/linux/linux-6.6/arch/powerpc/platforms/512x/ |
H 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()
|