/Linux-v5.15/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_sriov.c | 197 ivi->max_tx_rate = vf->max_tx_rate; in bnxt_get_vf_config() 290 int max_tx_rate) in bnxt_set_vf_bw() argument 304 if (max_tx_rate > pf_link_speed) { in bnxt_set_vf_bw() 306 max_tx_rate, vf_id); in bnxt_set_vf_bw() 310 if (min_tx_rate > pf_link_speed || min_tx_rate > max_tx_rate) { in bnxt_set_vf_bw() 315 if (min_tx_rate == vf->min_tx_rate && max_tx_rate == vf->max_tx_rate) in bnxt_set_vf_bw() 322 req->max_bw = cpu_to_le32(max_tx_rate); in bnxt_set_vf_bw() 327 vf->max_tx_rate = max_tx_rate; in bnxt_set_vf_bw() 509 if (vf->max_tx_rate) { in __bnxt_set_vf_params() 512 req->max_bw = cpu_to_le32(vf->max_tx_rate); in __bnxt_set_vf_params()
|
/Linux-v5.15/drivers/net/ethernet/intel/i40e/ |
D | i40e_virtchnl_pf.h | 60 u64 max_tx_rate; /* bandwidth rate allocation for VSIs */ member 130 int max_tx_rate);
|
D | i40e_virtchnl_pf.c | 767 u64 max_tx_rate = 0; in i40e_alloc_vsi_res() local 827 max_tx_rate = vf->tx_rate; in i40e_alloc_vsi_res() 828 } else if (vf->ch[idx].max_tx_rate) { in i40e_alloc_vsi_res() 829 max_tx_rate = vf->ch[idx].max_tx_rate; in i40e_alloc_vsi_res() 832 if (max_tx_rate) { in i40e_alloc_vsi_res() 833 max_tx_rate = div_u64(max_tx_rate, I40E_BW_CREDIT_DIVISOR); in i40e_alloc_vsi_res() 835 max_tx_rate, 0, NULL); in i40e_alloc_vsi_res() 3781 if (tci->list[i].max_tx_rate) { in i40e_vc_add_qch_msg() 3782 if (tci->list[i].max_tx_rate > speed) { in i40e_vc_add_qch_msg() 3785 tci->list[i].max_tx_rate, in i40e_vc_add_qch_msg() [all …]
|
D | i40e_main.c | 5598 int i40e_set_bw_limit(struct i40e_vsi *vsi, u16 seid, u64 max_tx_rate) in i40e_set_bw_limit() argument 5606 if (max_tx_rate > speed) { in i40e_set_bw_limit() 5609 max_tx_rate, seid); in i40e_set_bw_limit() 5612 if (max_tx_rate && max_tx_rate < 50) { in i40e_set_bw_limit() 5615 max_tx_rate = 50; in i40e_set_bw_limit() 5619 credits = max_tx_rate; in i40e_set_bw_limit() 5626 max_tx_rate, seid, i40e_stat_str(&pf->hw, ret), in i40e_set_bw_limit() 6300 if (ch->max_tx_rate) { in i40e_create_queue_channel() 6301 u64 credits = ch->max_tx_rate; in i40e_create_queue_channel() 6303 if (i40e_set_bw_limit(vsi, ch->seid, ch->max_tx_rate)) in i40e_create_queue_channel() [all …]
|
D | i40e.h | 424 u64 max_tx_rate; member 1264 int i40e_set_bw_limit(struct i40e_vsi *vsi, u16 seid, u64 max_tx_rate);
|
/Linux-v5.15/include/linux/ |
D | if_link.h | 28 __u32 max_tx_rate; member
|
/Linux-v5.15/net/can/ |
D | af_can.h | 82 unsigned long max_tx_rate; member
|
D | proc.c | 161 if (pkg_stats->max_tx_rate < pkg_stats->current_tx_rate) in can_stat_update() 162 pkg_stats->max_tx_rate = pkg_stats->current_tx_rate; in can_stat_update() 248 pkg_stats->max_tx_rate); in can_stats_proc_show()
|
/Linux-v5.15/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_sriov_pf.c | 1848 int min_tx_rate, int max_tx_rate) in qlcnic_sriov_set_vf_tx_rate() argument 1870 if (max_tx_rate && in qlcnic_sriov_set_vf_tx_rate() 1871 (max_tx_rate >= 10000 || max_tx_rate < min_tx_rate)) { in qlcnic_sriov_set_vf_tx_rate() 1878 if (!max_tx_rate) in qlcnic_sriov_set_vf_tx_rate() 1879 max_tx_rate = 10000; in qlcnic_sriov_set_vf_tx_rate() 1882 (min_tx_rate > max_tx_rate || min_tx_rate < QLC_VF_MIN_TX_RATE)) { in qlcnic_sriov_set_vf_tx_rate() 1885 QLC_VF_MIN_TX_RATE, max_tx_rate); in qlcnic_sriov_set_vf_tx_rate() 1893 nic_info.max_tx_bw = max_tx_rate / 100; in qlcnic_sriov_set_vf_tx_rate() 1901 vp->max_tx_bw = max_tx_rate / 100; in qlcnic_sriov_set_vf_tx_rate() 1904 max_tx_rate, vp->max_tx_bw, vf); in qlcnic_sriov_set_vf_tx_rate() [all …]
|
/Linux-v5.15/drivers/net/ethernet/huawei/hinic/ |
D | hinic_sriov.c | 566 ivi->max_tx_rate = vfinfo->max_rate; in hinic_get_vf_config() 837 int vf, int min_tx_rate, int max_tx_rate) in hinic_ndo_set_vf_bw() argument 854 if (max_tx_rate < min_tx_rate) { in hinic_ndo_set_vf_bw() 856 max_tx_rate, min_tx_rate); in hinic_ndo_set_vf_bw() 878 if (max_tx_rate < 0 || max_tx_rate > speeds[port_cap.speed]) { in hinic_ndo_set_vf_bw() 885 max_tx_rate, min_tx_rate); in hinic_ndo_set_vf_bw() 889 vf, max_tx_rate, min_tx_rate, in hinic_ndo_set_vf_bw() 897 vf, max_tx_rate, min_tx_rate); in hinic_ndo_set_vf_bw()
|
D | hinic_sriov.h | 90 int vf, int min_tx_rate, int max_tx_rate);
|
/Linux-v5.15/drivers/net/wireless/st/cw1200/ |
D | scan.c | 210 scan.max_tx_rate = WSM_TRANSMIT_RATE_6; in cw1200_scan_work() 212 scan.max_tx_rate = WSM_TRANSMIT_RATE_1; in cw1200_scan_work() 403 scan.max_tx_rate = wsm->max_tx_rate; in cw1200_probe_work()
|
D | wsm.h | 703 u8 max_tx_rate; member 807 u8 max_tx_rate; member
|
/Linux-v5.15/drivers/net/netdevsim/ |
D | netdev.c | 125 nsim_bus_dev->vfconfigs[vf].max_tx_rate = max; in nsim_set_vf_rate() 178 ivi->max_tx_rate = nsim_bus_dev->vfconfigs[vf].max_tx_rate; in nsim_get_vf_config()
|
D | netdevsim.h | 341 u16 max_tx_rate; member
|
/Linux-v5.15/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_sriov.h | 27 int max_tx_rate);
|
D | ixgbe_sriov.c | 1588 int max_tx_rate) in ixgbe_ndo_set_vf_bw() argument 1610 if (max_tx_rate && ((max_tx_rate <= 10) || (max_tx_rate > link_speed))) in ixgbe_ndo_set_vf_bw() 1615 adapter->vfinfo[vf].tx_rate = max_tx_rate; in ixgbe_ndo_set_vf_bw() 1709 ivi->max_tx_rate = adapter->vfinfo[vf].tx_rate; in ixgbe_ndo_get_vf_config()
|
/Linux-v5.15/include/linux/mlx4/ |
D | cmd.h | 315 int max_tx_rate);
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx4/ |
D | cmd.c | 2892 int max_tx_rate) in mlx4_set_vport_qos() argument 2916 if (test_bit(i, port_qos->priority_bm) && max_tx_rate) { in mlx4_set_vport_qos() 2917 vpp_qos[i].max_avg_bw = max_tx_rate; in mlx4_set_vport_qos() 3093 int max_tx_rate) in mlx4_set_vf_rate() argument 3116 err = mlx4_set_vport_qos(priv, slave, port, max_tx_rate); in mlx4_set_vf_rate() 3119 max_tx_rate); in mlx4_set_vf_rate() 3123 vf_admin->tx_rate = max_tx_rate; in mlx4_set_vf_rate() 3140 max_tx_rate); in mlx4_set_vf_rate() 3145 vf_admin->qos_vport = max_tx_rate ? slave : MLX4_VPP_DEFAULT_VPORT; in mlx4_set_vf_rate() 3239 ivf->max_tx_rate = s_info->tx_rate; in mlx4_get_vf_config() [all …]
|
/Linux-v5.15/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_tm.c | 546 int hclge_tm_qs_shaper_cfg(struct hclge_vport *vport, int max_tx_rate) in hclge_tm_qs_shaper_cfg() argument 556 if (!max_tx_rate) in hclge_tm_qs_shaper_cfg() 557 max_tx_rate = hdev->ae_dev->dev_specs.max_tm_rate; in hclge_tm_qs_shaper_cfg() 559 ret = hclge_shaper_para_calc(max_tx_rate, HCLGE_SHAPER_LVL_QSET, in hclge_tm_qs_shaper_cfg() 579 shap_cfg_cmd->qs_rate = cpu_to_le32(max_tx_rate); in hclge_tm_qs_shaper_cfg() 586 max_tx_rate, ret); in hclge_tm_qs_shaper_cfg()
|
D | hclge_tm.h | 233 int hclge_tm_qs_shaper_cfg(struct hclge_vport *vport, int max_tx_rate);
|
/Linux-v5.15/drivers/video/fbdev/omap/ |
D | hwa742.c | 821 unsigned long max_tx_rate = hwa742.extif->get_max_tx_rate(); in setup_tearsync() local 824 max_tx_rate); in setup_tearsync() 825 min_tx_time = 1000000000 / (max_tx_rate / 1000); /* ps */ in setup_tearsync()
|
/Linux-v5.15/drivers/net/ethernet/intel/iavf/ |
D | iavf_main.c | 2538 u64 max_tx_rate) in iavf_validate_tx_bandwidth() argument 2582 if (max_tx_rate > speed) { in iavf_validate_tx_bandwidth() 2670 u64 max_tx_rate; in __iavf_setup_tc() local 2719 max_tx_rate = mqprio_qopt->max_rate[i]; in __iavf_setup_tc() 2721 max_tx_rate = div_u64(max_tx_rate, in __iavf_setup_tc() 2723 adapter->ch_config.ch_info[i].max_tx_rate = in __iavf_setup_tc() 2724 max_tx_rate; in __iavf_setup_tc()
|
/Linux-v5.15/drivers/staging/wfx/ |
D | hif_api_cmd.h | 180 u8 max_tx_rate; member
|
/Linux-v5.15/drivers/net/ethernet/emulex/benet/ |
D | be_main.c | 1908 vi->max_tx_rate = vf_cfg->tx_rate; in be_get_vf_config() 2010 int min_tx_rate, int max_tx_rate) in be_set_vf_tx_rate() argument 2027 if (!max_tx_rate) in be_set_vf_tx_rate() 2041 if (max_tx_rate < 100 || max_tx_rate > link_speed) { in be_set_vf_tx_rate() 2050 if (skyhawk_chip(adapter) && (max_tx_rate % percent_rate)) { in be_set_vf_tx_rate() 2058 status = be_cmd_config_qos(adapter, max_tx_rate, link_speed, vf + 1); in be_set_vf_tx_rate() 2062 adapter->vf_cfg[vf].tx_rate = max_tx_rate; in be_set_vf_tx_rate() 2067 max_tx_rate, vf); in be_set_vf_tx_rate()
|