Home
last modified time | relevance | path

Searched refs:rx_dma (Results 1 – 25 of 29) sorted by relevance

12

/linux/drivers/tty/serial/
H A Dsprd_serial.c135 struct sprd_uart_dma rx_dma; member
202 if (sp->rx_dma.enable) in sprd_stop_rx()
203 dmaengine_terminate_all(sp->rx_dma.chn); in sprd_stop_rx()
376 sp->rx_dma.virt = dma_alloc_coherent(sp->port.dev, SPRD_UART_RX_SIZE, in sprd_rx_alloc_buf()
377 &sp->rx_dma.phys_addr, GFP_KERNEL); in sprd_rx_alloc_buf()
378 if (!sp->rx_dma.virt) in sprd_rx_alloc_buf()
386 if (sp->rx_dma.virt) in sprd_rx_free_buf()
388 sp->rx_dma.virt, sp->rx_dma.phys_addr); in sprd_rx_free_buf()
389 sp->rx_dma.virt = NULL; in sprd_rx_free_buf()
403 return dmaengine_slave_config(sp->rx_dma.chn, &cfg); in sprd_rx_dma_config()
[all …]
/linux/drivers/spi/
H A Dspi-fsl-cpm.c82 if (mspi->rx_dma == mspi->dma_dummy_rx) in fsl_spi_cpm_bufs_start()
83 iowrite32be(mspi->rx_dma, &rx_bd->cbd_bufaddr); in fsl_spi_cpm_bufs_start()
85 iowrite32be(mspi->rx_dma + xfer_ofs, &rx_bd->cbd_bufaddr); in fsl_spi_cpm_bufs_start()
115 mspi->rx_dma = mspi->dma_dummy_rx; in fsl_spi_cpm_bufs()
148 mspi->rx_dma = dma_map_single(dev, mspi->rx, t->len, in fsl_spi_cpm_bufs()
150 if (dma_mapping_error(dev, mspi->rx_dma)) { in fsl_spi_cpm_bufs()
155 mspi->rx_dma = t->rx_dma; in fsl_spi_cpm_bufs()
184 dma_unmap_single(dev, mspi->rx_dma, t->len, DMA_FROM_DEVICE); in fsl_spi_cpm_bufs_complete()
H A Dspi-meson-spicc.c200 dma_addr_t rx_dma; member
245 t->rx_dma = dma_map_single(dev, t->rx_buf, t->len, DMA_FROM_DEVICE); in meson_spicc_dma_map()
246 if (dma_mapping_error(dev, t->rx_dma)) in meson_spicc_dma_map()
250 spicc->rx_dma = t->rx_dma; in meson_spicc_dma_map()
262 if (t->rx_dma) in meson_spicc_dma_unmap()
263 dma_unmap_single(dev, t->rx_dma, t->len, DMA_FROM_DEVICE); in meson_spicc_dma_unmap()
315 writel_relaxed(spicc->rx_dma, spicc->base + SPICC_DWADDR); in meson_spicc_setup_dma()
338 if (spicc->rx_dma) { in meson_spicc_setup_dma()
339 spicc->rx_dma += len; in meson_spicc_setup_dma()
H A Dspi-fsl-lib.h39 dma_addr_t rx_dma; member
H A Dspi-amlogic-spisg.c280 if (xfer->rx_buf || xfer->rx_dma) { in aml_spisg_setup_transfer()
357 } else if (xfer->rx_buf || xfer->rx_dma) { in aml_spisg_setup_transfer()
358 paddr = xfer->rx_dma; in aml_spisg_setup_transfer()
403 } else if (!xfer->rx_dma) { in aml_spisg_cleanup_transfer()
/linux/drivers/net/ethernet/amd/
H A Dau1000_eth.h46 struct rx_dma { struct
73 struct rx_dma *rx_dma_ring[NUM_RX_DMA];
H A Dau1000_eth.c636 aup->rx_dma_ring[i] = (struct rx_dma *) in au1000_setup_hw_rings()
637 (tx_base + 0x100 + sizeof(struct rx_dma) * i); in au1000_setup_hw_rings()
770 struct rx_dma *prxd; in au1000_rx()
/linux/drivers/net/ethernet/apple/
H A Dbmac.c62 volatile struct dbdma_regs __iomem *rx_dma; member
224 volatile struct dbdma_regs __iomem *rd = bp->rx_dma; in bmac_enable_and_reset_chip()
401 volatile struct dbdma_regs __iomem *rd = bp->rx_dma; in bmac_start_chip()
472 volatile struct dbdma_regs __iomem *rd = bp->rx_dma; in bmac_suspend()
603 volatile struct dbdma_regs __iomem *rd = bp->rx_dma; in bmac_init_rx_ring()
673 volatile struct dbdma_regs __iomem *rd = bp->rx_dma; in bmac_rxdma_intr()
1251 bp->rx_dma = ioremap(macio_resource_start(mdev, 2), macio_resource_len(mdev, 2)); in bmac_probe()
1252 if (!bp->rx_dma) in bmac_probe()
1304 iounmap(bp->rx_dma); in bmac_probe()
1332 volatile struct dbdma_regs __iomem *rd = bp->rx_dma; in bmac_close()
[all …]
H A Dmace.c48 volatile struct dbdma_regs __iomem *rx_dma; member
188 mp->rx_dma = ioremap(macio_resource_start(mdev, 2), 0x1000); in mace_probe()
189 if (mp->rx_dma == NULL) { in mace_probe()
262 iounmap(mp->rx_dma); in mace_probe()
292 iounmap(mp->rx_dma); in mace_remove()
435 volatile struct dbdma_regs __iomem *rd = mp->rx_dma; in mace_open()
505 volatile struct dbdma_regs __iomem *rd = mp->rx_dma; in mace_close()
812 volatile struct dbdma_regs __iomem *rd = mp->rx_dma; in mace_tx_timeout()
881 volatile struct dbdma_regs __iomem *rd = mp->rx_dma; in mace_rxdma_intr()
/linux/drivers/net/ethernet/agere/
H A Det131x.c1538 struct rxdma_regs __iomem *rx_dma = &adapter->regs->rxdma; in et131x_config_rx_dma_regs() local
1549 writel(upper_32_bits(rx_local->rx_status_bus), &rx_dma->dma_wb_base_hi); in et131x_config_rx_dma_regs()
1550 writel(lower_32_bits(rx_local->rx_status_bus), &rx_dma->dma_wb_base_lo); in et131x_config_rx_dma_regs()
1555 writel(upper_32_bits(rx_local->ps_ring_physaddr), &rx_dma->psr_base_hi); in et131x_config_rx_dma_regs()
1556 writel(lower_32_bits(rx_local->ps_ring_physaddr), &rx_dma->psr_base_lo); in et131x_config_rx_dma_regs()
1557 writel(rx_local->psr_entries - 1, &rx_dma->psr_num_des); in et131x_config_rx_dma_regs()
1558 writel(0, &rx_dma->psr_full_offset); in et131x_config_rx_dma_regs()
1560 psr_num_des = readl(&rx_dma->psr_num_des) & ET_RXDMA_PSR_NUM_DES_MASK; in et131x_config_rx_dma_regs()
1562 &rx_dma->psr_min_des); in et131x_config_rx_dma_regs()
1578 num_des = &rx_dma->fbr0_num_des; in et131x_config_rx_dma_regs()
[all …]
/linux/drivers/iio/adc/
H A Dad7944.c810 struct dma_chan *rx_dma; in ad7944_probe() local
831 rx_dma = devm_spi_offload_rx_stream_request_dma_chan(dev, in ad7944_probe()
833 if (IS_ERR(rx_dma)) in ad7944_probe()
834 return dev_err_probe(dev, PTR_ERR(rx_dma), in ad7944_probe()
846 indio_dev, rx_dma, IIO_BUFFER_DIRECTION_IN); in ad7944_probe()
H A Dad_sigma_delta.c814 struct dma_chan *rx_dma; in devm_ad_sd_setup_buffer_and_trigger() local
816 rx_dma = devm_spi_offload_rx_stream_request_dma_chan(dev, in devm_ad_sd_setup_buffer_and_trigger()
818 if (IS_ERR(rx_dma)) in devm_ad_sd_setup_buffer_and_trigger()
819 return dev_err_probe(dev, PTR_ERR(rx_dma), in devm_ad_sd_setup_buffer_and_trigger()
823 rx_dma, IIO_BUFFER_DIRECTION_IN); in devm_ad_sd_setup_buffer_and_trigger()
H A Dad4000.c854 struct dma_chan *rx_dma; in ad4000_spi_offload_setup() local
868 rx_dma = devm_spi_offload_rx_stream_request_dma_chan(dev, st->offload); in ad4000_spi_offload_setup()
869 if (IS_ERR(rx_dma)) in ad4000_spi_offload_setup()
870 return dev_err_probe(dev, PTR_ERR(rx_dma), in ad4000_spi_offload_setup()
873 ret = devm_iio_dmaengine_buffer_setup_with_handle(dev, indio_dev, rx_dma, in ad4000_spi_offload_setup()
H A Dad4030.c1385 struct dma_chan *rx_dma; in ad4030_spi_offload_setup() local
1397 rx_dma = devm_spi_offload_rx_stream_request_dma_chan(dev, st->offload); in ad4030_spi_offload_setup()
1398 if (IS_ERR(rx_dma)) in ad4030_spi_offload_setup()
1399 return dev_err_probe(dev, PTR_ERR(rx_dma), in ad4030_spi_offload_setup()
1402 return devm_iio_dmaengine_buffer_setup_with_handle(dev, indio_dev, rx_dma, in ad4030_spi_offload_setup()
H A Dad4695.c1696 struct dma_chan *rx_dma; in ad4695_probe_spi_offload() local
1743 rx_dma = devm_spi_offload_rx_stream_request_dma_chan(dev, st->offload); in ad4695_probe_spi_offload()
1744 if (IS_ERR(rx_dma)) in ad4695_probe_spi_offload()
1745 return dev_err_probe(dev, PTR_ERR(rx_dma), in ad4695_probe_spi_offload()
1789 rx_dma, IIO_BUFFER_DIRECTION_IN); in ad4695_probe_spi_offload()
H A Dad7768-1.c1777 struct dma_chan *rx_dma; in ad7768_spi_offload_probe() local
1790 rx_dma = devm_spi_offload_rx_stream_request_dma_chan(dev, st->offload); in ad7768_spi_offload_probe()
1791 if (IS_ERR(rx_dma)) in ad7768_spi_offload_probe()
1792 return dev_err_probe(dev, PTR_ERR(rx_dma), "failed to get offload RX DMA\n"); in ad7768_spi_offload_probe()
1794 ret = devm_iio_dmaengine_buffer_setup_with_handle(dev, indio_dev, rx_dma, in ad7768_spi_offload_probe()
H A Dad7380.c1842 struct dma_chan *rx_dma; in ad7380_probe_spi_offload() local
1871 rx_dma = devm_spi_offload_rx_stream_request_dma_chan(dev, st->offload); in ad7380_probe_spi_offload()
1872 if (IS_ERR(rx_dma)) in ad7380_probe_spi_offload()
1873 return dev_err_probe(dev, PTR_ERR(rx_dma), in ad7380_probe_spi_offload()
1877 rx_dma, IIO_BUFFER_DIRECTION_IN); in ad7380_probe_spi_offload()
/linux/drivers/net/ethernet/sis/
H A Dsis190.c275 dma_addr_t rx_dma; member
891 SIS_W32(RxDescStartAddr, tp->rx_dma); in sis190_hw_start()
1081 &tp->rx_dma, GFP_KERNEL); in sis190_open()
1104 tp->rx_dma); in sis190_open()
1172 tp->rx_dma); in sis190_close()
/linux/drivers/net/ethernet/natsemi/
H A Dnatsemi.c545 dma_addr_t rx_dma[RX_RING_SIZE]; member
1939 np->rx_dma[entry] = dma_map_single(&np->pci_dev->dev, in refill_rx()
1942 if (dma_mapping_error(&np->pci_dev->dev, np->rx_dma[entry])) { in refill_rx()
1947 np->rx_ring[entry].addr = cpu_to_le32(np->rx_dma[entry]); in refill_rx()
2033 dma_unmap_single(&np->pci_dev->dev, np->rx_dma[i], in drain_rx()
2358 np->rx_dma[entry], in netdev_rx()
2365 np->rx_dma[entry], in netdev_rx()
2370 np->rx_dma[entry], in netdev_rx()
/linux/drivers/scsi/mvsas/
H A Dmv_64xx.c319 mw32(MVS_RX_LO, mvi->rx_dma); in mvs_64xx_init()
320 mw32(MVS_RX_HI, (mvi->rx_dma >> 16) >> 16); in mvs_64xx_init()
H A Dmv_init.c110 mvi->rx, mvi->rx_dma); in mvs_free()
239 &mvi->rx_dma, GFP_KERNEL); in mvs_alloc()
H A Dmv_sas.h357 dma_addr_t rx_dma; member
/linux/drivers/tty/serial/8250/
H A D8250_dma.c82 p->dma->rx_dma(p); in dma_rx_complete()
H A D8250.h19 int (*rx_dma)(struct uart_8250_port *p); member
/linux/drivers/net/fddi/
H A Ddefza.h674 dma_addr_t rx_dma[FZA_RING_RX_SIZE]; member

12