Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/net/ethernet/intel/i40e/
Di40e_virtchnl_pf.h59 u64 max_tx_rate; /* bandwidth rate allocation for VSIs */ member
130 int max_tx_rate);
Di40e_virtchnl_pf.c691 u64 max_tx_rate = 0; in i40e_alloc_vsi_res() local
751 max_tx_rate = vf->tx_rate; in i40e_alloc_vsi_res()
752 } else if (vf->ch[idx].max_tx_rate) { in i40e_alloc_vsi_res()
753 max_tx_rate = vf->ch[idx].max_tx_rate; in i40e_alloc_vsi_res()
756 if (max_tx_rate) { in i40e_alloc_vsi_res()
757 max_tx_rate = div_u64(max_tx_rate, I40E_BW_CREDIT_DIVISOR); in i40e_alloc_vsi_res()
759 max_tx_rate, 0, NULL); in i40e_alloc_vsi_res()
3516 if (tci->list[i].max_tx_rate) { in i40e_vc_add_qch_msg()
3517 if (tci->list[i].max_tx_rate > speed) { in i40e_vc_add_qch_msg()
3520 tci->list[i].max_tx_rate, in i40e_vc_add_qch_msg()
[all …]
Di40e_main.c5402 int i40e_set_bw_limit(struct i40e_vsi *vsi, u16 seid, u64 max_tx_rate) in i40e_set_bw_limit() argument
5410 if (max_tx_rate > speed) { in i40e_set_bw_limit()
5413 max_tx_rate, seid); in i40e_set_bw_limit()
5416 if (max_tx_rate && max_tx_rate < 50) { in i40e_set_bw_limit()
5419 max_tx_rate = 50; in i40e_set_bw_limit()
5423 credits = max_tx_rate; in i40e_set_bw_limit()
5430 max_tx_rate, seid, i40e_stat_str(&pf->hw, ret), in i40e_set_bw_limit()
6103 if (ch->max_tx_rate) { in i40e_create_queue_channel()
6104 u64 credits = ch->max_tx_rate; in i40e_create_queue_channel()
6106 if (i40e_set_bw_limit(vsi, ch->seid, ch->max_tx_rate)) in i40e_create_queue_channel()
[all …]
Di40e.h403 u64 max_tx_rate; member
1094 int i40e_set_bw_limit(struct i40e_vsi *vsi, u16 seid, u64 max_tx_rate);
/Linux-v4.19/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_sriov.c159 ivi->max_tx_rate = vf->max_tx_rate; in bnxt_get_vf_config()
248 int max_tx_rate) in bnxt_set_vf_bw() argument
262 if (max_tx_rate > pf_link_speed) { in bnxt_set_vf_bw()
264 max_tx_rate, vf_id); in bnxt_set_vf_bw()
268 if (min_tx_rate > pf_link_speed || min_tx_rate > max_tx_rate) { in bnxt_set_vf_bw()
273 if (min_tx_rate == vf->min_tx_rate && max_tx_rate == vf->max_tx_rate) in bnxt_set_vf_bw()
279 req.max_bw = cpu_to_le32(max_tx_rate); in bnxt_set_vf_bw()
285 vf->max_tx_rate = max_tx_rate; in bnxt_set_vf_bw()
/Linux-v4.19/include/linux/
Dif_link.h28 __u32 max_tx_rate; member
/Linux-v4.19/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sriov_pf.c1853 int min_tx_rate, int max_tx_rate) in qlcnic_sriov_set_vf_tx_rate() argument
1875 if (max_tx_rate && in qlcnic_sriov_set_vf_tx_rate()
1876 (max_tx_rate >= 10000 || max_tx_rate < min_tx_rate)) { in qlcnic_sriov_set_vf_tx_rate()
1883 if (!max_tx_rate) in qlcnic_sriov_set_vf_tx_rate()
1884 max_tx_rate = 10000; in qlcnic_sriov_set_vf_tx_rate()
1887 (min_tx_rate > max_tx_rate || min_tx_rate < QLC_VF_MIN_TX_RATE)) { in qlcnic_sriov_set_vf_tx_rate()
1890 QLC_VF_MIN_TX_RATE, max_tx_rate); in qlcnic_sriov_set_vf_tx_rate()
1898 nic_info.max_tx_bw = max_tx_rate / 100; in qlcnic_sriov_set_vf_tx_rate()
1906 vp->max_tx_bw = max_tx_rate / 100; in qlcnic_sriov_set_vf_tx_rate()
1909 max_tx_rate, vp->max_tx_bw, vf); in qlcnic_sriov_set_vf_tx_rate()
[all …]
/Linux-v4.19/net/can/
Daf_can.h97 unsigned long max_tx_rate; member
Dproc.c164 if (can_stats->max_tx_rate < can_stats->current_tx_rate) in can_stat_update()
165 can_stats->max_tx_rate = can_stats->current_tx_rate; in can_stat_update()
249 can_stats->max_tx_rate); in can_stats_proc_show()
/Linux-v4.19/drivers/net/wireless/st/cw1200/
Dscan.c215 scan.max_tx_rate = WSM_TRANSMIT_RATE_6; in cw1200_scan_work()
217 scan.max_tx_rate = WSM_TRANSMIT_RATE_1; in cw1200_scan_work()
408 scan.max_tx_rate = wsm->max_tx_rate; in cw1200_probe_work()
Dwsm.h706 u8 max_tx_rate; member
812 u8 max_tx_rate; member
/Linux-v4.19/drivers/net/netdevsim/
Dnetdev.c32 u16 max_tx_rate; member
372 ns->vfconfigs[vf].max_tx_rate = max; in nsim_set_vf_rate()
421 ivi->max_tx_rate = ns->vfconfigs[vf].max_tx_rate; in nsim_get_vf_config()
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/
Dixgbe_sriov.h27 int max_tx_rate);
Dixgbe_sriov.c1564 int max_tx_rate) in ixgbe_ndo_set_vf_bw() argument
1586 if (max_tx_rate && ((max_tx_rate <= 10) || (max_tx_rate > link_speed))) in ixgbe_ndo_set_vf_bw()
1591 adapter->vfinfo[vf].tx_rate = max_tx_rate; in ixgbe_ndo_set_vf_bw()
1685 ivi->max_tx_rate = adapter->vfinfo[vf].tx_rate; in ixgbe_ndo_get_vf_config()
/Linux-v4.19/include/linux/mlx4/
Dcmd.h315 int max_tx_rate);
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
Dcmd.c2885 int max_tx_rate) in mlx4_set_vport_qos() argument
2909 if (test_bit(i, port_qos->priority_bm) && max_tx_rate) { in mlx4_set_vport_qos()
2910 vpp_qos[i].max_avg_bw = max_tx_rate; in mlx4_set_vport_qos()
3086 int max_tx_rate) in mlx4_set_vf_rate() argument
3109 err = mlx4_set_vport_qos(priv, slave, port, max_tx_rate); in mlx4_set_vf_rate()
3112 max_tx_rate); in mlx4_set_vf_rate()
3116 vf_admin->tx_rate = max_tx_rate; in mlx4_set_vf_rate()
3133 max_tx_rate); in mlx4_set_vf_rate()
3138 vf_admin->qos_vport = max_tx_rate ? slave : MLX4_VPP_DEFAULT_VPORT; in mlx4_set_vf_rate()
3232 ivf->max_tx_rate = s_info->tx_rate; in mlx4_get_vf_config()
[all …]
/Linux-v4.19/drivers/video/fbdev/omap/
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-v4.19/drivers/net/ethernet/intel/i40evf/
Di40evf_main.c2240 u64 max_tx_rate) in i40evf_validate_tx_bandwidth() argument
2267 if (max_tx_rate > speed) { in i40evf_validate_tx_bandwidth()
2355 u64 max_tx_rate; in __i40evf_setup_tc() local
2404 max_tx_rate = mqprio_qopt->max_rate[i]; in __i40evf_setup_tc()
2406 max_tx_rate = div_u64(max_tx_rate, in __i40evf_setup_tc()
2408 adapter->ch_config.ch_info[i].max_tx_rate = in __i40evf_setup_tc()
2409 max_tx_rate; in __i40evf_setup_tc()
Di40evf_virtchnl.c975 vti->list[i].max_tx_rate = in i40evf_enable_channels()
976 adapter->ch_config.ch_info[i].max_tx_rate; in i40evf_enable_channels()
/Linux-v4.19/include/linux/avf/
Dvirtchnl.h517 u64 max_tx_rate; member
/Linux-v4.19/tools/include/uapi/linux/
Dif_link.h715 __u32 max_tx_rate; /* Max Bandwidth in Mbps */ member
/Linux-v4.19/include/uapi/linux/
Dif_link.h715 __u32 max_tx_rate; /* Max Bandwidth in Mbps */ member
/Linux-v4.19/drivers/net/ethernet/intel/fm10k/
Dfm10k_iov.c637 ivi->max_tx_rate = vf_info->rate; in fm10k_ndo_get_vf_config()
/Linux-v4.19/drivers/net/ethernet/emulex/benet/
Dbe_main.c1912 vi->max_tx_rate = vf_cfg->tx_rate; in be_get_vf_config()
2014 int min_tx_rate, int max_tx_rate) in be_set_vf_tx_rate() argument
2031 if (!max_tx_rate) in be_set_vf_tx_rate()
2045 if (max_tx_rate < 100 || max_tx_rate > link_speed) { in be_set_vf_tx_rate()
2054 if (skyhawk_chip(adapter) && (max_tx_rate % percent_rate)) { in be_set_vf_tx_rate()
2062 status = be_cmd_config_qos(adapter, max_tx_rate, link_speed, vf + 1); in be_set_vf_tx_rate()
2066 adapter->vf_cfg[vf].tx_rate = max_tx_rate; in be_set_vf_tx_rate()
2071 max_tx_rate, vf); in be_set_vf_tx_rate()
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_main.c2712 ivi->max_tx_rate = vfinfo->tx_rate; in cxgb4_mgmt_get_vf_config()
2732 int min_tx_rate, int max_tx_rate) in cxgb4_mgmt_set_vf_rate() argument
2764 if (max_tx_rate > speed) { in cxgb4_mgmt_set_vf_rate()
2767 max_tx_rate, vf, speed); in cxgb4_mgmt_set_vf_rate()
2783 max_tx_rate * 1000, 0, pktsize); in cxgb4_mgmt_set_vf_rate()
2791 class_id, pktsize, max_tx_rate); in cxgb4_mgmt_set_vf_rate()
2807 adap->vfinfo[vf].tx_rate = max_tx_rate; in cxgb4_mgmt_set_vf_rate()

12