/openbmc/linux/drivers/tty/serial/ |
H A D | sprd_serial.c | 126 struct sprd_uart_dma rx_dma; member 180 if (sp->rx_dma.enable) in sprd_stop_rx() 181 dmaengine_terminate_all(sp->rx_dma.chn); in sprd_stop_rx() 354 sp->rx_dma.virt = dma_alloc_coherent(sp->port.dev, SPRD_UART_RX_SIZE, in sprd_rx_alloc_buf() 355 &sp->rx_dma.phys_addr, GFP_KERNEL); in sprd_rx_alloc_buf() 356 if (!sp->rx_dma.virt) in sprd_rx_alloc_buf() 364 if (sp->rx_dma.virt) in sprd_rx_free_buf() 366 sp->rx_dma.virt, sp->rx_dma.phys_addr); in sprd_rx_free_buf() 367 sp->rx_dma.virt = NULL; in sprd_rx_free_buf() 381 return dmaengine_slave_config(sp->rx_dma.chn, &cfg); in sprd_rx_dma_config() [all …]
|
H A D | msm_serial.c | 181 struct msm_dma rx_dma; member 283 dma = &msm_port->rx_dma; in msm_release_dma() 350 dma = &msm_port->rx_dma; in msm_request_rx_dma() 547 struct msm_dma *dma = &msm_port->rx_dma; in msm_complete_rx_dma() 607 struct msm_dma *dma = &msm_port->rx_dma; in msm_start_rx_dma() 694 struct msm_dma *dma = &msm_port->rx_dma; in msm_stop_rx() 949 struct msm_dma *dma = &msm_port->rx_dma; in msm_uart_irq() 1265 struct msm_dma *dma = &msm_port->rx_dma; in msm_set_termios()
|
/openbmc/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() 121 mspi->rx_dma = mspi->dma_dummy_rx; in fsl_spi_cpm_bufs() 154 mspi->rx_dma = dma_map_single(dev, mspi->rx, t->len, in fsl_spi_cpm_bufs() 156 if (dma_mapping_error(dev, mspi->rx_dma)) { in fsl_spi_cpm_bufs() 161 mspi->rx_dma = t->rx_dma; in fsl_spi_cpm_bufs() 190 dma_unmap_single(dev, mspi->rx_dma, t->len, DMA_FROM_DEVICE); in fsl_spi_cpm_bufs_complete()
|
H A D | spi-s3c64xx.c | 188 * @rx_dma: Local receive DMA data (e.g. chan and direction) 212 struct s3c64xx_spi_dma_data rx_dma; member 277 struct s3c64xx_spi_driver_data, rx_dma); in s3c64xx_spi_dmacb() 309 struct s3c64xx_spi_driver_data, rx_dma); in prepare_dma() 380 sdd->rx_dma.ch = dma_request_chan(&sdd->pdev->dev, "rx"); in s3c64xx_spi_prepare_transfer() 381 if (IS_ERR(sdd->rx_dma.ch)) { in s3c64xx_spi_prepare_transfer() 383 sdd->rx_dma.ch = NULL; in s3c64xx_spi_prepare_transfer() 390 dma_release_channel(sdd->rx_dma.ch); in s3c64xx_spi_prepare_transfer() 392 sdd->rx_dma.ch = NULL; in s3c64xx_spi_prepare_transfer() 396 spi->dma_rx = sdd->rx_dma.ch; in s3c64xx_spi_prepare_transfer() [all …]
|
H A D | spi-atmel.c | 836 xfer->rx_buf, (unsigned long long)xfer->rx_dma); in atmel_spi_next_xfer_dma_submit() 867 dma_addr_t *rx_dma, in atmel_spi_next_xfer_data() argument 870 *rx_dma = xfer->rx_dma + xfer->len - *plen; in atmel_spi_next_xfer_data() 933 dma_addr_t tx_dma, rx_dma; in atmel_spi_pdc_next_xfer() local 938 atmel_spi_next_xfer_data(host, xfer, &tx_dma, &rx_dma, &len); in atmel_spi_pdc_next_xfer() 941 spi_writel(as, RPR, rx_dma); in atmel_spi_pdc_next_xfer() 953 (unsigned long long)xfer->rx_dma); in atmel_spi_pdc_next_xfer() 957 atmel_spi_next_xfer_data(host, xfer, &tx_dma, &rx_dma, &len); in atmel_spi_pdc_next_xfer() 960 spi_writel(as, RNPR, rx_dma); in atmel_spi_pdc_next_xfer() 972 (unsigned long long)xfer->rx_dma); in atmel_spi_pdc_next_xfer() [all …]
|
H A D | spi-mt65xx.c | 154 * @rx_dma: DMA start for SPI-MEM RX 173 dma_addr_t rx_dma; member 613 writel((u32)(xfer->rx_dma & MTK_SPI_32BITS_MASK), in mtk_spi_setup_dma_addr() 617 writel((u32)(xfer->rx_dma >> 32), in mtk_spi_setup_dma_addr() 686 xfer->rx_dma = sg_dma_address(mdata->rx_sgl); in mtk_spi_dma_transfer() 813 trans->rx_dma += mdata->xfer_len; in mtk_spi_interrupt() 825 trans->rx_dma = sg_dma_address(mdata->rx_sgl); in mtk_spi_interrupt() 903 writel((u32)(mdata->rx_dma & MTK_SPI_32BITS_MASK), in mtk_spi_mem_setup_dma_xfer() 907 writel((u32)(mdata->rx_dma >> 32), in mtk_spi_mem_setup_dma_xfer() 1058 mdata->rx_dma = dma_map_single(mdata->dev, 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-sunplus-sp7021.c | 149 writel(xfer->rx_dma, pspim->s_base + SP7021_SLAVE_DMA_ADDR_REG); in sp7021_spi_slave_rx() 377 xfer->rx_dma = dma_map_single(dev, xfer->rx_buf, xfer->len, in sp7021_spi_slave_transfer_one() 379 if (dma_mapping_error(dev, xfer->rx_dma)) in sp7021_spi_slave_transfer_one() 382 dma_unmap_single(dev, xfer->rx_dma, xfer->len, DMA_FROM_DEVICE); in sp7021_spi_slave_transfer_one()
|
H A D | spi-fsl-lib.h | 39 dma_addr_t rx_dma; member
|
H A D | spi-au1550.c | 318 dma_rx_addr = t->rx_dma; in au1550_spi_dma_txrxb() 339 if (t->rx_dma == 0) { /* if DMA_ADDR_INVALID, map it */ in au1550_spi_dma_txrxb() 401 if (t->rx_buf && t->rx_dma == 0) in au1550_spi_dma_txrxb()
|
/openbmc/u-boot/drivers/net/ |
H A D | bcm6348-eth.c | 110 struct dma rx_dma; member 152 return dma_prepare_rcv_buf(&priv->rx_dma, packet, len); in bcm6348_eth_free_pkt() 159 return dma_receive(&priv->rx_dma, (void**)packetp, NULL); in bcm6348_eth_recv() 198 ret = dma_prepare_rcv_buf(&priv->rx_dma, net_rx_packets[i], in bcm6348_eth_start() 205 dma_enable(&priv->rx_dma); in bcm6348_eth_start() 254 dma_disable(&priv->rx_dma); in bcm6348_eth_stop() 443 ret = dma_get_by_name(dev, "rx", &priv->rx_dma); in bcm6348_eth_probe()
|
H A D | bcm6368-eth.c | 128 struct dma rx_dma; member 191 return dma_prepare_rcv_buf(&priv->rx_dma, packet, len); in bcm6368_eth_free_pkt() 198 return dma_receive(&priv->rx_dma, (void**)packetp, NULL); in bcm6368_eth_recv() 351 int ret = dma_prepare_rcv_buf(&priv->rx_dma, net_rx_packets[i], in bcm6368_eth_start() 358 dma_enable(&priv->rx_dma); in bcm6368_eth_start() 435 dma_disable(&priv->rx_dma); in bcm6368_eth_stop() 527 ret = dma_get_by_name(dev, "rx", &priv->rx_dma); in bcm6368_eth_probe()
|
/openbmc/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];
|
/openbmc/qemu/hw/sd/ |
H A D | omap_mmc.c | 58 int rx_dma; member 84 if (host->rx_dma) { in omap_mmc_fifolevel_update() 316 host->rx_dma = 0; in omap_mmc_reset() 391 return (s->rx_dma << 15) | (s->af_level << 8) | in omap_mmc_read() 526 s->rx_dma = (value >> 15) & 1; in omap_mmc_write() 531 if (s->rx_dma) in omap_mmc_write()
|
/openbmc/linux/drivers/net/ethernet/apple/ |
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() 437 volatile struct dbdma_regs __iomem *rd = mp->rx_dma; in mace_open() 507 volatile struct dbdma_regs __iomem *rd = mp->rx_dma; in mace_close() 814 volatile struct dbdma_regs __iomem *rd = mp->rx_dma; in mace_tx_timeout() 883 volatile struct dbdma_regs __iomem *rd = mp->rx_dma; in mace_rxdma_intr()
|
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() 1361 iounmap(bp->rx_dma); in bmac_probe() 1389 volatile struct dbdma_regs __iomem *rd = bp->rx_dma; in bmac_close() [all …]
|
/openbmc/linux/drivers/net/ethernet/agere/ |
H A D | et131x.c | 1535 /* et131x_config_rx_dma_regs - Start of Rx_DMA init sequence */ 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() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | adi,axi-adc.yaml | 63 dmas = <&rx_dma 0>;
|
/openbmc/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()
|
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_fdma.c | 911 dma_addr_t rx_dma; in lan966x_fdma_reload() local 917 rx_dma = lan966x->rx.dma; in lan966x_fdma_reload() 936 dma_free_coherent(lan966x->dev, size, rx_dcbs, rx_dma); in lan966x_fdma_reload() 946 lan966x->rx.dma = rx_dma; in lan966x_fdma_reload()
|
/openbmc/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()
|
/openbmc/linux/drivers/net/wireless/ath/ath10k/ |
H A D | rx_desc.h | 227 * ring 0. Field is filled in by the RX_DMA. 231 * ring 1. Field is filled in by the RX_DMA. 235 * ring 2. Field is filled in by the RX_DMA. 239 * ring 3. Field is filled in by the RX_DMA.
|
/openbmc/linux/drivers/atm/ |
H A D | eni.h | 81 void __iomem *rx_dma; /* RX DMA queue */ member
|
/openbmc/linux/drivers/net/ethernet/broadcom/ |
H A D | bcm63xx_enet.h | 199 /* mac irq, rx_dma irq, tx_dma irq */
|
/openbmc/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()
|