Home
last modified time | relevance | path

Searched refs:rx_rings (Results 1 – 25 of 36) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/
Daq_vec.c24 unsigned int rx_rings; member
125 self->rx_rings = 0; in aq_vec_alloc()
163 ++self->rx_rings; in aq_vec_ring_alloc()
303 if (i < self->rx_rings) in aq_vec_ring_free()
308 self->rx_rings = 0; in aq_vec_ring_free()
358 return tc < self->rx_rings && tc < self->tx_rings; in aq_vec_is_valid_tc()
Daq_hw.h67 u8 rx_rings; member
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_ethtool.c699 rx_ring = test_vsi->rx_rings[0]; in ice_loopback_test()
1382 ring = READ_ONCE(vsi->rx_rings[j]); in ice_get_ethtool_stats()
2719 ring->rx_pending = vsi->rx_rings[0]->count; in ice_get_ringparam()
2732 struct ice_ring *tx_rings = NULL, *rx_rings = NULL; in ice_set_ringparam() local
2762 new_rx_cnt == vsi->rx_rings[0]->count) { in ice_set_ringparam()
2786 vsi->rx_rings[i]->count = new_rx_cnt; in ice_set_ringparam()
2854 if (new_rx_cnt == vsi->rx_rings[0]->count) in ice_set_ringparam()
2859 vsi->rx_rings[0]->count, new_rx_cnt); in ice_set_ringparam()
2861 rx_rings = kcalloc(vsi->num_rxq, sizeof(*rx_rings), GFP_KERNEL); in ice_set_ringparam()
2862 if (!rx_rings) { in ice_set_ringparam()
[all …]
Dice_lib.c81 vsi->rx_rings = devm_kcalloc(dev, vsi->alloc_rxq, in ice_vsi_alloc_arrays()
82 sizeof(*vsi->rx_rings), GFP_KERNEL); in ice_vsi_alloc_arrays()
83 if (!vsi->rx_rings) in ice_vsi_alloc_arrays()
120 devm_kfree(dev, vsi->rx_rings); in ice_vsi_alloc_arrays()
305 if (vsi->rx_rings) { in ice_vsi_free_arrays()
306 devm_kfree(dev, vsi->rx_rings); in ice_vsi_free_arrays()
307 vsi->rx_rings = NULL; in ice_vsi_free_arrays()
1231 if (vsi->rx_rings) { in ice_vsi_clear_rings()
1233 if (vsi->rx_rings[i]) { in ice_vsi_clear_rings()
1234 kfree_rcu(vsi->rx_rings[i], rcu); in ice_vsi_clear_rings()
[all …]
Dice_xsk.c22 memset(&vsi->rx_rings[q_idx]->rx_stats, 0, in ice_qp_reset_stats()
23 sizeof(vsi->rx_rings[q_idx]->rx_stats)); in ice_qp_reset_stats()
43 ice_clean_rx_ring(vsi->rx_rings[q_idx]); in ice_qp_clean_rings()
161 rx_ring = vsi->rx_rings[q_idx]; in ice_qp_dis()
225 rx_ring = vsi->rx_rings[q_idx]; in ice_qp_ena()
380 if (!is_power_of_2(vsi->rx_rings[qid]->count) || in ice_xsk_pool_setup()
Dice_dcb_lib.c208 rx_ring = vsi->rx_rings[i]; in ice_vsi_cfg_dcb_rings()
222 rx_ring = vsi->rx_rings[i]; in ice_vsi_cfg_dcb_rings()
Dice.h246 struct ice_ring **rx_rings; /* Rx ring array */ member
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c1929 ring->rx_pending = vsi->rx_rings[0]->count; in i40e_get_ringparam()
1949 struct i40e_ring *tx_rings = NULL, *rx_rings = NULL; in i40e_set_ringparam() local
1978 (new_rx_count == vsi->rx_rings[0]->count)) in i40e_set_ringparam()
1999 vsi->rx_rings[i]->count = new_rx_count; in i40e_set_ringparam()
2055 if (new_rx_count != vsi->rx_rings[0]->count) { in i40e_set_ringparam()
2058 vsi->rx_rings[0]->count, new_rx_count); in i40e_set_ringparam()
2059 rx_rings = kcalloc(vsi->alloc_queue_pairs, in i40e_set_ringparam()
2061 if (!rx_rings) { in i40e_set_ringparam()
2070 rx_rings[i] = *vsi->rx_rings[i]; in i40e_set_ringparam()
2071 rx_rings[i].count = new_rx_count; in i40e_set_ringparam()
[all …]
Di40e_xsk.c68 rx_ring = vsi->rx_rings[q]; in i40e_realloc_rx_bi_zc()
115 err = i40e_realloc_rx_xdp_bi(vsi->rx_rings[qid], true); in i40e_xsk_pool_enable()
163 err = i40e_realloc_rx_xdp_bi(vsi->rx_rings[qid], false); in i40e_xsk_pool_disable()
Di40e_main.c468 ring = READ_ONCE(vsi->rx_rings[i]); in i40e_get_netdev_stats_struct()
510 if (vsi->rx_rings && vsi->rx_rings[0]) { in i40e_vsi_reset_stats()
512 memset(&vsi->rx_rings[i]->stats, 0, in i40e_vsi_reset_stats()
513 sizeof(vsi->rx_rings[i]->stats)); in i40e_vsi_reset_stats()
514 memset(&vsi->rx_rings[i]->rx_stats, 0, in i40e_vsi_reset_stats()
515 sizeof(vsi->rx_rings[i]->rx_stats)); in i40e_vsi_reset_stats()
903 p = READ_ONCE(vsi->rx_rings[q]); in i40e_update_vsi_stats()
3209 err = i40e_setup_rx_descriptors(vsi->rx_rings[i]); in i40e_vsi_setup_rx_resources()
3223 if (!vsi->rx_rings) in i40e_vsi_free_rx_resources()
3227 if (vsi->rx_rings[i] && vsi->rx_rings[i]->desc) in i40e_vsi_free_rx_resources()
[all …]
/kernel/linux/linux-5.10/drivers/thunderbolt/
Dnhi.c459 if (!nhi->rx_rings[i]) { in nhi_alloc_hop()
477 } else if (!ring->is_tx && nhi->rx_rings[ring->hop]) { in nhi_alloc_hop()
487 nhi->rx_rings[ring->hop] = ring; in nhi_alloc_hop()
708 ring->nhi->rx_rings[ring->hop] = NULL; in tb_ring_free()
830 ring = nhi->rx_rings[hop]; in nhi_interrupt_work()
1029 if (nhi->rx_rings[i]) in nhi_shutdown()
1199 nhi->rx_rings = devm_kcalloc(&pdev->dev, nhi->hop_count, in nhi_probe()
1200 sizeof(*nhi->rx_rings), GFP_KERNEL); in nhi_probe()
1201 if (!nhi->tx_rings || !nhi->rx_rings) in nhi_probe()
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/genet/
Dbcmgenet.c847 ring = &priv->rx_rings[i]; in bcmgenet_get_coalesce()
850 ring = &priv->rx_rings[DESC_INDEX]; in bcmgenet_get_coalesce()
928 bcmgenet_set_ring_rx_coalesce(&priv->rx_rings[i], ec); in bcmgenet_set_coalesce()
929 bcmgenet_set_ring_rx_coalesce(&priv->rx_rings[DESC_INDEX], ec); in bcmgenet_set_coalesce()
986 rx_rings[num].bytes), \
988 rx_rings[num].packets), \
990 rx_rings[num].errors), \
992 rx_rings[num].dropped)
2643 struct bcmgenet_rx_ring *ring = &priv->rx_rings[index]; in bcmgenet_init_rx_ring()
2816 ring = &priv->rx_rings[i]; in bcmgenet_enable_rx_napi()
[all …]
Dbcmgenet.h648 struct bcmgenet_rx_ring rx_rings[DESC_INDEX + 1]; member
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/iavf/
Diavf_main.c319 struct iavf_ring *rx_ring = &adapter->rx_rings[r_idx]; in iavf_map_vector_to_rxq()
611 adapter->rx_rings[i].tail = hw->hw_addr + IAVF_QRX_TAIL1(i); in iavf_configure_rx()
612 adapter->rx_rings[i].rx_buf_len = rx_buf_len; in iavf_configure_rx()
615 clear_ring_build_skb_enabled(&adapter->rx_rings[i]); in iavf_configure_rx()
617 set_ring_build_skb_enabled(&adapter->rx_rings[i]); in iavf_configure_rx()
952 struct iavf_ring *ring = &adapter->rx_rings[i]; in iavf_configure()
1097 kfree(adapter->rx_rings); in iavf_free_queues()
1098 adapter->rx_rings = NULL; in iavf_free_queues()
1133 adapter->rx_rings = kcalloc(num_active_queues, in iavf_alloc_queues()
1135 if (!adapter->rx_rings) in iavf_alloc_queues()
[all …]
Diavf_ethtool.c370 &adapter->rx_rings[i] : NULL); in iavf_get_ethtool_stats()
690 rx_ring = &adapter->rx_rings[queue]; in __iavf_get_coalesce()
746 struct iavf_ring *rx_ring = &adapter->rx_rings[queue]; in iavf_set_itr_per_queue()
Diavf.h250 struct iavf_ring *rx_rings; member
Diavf_virtchnl.c282 vqpi->rxq.ring_len = adapter->rx_rings[i].count; in iavf_configure_queues()
283 vqpi->rxq.dma_ring_addr = adapter->rx_rings[i].dma; in iavf_configure_queues()
286 ALIGN(adapter->rx_rings[i].rx_buf_len, in iavf_configure_queues()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtw88/
Dpci.c178 rx_ring = &rtwpci->rx_rings[i]; in rtw_pci_free_trx_ring()
349 rx_ring = &rtwpci->rx_rings[j]; in rtw_pci_init_trx_ring()
367 rx_ring = &rtwpci->rx_rings[j]; in rtw_pci_init_trx_ring()
469 len = rtwpci->rx_rings[RTW_RX_QUEUE_MPDU].r.len; in rtw_pci_reset_buf_desc()
470 dma = rtwpci->rx_rings[RTW_RX_QUEUE_MPDU].r.dma; in rtw_pci_reset_buf_desc()
471 rtwpci->rx_rings[RTW_RX_QUEUE_MPDU].r.rp = 0; in rtw_pci_reset_buf_desc()
472 rtwpci->rx_rings[RTW_RX_QUEUE_MPDU].r.wp = 0; in rtw_pci_reset_buf_desc()
955 ring = &rtwpci->rx_rings[RTW_RX_QUEUE_MPDU]; in rtw_pci_rx_isr()
Dpci.h209 struct rtw_pci_rx_ring rx_rings[RTK_MAX_RX_QUEUE_NUM]; member
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/
Dnfp_net_common.c2568 dp->rx_rings = kcalloc(dp->num_rx_rings, sizeof(*dp->rx_rings), in nfp_net_rx_rings_prepare()
2570 if (!dp->rx_rings) in nfp_net_rx_rings_prepare()
2574 nfp_net_rx_ring_init(&dp->rx_rings[r], &nn->r_vecs[r], r); in nfp_net_rx_rings_prepare()
2576 if (nfp_net_rx_ring_alloc(dp, &dp->rx_rings[r])) in nfp_net_rx_rings_prepare()
2579 if (nfp_net_rx_ring_bufs_alloc(dp, &dp->rx_rings[r])) in nfp_net_rx_rings_prepare()
2587 nfp_net_rx_ring_bufs_free(dp, &dp->rx_rings[r]); in nfp_net_rx_rings_prepare()
2589 nfp_net_rx_ring_free(&dp->rx_rings[r]); in nfp_net_rx_rings_prepare()
2591 kfree(dp->rx_rings); in nfp_net_rx_rings_prepare()
2600 nfp_net_rx_ring_bufs_free(dp, &dp->rx_rings[r]); in nfp_net_rx_rings_free()
2601 nfp_net_rx_ring_free(&dp->rx_rings[r]); in nfp_net_rx_rings_free()
[all …]
Dnfp_net.h516 struct nfp_net_rx_ring *rx_rings; member
/kernel/linux/linux-5.10/net/ethtool/
Dioctl.c1019 struct ethtool_rxnfc *rx_rings, in ethtool_copy_validate_indir() argument
1029 if (indir[i] >= rx_rings->data) in ethtool_copy_validate_indir()
1096 struct ethtool_rxnfc rx_rings; in ethtool_set_rxfh_indir() local
1123 rx_rings.cmd = ETHTOOL_GRXRINGS; in ethtool_set_rxfh_indir()
1124 ret = ops->get_rxnfc(dev, &rx_rings, NULL); in ethtool_set_rxfh_indir()
1130 indir[i] = ethtool_rxfh_indir_default(i, rx_rings.data); in ethtool_set_rxfh_indir()
1134 &rx_rings, in ethtool_set_rxfh_indir()
1239 struct ethtool_rxnfc rx_rings; in ethtool_set_rxfh() local
1284 rx_rings.cmd = ETHTOOL_GRXRINGS; in ethtool_set_rxfh()
1285 ret = ops->get_rxnfc(dev, &rx_rings, NULL); in ethtool_set_rxfh()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.c5149 int bnxt_get_nr_rss_ctxs(struct bnxt *bp, int rx_rings) in bnxt_get_nr_rss_ctxs() argument
5152 return DIV_ROUND_UP(rx_rings, BNXT_RSS_TABLE_ENTRIES_P5); in bnxt_get_nr_rss_ctxs()
6074 int tx_rings, int rx_rings, int ring_grps, in __bnxt_hwrm_reserve_pf_rings() argument
6084 enables |= rx_rings ? FUNC_CFG_REQ_ENABLES_NUM_RX_RINGS : 0; in __bnxt_hwrm_reserve_pf_rings()
6090 enables |= rx_rings ? in __bnxt_hwrm_reserve_pf_rings()
6101 req->num_rx_rings = cpu_to_le16(rx_rings); in __bnxt_hwrm_reserve_pf_rings()
6125 int rx_rings, int ring_grps, int cp_rings, in __bnxt_hwrm_reserve_vf_rings() argument
6132 enables |= rx_rings ? FUNC_VF_CFG_REQ_ENABLES_NUM_RX_RINGS | in __bnxt_hwrm_reserve_vf_rings()
6149 req->num_rx_rings = cpu_to_le16(rx_rings); in __bnxt_hwrm_reserve_vf_rings()
6165 bnxt_hwrm_reserve_pf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in bnxt_hwrm_reserve_pf_rings() argument
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/sun/
Dniu.c3745 struct rx_ring_info *rp = &np->rx_rings[i]; in niu_poll_core()
4072 struct rx_ring_info *rp = &np->rx_rings[i]; in niu_slowpath_interrupt()
4156 struct rx_ring_info *rp = &np->rx_rings[i]; in __niu_fastpath_interrupt()
4297 if (np->rx_rings) { in niu_free_channels()
4299 struct rx_ring_info *rp = &np->rx_rings[i]; in niu_free_channels()
4303 kfree(np->rx_rings); in niu_free_channels()
4304 np->rx_rings = NULL; in niu_free_channels()
4455 struct rx_ring_info *rx_rings; in niu_alloc_channels() local
4469 rx_rings = kcalloc(num_rx_rings, sizeof(struct rx_ring_info), in niu_alloc_channels()
4472 if (!rx_rings) in niu_alloc_channels()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dthunderbolt.h449 struct tb_ring **rx_rings; member

12