/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_xdp.c | 131 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 …]
|
D | bnxt.c | 723 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 …]
|
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,
|
D | bnxt_ethtool.c | 3453 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()
|
D | bnxt.h | 2314 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/ |
D | bnx2.c | 717 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/ |
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() 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/ |
D | enetc.c | 1836 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/ |
D | ena_netdev.c | 693 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/ |
D | ice_txrx.h | 428 bool ice_alloc_rx_bufs(struct ice_rx_ring *rxr, u16 cleaned_count);
|
/drivers/net/ethernet/intel/iavf/ |
D | iavf_txrx.h | 442 bool iavf_alloc_rx_buffers(struct iavf_ring *rxr, u16 cleaned_count);
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.h | 454 bool i40e_alloc_rx_buffers(struct i40e_ring *rxr, u16 cleaned_count);
|
D | i40e_main.c | 13435 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()
|