Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/net/ethernet/intel/ice/
Dice_ethtool.c313 ring = READ_ONCE(vsi->rx_rings[j]); in ice_get_ethtool_stats()
479 ring->rx_pending = vsi->rx_rings[0]->count; in ice_get_ringparam()
490 struct ice_ring *tx_rings = NULL, *rx_rings = NULL; in ice_set_ringparam() local
512 new_rx_cnt == vsi->rx_rings[0]->count) { in ice_set_ringparam()
529 vsi->rx_rings[i]->count = new_rx_cnt; in ice_set_ringparam()
566 if (new_rx_cnt == vsi->rx_rings[0]->count) in ice_set_ringparam()
571 vsi->rx_rings[0]->count, new_rx_cnt); in ice_set_ringparam()
573 rx_rings = devm_kcalloc(&pf->pdev->dev, vsi->alloc_rxq, in ice_set_ringparam()
575 if (!rx_rings) { in ice_set_ringparam()
582 rx_rings[i] = *vsi->rx_rings[i]; in ice_set_ringparam()
[all …]
Dice_main.c1101 if (vsi->rx_rings) { in ice_vsi_dis_irq()
1103 if (vsi->rx_rings[i]) { in ice_vsi_dis_irq()
1106 reg = vsi->rx_rings[i]->reg_idx; in ice_vsi_dis_irq()
1516 if (vsi->rx_rings) { in ice_vsi_clear_rings()
1518 if (vsi->rx_rings[i]) { in ice_vsi_clear_rings()
1519 kfree_rcu(vsi->rx_rings[i], rcu); in ice_vsi_clear_rings()
1520 vsi->rx_rings[i] = NULL; in ice_vsi_clear_rings()
1572 vsi->rx_rings[i] = ring; in ice_vsi_alloc_rings()
1643 ITR_TO_REG(vsi->rx_rings[rxq]->rx_itr_setting, in ice_vsi_cfg_msix()
1849 struct ice_ring *rx_ring = vsi->rx_rings[q_id]; in ice_vsi_map_rings_to_vectors()
[all …]
Dice.h155 struct ice_ring **rx_rings; /* rx ring array */ member
/Linux-v4.19/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c1463 ring->rx_pending = vsi->rx_rings[0]->count; in i40e_get_ringparam()
1483 struct i40e_ring *tx_rings = NULL, *rx_rings = NULL; in i40e_set_ringparam() local
1512 (new_rx_count == vsi->rx_rings[0]->count)) in i40e_set_ringparam()
1526 vsi->rx_rings[i]->count = new_rx_count; in i40e_set_ringparam()
1580 if (new_rx_count != vsi->rx_rings[0]->count) { in i40e_set_ringparam()
1583 vsi->rx_rings[0]->count, new_rx_count); in i40e_set_ringparam()
1584 rx_rings = kcalloc(vsi->alloc_queue_pairs, in i40e_set_ringparam()
1586 if (!rx_rings) { in i40e_set_ringparam()
1595 rx_rings[i] = *vsi->rx_rings[i]; in i40e_set_ringparam()
1596 rx_rings[i].count = new_rx_count; in i40e_set_ringparam()
[all …]
Di40e_main.c487 if (vsi->rx_rings && vsi->rx_rings[0]) { in i40e_vsi_reset_stats()
489 memset(&vsi->rx_rings[i]->stats, 0, in i40e_vsi_reset_stats()
490 sizeof(vsi->rx_rings[i]->stats)); in i40e_vsi_reset_stats()
491 memset(&vsi->rx_rings[i]->rx_stats, 0, in i40e_vsi_reset_stats()
492 sizeof(vsi->rx_rings[i]->rx_stats)); in i40e_vsi_reset_stats()
3015 err = i40e_setup_rx_descriptors(vsi->rx_rings[i]); in i40e_vsi_setup_rx_resources()
3029 if (!vsi->rx_rings) in i40e_vsi_free_rx_resources()
3033 if (vsi->rx_rings[i] && vsi->rx_rings[i]->desc) in i40e_vsi_free_rx_resources()
3034 i40e_free_rx_resources(vsi->rx_rings[i]); in i40e_vsi_free_rx_resources()
3302 err = i40e_configure_rx_ring(vsi->rx_rings[i]); in i40e_vsi_configure_rx()
[all …]
Di40e.h713 struct i40e_ring **rx_rings; member
Di40e_debugfs.c244 struct i40e_ring *rx_ring = READ_ONCE(vsi->rx_rings[i]); in i40e_dbg_dump_vsi_seid()
521 ? vsi->rx_rings[ring_id] : vsi->tx_rings[ring_id], in i40e_dbg_dump_desc()
/Linux-v4.19/drivers/thunderbolt/
Dnhi.c436 if (!nhi->rx_rings[i]) { in nhi_alloc_hop()
454 } else if (!ring->is_tx && nhi->rx_rings[ring->hop]) { in nhi_alloc_hop()
464 nhi->rx_rings[ring->hop] = ring; in nhi_alloc_hop()
701 ring->nhi->rx_rings[ring->hop] = NULL; in tb_ring_free()
825 ring = nhi->rx_rings[hop]; in nhi_interrupt_work()
940 if (nhi->rx_rings[i]) in nhi_shutdown()
1030 nhi->rx_rings = devm_kcalloc(&pdev->dev, nhi->hop_count, in nhi_probe()
1031 sizeof(*nhi->rx_rings), GFP_KERNEL); in nhi_probe()
1032 if (!nhi->tx_rings || !nhi->rx_rings) in nhi_probe()
/Linux-v4.19/drivers/net/ethernet/broadcom/genet/
Dbcmgenet.c619 ring = &priv->rx_rings[i]; in bcmgenet_get_coalesce()
622 ring = &priv->rx_rings[DESC_INDEX]; in bcmgenet_get_coalesce()
704 bcmgenet_set_ring_rx_coalesce(&priv->rx_rings[i], ec); in bcmgenet_set_coalesce()
705 bcmgenet_set_ring_rx_coalesce(&priv->rx_rings[DESC_INDEX], ec); in bcmgenet_set_coalesce()
762 rx_rings[num].bytes), \
764 rx_rings[num].packets), \
766 rx_rings[num].errors), \
768 rx_rings[num].dropped)
2178 struct bcmgenet_rx_ring *ring = &priv->rx_rings[index]; in bcmgenet_init_rx_ring()
2351 ring = &priv->rx_rings[i]; in bcmgenet_enable_rx_napi()
[all …]
Dbcmgenet.h628 struct bcmgenet_rx_ring rx_rings[DESC_INDEX + 1]; member
/Linux-v4.19/drivers/net/ethernet/aquantia/atlantic/
Daq_vec.c26 unsigned int rx_rings; member
128 self->rx_rings = 0; in aq_vec_alloc()
156 ++self->rx_rings; in aq_vec_alloc()
Daq_hw.h44 u8 rx_rings; member
/Linux-v4.19/drivers/net/ethernet/intel/i40evf/
Di40evf_ethtool.c157 data[i++] = adapter->rx_rings[j].stats.packets; in i40evf_get_ethtool_stats()
158 data[i++] = adapter->rx_rings[j].stats.bytes; in i40evf_get_ethtool_stats()
434 rx_ring = &adapter->rx_rings[queue]; in __i40evf_get_coalesce()
492 struct i40e_ring *rx_ring = &adapter->rx_rings[queue]; in i40evf_set_itr_per_queue()
Di40evf_main.c325 struct i40e_ring *rx_ring = &adapter->rx_rings[r_idx]; in i40evf_map_vector_to_rxq()
616 adapter->rx_rings[i].tail = hw->hw_addr + I40E_QRX_TAIL1(i); in i40evf_configure_rx()
617 adapter->rx_rings[i].rx_buf_len = rx_buf_len; in i40evf_configure_rx()
620 clear_ring_build_skb_enabled(&adapter->rx_rings[i]); in i40evf_configure_rx()
622 set_ring_build_skb_enabled(&adapter->rx_rings[i]); in i40evf_configure_rx()
962 struct i40e_ring *ring = &adapter->rx_rings[i]; in i40evf_configure()
1107 kfree(adapter->rx_rings); in i40evf_free_queues()
1108 adapter->rx_rings = NULL; in i40evf_free_queues()
1143 adapter->rx_rings = kcalloc(num_active_queues, in i40evf_alloc_queues()
1145 if (!adapter->rx_rings) in i40evf_alloc_queues()
[all …]
Di40evf_virtchnl.c249 vqpi->rxq.ring_len = adapter->rx_rings[i].count; in i40evf_configure_queues()
250 vqpi->rxq.dma_ring_addr = adapter->rx_rings[i].dma; in i40evf_configure_queues()
253 ALIGN(adapter->rx_rings[i].rx_buf_len, in i40evf_configure_queues()
Di40evf.h247 struct i40e_ring *rx_rings; member
/Linux-v4.19/net/core/
Dethtool.c1054 struct ethtool_rxnfc *rx_rings, in ethtool_copy_validate_indir() argument
1064 if (indir[i] >= rx_rings->data) in ethtool_copy_validate_indir()
1162 struct ethtool_rxnfc rx_rings; in ethtool_set_rxfh_indir() local
1189 rx_rings.cmd = ETHTOOL_GRXRINGS; in ethtool_set_rxfh_indir()
1190 ret = ops->get_rxnfc(dev, &rx_rings, NULL); in ethtool_set_rxfh_indir()
1196 indir[i] = ethtool_rxfh_indir_default(i, rx_rings.data); in ethtool_set_rxfh_indir()
1200 &rx_rings, in ethtool_set_rxfh_indir()
1305 struct ethtool_rxnfc rx_rings; in ethtool_set_rxfh() local
1350 rx_rings.cmd = ETHTOOL_GRXRINGS; in ethtool_set_rxfh()
1351 ret = ops->get_rxnfc(dev, &rx_rings, NULL); in ethtool_set_rxfh()
[all …]
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/
Dnfp_net_common.c2364 dp->rx_rings = kcalloc(dp->num_rx_rings, sizeof(*dp->rx_rings), in nfp_net_rx_rings_prepare()
2366 if (!dp->rx_rings) in nfp_net_rx_rings_prepare()
2370 nfp_net_rx_ring_init(&dp->rx_rings[r], &nn->r_vecs[r], r); in nfp_net_rx_rings_prepare()
2372 if (nfp_net_rx_ring_alloc(dp, &dp->rx_rings[r])) in nfp_net_rx_rings_prepare()
2375 if (nfp_net_rx_ring_bufs_alloc(dp, &dp->rx_rings[r])) in nfp_net_rx_rings_prepare()
2383 nfp_net_rx_ring_bufs_free(dp, &dp->rx_rings[r]); in nfp_net_rx_rings_prepare()
2385 nfp_net_rx_ring_free(&dp->rx_rings[r]); in nfp_net_rx_rings_prepare()
2387 kfree(dp->rx_rings); in nfp_net_rx_rings_prepare()
2396 nfp_net_rx_ring_bufs_free(dp, &dp->rx_rings[r]); in nfp_net_rx_rings_free()
2397 nfp_net_rx_ring_free(&dp->rx_rings[r]); in nfp_net_rx_rings_free()
[all …]
Dnfp_net.h526 struct nfp_net_rx_ring *rx_rings; member
/Linux-v4.19/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.c4639 int tx_rings, int rx_rings, int ring_grps, in __bnxt_hwrm_reserve_pf_rings() argument
4649 enables |= rx_rings ? FUNC_CFG_REQ_ENABLES_NUM_RX_RINGS : 0; in __bnxt_hwrm_reserve_pf_rings()
4656 req->num_rx_rings = cpu_to_le16(rx_rings); in __bnxt_hwrm_reserve_pf_rings()
4668 int rx_rings, int ring_grps, int cp_rings, in __bnxt_hwrm_reserve_vf_rings() argument
4675 enables |= rx_rings ? FUNC_VF_CFG_REQ_ENABLES_NUM_RX_RINGS : 0; in __bnxt_hwrm_reserve_vf_rings()
4682 req->num_rx_rings = cpu_to_le16(rx_rings); in __bnxt_hwrm_reserve_vf_rings()
4692 bnxt_hwrm_reserve_pf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in bnxt_hwrm_reserve_pf_rings() argument
4698 __bnxt_hwrm_reserve_pf_rings(bp, &req, tx_rings, rx_rings, ring_grps, in bnxt_hwrm_reserve_pf_rings()
4715 bnxt_hwrm_reserve_vf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in bnxt_hwrm_reserve_vf_rings() argument
4726 __bnxt_hwrm_reserve_vf_rings(bp, &req, tx_rings, rx_rings, ring_grps, in bnxt_hwrm_reserve_vf_rings()
[all …]
/Linux-v4.19/drivers/net/ethernet/sun/
Dniu.c3747 struct rx_ring_info *rp = &np->rx_rings[i]; in niu_poll_core()
4076 struct rx_ring_info *rp = &np->rx_rings[i]; in niu_slowpath_interrupt()
4160 struct rx_ring_info *rp = &np->rx_rings[i]; in __niu_fastpath_interrupt()
4301 if (np->rx_rings) { in niu_free_channels()
4303 struct rx_ring_info *rp = &np->rx_rings[i]; in niu_free_channels()
4307 kfree(np->rx_rings); in niu_free_channels()
4308 np->rx_rings = NULL; in niu_free_channels()
4459 struct rx_ring_info *rx_rings; in niu_alloc_channels() local
4473 rx_rings = kcalloc(num_rx_rings, sizeof(struct rx_ring_info), in niu_alloc_channels()
4476 if (!rx_rings) in niu_alloc_channels()
[all …]
/Linux-v4.19/include/linux/
Dthunderbolt.h442 struct tb_ring **rx_rings; member
/Linux-v4.19/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_a0.c37 .rx_rings = HW_ATL_A0_RX_RINGS, \
Dhw_atl_b0.c38 .rx_rings = HW_ATL_B0_RX_RINGS, \
/Linux-v4.19/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_main.c4051 u8 tx_rings, rx_rings; in qlcnic_setup_rings() local
4058 rx_rings = adapter->drv_rss_rings; in qlcnic_setup_rings()
4062 err = qlcnic_set_real_num_queues(adapter, tx_rings, rx_rings); in qlcnic_setup_rings()
4089 (rx_rings != adapter->drv_sds_rings)) { in qlcnic_setup_rings()

12