Home
last modified time | relevance | path

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

/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_xdp.c74 struct bnxt_rx_ring_info *rxr = bnapi->rx_ring; in bnxt_tx_int_xdp() local
103 bnxt_db_write(bp, &rxr->rx_db, tx_buf->rx_prod); in bnxt_tx_int_xdp()
111 bool bnxt_rx_xdp(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, u16 cons, in bnxt_rx_xdp() argument
114 struct bpf_prog *xdp_prog = READ_ONCE(rxr->xdp_prog); in bnxt_rx_xdp()
129 rx_buf = &rxr->rx_buf_ring[cons]; in bnxt_rx_xdp()
135 txr = rxr->bnapi->tx_ring; in bnxt_rx_xdp()
140 xdp.rxq = &rxr->xdp_rxq; in bnxt_rx_xdp()
167 bnxt_reuse_rx_data(rxr, cons, page); in bnxt_rx_xdp()
175 NEXT_RX(rxr->rx_prod)); in bnxt_rx_xdp()
176 bnxt_reuse_rx_data(rxr, cons, page); in bnxt_rx_xdp()
[all …]
Dbnxt.c726 struct bnxt_rx_ring_info *rxr, in __bnxt_alloc_rx_page() argument
732 page = page_pool_dev_alloc_pages(rxr->page_pool); in __bnxt_alloc_rx_page()
739 page_pool_recycle_direct(rxr->page_pool, page); in __bnxt_alloc_rx_page()
767 int bnxt_alloc_rx_data(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, in bnxt_alloc_rx_data() argument
770 struct rx_bd *rxbd = &rxr->rx_desc_ring[RX_RING(prod)][RX_IDX(prod)]; in bnxt_alloc_rx_data()
771 struct bnxt_sw_rx_bd *rx_buf = &rxr->rx_buf_ring[prod]; in bnxt_alloc_rx_data()
776 __bnxt_alloc_rx_page(bp, &mapping, rxr, gfp); in bnxt_alloc_rx_data()
798 void bnxt_reuse_rx_data(struct bnxt_rx_ring_info *rxr, u16 cons, void *data) in bnxt_reuse_rx_data() argument
800 u16 prod = rxr->rx_prod; in bnxt_reuse_rx_data()
804 prod_rx_buf = &rxr->rx_buf_ring[prod]; in bnxt_reuse_rx_data()
[all …]
Dbnxt_xdp.h17 bool bnxt_rx_xdp(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, u16 cons,
Dbnxt_ethtool.c3182 struct bnxt_rx_ring_info *rxr; in bnxt_rx_loopback() local
3190 rxr = bnapi->rx_ring; in bnxt_rx_loopback()
3195 rx_buf = &rxr->rx_buf_ring[cons]; in bnxt_rx_loopback()
3249 struct bnxt_rx_ring_info *rxr = &bp->rx_ring[0]; in bnxt_run_loopback() local
3257 cpr = &rxr->bnapi->cp_ring; in bnxt_run_loopback()
Dbnxt.h2175 int bnxt_alloc_rx_data(struct bnxt *bp, struct bnxt_rx_ring_info *rxr,
2177 void bnxt_reuse_rx_data(struct bnxt_rx_ring_info *rxr, u16 cons, void *data);
/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 …]
/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 …]
/drivers/net/ethernet/freescale/enetc/
Denetc.c914 static int enetc_alloc_rxbdr(struct enetc_bdr *rxr, bool extended) in enetc_alloc_rxbdr() argument
919 rxr->rx_swbd = vzalloc(rxr->bd_count * sizeof(struct enetc_rx_swbd)); in enetc_alloc_rxbdr()
920 if (!rxr->rx_swbd) in enetc_alloc_rxbdr()
926 err = enetc_dma_alloc_bdr(rxr, size); in enetc_alloc_rxbdr()
928 vfree(rxr->rx_swbd); in enetc_alloc_rxbdr()
932 rxr->next_to_clean = 0; in enetc_alloc_rxbdr()
933 rxr->next_to_use = 0; in enetc_alloc_rxbdr()
934 rxr->next_to_alloc = 0; in enetc_alloc_rxbdr()
935 rxr->ext_en = extended; in enetc_alloc_rxbdr()
940 static void enetc_free_rxbdr(struct enetc_bdr *rxr) in enetc_free_rxbdr() argument
[all …]
/drivers/net/ethernet/intel/ice/
Dice_txrx.h375 bool ice_alloc_rx_bufs(struct ice_ring *rxr, u16 cleaned_count);
/drivers/net/ethernet/intel/iavf/
Diavf_txrx.h439 bool iavf_alloc_rx_buffers(struct iavf_ring *rxr, u16 cleaned_count);
/drivers/net/ethernet/intel/i40e/
Di40e_txrx.h450 bool i40e_alloc_rx_buffers(struct i40e_ring *rxr, u16 cleaned_count);
Di40e_main.c12810 struct i40e_ring *rxr = vsi->rx_rings[queue_pair]; in i40e_queue_pair_toggle_napi() local
12811 struct i40e_q_vector *q_vector = rxr->q_vector; in i40e_queue_pair_toggle_napi()
12886 struct i40e_ring *rxr = vsi->rx_rings[queue_pair]; in i40e_queue_pair_enable_irq() local
12892 i40e_irq_dynamic_enable(vsi, rxr->q_vector->v_idx); in i40e_queue_pair_enable_irq()
12906 struct i40e_ring *rxr = vsi->rx_rings[queue_pair]; in i40e_queue_pair_disable_irq() local
12917 u32 intpf = vsi->base_vector + rxr->q_vector->v_idx; in i40e_queue_pair_disable_irq()
/drivers/net/ethernet/amazon/ena/
Dena_netdev.c622 struct ena_ring *txr, *rxr; in ena_init_io_rings() local
629 rxr = &adapter->rx_ring[i]; in ena_init_io_rings()
646 ena_init_io_rings_common(adapter, rxr, i); in ena_init_io_rings()
649 rxr->ring_size = adapter->requested_rx_ring_size; in ena_init_io_rings()
650 rxr->rx_copybreak = adapter->rx_copybreak; in ena_init_io_rings()
651 rxr->sgl_size = adapter->max_rx_sgl_size; in ena_init_io_rings()
652 rxr->smoothed_interval = in ena_init_io_rings()
654 rxr->empty_rx_queue = 0; in ena_init_io_rings()