Home
last modified time | relevance | path

Searched refs:max_tx_rate (Results 1 – 25 of 37) sorted by relevance

12

/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_sriov.c148 int min_tx_rate, int max_tx_rate) in nfp_app_set_vf_rate() argument
158 if (max_tx_rate >= NFP_NET_VF_RATE_MAX || in nfp_app_set_vf_rate()
167 max_tx_rate ? max_tx_rate : in nfp_app_set_vf_rate()
301 ivi->max_tx_rate = FIELD_GET(NFP_NET_VF_CFG_MAX_RATE, rate); in nfp_app_get_vf_config()
304 if (ivi->max_tx_rate == NFP_NET_VF_RATE_MAX) in nfp_app_get_vf_config()
305 ivi->max_tx_rate = 0; in nfp_app_get_vf_config()
H A Dnfp_net_sriov.h63 int max_tx_rate);
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_virtchnl_pf.h65 u64 max_tx_rate; /* bandwidth rate allocation for VSIs */ member
142 int max_tx_rate);
H A Di40e_virtchnl_pf.c814 u64 max_tx_rate = 0; in i40e_alloc_vsi_res() local
875 max_tx_rate = vf->tx_rate; in i40e_alloc_vsi_res()
876 } else if (vf->ch[idx].max_tx_rate) { in i40e_alloc_vsi_res()
877 max_tx_rate = vf->ch[idx].max_tx_rate; in i40e_alloc_vsi_res()
880 if (max_tx_rate) { in i40e_alloc_vsi_res()
881 max_tx_rate = div_u64(max_tx_rate, I40E_BW_CREDIT_DIVISOR); in i40e_alloc_vsi_res()
883 max_tx_rate, 0, NULL); in i40e_alloc_vsi_res()
4120 if (tci->list[i].max_tx_rate) { in i40e_vc_add_qch_msg()
4121 if (tci->list[i].max_tx_rate > speed) { in i40e_vc_add_qch_msg()
4124 tci->list[i].max_tx_rate, in i40e_vc_add_qch_msg()
[all …]
H A Di40e_main.c5951 static u64 i40e_bw_bytes_to_mbits(struct i40e_vsi *vsi, u64 max_tx_rate) in i40e_bw_bytes_to_mbits() argument
5953 if (max_tx_rate < I40E_BW_MBPS_DIVISOR) { in i40e_bw_bytes_to_mbits()
5956 max_tx_rate = I40E_BW_CREDIT_DIVISOR; in i40e_bw_bytes_to_mbits()
5958 do_div(max_tx_rate, I40E_BW_MBPS_DIVISOR); in i40e_bw_bytes_to_mbits()
5961 return max_tx_rate; in i40e_bw_bytes_to_mbits()
5972 int i40e_set_bw_limit(struct i40e_vsi *vsi, u16 seid, u64 max_tx_rate) in i40e_set_bw_limit() argument
5980 if (max_tx_rate > speed) { in i40e_set_bw_limit()
5983 max_tx_rate, seid); in i40e_set_bw_limit()
5986 if (max_tx_rate && max_tx_rate < I40E_BW_CREDIT_DIVISOR) { in i40e_set_bw_limit()
5989 max_tx_rate = I40E_BW_CREDIT_DIVISOR; in i40e_set_bw_limit()
[all …]
/linux/drivers/net/wireless/st/cw1200/
H A Dscan.c210 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()
H A Dwsm.h703 u8 max_tx_rate; member
807 u8 max_tx_rate; member
/linux/include/linux/
H A Dif_link.h28 __u32 max_tx_rate; member
/linux/net/can/
H A Daf_can.h82 unsigned long max_tx_rate; member
H A Dproc.c166 if (pkg_stats->max_tx_rate < pkg_stats->current_tx_rate) in can_stat_update()
167 pkg_stats->max_tx_rate = pkg_stats->current_tx_rate; in can_stat_update()
256 pkg_stats->max_tx_rate); in can_stats_proc_show()
/linux/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_sriov_pf.c1850 int min_tx_rate, int max_tx_rate) in qlcnic_sriov_set_vf_tx_rate() argument
1872 if (max_tx_rate && max_tx_rate >= 10000) { in qlcnic_sriov_set_vf_tx_rate()
1879 if (!max_tx_rate) in qlcnic_sriov_set_vf_tx_rate()
1880 max_tx_rate = 10000; 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()
2010 ivi->max_tx_rate = 0; in qlcnic_sriov_get_vf_config()
2012 ivi->max_tx_rate = vp->max_tx_bw * 100; in qlcnic_sriov_get_vf_config()
/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_sriov.c586 ivi->max_tx_rate = vfinfo->max_rate; in hinic_get_vf_config()
857 int vf, int min_tx_rate, int max_tx_rate) in hinic_ndo_set_vf_bw() argument
892 if (max_tx_rate < 0 || max_tx_rate > speeds[port_cap.speed]) { in hinic_ndo_set_vf_bw()
899 max_tx_rate, min_tx_rate); in hinic_ndo_set_vf_bw()
903 vf, max_tx_rate, min_tx_rate, in hinic_ndo_set_vf_bw()
911 vf, max_tx_rate, min_tx_rate); in hinic_ndo_set_vf_bw()
H A Dhinic_sriov.h90 int vf, int min_tx_rate, int max_tx_rate);
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_sriov.h28 int max_tx_rate);
H A Dixgbe_sriov.c1775 int max_tx_rate) in ixgbe_ndo_set_vf_bw() argument
1797 if (max_tx_rate && ((max_tx_rate <= 10) || (max_tx_rate > link_speed))) in ixgbe_ndo_set_vf_bw()
1802 adapter->vfinfo[vf].tx_rate = max_tx_rate; in ixgbe_ndo_set_vf_bw()
1974 ivi->max_tx_rate = adapter->vfinfo[vf].tx_rate; in ixgbe_ndo_get_vf_config()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_lib.h107 int ice_set_max_bw_limit(struct ice_vsi *vsi, u64 max_tx_rate);
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dcmd.c2880 int max_tx_rate) in mlx4_set_vport_qos() argument
2904 if (test_bit(i, port_qos->priority_bm) && max_tx_rate) { in mlx4_set_vport_qos()
2905 vpp_qos[i].max_avg_bw = max_tx_rate; in mlx4_set_vport_qos()
3081 int max_tx_rate) in mlx4_set_vf_rate() argument
3104 err = mlx4_set_vport_qos(priv, slave, port, max_tx_rate); in mlx4_set_vf_rate()
3107 max_tx_rate); in mlx4_set_vf_rate()
3111 vf_admin->tx_rate = max_tx_rate; in mlx4_set_vf_rate()
3128 max_tx_rate); in mlx4_set_vf_rate()
3133 vf_admin->qos_vport = max_tx_rate ? slave : MLX4_VPP_DEFAULT_VPORT; in mlx4_set_vf_rate()
3227 ivf->max_tx_rate = s_info->tx_rate; in mlx4_get_vf_config()
[all …]
/linux/include/linux/mlx4/
H A Dcmd.h315 int max_tx_rate);
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_tm.c587 int hclge_tm_qs_shaper_cfg(struct hclge_vport *vport, int max_tx_rate) in hclge_tm_qs_shaper_cfg() argument
597 if (!max_tx_rate) in hclge_tm_qs_shaper_cfg()
598 max_tx_rate = hdev->ae_dev->dev_specs.max_tm_rate; in hclge_tm_qs_shaper_cfg()
600 ret = hclge_shaper_para_calc(max_tx_rate, HCLGE_SHAPER_LVL_QSET, in hclge_tm_qs_shaper_cfg()
620 shap_cfg_cmd->qs_rate = cpu_to_le32(max_tx_rate); in hclge_tm_qs_shaper_cfg()
627 max_tx_rate, ret); in hclge_tm_qs_shaper_cfg()
H A Dhclge_tm.h251 int hclge_tm_qs_shaper_cfg(struct hclge_vport *vport, int max_tx_rate);
/linux/drivers/video/fbdev/omap/
H A Dhwa742.c820 unsigned long max_tx_rate = hwa742.extif->get_max_tx_rate(); in setup_tearsync() local
823 max_tx_rate); in setup_tearsync()
824 min_tx_time = 1000000000 / (max_tx_rate / 1000); /* ps */ in setup_tearsync()
/linux/drivers/net/netdevsim/
H A Dnetdev.c251 nsim_dev->vfconfigs[vf].max_tx_rate = max; in nsim_set_vf_rate()
304 ivi->max_tx_rate = nsim_dev->vfconfigs[vf].max_tx_rate; in nsim_get_vf_config()
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_main.c3521 u64 max_tx_rate) in iavf_validate_tx_bandwidth() argument
3565 if (max_tx_rate > speed) { in iavf_validate_tx_bandwidth()
3705 u64 max_tx_rate; in __iavf_setup_tc() local
3755 max_tx_rate = mqprio_qopt->max_rate[i]; in __iavf_setup_tc()
3757 max_tx_rate = div_u64(max_tx_rate, in __iavf_setup_tc()
3759 adapter->ch_config.ch_info[i].max_tx_rate = in __iavf_setup_tc()
3760 max_tx_rate; in __iavf_setup_tc()
/linux/drivers/net/wireless/silabs/wfx/
H A Dhif_api_cmd.h179 u8 max_tx_rate; member
/linux/drivers/net/ethernet/emulex/benet/
H A Dbe_main.c1909 vi->max_tx_rate = vf_cfg->tx_rate; in be_get_vf_config()
2011 int min_tx_rate, int max_tx_rate) in be_set_vf_tx_rate() argument
2028 if (!max_tx_rate) in be_set_vf_tx_rate()
2042 if (max_tx_rate < 100 || max_tx_rate > link_speed) { in be_set_vf_tx_rate()
2051 if (skyhawk_chip(adapter) && (max_tx_rate % percent_rate)) { in be_set_vf_tx_rate()
2059 status = be_cmd_config_qos(adapter, max_tx_rate, link_speed, vf + 1); in be_set_vf_tx_rate()
2063 adapter->vf_cfg[vf].tx_rate = max_tx_rate; in be_set_vf_tx_rate()
2068 max_tx_rate, vf); in be_set_vf_tx_rate()

12