/openbmc/u-boot/drivers/net/ |
H A D | xilinx_axi_emac.c | 120 static struct axidma_bd rx_bd __attribute((aligned(DMAALIGN))); 484 axienet_dma_write(&rx_bd, &priv->dmarx->current); in axiemac_start() 487 memset(&rx_bd, 0, sizeof(rx_bd)); in axiemac_start() 488 rx_bd.next = (u32)&rx_bd; in axiemac_start() 489 rx_bd.phys = (u32)&rxframe; in axiemac_start() 490 rx_bd.cntrl = sizeof(rxframe); in axiemac_start() 492 flush_cache((u32)&rx_bd, sizeof(rx_bd)); in axiemac_start() 504 axienet_dma_write(&rx_bd, &priv->dmarx->tail); in axiemac_start() 610 length = rx_bd.app4 & 0xFFFF; /* max length mask */ in axiemac_recv() 612 length = rx_bd.status & XAXIDMA_BD_STS_ACTUAL_LEN_MASK; in axiemac_recv() [all …]
|
H A D | zynq_gem.c | 191 struct emac_bd *rx_bd; member 425 memset(priv->rx_bd, 0, RX_BUF * sizeof(struct emac_bd)); in zynq_gem_init() 428 priv->rx_bd[i].status = 0xF0000000; in zynq_gem_init() 429 priv->rx_bd[i].addr = in zynq_gem_init() 433 priv->rx_bd[i].addr_hi = in zynq_gem_init() 439 priv->rx_bd[--i].addr |= ZYNQ_GEM_RXBUF_WRAP_MASK; in zynq_gem_init() 441 writel(lower_32_bits((ulong)priv->rx_bd), ®s->rxqbase); in zynq_gem_init() 443 writel(upper_32_bits((ulong)priv->rx_bd), ®s->upper_rxqbase); in zynq_gem_init() 592 struct emac_bd *current_bd = &priv->rx_bd[priv->rxbd_current]; in zynq_gem_recv() 628 struct emac_bd *current_bd = &priv->rx_bd[priv->rxbd_current]; in zynq_gem_free_pkt() [all …]
|
/openbmc/linux/drivers/spi/ |
H A D | spi-fsl-cpm.c | 75 struct cpm_buf_desc __iomem *rx_bd = mspi->rx_bd; in fsl_spi_cpm_bufs_start() local 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() 86 iowrite16be(0, &rx_bd->cbd_datlen); in fsl_spi_cpm_bufs_start() 87 iowrite16be(BD_SC_EMPTY | BD_SC_INTRPT | BD_SC_WRAP, &rx_bd->cbd_sc); in fsl_spi_cpm_bufs_start() 208 ioread16be(&mspi->rx_bd->cbd_datlen), mspi->count); in fsl_spi_cpm_irq() 210 len = ioread16be(&mspi->rx_bd->cbd_datlen); in fsl_spi_cpm_irq() 353 sizeof(*mspi->rx_bd), 8); in fsl_spi_cpm_init() 374 mspi->rx_bd = cpm_muram_addr(bds_ofs + sizeof(*mspi->tx_bd)); in fsl_spi_cpm_init() 378 iowrite16be(cpm_muram_offset(mspi->rx_bd), &mspi->pram->rbase); in fsl_spi_cpm_init()
|
H A D | spi-fsl-lib.h | 32 struct cpm_buf_desc __iomem *rx_bd; member
|
/openbmc/linux/drivers/net/ethernet/xilinx/ |
H A D | ll_temac_main.c | 972 int rx_bd; in ll_temac_recv() local 1031 rx_bd = lp->rx_bd_ci; in ll_temac_recv() 1034 } while (rx_bd != lp->rx_bd_tail); in ll_temac_recv() 1062 rx_bd = lp->rx_bd_tail + 1; in ll_temac_recv() 1063 if (rx_bd >= lp->rx_bd_num) in ll_temac_recv() 1064 rx_bd = 0; in ll_temac_recv() 1065 bd = &lp->rx_bd_v[rx_bd]; in ll_temac_recv() 1088 lp->rx_skb[rx_bd] = skb; in ll_temac_recv() 1090 lp->rx_bd_tail = rx_bd; in ll_temac_recv()
|
/openbmc/linux/drivers/net/ethernet/aeroflex/ |
H A D | greth.c | 235 struct greth_bd *rx_bd, *tx_bd; in greth_init_rings() local 239 rx_bd = greth->rx_bd_base; in greth_init_rings() 265 greth_write_bd(&rx_bd[i].addr, dma_addr); in greth_init_rings() 266 greth_write_bd(&rx_bd[i].stat, GRETH_BD_EN | GRETH_BD_IE); in greth_init_rings() 292 greth_write_bd(&rx_bd[i].addr, dma_addr); in greth_init_rings() 293 greth_write_bd(&rx_bd[i].stat, GRETH_BD_EN | GRETH_BD_IE); in greth_init_rings() 319 greth_write_bd(&rx_bd[GRETH_RXBD_NUM - 1].stat, in greth_init_rings() 320 greth_read_bd(&rx_bd[GRETH_RXBD_NUM - 1].stat) | GRETH_BD_WR); in greth_init_rings()
|
/openbmc/linux/include/soc/fsl/qe/ |
H A D | ucc_slow.h | 201 struct qe_bd __iomem *rx_bd; /* next BD to collect after Rx */ member
|
/openbmc/linux/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_cmn.h | 1032 struct eth_rx_bd *rx_bd; in bnx2x_set_next_page_rx_bd() local 1034 rx_bd = &fp->rx_desc_ring[RX_DESC_CNT * i - 2]; in bnx2x_set_next_page_rx_bd() 1035 rx_bd->addr_hi = in bnx2x_set_next_page_rx_bd() 1038 rx_bd->addr_lo = in bnx2x_set_next_page_rx_bd()
|
H A D | bnx2x_cmn.c | 845 struct eth_rx_bd *rx_bd = &fp->rx_desc_ring[index]; in bnx2x_alloc_rx_data() local 864 rx_bd->addr_hi = cpu_to_le32(U64_HI(mapping)); in bnx2x_alloc_rx_data() 865 rx_bd->addr_lo = cpu_to_le32(U64_LO(mapping)); in bnx2x_alloc_rx_data()
|
H A D | bnx2x_main.c | 1122 u32 *rx_bd = (u32 *)&fp->rx_desc_ring[j]; in bnx2x_panic_dump() local 1126 i, j, rx_bd[1], rx_bd[0], sw_bd->data); in bnx2x_panic_dump()
|
/openbmc/linux/drivers/net/ethernet/qlogic/qede/ |
H A D | qede_fp.c | 30 struct eth_rx_bd *rx_bd; in qede_alloc_rx_buffer() local 63 rx_bd = (struct eth_rx_bd *)qed_chain_produce(&rxq->rx_bd_ring); in qede_alloc_rx_buffer() 64 WARN_ON(!rx_bd); in qede_alloc_rx_buffer() 65 rx_bd->addr.hi = cpu_to_le32(upper_32_bits(mapping)); in qede_alloc_rx_buffer() 66 rx_bd->addr.lo = cpu_to_le32(lower_32_bits(mapping) + in qede_alloc_rx_buffer()
|
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt.h | 96 struct rx_bd { struct 640 #define RX_DESC_CNT (BNXT_PAGE_SIZE / sizeof(struct rx_bd)) 645 #define HW_RXBD_RING_SIZE (sizeof(struct rx_bd) * RX_DESC_CNT) 919 struct rx_bd *rx_desc_ring[MAX_RX_PAGES]; 922 struct rx_bd *rx_agg_desc_ring[MAX_RX_AGG_PAGES];
|
H A D | bnxt.c | 806 struct rx_bd *rxbd = &rxr->rx_desc_ring[RX_RING(prod)][RX_IDX(prod)]; in bnxt_alloc_rx_data() 840 struct rx_bd *cons_bd, *prod_bd; in bnxt_reuse_rx_data() 870 struct rx_bd *rxbd = in bnxt_alloc_rx_page() 937 struct rx_bd *prod_bd; in bnxt_reuse_rx_agg_bufs() 1300 struct rx_bd *prod_bd; in bnxt_tpa_start() 3609 struct rx_bd **rx_buf_ring; in bnxt_init_rxbd_pages() 3611 rx_buf_ring = (struct rx_bd **)ring->ring_mem.pg_arr; in bnxt_init_rxbd_pages() 3614 struct rx_bd *rxbd; in bnxt_init_rxbd_pages()
|
/openbmc/linux/drivers/soc/fsl/qe/ |
H A D | ucc_slow.c | 235 bd = uccs->rx_bd = qe_muram_addr(uccs->rx_base_offset); in ucc_slow_init()
|
/openbmc/linux/drivers/net/wireless/realtek/rtw89/ |
H A D | pci.c | 2869 struct rtw89_pci_rx_bd_32 *rx_bd; in rtw89_pci_init_rx_bd() local 2880 rx_bd = RTW89_PCI_RX_BD(rx_ring, idx); in rtw89_pci_init_rx_bd() 2882 memset(rx_bd, 0, sizeof(*rx_bd)); in rtw89_pci_init_rx_bd() 2883 rx_bd->buf_size = cpu_to_le16(buf_sz); in rtw89_pci_init_rx_bd() 2884 rx_bd->dma = cpu_to_le32(dma); in rtw89_pci_init_rx_bd()
|
/openbmc/linux/drivers/tty/serial/ |
H A D | ucc_uart.c | 987 qe_port->rx_bd_base = uccs->rx_bd; in qe_uart_request_port()
|
/openbmc/qemu/hw/net/ |
H A D | trace-events | 444 imx_fec_receive_len(uint64_t addr, int len) "rx_bd 0x%"PRIx64" length %d" 447 imx_enet_receive_len(uint64_t addr, int len) "rx_bd 0x%"PRIx64" length %d"
|
/openbmc/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_hsi.h | 211 struct core_rx_bd rx_bd; member
|