Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/net/ethernet/intel/i40e/
Di40e_virtchnl_pf.h61 u64 max_tx_rate; /* bandwidth rate allocation for VSIs */ member
133 int max_tx_rate);
Di40e_virtchnl_pf.c714 u64 max_tx_rate = 0; in i40e_alloc_vsi_res() local
774 max_tx_rate = vf->tx_rate; in i40e_alloc_vsi_res()
775 } else if (vf->ch[idx].max_tx_rate) { in i40e_alloc_vsi_res()
776 max_tx_rate = vf->ch[idx].max_tx_rate; in i40e_alloc_vsi_res()
779 if (max_tx_rate) { in i40e_alloc_vsi_res()
780 max_tx_rate = div_u64(max_tx_rate, I40E_BW_CREDIT_DIVISOR); in i40e_alloc_vsi_res()
782 max_tx_rate, 0, NULL); in i40e_alloc_vsi_res()
3646 if (tci->list[i].max_tx_rate) { in i40e_vc_add_qch_msg()
3647 if (tci->list[i].max_tx_rate > speed) { in i40e_vc_add_qch_msg()
3650 tci->list[i].max_tx_rate, in i40e_vc_add_qch_msg()
[all …]
Di40e_main.c5515 int i40e_set_bw_limit(struct i40e_vsi *vsi, u16 seid, u64 max_tx_rate) in i40e_set_bw_limit() argument
5523 if (max_tx_rate > speed) { in i40e_set_bw_limit()
5526 max_tx_rate, seid); in i40e_set_bw_limit()
5529 if (max_tx_rate && max_tx_rate < 50) { in i40e_set_bw_limit()
5532 max_tx_rate = 50; in i40e_set_bw_limit()
5536 credits = max_tx_rate; in i40e_set_bw_limit()
5543 max_tx_rate, seid, i40e_stat_str(&pf->hw, ret), in i40e_set_bw_limit()
6218 if (ch->max_tx_rate) { in i40e_create_queue_channel()
6219 u64 credits = ch->max_tx_rate; in i40e_create_queue_channel()
6221 if (i40e_set_bw_limit(vsi, ch->seid, ch->max_tx_rate)) in i40e_create_queue_channel()
[all …]
Di40e.h433 u64 max_tx_rate; member
1158 int i40e_set_bw_limit(struct i40e_vsi *vsi, u16 seid, u64 max_tx_rate);
/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_sriov.c192 ivi->max_tx_rate = vf->max_tx_rate; in bnxt_get_vf_config()
281 int max_tx_rate) in bnxt_set_vf_bw() argument
295 if (max_tx_rate > pf_link_speed) { in bnxt_set_vf_bw()
297 max_tx_rate, vf_id); in bnxt_set_vf_bw()
301 if (min_tx_rate > pf_link_speed || min_tx_rate > max_tx_rate) { in bnxt_set_vf_bw()
306 if (min_tx_rate == vf->min_tx_rate && max_tx_rate == vf->max_tx_rate) in bnxt_set_vf_bw()
312 req.max_bw = cpu_to_le32(max_tx_rate); in bnxt_set_vf_bw()
318 vf->max_tx_rate = max_tx_rate; in bnxt_set_vf_bw()
492 if (vf->max_tx_rate) { in __bnxt_set_vf_params()
494 req.max_bw = cpu_to_le32(vf->max_tx_rate); in __bnxt_set_vf_params()
/Linux-v5.4/include/linux/
Dif_link.h28 __u32 max_tx_rate; member
/Linux-v5.4/net/can/
Daf_can.h82 unsigned long max_tx_rate; member
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()
251 pkg_stats->max_tx_rate); in can_stats_proc_show()
/Linux-v5.4/drivers/net/netdevsim/
Dnetdev.c119 nsim_bus_dev->vfconfigs[vf].max_tx_rate = max; in nsim_set_vf_rate()
172 ivi->max_tx_rate = nsim_bus_dev->vfconfigs[vf].max_tx_rate; in nsim_get_vf_config()
Dnetdevsim.h204 u16 max_tx_rate; member
/Linux-v5.4/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sriov_pf.c1849 int min_tx_rate, int max_tx_rate) in qlcnic_sriov_set_vf_tx_rate() argument
1871 if (max_tx_rate && in qlcnic_sriov_set_vf_tx_rate()
1872 (max_tx_rate >= 10000 || max_tx_rate < min_tx_rate)) { 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()
1883 (min_tx_rate > max_tx_rate || min_tx_rate < QLC_VF_MIN_TX_RATE)) { in qlcnic_sriov_set_vf_tx_rate()
1886 QLC_VF_MIN_TX_RATE, max_tx_rate); in qlcnic_sriov_set_vf_tx_rate()
1894 nic_info.max_tx_bw = max_tx_rate / 100; in qlcnic_sriov_set_vf_tx_rate()
1902 vp->max_tx_bw = max_tx_rate / 100; in qlcnic_sriov_set_vf_tx_rate()
1905 max_tx_rate, vp->max_tx_bw, vf); in qlcnic_sriov_set_vf_tx_rate()
[all …]
/Linux-v5.4/drivers/net/wireless/st/cw1200/
Dscan.c214 scan.max_tx_rate = WSM_TRANSMIT_RATE_6; in cw1200_scan_work()
216 scan.max_tx_rate = WSM_TRANSMIT_RATE_1; in cw1200_scan_work()
407 scan.max_tx_rate = wsm->max_tx_rate; in cw1200_probe_work()
Dwsm.h703 u8 max_tx_rate; member
809 u8 max_tx_rate; member
/Linux-v5.4/drivers/net/ethernet/intel/ixgbe/
Dixgbe_sriov.h27 int max_tx_rate);
Dixgbe_sriov.c1590 int max_tx_rate) in ixgbe_ndo_set_vf_bw() argument
1612 if (max_tx_rate && ((max_tx_rate <= 10) || (max_tx_rate > link_speed))) in ixgbe_ndo_set_vf_bw()
1617 adapter->vfinfo[vf].tx_rate = max_tx_rate; in ixgbe_ndo_set_vf_bw()
1711 ivi->max_tx_rate = adapter->vfinfo[vf].tx_rate; in ixgbe_ndo_get_vf_config()
/Linux-v5.4/include/linux/mlx4/
Dcmd.h315 int max_tx_rate);
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/
Dcmd.c2881 int max_tx_rate) in mlx4_set_vport_qos() argument
2905 if (test_bit(i, port_qos->priority_bm) && max_tx_rate) { in mlx4_set_vport_qos()
2906 vpp_qos[i].max_avg_bw = max_tx_rate; in mlx4_set_vport_qos()
3082 int max_tx_rate) in mlx4_set_vf_rate() argument
3105 err = mlx4_set_vport_qos(priv, slave, port, max_tx_rate); in mlx4_set_vf_rate()
3108 max_tx_rate); in mlx4_set_vf_rate()
3112 vf_admin->tx_rate = max_tx_rate; in mlx4_set_vf_rate()
3129 max_tx_rate); in mlx4_set_vf_rate()
3134 vf_admin->qos_vport = max_tx_rate ? slave : MLX4_VPP_DEFAULT_VPORT; in mlx4_set_vf_rate()
3228 ivf->max_tx_rate = s_info->tx_rate; in mlx4_get_vf_config()
[all …]
/Linux-v5.4/drivers/video/fbdev/omap/
Dhwa742.c807 unsigned long max_tx_rate = hwa742.extif->get_max_tx_rate(); in setup_tearsync() local
810 max_tx_rate); in setup_tearsync()
811 min_tx_time = 1000000000 / (max_tx_rate / 1000); /* ps */ in setup_tearsync()
/Linux-v5.4/drivers/net/ethernet/intel/iavf/
Diavf_main.c2477 u64 max_tx_rate) in iavf_validate_tx_bandwidth() argument
2504 if (max_tx_rate > speed) { in iavf_validate_tx_bandwidth()
2592 u64 max_tx_rate; in __iavf_setup_tc() local
2641 max_tx_rate = mqprio_qopt->max_rate[i]; in __iavf_setup_tc()
2643 max_tx_rate = div_u64(max_tx_rate, in __iavf_setup_tc()
2645 adapter->ch_config.ch_info[i].max_tx_rate = in __iavf_setup_tc()
2646 max_tx_rate; in __iavf_setup_tc()
Diavf_virtchnl.c992 vti->list[i].max_tx_rate = in iavf_enable_channels()
993 adapter->ch_config.ch_info[i].max_tx_rate; in iavf_enable_channels()
/Linux-v5.4/include/linux/avf/
Dvirtchnl.h515 u64 max_tx_rate; member
/Linux-v5.4/tools/include/uapi/linux/
Dif_link.h743 __u32 max_tx_rate; /* Max Bandwidth in Mbps */ member
/Linux-v5.4/include/uapi/linux/
Dif_link.h743 __u32 max_tx_rate; /* Max Bandwidth in Mbps */ member
/Linux-v5.4/drivers/net/ethernet/intel/fm10k/
Dfm10k_iov.c645 ivi->max_tx_rate = vf_info->rate; in fm10k_ndo_get_vf_config()
/Linux-v5.4/drivers/net/ethernet/emulex/benet/
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