/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/diag/ |
A D | qos_tracepoint.h | 31 TP_ARGS(vport, bw_share, max_rate), 36 __field(unsigned int, max_rate) 43 __entry->max_rate = max_rate; 48 __entry->bw_share, __entry->max_rate, __entry->group 54 TP_ARGS(vport, bw_share, max_rate) 59 TP_ARGS(vport, bw_share, max_rate) 97 unsigned int tsar_ix, u32 bw_share, u32 max_rate), 98 TP_ARGS(dev, group, tsar_ix, bw_share, max_rate), 103 __field(unsigned int, max_rate) 109 __entry->max_rate = max_rate; [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
A D | qos.c | 18 u32 max_rate; member 55 max_rate, bw_share); in esw_qos_group_config() 87 max_rate, bw_share); in esw_qos_vport_config() 236 u32 max_rate, in mlx5_esw_qos_set_vport_max_rate() argument 248 if (max_rate == evport->qos.max_rate) in mlx5_esw_qos_set_vport_max_rate() 260 evport->qos.max_rate = max_rate; in mlx5_esw_qos_set_vport_max_rate() 304 if (group->max_rate == max_rate) in esw_qos_set_group_max_rate() 311 group->max_rate = max_rate; in esw_qos_set_group_max_rate() 369 u32 max_rate; in esw_qos_update_group_scheduling_element() local 381 max_rate = vport->qos.max_rate ? vport->qos.max_rate : new_group->max_rate; in esw_qos_update_group_scheduling_element() [all …]
|
A D | qos.h | 15 u32 max_rate, 20 u32 max_rate, u32 bw_share);
|
/linux/tools/perf/util/ |
A D | record.c | 161 unsigned int max_rate; in record_opts__config_freq() local 185 if (get_max_rate(&max_rate)) in record_opts__config_freq() 191 if (user_freq && (max_rate < opts->freq)) { in record_opts__config_freq() 196 max_rate); in record_opts__config_freq() 203 max_rate, opts->freq, max_rate); in record_opts__config_freq() 205 opts->freq = max_rate; in record_opts__config_freq() 212 if (max_rate < opts->freq) { in record_opts__config_freq() 216 opts->freq, max_rate); in record_opts__config_freq() 217 opts->freq = max_rate; in record_opts__config_freq()
|
/linux/drivers/staging/r8188eu/core/ |
A D | rtw_ieee80211.c | 1165 u16 max_rate = 0; in rtw_mcs_rate() local 1175 max_rate = (bw_40MHz) ? ((short_GI_40) ? 900 : 810) : ((short_GI_20) ? 433 : 390); in rtw_mcs_rate() 1177 max_rate = (bw_40MHz) ? ((short_GI_40) ? 600 : 540) : ((short_GI_20) ? 289 : 260); in rtw_mcs_rate() 1179 max_rate = (bw_40MHz) ? ((short_GI_40) ? 450 : 405) : ((short_GI_20) ? 217 : 195); in rtw_mcs_rate() 1181 max_rate = (bw_40MHz) ? ((short_GI_40) ? 300 : 270) : ((short_GI_20) ? 144 : 130); in rtw_mcs_rate() 1183 max_rate = (bw_40MHz) ? ((short_GI_40) ? 150 : 135) : ((short_GI_20) ? 72 : 65); in rtw_mcs_rate() 1197 max_rate = (bw_40MHz) ? ((short_GI_40) ? 900 : 810) : ((short_GI_20) ? 433 : 390); in rtw_mcs_rate() 1199 max_rate = (bw_40MHz) ? ((short_GI_40) ? 600 : 540) : ((short_GI_20) ? 289 : 260); in rtw_mcs_rate() 1201 max_rate = (bw_40MHz) ? ((short_GI_40) ? 300 : 270) : ((short_GI_20) ? 144 : 130); in rtw_mcs_rate() 1218 max_rate = (bw_40MHz) ? ((short_GI_40) ? 150 : 135) : ((short_GI_20) ? 72 : 65); in rtw_mcs_rate() [all …]
|
A D | rtw_ioctl_set.c | 454 u16 rate = 0, max_rate = 0; in rtw_get_cur_max_rate() local 484 max_rate = rtw_mcs_rate( in rtw_get_cur_max_rate() 495 if (rate > max_rate) in rtw_get_cur_max_rate() 496 max_rate = rate; in rtw_get_cur_max_rate() 500 max_rate *= 5; in rtw_get_cur_max_rate() 503 return max_rate; in rtw_get_cur_max_rate()
|
/linux/drivers/memory/tegra/ |
A D | tegra20-emc.c | 194 unsigned long max_rate; member 212 unsigned long max_rate; member 677 unsigned long max_rate, in emc_round_rate() argument 709 rate, min_rate, max_rate); in emc_round_rate() 740 max_rate = min(new_max_rate, max_rate); in emc_request_rate() 743 max_rate = min(req->max_rate, max_rate); in emc_request_rate() 747 if (min_rate > max_rate) { in emc_request_rate() 893 *rate = emc->debugfs.max_rate; in tegra_emc_debug_max_rate_get() 910 emc->debugfs.max_rate = rate; in tegra_emc_debug_max_rate_set() 926 emc->debugfs.max_rate = 0; in tegra_emc_debugfs_init() [all …]
|
A D | tegra186-emc.c | 30 unsigned long max_rate; member 136 *rate = emc->debugfs.max_rate; in tegra186_emc_debug_max_rate_get() 153 emc->debugfs.max_rate = rate; in tegra186_emc_debug_max_rate_set() 207 emc->debugfs.max_rate = 0; in tegra186_emc_probe() 227 if (emc->dvfs[i].rate > emc->debugfs.max_rate) in tegra186_emc_probe() 228 emc->debugfs.max_rate = emc->dvfs[i].rate; in tegra186_emc_probe() 235 emc->debugfs.max_rate); in tegra186_emc_probe() 239 emc->debugfs.min_rate, emc->debugfs.max_rate, in tegra186_emc_probe()
|
A D | tegra30-emc.c | 339 unsigned long max_rate; member 370 unsigned long max_rate; member 1084 unsigned long max_rate, in emc_round_rate() argument 1116 rate, min_rate, max_rate); in emc_round_rate() 1147 max_rate = min(new_max_rate, max_rate); in emc_request_rate() 1150 max_rate = min(req->max_rate, max_rate); in emc_request_rate() 1154 if (min_rate > max_rate) { in emc_request_rate() 1300 *rate = emc->debugfs.max_rate; in tegra_emc_debug_max_rate_get() 1317 emc->debugfs.max_rate = rate; in tegra_emc_debug_max_rate_set() 1333 emc->debugfs.max_rate = 0; in tegra_emc_debugfs_init() [all …]
|
A D | tegra124-emc.c | 478 unsigned long max_rate; member 501 unsigned long max_rate; member 1055 emc->requested_rate[i].max_rate = ULONG_MAX; in tegra_emc_rate_requests_init() 1073 max_rate = min(new_max_rate, max_rate); in emc_request_rate() 1076 max_rate = min(req->max_rate, max_rate); in emc_request_rate() 1080 if (min_rate > max_rate) { in emc_request_rate() 1082 __func__, type, min_rate, max_rate); in emc_request_rate() 1215 *rate = emc->debugfs.max_rate; in tegra_emc_debug_max_rate_get() 1232 emc->debugfs.max_rate = rate; in tegra_emc_debug_max_rate_set() 1247 emc->debugfs.max_rate = 0; in emc_debugfs_init() [all …]
|
/linux/drivers/clk/tegra/ |
A D | clk-audio-sync.c | 25 if (rate > sync->max_rate) in clk_sync_source_round_rate() 47 unsigned long max_rate) in tegra_clk_register_sync_source() argument 59 sync->max_rate = max_rate; in tegra_clk_register_sync_source()
|
/linux/drivers/net/wireless/marvell/mwifiex/ |
A D | 11ac.c | 59 u16 max_rate = 0; in mwifiex_convert_mcsmap_to_maxrate() local 83 max_rate = max_rate_lgi_160MHZ[nss - 1][mcs]; in mwifiex_convert_mcsmap_to_maxrate() 84 if (!max_rate) in mwifiex_convert_mcsmap_to_maxrate() 86 max_rate = max_rate_lgi_160MHZ[nss - 1][mcs - 1]; in mwifiex_convert_mcsmap_to_maxrate() 88 max_rate = max_rate_lgi_80MHZ[nss - 1][mcs]; in mwifiex_convert_mcsmap_to_maxrate() 89 if (!max_rate) in mwifiex_convert_mcsmap_to_maxrate() 91 max_rate = max_rate_lgi_80MHZ[nss - 1][mcs - 1]; in mwifiex_convert_mcsmap_to_maxrate() 94 return max_rate; in mwifiex_convert_mcsmap_to_maxrate()
|
/linux/drivers/clk/ |
A D | clk-scmi.c | 56 fmax = clk->info->range.max_rate; in scmi_clk_round_rate() 108 unsigned long min_rate, max_rate; in scmi_clk_ops_init() local 129 max_rate = sclk->info->list.rates[num_rates - 1]; in scmi_clk_ops_init() 132 max_rate = sclk->info->range.max_rate; in scmi_clk_ops_init() 135 clk_hw_set_rate_range(&sclk->hw, min_rate, max_rate); in scmi_clk_ops_init()
|
A D | clk.c | 79 unsigned long max_rate; member 103 unsigned long max_rate; member 625 *max_rate = core->max_rate; in clk_core_get_boundaries() 631 *max_rate = min(*max_rate, clk_user->max_rate); in clk_core_get_boundaries() 635 unsigned long max_rate) in clk_hw_set_rate_range() argument 638 hw->core->max_rate = max_rate; in clk_hw_set_rate_range() 1940 unsigned long max_rate; in clk_calc_new_rates() local 1961 req.max_rate = max_rate; in clk_calc_new_rates() 2346 old_max = clk->max_rate; in clk_set_rate_range() 2348 clk->max_rate = max; in clk_set_rate_range() [all …]
|
/linux/drivers/clk/imx/ |
A D | clk-pllv3.c | 172 unsigned long max_rate = parent_rate * 108 / 2; in clk_pllv3_sys_round_rate() local 175 if (rate > max_rate) in clk_pllv3_sys_round_rate() 176 rate = max_rate; in clk_pllv3_sys_round_rate() 189 unsigned long max_rate = parent_rate * 108 / 2; in clk_pllv3_sys_set_rate() local 192 if (rate < min_rate || rate > max_rate) in clk_pllv3_sys_set_rate() 233 unsigned long max_rate = parent_rate * 54; in clk_pllv3_av_round_rate() local 239 if (rate > max_rate) in clk_pllv3_av_round_rate() 240 rate = max_rate; in clk_pllv3_av_round_rate() 265 unsigned long max_rate = parent_rate * 54; in clk_pllv3_av_set_rate() local 271 if (rate < min_rate || rate > max_rate) in clk_pllv3_av_set_rate()
|
/linux/drivers/clocksource/ |
A D | timer-microchip-pit64b.c | 230 u32 max_rate) in mchp_pit64b_pres_compute() argument 236 if (tmp <= max_rate) in mchp_pit64b_pres_compute() 280 unsigned long max_rate) in mchp_pit64b_init_mode() argument 293 gclk_round = clk_round_rate(timer->gclk, max_rate); in mchp_pit64b_init_mode() 300 mchp_pit64b_pres_compute(&pres, gclk_round, max_rate); in mchp_pit64b_init_mode() 301 best_diff = abs(gclk_round / (pres + 1) - max_rate); in mchp_pit64b_init_mode() 312 mchp_pit64b_pres_compute(&pres, pclk_rate, max_rate); in mchp_pit64b_init_mode() 313 diff = abs(pclk_rate / (pres + 1) - max_rate); in mchp_pit64b_init_mode()
|
/linux/drivers/staging/rtl8723bs/core/ |
A D | rtw_ioctl_set.c | 473 u16 rate = 0, max_rate = 0; in rtw_get_cur_max_rate() local 490 max_rate = rtw_mcs_rate(psta->bw_mode == CHANNEL_WIDTH_40 ? 1 : 0, in rtw_get_cur_max_rate() 496 if (rate > max_rate) in rtw_get_cur_max_rate() 497 max_rate = rate; in rtw_get_cur_max_rate() 501 max_rate = max_rate*10/2; in rtw_get_cur_max_rate() 504 return max_rate; in rtw_get_cur_max_rate()
|
A D | rtw_ieee80211.c | 1111 u16 max_rate = 0; in rtw_mcs_rate() local 1114 max_rate = (bw_40MHz) ? ((short_GI)?1500:1350):((short_GI)?722:650); in rtw_mcs_rate() 1116 max_rate = (bw_40MHz) ? ((short_GI)?1350:1215):((short_GI)?650:585); in rtw_mcs_rate() 1118 max_rate = (bw_40MHz) ? ((short_GI)?1200:1080):((short_GI)?578:520); in rtw_mcs_rate() 1120 max_rate = (bw_40MHz) ? ((short_GI)?900:810):((short_GI)?433:390); in rtw_mcs_rate() 1122 max_rate = (bw_40MHz) ? ((short_GI)?600:540):((short_GI)?289:260); in rtw_mcs_rate() 1124 max_rate = (bw_40MHz) ? ((short_GI)?450:405):((short_GI)?217:195); in rtw_mcs_rate() 1126 max_rate = (bw_40MHz) ? ((short_GI)?300:270):((short_GI)?144:130); in rtw_mcs_rate() 1128 max_rate = (bw_40MHz) ? ((short_GI)?150:135):((short_GI)?72:65); in rtw_mcs_rate() 1130 return max_rate; in rtw_mcs_rate()
|
/linux/drivers/clk/renesas/ |
A D | rcar-gen3-cpg.c | 74 max_mult = min(div64_ul(req->max_rate, prate), 128ULL); in cpg_pll_clk_determine_rate() 168 unsigned long max_rate; /* Maximum rate for normal mode */ member 196 rate = min(req->rate, req->max_rate); in cpg_z_clk_determine_rate() 197 if (rate <= zclk->max_rate) { in cpg_z_clk_determine_rate() 199 prate = zclk->max_rate; in cpg_z_clk_determine_rate() 209 max_mult = min(div64_ul(req->max_rate * 32ULL, prate), 32ULL); in cpg_z_clk_determine_rate() 299 zclk->max_rate = clk_hw_get_rate(clk_hw_get_parent(&zclk->hw)) / in cpg_z_clk_register()
|
A D | r8a779a0-cpg-mssr.c | 289 unsigned long max_rate; /* Maximum rate for normal mode */ member 317 rate = min(req->rate, req->max_rate); in cpg_z_clk_determine_rate() 318 if (rate <= zclk->max_rate) { in cpg_z_clk_determine_rate() 320 prate = zclk->max_rate; in cpg_z_clk_determine_rate() 330 max_mult = min(div64_ul(req->max_rate * 32ULL, prate), 32ULL); in cpg_z_clk_determine_rate() 420 zclk->max_rate = clk_hw_get_rate(clk_hw_get_parent(&zclk->hw)) / in cpg_z_clk_register()
|
/linux/drivers/thunderbolt/ |
A D | tunnel.c | 1270 max_rate = ret * 90 / 100; in tb_usb3_reclaim_available_bandwidth() 1273 if (tunnel->allocated_up >= max_rate && in tb_usb3_reclaim_available_bandwidth() 1274 tunnel->allocated_down >= max_rate) in tb_usb3_reclaim_available_bandwidth() 1278 allocate_up = min(max_rate, *available_up); in tb_usb3_reclaim_available_bandwidth() 1461 int max_rate = 0; in tb_tunnel_alloc_usb3() local 1469 if (max_rate < 0) in tb_tunnel_alloc_usb3() 1473 max_rate = max_rate * 90 / 100; in tb_tunnel_alloc_usb3() 1475 max_rate); in tb_tunnel_alloc_usb3() 1477 if (max_rate > max_up || max_rate > max_down) { in tb_tunnel_alloc_usb3() 1512 tunnel->allocated_up = max_rate; in tb_tunnel_alloc_usb3() [all …]
|
/linux/sound/usb/ |
A D | format.c | 308 unsigned int max_rate; in focusrite_valid_sample_rate() local 321 max_rate = combine_quad(&fmt[6]); in focusrite_valid_sample_rate() 324 if (max_rate != 48000 && in focusrite_valid_sample_rate() 325 max_rate != 96000 && in focusrite_valid_sample_rate() 326 max_rate != 192000 && in focusrite_valid_sample_rate() 327 max_rate != 384000) { in focusrite_valid_sample_rate() 331 fp->iface, fp->altsetting, max_rate); in focusrite_valid_sample_rate() 336 return rate <= max_rate; in focusrite_valid_sample_rate()
|
/linux/drivers/net/ethernet/huawei/hinic/ |
A D | hinic_sriov.c | 134 u32 max_rate, u32 min_rate) in hinic_set_vf_tx_rate_max_min() argument 142 rate_cfg.max_rate = max_rate; in hinic_set_vf_tx_rate_max_min() 150 HW_VF_ID_TO_OS(vf_id), max_rate, min_rate, err, in hinic_set_vf_tx_rate_max_min() 156 nic_io->vf_infos[HW_VF_ID_TO_OS(vf_id)].max_rate = max_rate; in hinic_set_vf_tx_rate_max_min() 186 nic_io->vf_infos[HW_VF_ID_TO_OS(vf_id)].max_rate = tx_rate; in hinic_set_vf_rate_limit() 193 u32 max_rate, u32 min_rate) in hinic_set_vf_tx_rate() argument 208 return hinic_set_vf_rate_limit(hwdev, vf_id, max_rate); in hinic_set_vf_tx_rate() 242 if (vf_info->max_rate) { in hinic_init_vf_config() 247 HW_VF_ID_TO_OS(vf_id), vf_info->max_rate, in hinic_init_vf_config() 567 ivi->max_tx_rate = vfinfo->max_rate; in hinic_get_vf_config() [all …]
|
/linux/drivers/clk/bcm/ |
A D | clk-raspberrypi.c | 173 req->rate = clamp(req->rate, req->min_rate, req->max_rate); in raspberrypi_fw_dumb_determine_rate() 190 u32 min_rate, max_rate; in raspberrypi_clk_register() local 218 &max_rate); in raspberrypi_clk_register() 229 clk_hw_set_rate_range(&data->hw, min_rate, max_rate); in raspberrypi_clk_register()
|
/linux/drivers/staging/rtl8192e/ |
A D | rtllib_wx.c | 45 u16 max_rate, rate; in rtl819x_translate_scan() local 115 max_rate = 0; in rtl819x_translate_scan() 125 if (rate > max_rate) in rtl819x_translate_scan() 126 max_rate = rate; in rtl819x_translate_scan() 134 if (rate > max_rate) in rtl819x_translate_scan() 135 max_rate = rate; in rtl819x_translate_scan() 157 if (rate > max_rate) in rtl819x_translate_scan() 158 max_rate = rate; in rtl819x_translate_scan() 162 iwe.u.bitrate.value = max_rate * 500000; in rtl819x_translate_scan()
|