/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_xdp.c | 193 rx_buf = &rxr->rx_buf_ring[cons]; in bnxt_xdp_buff_init() 245 txr = rxr->bnapi->tx_ring; in bnxt_rx_xdp() 269 rx_buf = &rxr->rx_buf_ring[cons]; in bnxt_rx_xdp() 282 bnxt_xdp_buff_frags_free(rxr, &xdp); in bnxt_rx_xdp() 283 bnxt_reuse_rx_data(rxr, cons, page); in bnxt_rx_xdp() 292 NEXT_RX(rxr->rx_prod), &xdp); in bnxt_rx_xdp() 293 bnxt_reuse_rx_data(rxr, cons, page); in bnxt_rx_xdp() 302 if (bnxt_alloc_rx_data(bp, rxr, rxr->rx_prod, GFP_ATOMIC)) { in bnxt_rx_xdp() 304 bnxt_xdp_buff_frags_free(rxr, &xdp); in bnxt_rx_xdp() 324 bnxt_xdp_buff_frags_free(rxr, &xdp); in bnxt_rx_xdp() [all …]
|
H A D | bnxt_xdp.h | 20 bool bnxt_rx_xdp(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, u16 cons, 27 bool bnxt_xdp_attached(struct bnxt *bp, struct bnxt_rx_ring_info *rxr); 29 void bnxt_xdp_buff_init(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, 32 void bnxt_xdp_buff_frags_free(struct bnxt_rx_ring_info *rxr,
|
H A D | bnxt.c | 1371 rxr->rx_prod = NEXT_RX(rxr->rx_prod); in bnxt_tpa_start() 2585 bnxt_db_write(bp, &rxr->rx_db, rxr->rx_prod); in __bnxt_poll_work_done() 2590 bnxt_db_write(bp, &rxr->rx_agg_db, rxr->rx_agg_prod); in __bnxt_poll_work_done() 2675 bnxt_db_write(bp, &rxr->rx_db, rxr->rx_prod); in bnxt_poll_nitroa0() 2678 bnxt_db_write(bp, &rxr->rx_agg_db, rxr->rx_agg_prod); in bnxt_poll_nitroa0() 3568 if (!rxr) in bnxt_init_ring_struct() 4425 if (rxr) { in bnxt_clear_ring_indices() 5962 bnxt_db_write(bp, &rxr->rx_db, rxr->rx_prod); in bnxt_hwrm_ring_alloc() 5997 bnxt_db_write(bp, &rxr->rx_db, rxr->rx_prod); in bnxt_hwrm_ring_alloc() 11563 if (!rxr) in bnxt_dump_rx_sw_state() [all …]
|
H A D | bnxt_ethtool.c | 3556 struct bnxt_rx_ring_info *rxr; in bnxt_rx_loopback() local 3564 rxr = bnapi->rx_ring; in bnxt_rx_loopback() 3569 rx_buf = &rxr->rx_buf_ring[cons]; in bnxt_rx_loopback() 3623 struct bnxt_rx_ring_info *rxr = &bp->rx_ring[0]; in bnxt_run_loopback() local 3631 cpr = &rxr->bnapi->cp_ring; in bnxt_run_loopback()
|
H A D | bnxt.h | 2331 int bnxt_alloc_rx_data(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, 2333 void bnxt_reuse_rx_data(struct bnxt_rx_ring_info *rxr, u16 cons, void *data);
|
/openbmc/linux/drivers/net/ethernet/broadcom/ |
H A D | bnx2.c | 773 rxr->rx_buf_ring = in bnx2_alloc_rx_mem() 775 if (!rxr->rx_buf_ring) in bnx2_alloc_rx_mem() 790 rxr->rx_pg_ring = in bnx2_alloc_rx_mem() 3294 BNX2_WR16(bp, rxr->rx_pg_bidx_addr, rxr->rx_pg_prod); in bnx2_rx_int() 3298 BNX2_WR(bp, rxr->rx_bseq_addr, rxr->rx_prod_bseq); in bnx2_rx_int() 5123 rxr->rx_prod = 0; in bnx2_clear_ring_states() 5124 rxr->rx_cons = 0; in bnx2_clear_ring_states() 5232 bnx2_init_rxbd_rings(rxr->rx_desc_ring, rxr->rx_desc_mapping, in bnx2_init_rx_ring() 5290 rxr->rx_prod = prod; in bnx2_init_rx_ring() 5296 BNX2_WR16(bp, rxr->rx_pg_bidx_addr, rxr->rx_pg_prod); in bnx2_init_rx_ring() [all …]
|
/openbmc/linux/drivers/net/ethernet/sgi/ |
H A D | ioc3-eth.c | 84 unsigned long *rxr; /* pointer to receiver ring */ member 371 unsigned long *rxr; in ioc3_rx() local 375 rxr = ip->rxr; /* Ring base */ in ioc3_rx() 396 d = rxr[rx_entry]; in ioc3_rx() 405 dma_unmap_single(ip->dma_dev, rxr[rx_entry], in ioc3_rx() 420 d = rxr[rx_entry]; in ioc3_rx() 660 be64_to_cpu(ip->rxr[n_entry]), in ioc3_free_rx_bufs() 684 ip->rxr[i] = cpu_to_be64(ioc3_map(d, PCI64_ATTR_BAR)); in ioc3_alloc_rx_bufs() 887 if (!ip->rxr) { in ioc3eth_probe() 954 if (ip->rxr) in ioc3eth_probe() [all …]
|
/openbmc/qemu/hw/net/ |
H A D | e1000e_core.c | 898 rxr->i = &i[idx]; in e1000e_rx_ring_init() 971 E1000E_RxRing rxr; in e1000e_can_receive() local 973 e1000e_rx_ring_init(core, &rxr, i); in e1000e_can_receive() 974 if (e1000e_ring_enabled(core, rxr.i) && in e1000e_can_receive() 975 e1000e_has_rxbufs(core, rxr.i, 1)) { in e1000e_can_receive() 1485 const E1000E_RxRing *rxr, in e1000e_write_packet_to_guest() argument 1503 rxi = rxr->i; in e1000e_write_packet_to_guest() 1637 E1000E_RxRing rxr; in e1000e_receive_internal() local 1692 e1000e_rx_ring_init(core, &rxr, rss_info.queue); in e1000e_receive_internal() 1697 if (e1000e_has_rxbufs(core, rxr.i, total_size)) { in e1000e_receive_internal() [all …]
|
H A D | igb_core.c | 826 rxr->i = &i[idx]; in igb_rx_ring_init() 970 E1000E_RxRing rxr; in igb_can_receive() local 975 igb_rx_ring_init(core, &rxr, i); in igb_can_receive() 976 if (igb_ring_enabled(core, rxr.i) && igb_has_rxbufs(core, rxr.i, 1)) { in igb_can_receive() 1896 const E1000E_RxRing *rxr, in igb_write_packet_to_guest() argument 1911 rxi = rxr->i; in igb_write_packet_to_guest() 2000 E1000E_RxRing rxr; in igb_receive_internal() local 2061 igb_rx_ring_init(core, &rxr, i); in igb_receive_internal() 2063 if (!igb_rx_strip_vlan(core, rxr.i)) { in igb_receive_internal() 2095 ecauses |= igb_rx_wb_eic(core, rxr.i->idx); in igb_receive_internal() [all …]
|
/openbmc/linux/drivers/net/ethernet/amazon/ena/ |
H A D | ena_netdev.c | 184 struct ena_ring *txr, *rxr; in ena_init_io_rings() local 191 rxr = &adapter->rx_ring[i]; in ena_init_io_rings() 209 ena_init_io_rings_common(adapter, rxr, i); in ena_init_io_rings() 212 rxr->ring_size = adapter->requested_rx_ring_size; in ena_init_io_rings() 213 rxr->rx_copybreak = adapter->rx_copybreak; in ena_init_io_rings() 214 rxr->sgl_size = adapter->max_rx_sgl_size; in ena_init_io_rings() 215 rxr->smoothed_interval = in ena_init_io_rings() 217 rxr->empty_rx_queue = 0; in ena_init_io_rings() 218 rxr->rx_headroom = NET_SKB_PAD; in ena_init_io_rings() 220 rxr->xdp_ring = &adapter->tx_ring[i + adapter->num_io_queues]; in ena_init_io_rings()
|
/openbmc/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_txrx.h | 442 bool iavf_alloc_rx_buffers(struct iavf_ring *rxr, u16 cleaned_count);
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_txrx.h | 467 bool ice_alloc_rx_bufs(struct ice_rx_ring *rxr, unsigned int cleaned_count);
|
/openbmc/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_txrx.h | 460 bool i40e_alloc_rx_buffers(struct i40e_ring *rxr, u16 cleaned_count);
|
H A D | i40e_main.c | 13514 struct i40e_ring *rxr = vsi->rx_rings[queue_pair]; in i40e_queue_pair_toggle_napi() local 13515 struct i40e_q_vector *q_vector = rxr->q_vector; in i40e_queue_pair_toggle_napi() 13590 struct i40e_ring *rxr = vsi->rx_rings[queue_pair]; in i40e_queue_pair_enable_irq() local 13596 i40e_irq_dynamic_enable(vsi, rxr->q_vector->v_idx); in i40e_queue_pair_enable_irq() 13610 struct i40e_ring *rxr = vsi->rx_rings[queue_pair]; in i40e_queue_pair_disable_irq() local 13621 u32 intpf = vsi->base_vector + rxr->q_vector->v_idx; in i40e_queue_pair_disable_irq()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | xskxceiver.c | 249 struct xsk_ring_cons *rxr; in __xsk_configure_socket() local 262 rxr = ifobject->rx_on ? &xsk->rx : NULL; in __xsk_configure_socket() 263 return xsk_socket__create(&xsk->xsk, ifobject->ifindex, 0, umem->umem, rxr, txr, &cfg); in __xsk_configure_socket()
|