Home
last modified time | relevance | path

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

12

/linux/drivers/spi/
H A Dspi-uniphier.c353 if ((!host->dma_tx && !host->dma_rx) in uniphier_spi_can_dma()
354 || (!host->dma_tx && t->tx_buf) in uniphier_spi_can_dma()
439 dmaengine_slave_config(host->dma_tx, &txconf); in uniphier_spi_transfer_one_dma()
442 host->dma_tx, in uniphier_spi_transfer_one_dma()
455 dma_async_issue_pending(host->dma_tx); in uniphier_spi_transfer_one_dma()
587 dmaengine_terminate_async(host->dma_tx); in uniphier_spi_handle_err()
704 host->dma_tx = dma_request_chan(&pdev->dev, "tx"); in uniphier_spi_probe()
705 if (IS_ERR_OR_NULL(host->dma_tx)) { in uniphier_spi_probe()
706 if (PTR_ERR(host->dma_tx) == -EPROBE_DEFER) in uniphier_spi_probe()
709 host->dma_tx = NULL; in uniphier_spi_probe()
[all …]
H A Dspi-spacemit-k1.c251 chan = drv_data->host->dma_tx; in k1_spi_dma_prep()
292 dmaengine_terminate_sync(host->dma_tx); in k1_spi_dma_one()
313 dma_async_issue_pending(host->dma_tx); in k1_spi_dma_one()
465 dmaengine_terminate_sync(host->dma_tx); in k1_spi_handle_err()
631 host->dma_tx = chan; in k1_spi_dma_setup()
635 dma_release_channel(host->dma_tx); in k1_spi_dma_setup()
636 host->dma_tx = NULL; in k1_spi_dma_setup()
659 dma_release_channel(host->dma_tx); in k1_spi_dma_cleanup()
660 host->dma_tx = NULL; in k1_spi_dma_cleanup()
H A Dspi-rzv2h-rspi.c237 if (!ctlr->dma_tx || !ctlr->dma_rx) in rzv2h_rspi_can_dma()
340 tx_desc = rzv2h_rspi_setup_dma_channel(rspi, rspi->controller->dma_tx, in rzv2h_rspi_transfer_dma()
365 dma_async_issue_pending(rspi->controller->dma_tx); in rzv2h_rspi_transfer_dma()
370 dmaengine_synchronize(rspi->controller->dma_tx); in rzv2h_rspi_transfer_dma()
374 dmaengine_terminate_sync(rspi->controller->dma_tx); in rzv2h_rspi_transfer_dma()
781 controller->dma_tx = devm_dma_request_chan(dev, "tx"); in rzv2h_rspi_probe()
782 if (IS_ERR(controller->dma_tx)) { in rzv2h_rspi_probe()
783 ret = dev_warn_probe(dev, PTR_ERR(controller->dma_tx), in rzv2h_rspi_probe()
787 controller->dma_tx = NULL; in rzv2h_rspi_probe()
H A Dspi-sh-msiof.c674 dma_sync_single_for_device(p->ctlr->dma_tx->device->dev, in sh_msiof_dma_once()
676 desc_tx = dmaengine_prep_slave_single(p->ctlr->dma_tx, in sh_msiof_dma_once()
714 dma_async_issue_pending(p->ctlr->dma_tx); in sh_msiof_dma_once()
764 dmaengine_terminate_sync(p->ctlr->dma_tx); in sh_msiof_dma_once()
850 while (ctlr->dma_tx && len > 15) { in sh_msiof_transfer_one()
1123 ctlr->dma_tx = sh_msiof_request_dma_chan(dev, DMA_MEM_TO_DEV, in sh_msiof_request_dma()
1125 if (!ctlr->dma_tx) in sh_msiof_request_dma()
1141 tx_dev = ctlr->dma_tx->device->dev; in sh_msiof_request_dma()
1165 dma_release_channel(ctlr->dma_tx); in sh_msiof_request_dma()
1166 ctlr->dma_tx = NULL; in sh_msiof_request_dma()
[all …]
H A Dspi-stm32.c335 * @dma_tx: dma channel for TX transfer
373 struct dma_chan *dma_tx; member
862 if (spi->cur_usedma && spi->dma_tx) in stm32fx_spi_disable()
863 dmaengine_terminate_async(spi->dma_tx); in stm32fx_spi_disable()
905 if (spi->cur_usedma && spi->dma_tx) in stm32h7_spi_disable()
906 dmaengine_terminate_async(spi->dma_tx); in stm32h7_spi_disable()
1675 if (spi->tx_buf && spi->dma_tx) { in stm32_spi_transfer_one_dma()
1676 stm32_spi_dma_config(spi, spi->dma_tx, &tx_dma_conf, DMA_MEM_TO_DEV); in stm32_spi_transfer_one_dma()
1677 dmaengine_slave_config(spi->dma_tx, &tx_dma_conf); in stm32_spi_transfer_one_dma()
1678 tx_dma_desc = dmaengine_prep_slave_sg(spi->dma_tx, xfer->tx_sg.sgl, in stm32_spi_transfer_one_dma()
[all …]
H A Dspi-atcspi200.c279 chan = spi->host->dma_tx; in atcspi_dma_config()
326 dma_ch = spi->host->dma_tx; in atcspi_dma_trans()
506 spi->host->dma_tx = devm_dma_request_chan(spi->dev, "tx"); in atcspi_configure_dma()
507 if (IS_ERR(spi->host->dma_tx)) in atcspi_configure_dma()
508 return PTR_ERR(spi->host->dma_tx); in atcspi_configure_dma()
H A Dspi-imx.c1397 if (controller->dma_tx) { in spi_imx_sdma_exit()
1398 dma_release_channel(controller->dma_tx); in spi_imx_sdma_exit()
1399 controller->dma_tx = NULL; in spi_imx_sdma_exit()
1411 controller->dma_tx = dma_request_chan(dev, "tx"); in spi_imx_sdma_init()
1412 if (IS_ERR(controller->dma_tx)) { in spi_imx_sdma_init()
1413 ret = PTR_ERR(controller->dma_tx); in spi_imx_sdma_init()
1415 controller->dma_tx = NULL; in spi_imx_sdma_init()
1470 struct device *tx_dev = spi_imx->controller->dma_tx->device->dev; in spi_imx_dma_unmap()
1529 struct device *tx_dev = controller->dma_tx->device->dev; in spi_imx_dma_map()
1751 desc_tx = dmaengine_prep_slave_single(controller->dma_tx, dma_data->dma_tx_addr, in spi_imx_dma_submit()
[all …]
H A Dspi-dw-dma.c113 struct dw_dma_slave dma_tx = { .dst_id = 1 }, *tx = &dma_tx; in dw_spi_dma_init_mfld() local
143 dws->ctlr->dma_tx = dws->txchan; in dw_spi_dma_init_mfld()
187 dws->ctlr->dma_tx = dws->txchan; in dw_spi_dma_init_generic()
/linux/arch/powerpc/platforms/512x/
H A Dmpc512x_lpbfifo.c169 struct dma_async_tx_descriptor *dma_tx = NULL; in mpc512x_lpbfifo_kick() local
257 dma_tx = dmaengine_prep_slave_sg(lpbfifo.chan, &sg, in mpc512x_lpbfifo_kick()
259 if (!dma_tx) { in mpc512x_lpbfifo_kick()
263 dma_tx->callback = mpc512x_lpbfifo_callback; in mpc512x_lpbfifo_kick()
264 dma_tx->callback_param = NULL; in mpc512x_lpbfifo_kick()
313 cookie = dma_tx->tx_submit(dma_tx); in mpc512x_lpbfifo_kick()
/linux/Documentation/devicetree/bindings/net/
H A Didt,3243x-emac.yaml28 - const: dma_tx
65 reg-names = "emac", "dma_rx", "dma_tx";
/linux/drivers/mtd/nand/raw/
H A 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/Documentation/devicetree/bindings/serial/
H A Dbrcm,bcm7271-uart.yaml40 - const: dma_tx
90 reg-names = "uart", "dma_arb", "dma_rx", "dma_tx", "dma_intr2";
/linux/drivers/net/ethernet/samsung/sxgbe/
H A 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()
H A Dsxgbe_dma.h24 int pbl, dma_addr_t dma_tx, dma_addr_t dma_rx,
H A Dsxgbe_main.c333 priv->hw->desc->init_tx_desc(&priv->txq[j]->dma_tx[i]); in sxgbe_clear_descriptors()
404 tx_ring->dma_tx = dma_alloc_coherent(dev, in init_tx_ring()
407 if (!tx_ring->dma_tx) in init_tx_ring()
433 tx_ring->dma_tx, tx_ring->dma_tx_phy); in init_tx_ring()
549 tx_ring->dma_tx, tx_ring->dma_tx_phy); in free_tx_ring()
617 struct sxgbe_tx_norm_desc *tdesc = txqueue->dma_tx + dma_desc; in tx_free_ring_skbufs()
749 p = tqueue->dma_tx + entry; in sxgbe_tx_queue_clean()
1316 tx_desc = tqueue->dma_tx + entry; in sxgbe_xmit()
1341 first_desc = tqueue->dma_tx + entry; in sxgbe_xmit()
1363 tx_desc = tqueue->dma_tx + entry; in sxgbe_xmit()
H A Dsxgbe_common.h379 struct sxgbe_tx_norm_desc *dma_tx; member
/linux/Documentation/devicetree/bindings/sound/
H A Drenesas,rz-ssi.yaml38 - const: dma_tx
102 interrupt-names = "int_req", "dma_rx", "dma_tx";
/linux/drivers/net/ethernet/calxeda/
H A Dxgmac.c359 struct xgmac_dma_desc *dma_tx; member
747 priv->dma_tx = dma_alloc_coherent(priv->device, in xgmac_dma_desc_rings_init()
752 if (!priv->dma_tx) in xgmac_dma_desc_rings_init()
757 priv->dma_rx, priv->dma_tx, in xgmac_dma_desc_rings_init()
768 desc_init_tx_desc(priv->dma_tx, DMA_TX_RING_SZ); in xgmac_dma_desc_rings_init()
819 p = priv->dma_tx + i; in xgmac_free_tx_skbufs()
840 if (priv->dma_tx) { in xgmac_free_dma_desc_rings()
843 priv->dma_tx, priv->dma_tx_phy); in xgmac_free_dma_desc_rings()
844 priv->dma_tx = NULL; in xgmac_free_dma_desc_rings()
868 struct xgmac_dma_desc *p = priv->dma_tx + entry; in xgmac_tx_complete()
[all …]
/linux/drivers/i2c/busses/
H A Di2c-sh_mobile.c136 struct dma_chan *dma_tx; member
449 ? pd->dma_rx : pd->dma_tx; in sh_mobile_i2c_cleanup_dma()
512 struct dma_chan *chan = read ? pd->dma_rx : pd->dma_tx; in sh_mobile_i2c_xfer_dma()
522 chan = pd->dma_tx = sh_mobile_i2c_request_dma_chan(pd->dev, DMA_MEM_TO_DEV, in sh_mobile_i2c_xfer_dma()
815 if (!IS_ERR(pd->dma_tx)) { in sh_mobile_i2c_release_dma()
816 dma_release_channel(pd->dma_tx); in sh_mobile_i2c_release_dma()
817 pd->dma_tx = ERR_PTR(-EPROBE_DEFER); in sh_mobile_i2c_release_dma()
920 pd->dma_rx = pd->dma_tx = ERR_PTR(-EPROBE_DEFER); in sh_mobile_i2c_probe()
H A Di2c-rcar.c164 struct dma_chan *dma_tx; member
452 ? priv->dma_rx : priv->dma_tx; in rcar_i2c_cleanup_dma()
487 struct dma_chan *chan = read ? priv->dma_rx : priv->dma_tx; in rcar_i2c_dma()
866 chan = read ? priv->dma_rx : priv->dma_tx; in rcar_i2c_request_dma()
876 priv->dma_tx = chan; in rcar_i2c_request_dma()
881 if (!IS_ERR(priv->dma_tx)) { in rcar_i2c_release_dma()
882 dma_release_channel(priv->dma_tx); in rcar_i2c_release_dma()
883 priv->dma_tx = ERR_PTR(-EPROBE_DEFER); in rcar_i2c_release_dma()
1168 priv->dma_rx = priv->dma_tx = ERR_PTR(-EPROBE_DEFER); in rcar_i2c_probe()
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dring_mode.c30 desc = tx_q->dma_tx + entry; in jumbo_frm()
60 desc = tx_q->dma_tx + entry; in jumbo_frm()
H A Dchain_mode.c28 desc = tx_q->dma_tx + entry; in jumbo_frm()
52 desc = tx_q->dma_tx + entry; in jumbo_frm()
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A Ddma.c504 size = (direction == DMA_TX) ? (di->ntxd * ddlen) : (di->nrxd * ddlen); in dma64_alloc()
508 if (direction == DMA_TX) { in dma64_alloc()
669 if (!_dma_alloc(di, DMA_TX)) in dma_attach()
776 if (direction == DMA_TX) in _dma_ddtable_init()
784 if (direction == DMA_TX) { in _dma_ddtable_init()
803 if (direction == DMA_TX) { in _dma_ddtable_init()
1159 _dma_ddtable_init(di, DMA_TX, di->txdpa); in dma_txinit()
1169 _dma_ddtable_init(di, DMA_TX, di->txdpa); in dma_txinit()
/linux/drivers/crypto/
H A Dsa2ul.h192 * @dma_tx: Pointer to DMA TX channel
210 struct dma_chan *dma_tx; member
/linux/drivers/net/ethernet/broadcom/
H A Dsb1250-mac.c550 * txrx - Identifies DMA_TX or DMA_RX for channel direction
651 int_pktcnt = (txrx == DMA_TX) ? int_pktcnt_tx : int_pktcnt_rx; in sbdma_initctx()
658 int_timeout = (txrx == DMA_TX) ? int_timeout_tx : int_timeout_rx; in sbdma_initctx()
675 * rxtx - DMA_RX or DMA_TX depending on what type of channel
1340 sbdma_initctx(&(s->sbm_txdma),s,0,DMA_TX,SBMAC_MAX_TXDESCR); in sbmac_initctx()
1509 sbdma_channel_start(&(s->sbm_txdma), DMA_TX); in sbmac_channel_start()

12