/linux/drivers/tty/serial/ |
H A D | sprd_serial.c | 135 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 …]
|
H A D | msm_serial.c | 187 struct msm_dma rx_dma; member 298 dma = &msm_port->rx_dma; in msm_release_dma() 365 dma = &msm_port->rx_dma; in msm_request_rx_dma() 564 struct msm_dma *dma = &msm_port->rx_dma; in msm_complete_rx_dma() 622 struct msm_dma *dma = &msm_port->rx_dma; in msm_start_rx_dma() 709 struct msm_dma *dma = &msm_port->rx_dma; in msm_stop_rx() 956 struct msm_dma *dma = &msm_port->rx_dma; in msm_uart_irq() 1274 struct msm_dma *dma = &msm_port->rx_dma; in msm_set_termios()
|
/linux/drivers/spi/ |
H A D | spi-fsl-cpm.c | 82 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 D | spi-s3c64xx.c | 218 struct s3c64xx_spi_dma_data rx_dma; member 283 struct s3c64xx_spi_driver_data, rx_dma); in s3c64xx_spi_dmacb() 315 struct s3c64xx_spi_driver_data, rx_dma); in s3c64xx_prepare_dma() 386 sdd->rx_dma.ch = dma_request_chan(&sdd->pdev->dev, "rx"); in s3c64xx_spi_prepare_transfer() 387 if (IS_ERR(sdd->rx_dma.ch)) { in s3c64xx_spi_prepare_transfer() 389 sdd->rx_dma.ch = NULL; in s3c64xx_spi_prepare_transfer() 396 dma_release_channel(sdd->rx_dma.ch); in s3c64xx_spi_prepare_transfer() 398 sdd->rx_dma.ch = NULL; in s3c64xx_spi_prepare_transfer() 402 spi->dma_rx = sdd->rx_dma.ch; in s3c64xx_spi_prepare_transfer() 416 if (sdd->rx_dma.ch && sdd->tx_dma.ch) { in s3c64xx_spi_unprepare_transfer() [all …]
|
H A D | spi-mt65xx.c | 174 dma_addr_t rx_dma; member 614 writel((u32)(xfer->rx_dma & MTK_SPI_32BITS_MASK), in mtk_spi_setup_dma_addr() 618 writel((u32)(xfer->rx_dma >> 32), in mtk_spi_setup_dma_addr() 687 xfer->rx_dma = sg_dma_address(mdata->rx_sgl); in mtk_spi_dma_transfer() 800 xfer->rx_dma += mdata->xfer_len; in mtk_spi_interrupt_thread() 812 xfer->rx_dma = sg_dma_address(mdata->rx_sgl); in mtk_spi_interrupt_thread() 911 writel((u32)(mdata->rx_dma & MTK_SPI_32BITS_MASK), in mtk_spi_mem_setup_dma_xfer() 915 writel((u32)(mdata->rx_dma >> 32), in mtk_spi_mem_setup_dma_xfer() 1066 mdata->rx_dma = dma_map_single(mdata->dev, in mtk_spi_mem_exec_op() 1070 if (dma_mapping_error(mdata->dev, mdata->rx_dma)) { in mtk_spi_mem_exec_op() [all …]
|
H A D | spi-slave-mt27xx.c | 224 xfer->rx_dma = dma_map_single(dev, xfer->rx_buf, in mtk_spi_slave_dma_transfer() 226 if (dma_mapping_error(dev, xfer->rx_dma)) { in mtk_spi_slave_dma_transfer() 233 writel(xfer->rx_dma, mdata->base + SPIS_RX_DST_REG); in mtk_spi_slave_dma_transfer() 266 dma_unmap_single(dev, xfer->rx_dma, in mtk_spi_slave_dma_transfer() 349 dma_unmap_single(mdata->dev, trans->rx_dma, in mtk_spi_slave_interrupt()
|
H A D | spi-fsl-lib.h | 39 dma_addr_t rx_dma; member
|
/linux/drivers/net/ethernet/amd/ |
H A D | au1000_eth.h | 46 struct rx_dma { struct 73 struct rx_dma *rx_dma_ring[NUM_RX_DMA];
|
/linux/drivers/net/ethernet/apple/ |
H A D | bmac.c | 63 volatile struct dbdma_regs __iomem *rx_dma; member 225 volatile struct dbdma_regs __iomem *rd = bp->rx_dma; in bmac_enable_and_reset_chip() 402 volatile struct dbdma_regs __iomem *rd = bp->rx_dma; in bmac_start_chip() 473 volatile struct dbdma_regs __iomem *rd = bp->rx_dma; in bmac_suspend() 604 volatile struct dbdma_regs __iomem *rd = bp->rx_dma; in bmac_init_rx_ring() 674 volatile struct dbdma_regs __iomem *rd = bp->rx_dma; in bmac_rxdma_intr() 1307 bp->rx_dma = ioremap(macio_resource_start(mdev, 2), macio_resource_len(mdev, 2)); in bmac_probe() 1308 if (!bp->rx_dma) in bmac_probe() 1360 iounmap(bp->rx_dma); in bmac_probe() 1388 volatile struct dbdma_regs __iomem *rd = bp->rx_dma; in bmac_close() [all …]
|
H A D | mace.c | 48 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 D | et131x.c | 1538 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/net/fddi/ |
H A D | defza.c | 425 writel_o((fp->rx_dma[i] + 0x1000) >> 9, in fza_rx_init() 427 writel_o(fp->rx_dma[i] >> 9 | FZA_RING_OWN_FZA, in fza_rx_init() 693 dma = fp->rx_dma[i]; in fza_rx() 767 fp->rx_dma[i] = dma; in fza_rx() 1173 dma_unmap_single(fp->bdev, fp->rx_dma[i], in fza_open() 1177 fp->rx_dma[i] = 0; in fza_open() 1183 fp->rx_dma[i] = dma; in fza_open() 1256 dma_unmap_single(fp->bdev, fp->rx_dma[i], in fza_close() 1259 fp->rx_dma[i] = 0; in fza_close()
|
H A D | defza.h | 674 dma_addr_t rx_dma[FZA_RING_RX_SIZE]; member
|
/linux/drivers/atm/ |
H A D | eni.h | 81 void __iomem *rx_dma; /* RX DMA queue */ member
|
H A D | eni.c | 464 writel(dma[i*2],eni_dev->rx_dma+dma_wr*8); in do_rx_dma() 465 writel(dma[i*2+1],eni_dev->rx_dma+dma_wr*8+4); in do_rx_dma() 1835 eni_dev->rx_dma = eni_dev->ram+NR_VCI*16; in eni_start() 1836 eni_dev->tx_dma = eni_dev->rx_dma+NR_DMA_RX*8; in eni_start() 1840 eni_dev->vci,eni_dev->rx_dma,eni_dev->tx_dma, in eni_start()
|
/linux/drivers/net/can/peak_canfd/ |
H A D | peak_pciefd_main.c | 315 struct pciefd_rx_dma *rx_dma = priv->rx_dma_vaddr; in pciefd_irq_handler() local 322 priv->irq_status = le32_to_cpu(rx_dma->irq_status); in pciefd_irq_handler() 330 rx_dma->msg, in pciefd_irq_handler()
|
/linux/drivers/net/ethernet/sis/ |
H A D | sis190.c | 275 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 D | natsemi.c | 545 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/i2c/busses/ |
H A D | i2c-qcom-geni.c | 422 dma_addr_t rx_dma = 0; in geni_i2c_rx_one_msg() local 438 if (dma_buf && geni_se_rx_dma_prep(se, dma_buf, len, &rx_dma)) { in geni_i2c_rx_one_msg() 444 gi2c->dma_addr = rx_dma; in geni_i2c_rx_one_msg()
|
/linux/drivers/scsi/mvsas/ |
H A D | mv_64xx.c | 319 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 D | mv_sas.h | 357 dma_addr_t rx_dma; member
|
H A D | mv_94xx.c | 457 mw32(MVS_RX_LO, mvi->rx_dma); in mvs_94xx_init() 458 mw32(MVS_RX_HI, (mvi->rx_dma >> 16) >> 16); in mvs_94xx_init()
|
/linux/drivers/tty/serial/8250/ |
H A D | 8250.h | 19 int (*rx_dma)(struct uart_8250_port *p); member
|
H A D | 8250_dma.c | 82 p->dma->rx_dma(p); in dma_rx_complete()
|
H A D | 8250_omap.c | 763 up->dma->rx_dma(up); in omap_8250_startup() 839 up->dma->rx_dma(up); in omap_8250_unthrottle() 1564 dma->rx_dma = omap_8250_rx_dma; in omap8250_probe()
|