Home
last modified time | relevance | path

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

/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_xdp.c131 struct bnxt_rx_ring_info *rxr = bnapi->rx_ring; in bnxt_tx_int_xdp() local
159 page_pool_recycle_direct(rxr->page_pool, tx_buf->page); in bnxt_tx_int_xdp()
167 bnxt_db_write(bp, &rxr->rx_db, tx_buf->rx_prod); in bnxt_tx_int_xdp()
172 bool bnxt_xdp_attached(struct bnxt *bp, struct bnxt_rx_ring_info *rxr) in bnxt_xdp_attached() argument
174 struct bpf_prog *xdp_prog = READ_ONCE(rxr->xdp_prog); in bnxt_xdp_attached()
179 void bnxt_xdp_buff_init(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, in bnxt_xdp_buff_init() argument
190 rx_buf = &rxr->rx_buf_ring[cons]; in bnxt_xdp_buff_init()
196 xdp_init_buff(xdp, buflen, &rxr->xdp_rxq); in bnxt_xdp_buff_init()
200 void bnxt_xdp_buff_frags_free(struct bnxt_rx_ring_info *rxr, in bnxt_xdp_buff_frags_free() argument
212 page_pool_recycle_direct(rxr->page_pool, page); in bnxt_xdp_buff_frags_free()
[all …]
Dbnxt.c723 struct bnxt_rx_ring_info *rxr, in __bnxt_alloc_rx_page() argument
731 page = page_pool_dev_alloc_frag(rxr->page_pool, offset, in __bnxt_alloc_rx_page()
734 page = page_pool_dev_alloc_pages(rxr->page_pool); in __bnxt_alloc_rx_page()
743 page_pool_recycle_direct(rxr->page_pool, page); in __bnxt_alloc_rx_page()
773 int bnxt_alloc_rx_data(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, in bnxt_alloc_rx_data() argument
776 struct rx_bd *rxbd = &rxr->rx_desc_ring[RX_RING(prod)][RX_IDX(prod)]; in bnxt_alloc_rx_data()
777 struct bnxt_sw_rx_bd *rx_buf = &rxr->rx_buf_ring[prod]; in bnxt_alloc_rx_data()
783 __bnxt_alloc_rx_page(bp, &mapping, rxr, &offset, gfp); in bnxt_alloc_rx_data()
806 void bnxt_reuse_rx_data(struct bnxt_rx_ring_info *rxr, u16 cons, void *data) in bnxt_reuse_rx_data() argument
808 u16 prod = rxr->rx_prod; in bnxt_reuse_rx_data()
[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_ethtool.c3453 struct bnxt_rx_ring_info *rxr; in bnxt_rx_loopback() local
3461 rxr = bnapi->rx_ring; in bnxt_rx_loopback()
3466 rx_buf = &rxr->rx_buf_ring[cons]; in bnxt_rx_loopback()
3520 struct bnxt_rx_ring_info *rxr = &bp->rx_ring[0]; in bnxt_run_loopback() local
3528 cpr = &rxr->bnapi->cp_ring; in bnxt_run_loopback()
Dbnxt.h2314 int bnxt_alloc_rx_data(struct bnxt *bp, struct bnxt_rx_ring_info *rxr,
2316 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.c1836 static int enetc_alloc_rxbdr(struct enetc_bdr *rxr, bool extended) in enetc_alloc_rxbdr() argument
1841 rxr->rx_swbd = vzalloc(rxr->bd_count * sizeof(struct enetc_rx_swbd)); in enetc_alloc_rxbdr()
1842 if (!rxr->rx_swbd) in enetc_alloc_rxbdr()
1848 err = enetc_dma_alloc_bdr(rxr, size); in enetc_alloc_rxbdr()
1850 vfree(rxr->rx_swbd); in enetc_alloc_rxbdr()
1854 rxr->next_to_clean = 0; in enetc_alloc_rxbdr()
1855 rxr->next_to_use = 0; in enetc_alloc_rxbdr()
1856 rxr->next_to_alloc = 0; in enetc_alloc_rxbdr()
1857 rxr->ext_en = extended; in enetc_alloc_rxbdr()
1862 static void enetc_free_rxbdr(struct enetc_bdr *rxr) in enetc_free_rxbdr() argument
[all …]
/drivers/net/ethernet/amazon/ena/
Dena_netdev.c693 struct ena_ring *txr, *rxr; in ena_init_io_rings() local
700 rxr = &adapter->rx_ring[i]; in ena_init_io_rings()
718 ena_init_io_rings_common(adapter, rxr, i); in ena_init_io_rings()
721 rxr->ring_size = adapter->requested_rx_ring_size; in ena_init_io_rings()
722 rxr->rx_copybreak = adapter->rx_copybreak; in ena_init_io_rings()
723 rxr->sgl_size = adapter->max_rx_sgl_size; in ena_init_io_rings()
724 rxr->smoothed_interval = in ena_init_io_rings()
726 rxr->empty_rx_queue = 0; in ena_init_io_rings()
727 rxr->rx_headroom = NET_SKB_PAD; in ena_init_io_rings()
729 rxr->xdp_ring = &adapter->tx_ring[i + adapter->num_io_queues]; in ena_init_io_rings()
/drivers/net/ethernet/intel/ice/
Dice_txrx.h428 bool ice_alloc_rx_bufs(struct ice_rx_ring *rxr, u16 cleaned_count);
/drivers/net/ethernet/intel/iavf/
Diavf_txrx.h442 bool iavf_alloc_rx_buffers(struct iavf_ring *rxr, u16 cleaned_count);
/drivers/net/ethernet/intel/i40e/
Di40e_txrx.h454 bool i40e_alloc_rx_buffers(struct i40e_ring *rxr, u16 cleaned_count);
Di40e_main.c13435 struct i40e_ring *rxr = vsi->rx_rings[queue_pair]; in i40e_queue_pair_toggle_napi() local
13436 struct i40e_q_vector *q_vector = rxr->q_vector; in i40e_queue_pair_toggle_napi()
13511 struct i40e_ring *rxr = vsi->rx_rings[queue_pair]; in i40e_queue_pair_enable_irq() local
13517 i40e_irq_dynamic_enable(vsi, rxr->q_vector->v_idx); in i40e_queue_pair_enable_irq()
13531 struct i40e_ring *rxr = vsi->rx_rings[queue_pair]; in i40e_queue_pair_disable_irq() local
13542 u32 intpf = vsi->base_vector + rxr->q_vector->v_idx; in i40e_queue_pair_disable_irq()