/linux-6.1.9/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_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.c | 723 struct bnxt_rx_ring_info *rxr, in __bnxt_alloc_rx_page() argument 729 page = page_pool_dev_alloc_pages(rxr->page_pool); in __bnxt_alloc_rx_page() 736 page_pool_recycle_direct(rxr->page_pool, page); in __bnxt_alloc_rx_page() 766 int bnxt_alloc_rx_data(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, in bnxt_alloc_rx_data() argument 769 struct rx_bd *rxbd = &rxr->rx_desc_ring[RX_RING(prod)][RX_IDX(prod)]; in bnxt_alloc_rx_data() 770 struct bnxt_sw_rx_bd *rx_buf = &rxr->rx_buf_ring[prod]; in bnxt_alloc_rx_data() 775 __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 …]
|
D | bnxt_ethtool.c | 3457 struct bnxt_rx_ring_info *rxr; in bnxt_rx_loopback() local 3465 rxr = bnapi->rx_ring; in bnxt_rx_loopback() 3470 rx_buf = &rxr->rx_buf_ring[cons]; in bnxt_rx_loopback() 3524 struct bnxt_rx_ring_info *rxr = &bp->rx_ring[0]; in bnxt_run_loopback() local 3532 cpr = &rxr->bnapi->cp_ring; in bnxt_run_loopback()
|
D | bnxt.h | 2294 int bnxt_alloc_rx_data(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, 2296 void bnxt_reuse_rx_data(struct bnxt_rx_ring_info *rxr, u16 cons, void *data);
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/drivers/net/ethernet/freescale/enetc/ |
D | enetc.c | 1822 static int enetc_alloc_rxbdr(struct enetc_bdr *rxr, bool extended) in enetc_alloc_rxbdr() argument 1827 rxr->rx_swbd = vzalloc(rxr->bd_count * sizeof(struct enetc_rx_swbd)); in enetc_alloc_rxbdr() 1828 if (!rxr->rx_swbd) in enetc_alloc_rxbdr() 1834 err = enetc_dma_alloc_bdr(rxr, size); in enetc_alloc_rxbdr() 1836 vfree(rxr->rx_swbd); in enetc_alloc_rxbdr() 1840 rxr->next_to_clean = 0; in enetc_alloc_rxbdr() 1841 rxr->next_to_use = 0; in enetc_alloc_rxbdr() 1842 rxr->next_to_alloc = 0; in enetc_alloc_rxbdr() 1843 rxr->ext_en = extended; in enetc_alloc_rxbdr() 1848 static void enetc_free_rxbdr(struct enetc_bdr *rxr) in enetc_free_rxbdr() argument [all …]
|
/linux-6.1.9/drivers/net/ethernet/intel/ice/ |
D | ice_txrx.h | 428 bool ice_alloc_rx_bufs(struct ice_rx_ring *rxr, u16 cleaned_count);
|
/linux-6.1.9/drivers/net/ethernet/amazon/ena/ |
D | ena_netdev.c | 692 struct ena_ring *txr, *rxr; in ena_init_io_rings() local 699 rxr = &adapter->rx_ring[i]; in ena_init_io_rings() 717 ena_init_io_rings_common(adapter, rxr, i); in ena_init_io_rings() 720 rxr->ring_size = adapter->requested_rx_ring_size; in ena_init_io_rings() 721 rxr->rx_copybreak = adapter->rx_copybreak; in ena_init_io_rings() 722 rxr->sgl_size = adapter->max_rx_sgl_size; in ena_init_io_rings() 723 rxr->smoothed_interval = in ena_init_io_rings() 725 rxr->empty_rx_queue = 0; in ena_init_io_rings() 726 rxr->rx_headroom = NET_SKB_PAD; in ena_init_io_rings() 728 rxr->xdp_ring = &adapter->tx_ring[i + adapter->num_io_queues]; in ena_init_io_rings()
|
/linux-6.1.9/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 | 13423 struct i40e_ring *rxr = vsi->rx_rings[queue_pair]; in i40e_queue_pair_toggle_napi() local 13424 struct i40e_q_vector *q_vector = rxr->q_vector; in i40e_queue_pair_toggle_napi() 13499 struct i40e_ring *rxr = vsi->rx_rings[queue_pair]; in i40e_queue_pair_enable_irq() local 13505 i40e_irq_dynamic_enable(vsi, rxr->q_vector->v_idx); in i40e_queue_pair_enable_irq() 13519 struct i40e_ring *rxr = vsi->rx_rings[queue_pair]; in i40e_queue_pair_disable_irq() local 13530 u32 intpf = vsi->base_vector + rxr->q_vector->v_idx; in i40e_queue_pair_disable_irq()
|
/linux-6.1.9/drivers/net/ethernet/intel/iavf/ |
D | iavf_txrx.h | 443 bool iavf_alloc_rx_buffers(struct iavf_ring *rxr, u16 cleaned_count);
|
/linux-6.1.9/tools/testing/selftests/bpf/ |
D | xskxceiver.c | 319 struct xsk_ring_cons *rxr; in __xsk_configure_socket() local 332 rxr = ifobject->rx_on ? &xsk->rx : NULL; in __xsk_configure_socket() 333 return xsk_socket__create(&xsk->xsk, ifobject->ifname, 0, umem->umem, rxr, txr, &cfg); in __xsk_configure_socket()
|