/linux-6.6.21/drivers/tty/serial/ |
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 …]
|
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()
|
/linux-6.6.21/drivers/spi/ |
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()
|
D | spi-s3c64xx.c | 197 struct s3c64xx_spi_dma_data rx_dma; member 259 struct s3c64xx_spi_driver_data, rx_dma); in s3c64xx_spi_dmacb() 291 struct s3c64xx_spi_driver_data, rx_dma); in prepare_dma() 362 sdd->rx_dma.ch = dma_request_chan(&sdd->pdev->dev, "rx"); in s3c64xx_spi_prepare_transfer() 363 if (IS_ERR(sdd->rx_dma.ch)) { in s3c64xx_spi_prepare_transfer() 365 sdd->rx_dma.ch = NULL; in s3c64xx_spi_prepare_transfer() 372 dma_release_channel(sdd->rx_dma.ch); in s3c64xx_spi_prepare_transfer() 374 sdd->rx_dma.ch = NULL; in s3c64xx_spi_prepare_transfer() 378 spi->dma_rx = sdd->rx_dma.ch; in s3c64xx_spi_prepare_transfer() 392 if (sdd->rx_dma.ch && sdd->tx_dma.ch) { in s3c64xx_spi_unprepare_transfer() [all …]
|
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 …]
|
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()
|
D | spi-mt65xx.c | 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() 811 trans->rx_dma += mdata->xfer_len; in mtk_spi_interrupt() 823 trans->rx_dma = sg_dma_address(mdata->rx_sgl); in mtk_spi_interrupt() 901 writel((u32)(mdata->rx_dma & MTK_SPI_32BITS_MASK), in mtk_spi_mem_setup_dma_xfer() 905 writel((u32)(mdata->rx_dma >> 32), in mtk_spi_mem_setup_dma_xfer() 1056 mdata->rx_dma = dma_map_single(mdata->dev, in mtk_spi_mem_exec_op() 1060 if (dma_mapping_error(mdata->dev, mdata->rx_dma)) { in mtk_spi_mem_exec_op() [all …]
|
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()
|
D | spi-fsl-lib.h | 39 dma_addr_t rx_dma; member
|
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()
|
/linux-6.6.21/drivers/net/ethernet/amd/ |
D | au1000_eth.h | 46 struct rx_dma { struct 73 struct rx_dma *rx_dma_ring[NUM_RX_DMA];
|
D | au1000_eth.c | 636 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-6.6.21/drivers/net/ethernet/apple/ |
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 …]
|
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()
|
/linux-6.6.21/drivers/net/ethernet/agere/ |
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-6.6.21/drivers/net/fddi/ |
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()
|
/linux-6.6.21/drivers/atm/ |
D | eni.h | 81 void __iomem *rx_dma; /* RX DMA queue */ member
|
/linux-6.6.21/Documentation/devicetree/bindings/iio/adc/ |
D | adi,axi-adc.yaml | 56 dmas = <&rx_dma 0>;
|
/linux-6.6.21/drivers/net/can/peak_canfd/ |
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-6.6.21/drivers/net/ethernet/microchip/lan966x/ |
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()
|
/linux-6.6.21/drivers/net/ethernet/sis/ |
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-6.6.21/drivers/net/ethernet/natsemi/ |
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-6.6.21/drivers/i2c/busses/ |
D | i2c-qcom-geni.c | 407 dma_addr_t rx_dma = 0; in geni_i2c_rx_one_msg() local 423 if (dma_buf && geni_se_rx_dma_prep(se, dma_buf, len, &rx_dma)) { in geni_i2c_rx_one_msg() 429 gi2c->dma_addr = rx_dma; in geni_i2c_rx_one_msg()
|
/linux-6.6.21/drivers/tty/serial/8250/ |
D | 8250.h | 19 int (*rx_dma)(struct uart_8250_port *p); member
|
D | 8250_dma.c | 82 p->dma->rx_dma(p); in dma_rx_complete()
|