Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/tty/serial/
Dsprd_serial.c126 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()
357 sp->rx_dma.virt = dma_alloc_coherent(sp->port.dev, SPRD_UART_RX_SIZE, in sprd_rx_alloc_buf()
358 &sp->rx_dma.phys_addr, GFP_KERNEL); in sprd_rx_alloc_buf()
359 if (!sp->rx_dma.virt) in sprd_rx_alloc_buf()
367 if (sp->rx_dma.virt) in sprd_rx_free_buf()
369 sp->rx_dma.virt, sp->rx_dma.phys_addr); in sprd_rx_free_buf()
384 return dmaengine_slave_config(sp->rx_dma.chn, &cfg); in sprd_rx_dma_config()
393 port->icount.rx += sp->rx_dma.trans_len; in sprd_uart_dma_rx()
[all …]
Difx6x60.h73 dma_addr_t rx_dma; member
Difx6x60.c764 ifx_dev->rx_dma = ifx_dev->rx_bus; in ifx_spi_io()
766 ifx_dev->spi_xfer.rx_dma = ifx_dev->rx_dma; in ifx_spi_io()
770 ifx_dev->rx_dma = (dma_addr_t)0; in ifx_spi_io()
772 ifx_dev->spi_xfer.rx_dma = (dma_addr_t)0; in ifx_spi_io()
Dmsm_serial.c180 struct msm_dma rx_dma; member
279 dma = &msm_port->rx_dma; in msm_release_dma()
340 dma = &msm_port->rx_dma; in msm_request_rx_dma()
537 struct msm_dma *dma = &msm_port->rx_dma; in msm_complete_rx_dma()
597 struct msm_dma *dma = &msm_port->rx_dma; in msm_start_rx_dma()
684 struct msm_dma *dma = &msm_port->rx_dma; in msm_stop_rx()
945 struct msm_dma *dma = &msm_port->rx_dma; in msm_uart_irq()
1260 struct msm_dma *dma = &msm_port->rx_dma; in msm_set_termios()
/kernel/linux/linux-5.10/drivers/spi/
Dspi-fsl-cpm.c81 if (mspi->rx_dma == mspi->dma_dummy_rx) in fsl_spi_cpm_bufs_start()
82 out_be32(&rx_bd->cbd_bufaddr, mspi->rx_dma); in fsl_spi_cpm_bufs_start()
84 out_be32(&rx_bd->cbd_bufaddr, mspi->rx_dma + xfer_ofs); in fsl_spi_cpm_bufs_start()
120 mspi->rx_dma = mspi->dma_dummy_rx; in fsl_spi_cpm_bufs()
138 mspi->rx_dma = dma_map_single(dev, mspi->rx, t->len, in fsl_spi_cpm_bufs()
140 if (dma_mapping_error(dev, mspi->rx_dma)) { in fsl_spi_cpm_bufs()
145 mspi->rx_dma = t->rx_dma; in fsl_spi_cpm_bufs()
174 dma_unmap_single(dev, mspi->rx_dma, t->len, DMA_FROM_DEVICE); in fsl_spi_cpm_bufs_complete()
Dspi-s3c64xx.c190 struct s3c64xx_spi_dma_data rx_dma; member
252 struct s3c64xx_spi_driver_data, rx_dma); in s3c64xx_spi_dmacb()
284 struct s3c64xx_spi_driver_data, rx_dma); in prepare_dma()
354 spi->dma_rx = sdd->rx_dma.ch; in s3c64xx_spi_prepare_transfer()
432 ret = prepare_dma(&sdd->rx_dma, &xfer->rx_sg); in s3c64xx_enable_datapath()
694 sdd->rx_dma.ch && sdd->tx_dma.ch) { in s3c64xx_spi_transfer_one()
750 dmaengine_pause(sdd->rx_dma.ch); in s3c64xx_spi_transfer_one()
751 dmaengine_tx_status(sdd->rx_dma.ch, sdd->rx_dma.cookie, &s); in s3c64xx_spi_transfer_one()
752 dmaengine_terminate_all(sdd->rx_dma.ch); in s3c64xx_spi_transfer_one()
1129 sdd->rx_dma.direction = DMA_DEV_TO_MEM; in s3c64xx_spi_probe()
[all …]
Dspi-atmel.c774 xfer->rx_buf, (unsigned long long)xfer->rx_dma); in atmel_spi_next_xfer_dma_submit()
808 dma_addr_t *rx_dma, in atmel_spi_next_xfer_data() argument
811 *rx_dma = xfer->rx_dma + xfer->len - *plen; in atmel_spi_next_xfer_data()
875 dma_addr_t tx_dma, rx_dma; in atmel_spi_pdc_next_xfer() local
880 atmel_spi_next_xfer_data(master, xfer, &tx_dma, &rx_dma, &len); in atmel_spi_pdc_next_xfer()
883 spi_writel(as, RPR, rx_dma); in atmel_spi_pdc_next_xfer()
895 (unsigned long long)xfer->rx_dma); in atmel_spi_pdc_next_xfer()
899 atmel_spi_next_xfer_data(master, xfer, &tx_dma, &rx_dma, &len); in atmel_spi_pdc_next_xfer()
902 spi_writel(as, RNPR, rx_dma); in atmel_spi_pdc_next_xfer()
914 (unsigned long long)xfer->rx_dma); in atmel_spi_pdc_next_xfer()
[all …]
Dspi-slave-mt27xx.c207 xfer->rx_dma = dma_map_single(dev, xfer->rx_buf, in mtk_spi_slave_dma_transfer()
209 if (dma_mapping_error(dev, xfer->rx_dma)) { in mtk_spi_slave_dma_transfer()
216 writel(xfer->rx_dma, mdata->base + SPIS_RX_DST_REG); in mtk_spi_slave_dma_transfer()
249 dma_unmap_single(dev, xfer->rx_dma, in mtk_spi_slave_dma_transfer()
332 dma_unmap_single(mdata->dev, trans->rx_dma, in mtk_spi_slave_interrupt()
Dspi-mt65xx.c412 writel((u32)(xfer->rx_dma & MTK_SPI_32BITS_MASK), in mtk_spi_setup_dma_addr()
416 writel((u32)(xfer->rx_dma >> 32), in mtk_spi_setup_dma_addr()
485 xfer->rx_dma = sg_dma_address(mdata->rx_sgl); in mtk_spi_dma_transfer()
590 trans->rx_dma += mdata->xfer_len; in mtk_spi_interrupt()
602 trans->rx_dma = sg_dma_address(mdata->rx_sgl); in mtk_spi_interrupt()
Dspi-fsl-lib.h39 dma_addr_t rx_dma; member
Dspi-au1550.c319 dma_rx_addr = t->rx_dma; in au1550_spi_dma_txrxb()
340 if (t->rx_dma == 0) { /* if DMA_ADDR_INVALID, map it */ in au1550_spi_dma_txrxb()
402 if (t->rx_buf && t->rx_dma == 0 ) in au1550_spi_dma_txrxb()
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/
Dau1000_eth.h46 struct rx_dma { struct
73 struct rx_dma *rx_dma_ring[NUM_RX_DMA];
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()
/kernel/linux/linux-5.10/drivers/net/ethernet/apple/
Dbmac.c64 volatile struct dbdma_regs __iomem *rx_dma; member
226 volatile struct dbdma_regs __iomem *rd = bp->rx_dma; in bmac_enable_and_reset_chip()
403 volatile struct dbdma_regs __iomem *rd = bp->rx_dma; in bmac_start_chip()
474 volatile struct dbdma_regs __iomem *rd = bp->rx_dma; in bmac_suspend()
608 volatile struct dbdma_regs __iomem *rd = bp->rx_dma; in bmac_init_rx_ring()
678 volatile struct dbdma_regs __iomem *rd = bp->rx_dma; in bmac_rxdma_intr()
1308 bp->rx_dma = ioremap(macio_resource_start(mdev, 2), macio_resource_len(mdev, 2)); in bmac_probe()
1309 if (!bp->rx_dma) in bmac_probe()
1362 iounmap(bp->rx_dma); in bmac_probe()
1390 volatile struct dbdma_regs __iomem *rd = bp->rx_dma; in bmac_close()
[all …]
Dmace.c49 volatile struct dbdma_regs __iomem *rx_dma; member
187 mp->rx_dma = ioremap(macio_resource_start(mdev, 2), 0x1000); in mace_probe()
188 if (mp->rx_dma == NULL) { in mace_probe()
261 iounmap(mp->rx_dma); in mace_probe()
291 iounmap(mp->rx_dma); in mace_remove()
432 volatile struct dbdma_regs __iomem *rd = mp->rx_dma; in mace_open()
502 volatile struct dbdma_regs __iomem *rd = mp->rx_dma; in mace_close()
809 volatile struct dbdma_regs __iomem *rd = mp->rx_dma; in mace_tx_timeout()
878 volatile struct dbdma_regs __iomem *rd = mp->rx_dma; in mace_rxdma_intr()
/kernel/linux/linux-5.10/drivers/mmc/host/
Dmmc_spi.c516 t->tx_dma = t->rx_dma = host->data_dma; in mmc_spi_command_send()
608 t->rx_dma = dma + offsetof(struct scratch, crc_val); in mmc_spi_setup_data_message()
634 t->rx_dma = dma + offsetof(struct scratch, status); in mmc_spi_setup_data_message()
798 t->rx_dma, t->len, in mmc_spi_readblock()
813 t->rx_dma, t->len, in mmc_spi_readblock()
852 t->rx_dma += t->len; in mmc_spi_readblock()
917 t->rx_dma = dma_addr + sg->offset; in mmc_spi_data_do()
992 host->early_status.tx_dma = host->early_status.rx_dma; in mmc_spi_data_do()
1435 host->status.rx_dma = host->data_dma + offsetof(struct scratch, status); in mmc_spi_probe()
/kernel/linux/linux-5.10/drivers/net/ethernet/agere/
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 …]
/kernel/linux/linux-5.10/drivers/net/fddi/
Ddefza.c425 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()
/kernel/linux/linux-5.10/drivers/atm/
Deni.h81 void __iomem *rx_dma; /* RX DMA queue */ member
/kernel/linux/linux-5.10/drivers/net/can/peak_canfd/
Dpeak_pciefd_main.c316 struct pciefd_rx_dma *rx_dma = priv->rx_dma_vaddr; in pciefd_irq_handler() local
323 priv->irq_status = le32_to_cpu(rx_dma->irq_status); in pciefd_irq_handler()
331 rx_dma->msg, in pciefd_irq_handler()
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-qcom-geni.c381 dma_addr_t rx_dma = 0; in geni_i2c_rx_one_msg() local
399 if (dma_buf && geni_se_rx_dma_prep(se, dma_buf, len, &rx_dma)) { in geni_i2c_rx_one_msg()
405 gi2c->dma_addr = rx_dma; in geni_i2c_rx_one_msg()
/kernel/linux/linux-5.10/drivers/tty/serial/8250/
D8250.h18 int (*rx_dma)(struct uart_8250_port *p); member
/kernel/linux/linux-5.10/drivers/net/ethernet/sis/
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()
/kernel/linux/linux-5.10/drivers/net/ethernet/natsemi/
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()
/kernel/linux/linux-5.10/drivers/scsi/mvsas/
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()

12