Home
last modified time | relevance | path

Searched refs:tx_dma (Results 1 – 25 of 34) sorted by relevance

12

/drivers/spi/
Dspi-fsl-cpm.c85 if (mspi->tx_dma == mspi->dma_dummy_tx) in fsl_spi_cpm_bufs_start()
86 out_be32(&tx_bd->cbd_bufaddr, mspi->tx_dma); in fsl_spi_cpm_bufs_start()
88 out_be32(&tx_bd->cbd_bufaddr, mspi->tx_dma + xfer_ofs); in fsl_spi_cpm_bufs_start()
112 mspi->tx_dma = mspi->dma_dummy_tx; in fsl_spi_cpm_bufs()
124 mspi->tx_dma = dma_map_single(dev, nonconst_tx, t->len, in fsl_spi_cpm_bufs()
126 if (dma_mapping_error(dev, mspi->tx_dma)) { in fsl_spi_cpm_bufs()
131 mspi->tx_dma = t->tx_dma; in fsl_spi_cpm_bufs()
158 dma_unmap_single(dev, mspi->tx_dma, t->len, DMA_TO_DEVICE); in fsl_spi_cpm_bufs()
168 dma_unmap_single(dev, mspi->tx_dma, t->len, DMA_TO_DEVICE); in fsl_spi_cpm_bufs_complete()
Dspi-s3c64xx.c201 struct s3c64xx_spi_dma_data tx_dma; member
269 struct s3c64xx_spi_driver_data, tx_dma); in s3c64xx_spi_dmacb()
309 struct s3c64xx_spi_driver_data, tx_dma); in prepare_dma()
310 config.direction = sdd->tx_dma.direction; in prepare_dma()
313 sdd->ops->config((enum dma_ch)sdd->tx_dma.ch, &config); in prepare_dma()
338 sdd->tx_dma.ch = (void *)sdd->ops->request(sdd->tx_dma.dmach, &req, dev, "tx"); in acquire_dma()
362 sdd->ops->release((enum dma_ch)sdd->tx_dma.ch, &s3c64xx_spi_dma_client); in s3c64xx_spi_unprepare_transfer()
394 struct s3c64xx_spi_driver_data, tx_dma); in prepare_dma()
438 sdd->tx_dma.ch = dma_request_slave_channel_compat(mask, filter, in s3c64xx_spi_prepare_transfer()
439 (void*)sdd->tx_dma.dmach, dev, "tx"); in s3c64xx_spi_prepare_transfer()
[all …]
Dspi-atmel.c584 as->dma.sgtx.dma_address = xfer->tx_dma + xfer->len - *plen; in atmel_spi_next_xfer_dma_submit()
621 xfer, xfer->len, xfer->tx_buf, xfer->tx_dma, in atmel_spi_next_xfer_dma_submit()
655 dma_addr_t *tx_dma, in atmel_spi_next_xfer_data() argument
672 *tx_dma = xfer->tx_dma + xfer->len - *plen; in atmel_spi_next_xfer_data()
674 *tx_dma = as->buffer_dma; in atmel_spi_next_xfer_data()
696 dma_addr_t tx_dma, rx_dma; in atmel_spi_pdc_next_xfer() local
711 atmel_spi_next_xfer_data(master, xfer, &tx_dma, &rx_dma, &len); in atmel_spi_pdc_next_xfer()
715 spi_writel(as, TPR, tx_dma); in atmel_spi_pdc_next_xfer()
724 xfer, xfer->len, xfer->tx_buf, xfer->tx_dma, in atmel_spi_pdc_next_xfer()
750 atmel_spi_next_xfer_data(master, xfer, &tx_dma, &rx_dma, &len); in atmel_spi_pdc_next_xfer()
[all …]
Dspi-pxa2xx-pxadma.c61 return drv_data->rx_dma && drv_data->tx_dma; in pxa2xx_spi_map_dma_buffers()
87 drv_data->tx_dma = dma_map_single(dev, drv_data->tx, in pxa2xx_spi_map_dma_buffers()
89 if (dma_mapping_error(dev, drv_data->tx_dma)) in pxa2xx_spi_map_dma_buffers()
96 dma_unmap_single(dev, drv_data->tx_dma, in pxa2xx_spi_map_dma_buffers()
115 dma_unmap_single(dev, drv_data->tx_dma, in pxa2xx_spi_unmap_dma_buffers()
312 DSADR(drv_data->tx_channel) = drv_data->tx_dma; in pxa2xx_spi_dma_prepare()
Dspi-dw-mid.c122 if (dws->tx_dma) in mid_spi_dma_transfer()
146 dws->tx_sgl.dma_address = dws->tx_dma; in mid_spi_dma_transfer()
Dspi-davinci.c612 t->tx_dma = dma_map_single(&spi->dev, buf, in davinci_spi_bufs()
614 if (!t->tx_dma) { in davinci_spi_bufs()
618 sg_dma_address(&sg_tx) = t->tx_dma; in davinci_spi_bufs()
668 dma_unmap_single(&spi->dev, t->tx_dma, in davinci_spi_bufs()
695 dma_unmap_single(&spi->dev, t->tx_dma, t->len, DMA_TO_DEVICE); in davinci_spi_bufs()
Dspi-dw.c253 if (dws->cur_transfer->tx_dma) in map_dma_buffers()
254 dws->tx_dma = dws->cur_transfer->tx_dma; in map_dma_buffers()
425 dws->tx_dma = transfer->tx_dma; in pump_transfers()
Dspi-fsl-lib.h45 dma_addr_t tx_dma; member
Dspi-omap2-mcspi.c342 sg_dma_address(&sg) = xfer->tx_dma; in omap2_mcspi_tx_dma()
518 dma_unmap_single(mcspi->dev, xfer->tx_dma, xfer->len, in omap2_mcspi_txrx_dma()
1098 t->tx_dma = dma_map_single(mcspi->dev, (void *) tx_buf, in omap2_mcspi_transfer_one_message()
1100 if (dma_mapping_error(mcspi->dev, t->tx_dma)) { in omap2_mcspi_transfer_one_message()
1113 dma_unmap_single(mcspi->dev, t->tx_dma, in omap2_mcspi_transfer_one_message()
Dspi-bfin5xx.c96 dma_addr_t tx_dma; member
374 if (drv_data->tx_dma != 0xFFFF) in bfin_spi_giveback()
640 drv_data->tx_dma = transfer->tx_dma; in bfin_spi_pump_transfers()
716 if (drv_data->tx_dma == 0xFFFF) { in bfin_spi_pump_transfers()
Dspi-pxa2xx.h81 dma_addr_t tx_dma; member
Dspi-dw.h132 dma_addr_t tx_dma; member
Dspi-au1550.c365 dma_tx_addr = t->tx_dma; in au1550_spi_dma_txrxb()
377 if (t->tx_dma == 0) { /* if DMA_ADDR_INVALID, map it */ in au1550_spi_dma_txrxb()
452 if (t->tx_buf && t->tx_dma == 0 ) in au1550_spi_dma_txrxb()
Dspi-pxa2xx.c636 || transfer->rx_dma || transfer->tx_dma) { in pump_transfers()
667 drv_data->tx_dma = transfer->tx_dma; in pump_transfers()
/drivers/net/ethernet/
Ds6gmac.c348 u32 tx_dma; member
411 s6dmac_pending_count(pd->tx_dma, pd->tx_chan)) { in s6gmac_tx_interrupt()
414 if (!s6dmac_fifo_full(pd->tx_dma, pd->tx_chan)) in s6gmac_tx_interrupt()
519 if (s6dmac_termcnt_irq(pd->tx_dma, pd->tx_chan)) in s6gmac_interrupt()
785 if (!s6dmac_fifo_full(pd->tx_dma, pd->tx_chan)) in s6gmac_adjust_link()
846 s6dmac_disable_chan(pd->tx_dma, pd->tx_chan); in s6gmac_init_dmac()
848 s6dmac_disable_error_irqs(pd->tx_dma, 1 << S6_HIFDMA_GMACTX); in s6gmac_init_dmac()
864 s6dmac_put_fifo_cache(pd->tx_dma, pd->tx_chan, in s6gmac_tx()
866 if (s6dmac_fifo_full(pd->tx_dma, pd->tx_chan)) in s6gmac_tx()
901 s6dmac_enable_chan(pd->tx_dma, pd->tx_chan, in s6gmac_open()
[all …]
/drivers/net/ethernet/amd/
Dau1000_eth.h57 struct tx_dma { struct
92 struct tx_dma *tx_dma_ring[NUM_TX_DMA];
Dau1000_eth.c553 aup->tx_dma_ring[i] = (struct tx_dma *) in au1000_setup_hw_rings()
554 (tx_base + sizeof(struct tx_dma) * i); in au1000_setup_hw_rings()
805 struct tx_dma *ptxd; in au1000_tx_ack()
904 struct tx_dma *ptxd; in au1000_tx()
/drivers/mmc/host/
Dmmc_spi.c534 t->tx_dma = t->rx_dma = host->data_dma; in mmc_spi_command_send()
599 t->tx_dma = dma + offsetof(struct scratch, data_token); in mmc_spi_setup_data_message()
609 t->tx_dma = host->ones_dma; in mmc_spi_setup_data_message()
620 t->tx_dma = dma + offsetof(struct scratch, crc_val); in mmc_spi_setup_data_message()
623 t->tx_dma = host->ones_dma; in mmc_spi_setup_data_message()
651 t->tx_dma = host->ones_dma; in mmc_spi_setup_data_message()
753 t->tx_dma += t->len; in mmc_spi_writeblock()
934 t->tx_dma = dma_addr + sg->offset; in mmc_spi_data_do()
1014 host->early_status.tx_dma = host->early_status.rx_dma; in mmc_spi_data_do()
1438 host->status.tx_dma = host->ones_dma; in mmc_spi_probe()
/drivers/net/ethernet/apple/
Dmace.c46 volatile struct dbdma_regs __iomem *tx_dma; member
179 mp->tx_dma = ioremap(macio_resource_start(mdev, 1), 0x1000); in mace_probe()
180 if (mp->tx_dma == NULL) { in mace_probe()
263 iounmap(mp->tx_dma); in mace_probe()
292 iounmap(mp->tx_dma); in mace_remove()
433 volatile struct dbdma_regs __iomem *td = mp->tx_dma; in mace_open()
503 volatile struct dbdma_regs __iomem *td = mp->tx_dma; in mace_close()
534 volatile struct dbdma_regs __iomem *td = mp->tx_dma; in mace_xmit_start()
664 volatile struct dbdma_regs __iomem *td = mp->tx_dma; in mace_interrupt()
810 volatile struct dbdma_regs __iomem *td = mp->tx_dma; in mace_tx_timeout()
Dbmac.c65 volatile struct dbdma_regs __iomem *tx_dma; member
230 volatile struct dbdma_regs __iomem *td = bp->tx_dma; in bmac_enable_and_reset_chip()
478 volatile struct dbdma_regs __iomem *td = bp->tx_dma; in bmac_suspend()
591 volatile struct dbdma_regs __iomem *td = bp->tx_dma; in bmac_init_tx_ring()
647 volatile struct dbdma_regs __iomem *td = bp->tx_dma; in bmac_transmit_packet()
780 if (cp == bus_to_virt(in_le32(&bp->tx_dma->cmdptr))) in bmac_txdma_intr()
1314 bp->tx_dma = ioremap(macio_resource_start(mdev, 1), macio_resource_len(mdev, 1)); in bmac_probe()
1315 if (!bp->tx_dma) in bmac_probe()
1374 iounmap(bp->tx_dma); in bmac_probe()
1401 volatile struct dbdma_regs __iomem *td = bp->tx_dma; in bmac_close()
[all …]
/drivers/tty/serial/
Difx6x60.h88 dma_addr_t tx_dma; member
Difx6x60.c774 ifx_dev->tx_dma = ifx_dev->tx_bus; in ifx_spi_io()
776 ifx_dev->spi_xfer.tx_dma = ifx_dev->tx_dma; in ifx_spi_io()
780 ifx_dev->tx_dma = (dma_addr_t)0; in ifx_spi_io()
782 ifx_dev->spi_xfer.tx_dma = (dma_addr_t)0; in ifx_spi_io()
/drivers/atm/
Deni.h81 void __iomem *tx_dma; /* TX DMA queue */ member
/drivers/mtd/devices/
Dmtd_dataflash.c155 struct spi_transfer x = { .tx_dma = 0, }; in dataflash_erase()
241 struct spi_transfer x[2] = { { .tx_dma = 0, }, }; in dataflash_read()
307 struct spi_transfer x[2] = { { .tx_dma = 0, }, }; in dataflash_write()
/drivers/net/ethernet/sis/
Dsis190.c276 dma_addr_t tx_dma; member
887 SIS_W32(TxDescStartAddr, tp->tx_dma); in sis190_hw_start()
1074 tp->TxDescRing = pci_alloc_consistent(pdev, TX_RING_BYTES, &tp->tx_dma); in sis190_open()
1102 pci_free_consistent(pdev, TX_RING_BYTES, tp->TxDescRing, tp->tx_dma); in sis190_open()
1164 pci_free_consistent(pdev, TX_RING_BYTES, tp->TxDescRing, tp->tx_dma); in sis190_close()

12