/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/ |
D | nfp_netvf_main.c | 69 int max_tx_rings, max_rx_rings; in nfp_netvf_pci_probe() local 149 max_tx_rings = readl(ctrl_bar + NFP_NET_CFG_MAX_TXRINGS); in nfp_netvf_pci_probe() 152 tx_bar_sz = NFP_QCP_QUEUE_ADDR_SZ * max_tx_rings * stride; in nfp_netvf_pci_probe() 160 max_tx_rings = (tx_bar_sz / NFP_QCP_QUEUE_ADDR_SZ) / 2; in nfp_netvf_pci_probe() 175 nn = nfp_net_alloc(pdev, ctrl_bar, true, max_tx_rings, max_rx_rings); in nfp_netvf_pci_probe()
|
D | nfp_net_debugfs.c | 178 for (i = 0; i < min(nn->max_tx_rings, nn->max_r_vecs); i++) { in nfp_net_debugfs_vnic_add()
|
D | nfp_net.h | 623 unsigned int max_tx_rings; member 925 unsigned int max_tx_rings, unsigned int max_rx_rings);
|
D | nfp_net_common.c | 3211 if (dp->num_tx_rings > nn->max_tx_rings) { in nfp_net_check_config() 3704 nn->dp.num_tx_rings, nn->max_tx_rings, in nfp_net_info() 3752 unsigned int max_tx_rings, unsigned int max_rx_rings) in nfp_net_alloc() argument 3761 max_tx_rings, max_rx_rings); in nfp_net_alloc() 3778 nn->max_tx_rings = max_tx_rings; in nfp_net_alloc() 3782 max_tx_rings, num_online_cpus()); in nfp_net_alloc()
|
D | nfp_net_ethtool.c | 1414 channel->max_tx = min(nn->max_tx_rings, nn->max_r_vecs); in nfp_net_get_channels() 1456 total_tx > min(nn->max_tx_rings, nn->max_r_vecs)) in nfp_net_set_channels()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_sriov.c | 527 vf_tx_rings = hw_resc->max_tx_rings - bp->tx_nr_rings; in bnxt_hwrm_func_vf_resc_cfg() 566 req.max_tx_rings = cpu_to_le16(vf_tx_rings); in bnxt_hwrm_func_vf_resc_cfg() 593 hw_resc->max_tx_rings -= le16_to_cpu(req.min_tx_rings) * n; in bnxt_hwrm_func_vf_resc_cfg() 634 vf_tx_rings = (hw_resc->max_tx_rings - bp->tx_nr_rings) / num_vfs; in bnxt_hwrm_func_cfg() 683 hw_resc->max_tx_rings -= total_vf_tx_rings; in bnxt_hwrm_func_cfg() 765 if (hw_resc->max_tx_rings - bp->tx_nr_rings >= min_tx_rings && in bnxt_sriov_enable()
|
D | bnxt_ethtool.c | 804 int max_rx_rings, max_tx_rings, tcs; in bnxt_get_channels() local 812 bnxt_get_max_rings(bp, &max_rx_rings, &max_tx_rings, true); in bnxt_get_channels() 814 max_tx_rings = min_t(int, max_tx_rings, max_tx_sch_inputs); in bnxt_get_channels() 820 max_tx_rings /= tx_grps; in bnxt_get_channels() 821 channel->max_combined = min_t(int, max_rx_rings, max_tx_rings); in bnxt_get_channels() 823 if (bnxt_get_max_rings(bp, &max_rx_rings, &max_tx_rings, false)) { in bnxt_get_channels() 825 max_tx_rings = 0; in bnxt_get_channels() 828 max_tx_rings = min_t(int, max_tx_rings, max_tx_sch_inputs); in bnxt_get_channels() 831 max_tx_rings /= tcs; in bnxt_get_channels() 834 channel->max_tx = max_tx_rings; in bnxt_get_channels()
|
D | bnxt.c | 7310 hw_resc->max_tx_rings = le16_to_cpu(resp->max_tx_rings); in bnxt_hwrm_func_resc_qcaps() 7387 hw_resc->max_tx_rings = le16_to_cpu(resp->max_tx_rings); in __bnxt_hwrm_func_qcaps() 7391 hw_resc->max_hw_ring_grps = hw_resc->max_tx_rings; in __bnxt_hwrm_func_qcaps() 12322 *max_tx = hw_resc->max_tx_rings; in _bnxt_get_max_rings() 12416 int dflt_rings, max_rx_rings, max_tx_rings, rc; in bnxt_set_dflt_rings() local 12433 rc = bnxt_get_dflt_rings(bp, &max_rx_rings, &max_tx_rings, sh); in bnxt_set_dflt_rings() 12437 bp->tx_nr_rings_per_tc = min_t(int, dflt_rings, max_tx_rings); in bnxt_set_dflt_rings()
|
D | bnxt.h | 1067 u16 max_tx_rings; member
|
D | bnxt_hsi.h | 1247 __le16 max_tx_rings; member 1921 __le16 max_tx_rings; member 1953 __le16 max_tx_rings; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_83xx_init.c | 2288 u16 max_sds_rings, max_tx_rings; in qlcnic_83xx_configure_opmode() local 2302 max_tx_rings = QLCNIC_MAX_VNIC_TX_RINGS; in qlcnic_83xx_configure_opmode() 2308 max_tx_rings = QLCNIC_MAX_TX_RINGS; in qlcnic_83xx_configure_opmode() 2316 adapter->max_tx_rings = min(ahw->max_tx_ques, max_tx_rings); in qlcnic_83xx_configure_opmode() 2422 adapter->max_tx_rings = QLCNIC_MAX_TX_RINGS; in qlcnic_83xx_init_rings()
|
D | qlcnic_ethtool.c | 711 if (tx_ring > adapter->max_tx_rings) { in qlcnic_validate_ring_count() 714 tx_ring, adapter->max_tx_rings); in qlcnic_validate_ring_count() 728 channel->max_tx = adapter->max_tx_rings; in qlcnic_get_channels()
|
D | qlcnic_main.c | 635 max_rings = adapter->max_tx_rings; in qlcnic_max_rings() 649 if (adapter->max_tx_rings) in qlcnic_set_tx_ring_count() 1319 adapter->max_tx_rings = QLCNIC_MAX_HW_VNIC_TX_RINGS; in qlcnic_initialize_nic() 1325 adapter->max_tx_rings = QLCNIC_MAX_HW_TX_RINGS; in qlcnic_initialize_nic()
|
D | qlcnic.h | 1118 u8 max_tx_rings; /* max tx rings supported by adapter */ member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/ |
D | bnx2.c | 7771 u32 max_tx_rings = 1; in bnx2_get_channels() local 7775 max_tx_rings = TX_MAX_RINGS; in bnx2_get_channels() 7779 channels->max_tx = max_tx_rings; in bnx2_get_channels() 7793 u32 max_tx_rings = 1; in bnx2_set_channels() local 7798 max_tx_rings = TX_MAX_RINGS; in bnx2_set_channels() 7801 channels->tx_count > max_tx_rings) in bnx2_set_channels()
|