Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/broadcom/bnxt/
H A 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
186 u32 buflen = rxr->rx_page_size; in bnxt_xdp_buff_init()
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
[all …]
H A Dbnxt.c401 static void bnxt_sched_reset_rxr(struct bnxt *bp, struct bnxt_rx_ring_info *rxr) in bnxt_sched_reset_rxr() argument
403 if (!rxr->bnapi->in_reset) { in bnxt_sched_reset_rxr()
404 rxr->bnapi->in_reset = true; in bnxt_sched_reset_rxr()
411 rxr->rx_next_cons = 0xffff; in bnxt_sched_reset_rxr()
955 static bool bnxt_separate_head_pool(struct bnxt_rx_ring_info *rxr)
957 return rxr->need_head_pool || rxr->rx_page_size < PAGE_SIZE; in bnxt_separate_head_pool()
961 struct bnxt_rx_ring_info *rxr, in __bnxt_alloc_rx_page()
967 if (rxr->rx_page_size < PAGE_SIZE) { in __bnxt_alloc_rx_page()
968 page = page_pool_dev_alloc_frag(rxr in __bnxt_alloc_rx_page()
956 bnxt_separate_head_pool(struct bnxt_rx_ring_info * rxr) bnxt_separate_head_pool() argument
962 __bnxt_alloc_rx_page(struct bnxt * bp,dma_addr_t * mapping,struct bnxt_rx_ring_info * rxr,unsigned int * offset,gfp_t gfp) __bnxt_alloc_rx_page() argument
983 __bnxt_alloc_rx_netmem(struct bnxt * bp,dma_addr_t * mapping,struct bnxt_rx_ring_info * rxr,unsigned int * offset,gfp_t gfp) __bnxt_alloc_rx_netmem() argument
1004 __bnxt_alloc_rx_frag(struct bnxt * bp,dma_addr_t * mapping,struct bnxt_rx_ring_info * rxr,gfp_t gfp) __bnxt_alloc_rx_frag() argument
1019 bnxt_alloc_rx_data(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,u16 prod,gfp_t gfp) bnxt_alloc_rx_data() argument
1054 bnxt_reuse_rx_data(struct bnxt_rx_ring_info * rxr,u16 cons,void * data) bnxt_reuse_rx_data() argument
1076 bnxt_find_next_agg_idx(struct bnxt_rx_ring_info * rxr,u16 idx) bnxt_find_next_agg_idx() argument
1086 bnxt_alloc_rx_netmem(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,u16 prod,gfp_t gfp) bnxt_alloc_rx_netmem() argument
1129 bnxt_get_tpa_agg_p5(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,u16 agg_id,u16 curr) bnxt_get_tpa_agg_p5() argument
1142 struct bnxt_rx_ring_info *rxr = bnapi->rx_ring; bnxt_reuse_rx_agg_bufs() local
1195 bnxt_rx_multi_page_skb(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,u16 cons,void * data,u8 * data_ptr,dma_addr_t dma_addr,unsigned int offset_and_len) bnxt_rx_multi_page_skb() argument
1230 bnxt_rx_page_skb(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,u16 cons,void * data,u8 * data_ptr,dma_addr_t dma_addr,unsigned int offset_and_len) bnxt_rx_page_skb() argument
1277 bnxt_rx_skb(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,u16 cons,void * data,u8 * data_ptr,dma_addr_t dma_addr,unsigned int offset_and_len) bnxt_rx_skb() argument
1314 struct bnxt_rx_ring_info *rxr; __bnxt_rx_agg_netmems() local
1537 bnxt_alloc_agg_idx(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,u16 agg_id) bnxt_alloc_agg_idx() argument
1554 bnxt_free_agg_idx(struct bnxt_rx_ring_info * rxr,u16 idx) bnxt_free_agg_idx() argument
1561 bnxt_lookup_agg_idx(struct bnxt_rx_ring_info * rxr,u16 agg_id) bnxt_lookup_agg_idx() argument
1599 bnxt_tpa_start(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,u8 cmp_type,struct rx_tpa_start_cmp * tpa_start,struct rx_tpa_start_cmp_ext * tpa_start1) bnxt_tpa_start() argument
1913 struct bnxt_rx_ring_info *rxr = bnapi->rx_ring; bnxt_tpa_end() local
2058 bnxt_tpa_agg(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,struct rx_agg_cmp * rx_agg) bnxt_tpa_agg() argument
2152 struct bnxt_rx_ring_info *rxr = bnapi->rx_ring; bnxt_rx_pkt() local
2909 struct bnxt_rx_ring_info *rxr; bnxt_async_event_process() local
3182 struct bnxt_rx_ring_info *rxr = bnapi->rx_ring; __bnxt_poll_work_done() local
3188 struct bnxt_rx_ring_info *rxr = bnapi->rx_ring; __bnxt_poll_work_done() local
3218 struct bnxt_rx_ring_info *rxr = bnapi->rx_ring; bnxt_poll_nitroa0() local
3563 bnxt_free_one_rx_ring(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_free_one_rx_ring() argument
3584 bnxt_free_one_rx_agg_ring(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_free_one_rx_agg_ring() argument
3605 bnxt_free_one_tpa_info_data(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_free_one_tpa_info_data() argument
3622 bnxt_free_one_rx_ring_skbs(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_free_one_rx_ring_skbs() argument
3799 bnxt_free_one_tpa_info(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_free_one_tpa_info() argument
3820 struct bnxt_rx_ring_info *rxr = &bp->rx_ring[i]; bnxt_free_tpa_info() local
3827 bnxt_alloc_one_tpa_info(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_alloc_one_tpa_info() argument
3871 struct bnxt_rx_ring_info *rxr = &bp->rx_ring[i]; bnxt_alloc_tpa_info() local
3889 struct bnxt_rx_ring_info *rxr = &bp->rx_ring[i]; bnxt_free_rx_rings() local
3914 bnxt_rx_agg_ring_fill_level(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_rx_agg_ring_fill_level() argument
3929 bnxt_alloc_rx_page_pool(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,int numa_node) bnxt_alloc_rx_page_pool() argument
3979 bnxt_enable_rx_page_pool(struct bnxt_rx_ring_info * rxr) bnxt_enable_rx_page_pool() argument
3985 bnxt_alloc_rx_agg_bmap(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_alloc_rx_agg_bmap() argument
4010 struct bnxt_rx_ring_info *rxr = &bp->rx_ring[i]; bnxt_alloc_rx_rings() local
4390 bnxt_init_rx_ring_struct(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_init_rx_ring_struct() argument
4415 bnxt_reset_rx_ring_struct(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_reset_rx_ring_struct() argument
4457 struct bnxt_rx_ring_info *rxr; bnxt_init_ring_struct() local
4535 bnxt_alloc_one_rx_ring_skb(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,int ring_nr) bnxt_alloc_one_rx_ring_skb() argument
4554 bnxt_alloc_one_rx_ring_netmem(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,int ring_nr) bnxt_alloc_one_rx_ring_netmem() argument
4575 bnxt_alloc_one_tpa_info_data(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_alloc_one_tpa_info_data() argument
4597 struct bnxt_rx_ring_info *rxr = &bp->rx_ring[ring_nr]; bnxt_alloc_one_rx_ring() local
4616 bnxt_init_one_rx_ring_rxbd(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_init_one_rx_ring_rxbd() argument
4633 bnxt_init_one_rx_agg_ring_rxbd(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_init_one_rx_agg_ring_rxbd() argument
4660 struct bnxt_rx_ring_info *rxr; bnxt_init_one_rx_ring() local
5445 struct bnxt_rx_ring_info *rxr; bnxt_clear_ring_indices() local
5655 struct bnxt_rx_ring_info *rxr = &bp->rx_ring[i]; bnxt_alloc_mem() local
6649 bnxt_cp_ring_for_rx(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_cp_ring_for_rx() argument
6772 struct bnxt_rx_ring_info *rxr; bnxt_fill_hw_rss_tbl_p5() local
6990 struct bnxt_rx_ring_info *rxr; bnxt_hwrm_vnic_cfg() local
7238 bnxt_set_rx_ring_params_p5(struct bnxt * bp,u32 ring_type,struct hwrm_ring_alloc_input * req,struct bnxt_rx_ring_info * rxr,struct bnxt_ring_struct * ring) bnxt_set_rx_ring_params_p5() argument
7262 hwrm_ring_alloc_send_msg(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,struct bnxt_ring_struct * ring,u32 ring_type,u32 map_index) hwrm_ring_alloc_send_msg() argument
7460 bnxt_hwrm_rx_ring_alloc(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_hwrm_rx_ring_alloc() argument
7479 bnxt_hwrm_rx_agg_ring_alloc(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_hwrm_rx_agg_ring_alloc() argument
7584 struct bnxt_rx_ring_info *rxr = &bp->rx_ring[i]; bnxt_hwrm_ring_alloc() local
7623 struct bnxt_rx_ring_info *rxr = &bp->rx_ring[i]; bnxt_cancel_dim() local
7681 bnxt_hwrm_rx_ring_free(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,bool close_path) bnxt_hwrm_rx_ring_free() argument
7701 bnxt_hwrm_rx_agg_ring_free(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,bool close_path) bnxt_hwrm_rx_agg_ring_free() argument
14366 struct bnxt_rx_ring_info *rxr = bnapi->rx_ring; bnxt_dump_rx_sw_state() local
14412 struct bnxt_rx_ring_info *rxr = &bp->rx_ring[ring_nr]; bnxt_hwrm_rx_ring_reset() local
14620 struct bnxt_rx_ring_info *rxr = &bp->rx_ring[i]; bnxt_rx_ring_reset() local
16358 struct bnxt_rx_ring_info *rxr, *clone; bnxt_queue_mem_alloc() local
16454 struct bnxt_rx_ring_info *rxr = qmem; bnxt_queue_mem_free() local
16540 struct bnxt_rx_ring_info *rxr, *clone; bnxt_queue_start() local
16619 struct bnxt_rx_ring_info *rxr; bnxt_queue_stop() local
[all...]
H A Dbnxt_ethtool.c5097 struct bnxt_rx_ring_info *rxr; in bnxt_rx_loopback() local
5105 rxr = bnapi->rx_ring; in bnxt_rx_loopback()
5110 rx_buf = &rxr->rx_buf_ring[cons]; in bnxt_rx_loopback()
5165 struct bnxt_rx_ring_info *rxr = &bp->rx_ring[0]; in bnxt_run_loopback() local
5173 cpr = &rxr->bnapi->cp_ring; in bnxt_run_loopback()
5175 cpr = rxr->rx_cpr; in bnxt_run_loopback()
H A Dbnxt.h2971 int bnxt_alloc_rx_data(struct bnxt *bp, struct bnxt_rx_ring_info *rxr,
2973 void bnxt_reuse_rx_data(struct bnxt_rx_ring_info *rxr, u16 cons, void *data);
/linux/drivers/net/ethernet/broadcom/bnge/
H A Dbnge_netdev.c671 static bool bnge_separate_head_pool(struct bnge_rx_ring_info *rxr) in bnge_separate_head_pool() argument
673 return rxr->need_head_pool || PAGE_SIZE > BNGE_RX_PAGE_SIZE; in bnge_separate_head_pool()
677 struct bnge_rx_ring_info *rxr) in bnge_free_one_rx_ring_bufs() argument
681 if (!rxr->rx_buf_ring) in bnge_free_one_rx_ring_bufs()
687 struct bnge_sw_rx_bd *rx_buf = &rxr->rx_buf_ring[i]; in bnge_free_one_rx_ring_bufs()
694 page_pool_free_va(rxr->head_pool, data, true); in bnge_free_one_rx_ring_bufs()
699 struct bnge_rx_ring_info *rxr) in bnge_free_one_agg_ring_bufs() argument
703 if (!rxr->rx_agg_buf_ring) in bnge_free_one_agg_ring_bufs()
709 struct bnge_sw_rx_agg_bd *rx_agg_buf = &rxr->rx_agg_buf_ring[i]; in bnge_free_one_agg_ring_bufs()
716 __clear_bit(i, rxr->rx_agg_bmap); in bnge_free_one_agg_ring_bufs()
[all …]
H A Dbnge_netdev.h639 u32 bnge_cp_ring_for_rx(struct bnge_rx_ring_info *rxr);
642 int bnge_alloc_rx_data(struct bnge_net *bn, struct bnge_rx_ring_info *rxr,
644 u16 bnge_find_next_agg_idx(struct bnge_rx_ring_info *rxr, u16 idx);
646 struct bnge_rx_ring_info *rxr, gfp_t gfp);
647 int bnge_alloc_rx_netmem(struct bnge_net *bn, struct bnge_rx_ring_info *rxr,
H A Dbnge_hwrm_lib.c838 struct bnge_rx_ring_info *rxr = &bn->rx_ring[0]; in bnge_hwrm_vnic_cfg() local
848 cpu_to_le16(rxr->rx_ring_struct.fw_ring_id); in bnge_hwrm_vnic_cfg()
850 cpu_to_le16(bnge_cp_ring_for_rx(rxr)); in bnge_hwrm_vnic_cfg()
/linux/drivers/net/ethernet/sgi/
H A 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/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_txrx.c1428 struct fbnic_ring *rxr) in fbnic_aggregate_ring_rx_counters() argument
1430 struct fbnic_queue_stats *stats = &rxr->stats; in fbnic_aggregate_ring_rx_counters()
1515 struct fbnic_ring *rxr) in fbnic_remove_rx_ring() argument
1517 if (!(rxr->flags & FBNIC_RING_F_STATS)) in fbnic_remove_rx_ring()
1520 fbnic_aggregate_ring_rx_counters(fbn, rxr); in fbnic_remove_rx_ring()
1523 WARN_ON(fbn->rx[rxr->q_idx] && fbn->rx[rxr->q_idx] != rxr); in fbnic_remove_rx_ring()
1524 fbn->rx[rxr->q_idx] = NULL; in fbnic_remove_rx_ring()
1912 struct fbnic_ring *rxr) in fbnic_alloc_rx_ring_desc() argument
1915 size_t desc_size = sizeof(*rxr->desc); in fbnic_alloc_rx_ring_desc()
1919 switch (rxr->doorbell - fbnic_ring_csr_base(rxr)) { in fbnic_alloc_rx_ring_desc()
[all …]
H A Dfbnic_txrx.h176 struct fbnic_ring *rxr);
178 struct fbnic_ring *rxr);
H A Dfbnic_netdev.c488 struct fbnic_ring *rxr = fbn->rx[i]; in fbnic_get_stats64() local
490 if (!rxr) in fbnic_get_stats64()
493 stats = &rxr->stats; in fbnic_get_stats64()
579 struct fbnic_ring *rxr = fbn->rx[idx]; in fbnic_get_queue_stats_rx() local
586 if (!rxr) in fbnic_get_queue_stats_rx()
590 qt = container_of(rxr, struct fbnic_q_triad, cmpl); in fbnic_get_queue_stats_rx()
592 stats = &rxr->stats; in fbnic_get_queue_stats_rx()
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_txrx.h312 bool iavf_alloc_rx_buffers(struct iavf_ring *rxr, u16 cleaned_count);
/linux/drivers/net/ethernet/amazon/ena/
H A Dena_netdev.c187 struct ena_ring *txr, *rxr; in ena_init_io_rings() local
194 rxr = &adapter->rx_ring[i]; in ena_init_io_rings()
212 ena_init_io_rings_common(adapter, rxr, i); in ena_init_io_rings()
215 rxr->ring_size = adapter->requested_rx_ring_size; in ena_init_io_rings()
216 rxr->rx_copybreak = adapter->rx_copybreak; in ena_init_io_rings()
217 rxr->sgl_size = adapter->max_rx_sgl_size; in ena_init_io_rings()
218 rxr->smoothed_interval = in ena_init_io_rings()
220 rxr->empty_rx_queue = 0; in ena_init_io_rings()
221 rxr->rx_headroom = NET_SKB_PAD; in ena_init_io_rings()
223 rxr->xdp_ring = &adapter->tx_ring[i + adapter->num_io_queues]; in ena_init_io_rings()
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_txrx.h461 bool i40e_alloc_rx_buffers(struct i40e_ring *rxr, u16 cleaned_count);
H A Di40e_main.c13380 struct i40e_ring *rxr = vsi->rx_rings[queue_pair]; in i40e_queue_pair_toggle_napi() local
13381 struct i40e_q_vector *q_vector = rxr->q_vector; in i40e_queue_pair_toggle_napi()
13456 struct i40e_ring *rxr = vsi->rx_rings[queue_pair]; in i40e_queue_pair_enable_irq() local
13462 i40e_irq_dynamic_enable(vsi, rxr->q_vector->v_idx); in i40e_queue_pair_enable_irq()
13476 struct i40e_ring *rxr = vsi->rx_rings[queue_pair]; in i40e_queue_pair_disable_irq() local
13487 u32 intpf = vsi->base_vector + rxr->q_vector->v_idx; in i40e_queue_pair_disable_irq()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtest_xsk.c155 struct xsk_ring_cons *rxr; in xsk_configure_socket() local
172 rxr = ifobject->rx_on ? &xsk->rx : NULL; in xsk_configure_socket()
173 return xsk_socket__create(&xsk->xsk, ifobject->ifindex, 0, umem->umem, rxr, txr, &cfg); in xsk_configure_socket()