Home
last modified time | relevance | path

Searched refs:rxr (Results 1 – 15 of 15) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_xdp.c124 struct bnxt_rx_ring_info *rxr = bnapi->rx_ring; in bnxt_tx_int_xdp() local
157 page_pool_recycle_direct(rxr->page_pool, tx_buf->page); in bnxt_tx_int_xdp()
170 bnxt_db_write(bp, &rxr->rx_db, tx_buf->rx_prod); in bnxt_tx_int_xdp()
175 bool bnxt_xdp_attached(struct bnxt *bp, struct bnxt_rx_ring_info *rxr) in bnxt_xdp_attached() argument
177 struct bpf_prog *xdp_prog = READ_ONCE(rxr->xdp_prog); in bnxt_xdp_attached()
182 void bnxt_xdp_buff_init(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, in bnxt_xdp_buff_init() argument
193 rx_buf = &rxr->rx_buf_ring[cons]; in bnxt_xdp_buff_init()
199 xdp_init_buff(xdp, buflen, &rxr->xdp_rxq); in bnxt_xdp_buff_init()
203 void bnxt_xdp_buff_frags_free(struct bnxt_rx_ring_info *rxr, in bnxt_xdp_buff_frags_free() argument
215 page_pool_recycle_direct(rxr->page_pool, page); in bnxt_xdp_buff_frags_free()
[all …]
Dbnxt_xdp.h20 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,
Dbnxt.c376 static void bnxt_sched_reset_rxr(struct bnxt *bp, struct bnxt_rx_ring_info *rxr) in bnxt_sched_reset_rxr() argument
378 if (!rxr->bnapi->in_reset) { in bnxt_sched_reset_rxr()
379 rxr->bnapi->in_reset = true; in bnxt_sched_reset_rxr()
386 rxr->rx_next_cons = 0xffff; in bnxt_sched_reset_rxr()
868 struct bnxt_rx_ring_info *rxr, in __bnxt_alloc_rx_page() argument
875 page = page_pool_dev_alloc_frag(rxr->page_pool, offset, in __bnxt_alloc_rx_page()
878 page = page_pool_dev_alloc_pages(rxr->page_pool); in __bnxt_alloc_rx_page()
912 int bnxt_alloc_rx_data(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, in bnxt_alloc_rx_data() argument
915 struct rx_bd *rxbd = &rxr->rx_desc_ring[RX_RING(bp, prod)][RX_IDX(prod)]; in bnxt_alloc_rx_data()
916 struct bnxt_sw_rx_bd *rx_buf = &rxr->rx_buf_ring[RING_RX(bp, prod)]; in bnxt_alloc_rx_data()
[all …]
Dbnxt_ethtool.c4693 struct bnxt_rx_ring_info *rxr; in bnxt_rx_loopback() local
4701 rxr = bnapi->rx_ring; in bnxt_rx_loopback()
4706 rx_buf = &rxr->rx_buf_ring[cons]; in bnxt_rx_loopback()
4761 struct bnxt_rx_ring_info *rxr = &bp->rx_ring[0]; in bnxt_run_loopback() local
4769 cpr = &rxr->bnapi->cp_ring; in bnxt_run_loopback()
4771 cpr = rxr->rx_cpr; in bnxt_run_loopback()
Dbnxt.h2790 int bnxt_alloc_rx_data(struct bnxt *bp, struct bnxt_rx_ring_info *rxr,
2792 void bnxt_reuse_rx_data(struct bnxt_rx_ring_info *rxr, u16 cons, void *data);
/linux-6.12.1/drivers/net/ethernet/meta/fbnic/
Dfbnic_txrx.c891 struct fbnic_ring *rxr) in fbnic_aggregate_ring_rx_counters() argument
893 struct fbnic_queue_stats *stats = &rxr->stats; in fbnic_aggregate_ring_rx_counters()
926 struct fbnic_ring *rxr) in fbnic_remove_rx_ring() argument
928 if (!(rxr->flags & FBNIC_RING_F_STATS)) in fbnic_remove_rx_ring()
931 fbnic_aggregate_ring_rx_counters(fbn, rxr); in fbnic_remove_rx_ring()
934 WARN_ON(fbn->rx[rxr->q_idx] && fbn->rx[rxr->q_idx] != rxr); in fbnic_remove_rx_ring()
935 fbn->rx[rxr->q_idx] = NULL; in fbnic_remove_rx_ring()
1282 struct fbnic_ring *rxr) in fbnic_alloc_rx_ring_desc() argument
1285 size_t desc_size = sizeof(*rxr->desc); in fbnic_alloc_rx_ring_desc()
1289 switch (rxr->doorbell - fbnic_ring_csr_base(rxr)) { in fbnic_alloc_rx_ring_desc()
[all …]
Dfbnic_netdev.c369 struct fbnic_ring *rxr = fbn->rx[i]; in fbnic_get_stats64() local
371 if (!rxr) in fbnic_get_stats64()
374 stats = &rxr->stats; in fbnic_get_stats64()
403 struct fbnic_ring *rxr = fbn->rx[idx]; in fbnic_get_queue_stats_rx() local
408 if (!rxr) in fbnic_get_queue_stats_rx()
411 stats = &rxr->stats; in fbnic_get_queue_stats_rx()
/linux-6.12.1/drivers/net/ethernet/broadcom/
Dbnx2.c717 struct bnx2_rx_ring_info *rxr = &bnapi->rx_ring; in bnx2_free_rx_mem() local
721 if (rxr->rx_desc_ring[j]) in bnx2_free_rx_mem()
723 rxr->rx_desc_ring[j], in bnx2_free_rx_mem()
724 rxr->rx_desc_mapping[j]); in bnx2_free_rx_mem()
725 rxr->rx_desc_ring[j] = NULL; in bnx2_free_rx_mem()
727 vfree(rxr->rx_buf_ring); in bnx2_free_rx_mem()
728 rxr->rx_buf_ring = NULL; in bnx2_free_rx_mem()
731 if (rxr->rx_pg_desc_ring[j]) in bnx2_free_rx_mem()
733 rxr->rx_pg_desc_ring[j], in bnx2_free_rx_mem()
734 rxr->rx_pg_desc_mapping[j]); in bnx2_free_rx_mem()
[all …]
/linux-6.12.1/drivers/net/ethernet/sgi/
Dioc3-eth.c84 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()
430 rxr[n_entry] = cpu_to_be64(ioc3_map(d, PCI64_ATTR_BAR)); 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()
885 ip->rxr = dma_alloc_coherent(ip->dma_dev, RX_RING_SIZE, &ip->rxr_dma, in ioc3eth_probe()
[all …]
/linux-6.12.1/drivers/net/ethernet/intel/iavf/
Diavf_txrx.h322 bool iavf_alloc_rx_buffers(struct iavf_ring *rxr, u16 cleaned_count);
/linux-6.12.1/drivers/net/ethernet/amazon/ena/
Dena_netdev.c210 struct ena_ring *txr, *rxr; in ena_init_io_rings() local
217 rxr = &adapter->rx_ring[i]; in ena_init_io_rings()
235 ena_init_io_rings_common(adapter, rxr, i); in ena_init_io_rings()
238 rxr->ring_size = adapter->requested_rx_ring_size; in ena_init_io_rings()
239 rxr->rx_copybreak = adapter->rx_copybreak; in ena_init_io_rings()
240 rxr->sgl_size = adapter->max_rx_sgl_size; in ena_init_io_rings()
241 rxr->smoothed_interval = in ena_init_io_rings()
243 rxr->empty_rx_queue = 0; in ena_init_io_rings()
244 rxr->rx_headroom = NET_SKB_PAD; in ena_init_io_rings()
246 rxr->xdp_ring = &adapter->tx_ring[i + adapter->num_io_queues]; in ena_init_io_rings()
/linux-6.12.1/drivers/net/ethernet/intel/i40e/
Di40e_txrx.h460 bool i40e_alloc_rx_buffers(struct i40e_ring *rxr, u16 cleaned_count);
Di40e_main.c13452 struct i40e_ring *rxr = vsi->rx_rings[queue_pair]; in i40e_queue_pair_toggle_napi() local
13453 struct i40e_q_vector *q_vector = rxr->q_vector; in i40e_queue_pair_toggle_napi()
13528 struct i40e_ring *rxr = vsi->rx_rings[queue_pair]; in i40e_queue_pair_enable_irq() local
13534 i40e_irq_dynamic_enable(vsi, rxr->q_vector->v_idx); in i40e_queue_pair_enable_irq()
13548 struct i40e_ring *rxr = vsi->rx_rings[queue_pair]; in i40e_queue_pair_disable_irq() local
13559 u32 intpf = vsi->base_vector + rxr->q_vector->v_idx; in i40e_queue_pair_disable_irq()
/linux-6.12.1/drivers/net/ethernet/intel/ice/
Dice_txrx.h491 bool ice_alloc_rx_bufs(struct ice_rx_ring *rxr, unsigned int cleaned_count);
/linux-6.12.1/tools/testing/selftests/bpf/
Dxskxceiver.c264 struct xsk_ring_cons *rxr; in __xsk_configure_socket() local
281 rxr = ifobject->rx_on ? &xsk->rx : NULL; in __xsk_configure_socket()
282 return xsk_socket__create(&xsk->xsk, ifobject->ifindex, 0, umem->umem, rxr, txr, &cfg); in __xsk_configure_socket()