Home
last modified time | relevance | path

Searched refs:max_rate (Results 1 – 25 of 151) sorted by relevance

1234567

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/esw/diag/ !
Dqos_tracepoint.h30 TP_PROTO(const struct mlx5_vport *vport, u32 bw_share, u32 max_rate),
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
53 TP_PROTO(const struct mlx5_vport *vport, u32 bw_share, u32 max_rate),
54 TP_ARGS(vport, bw_share, max_rate)
58 TP_PROTO(const struct mlx5_vport *vport, u32 bw_share, u32 max_rate),
59 TP_ARGS(vport, bw_share, max_rate)
97 unsigned int tsar_ix, u32 bw_share, u32 max_rate),
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/esw/ !
Dqos.c18 u32 max_rate; member
25 u32 tsar_ix, u32 max_rate, u32 bw_share) in esw_qos_tsar_config() argument
32 MLX5_SET(scheduling_context, sched_ctx, max_average_bw, max_rate); in esw_qos_tsar_config()
45 u32 max_rate, u32 bw_share, struct netlink_ext_ack *extack) in esw_qos_group_config() argument
53 max_rate, bw_share); in esw_qos_group_config()
57 trace_mlx5_esw_group_qos_config(dev, group, group->tsar_ix, bw_share, max_rate); in esw_qos_group_config()
64 u32 max_rate, u32 bw_share, in esw_qos_vport_config() argument
75 max_rate, bw_share); in esw_qos_vport_config()
84 trace_mlx5_esw_vport_qos_config(vport, bw_share, max_rate); in esw_qos_vport_config()
153 err = esw_qos_vport_config(esw, evport, evport->qos.max_rate, bw_share, extack); in esw_qos_normalize_vports_min_rate()
[all …]
/linux-6.1.9/tools/perf/util/ !
Drecord.c161 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-6.1.9/drivers/clk/tegra/ !
Dclk-audio-sync.c25 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-6.1.9/drivers/memory/tegra/ !
Dtegra20-emc.c194 unsigned long max_rate; member
212 unsigned long max_rate; member
677 unsigned long max_rate, in emc_round_rate() argument
693 if (emc->timings[i].rate > max_rate) { in emc_round_rate()
709 rate, min_rate, max_rate); in emc_round_rate()
722 emc->requested_rate[i].max_rate = ULONG_MAX; in tegra_emc_rate_requests_init()
732 unsigned long min_rate = 0, max_rate = ULONG_MAX; in emc_request_rate() local
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()
[all …]
Dtegra186-emc.c30 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()
Dtegra30-emc.c352 unsigned long max_rate; member
383 unsigned long max_rate; member
1195 unsigned long max_rate, in emc_round_rate() argument
1211 if (emc->timings[i].rate > max_rate) { in emc_round_rate()
1227 rate, min_rate, max_rate); in emc_round_rate()
1240 emc->requested_rate[i].max_rate = ULONG_MAX; in tegra_emc_rate_requests_init()
1250 unsigned long min_rate = 0, max_rate = ULONG_MAX; in emc_request_rate() local
1258 max_rate = min(new_max_rate, max_rate); in emc_request_rate()
1261 max_rate = min(req->max_rate, max_rate); in emc_request_rate()
1265 if (min_rate > max_rate) { in emc_request_rate()
[all …]
Dtegra124-emc.c478 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()
1065 unsigned long min_rate = 0, max_rate = ULONG_MAX; in emc_request_rate() local
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()
1095 emc->requested_rate[type].max_rate = new_max_rate; in emc_request_rate()
1107 ret = emc_request_rate(emc, rate, req->max_rate, type); in emc_set_min_rate()
[all …]
/linux-6.1.9/drivers/net/wireless/marvell/mwifiex/ !
D11ac.c47 u16 max_rate = 0; in mwifiex_convert_mcsmap_to_maxrate() local
71 max_rate = max_rate_lgi_160MHZ[nss - 1][mcs]; in mwifiex_convert_mcsmap_to_maxrate()
72 if (!max_rate) in mwifiex_convert_mcsmap_to_maxrate()
74 max_rate = max_rate_lgi_160MHZ[nss - 1][mcs - 1]; in mwifiex_convert_mcsmap_to_maxrate()
76 max_rate = max_rate_lgi_80MHZ[nss - 1][mcs]; in mwifiex_convert_mcsmap_to_maxrate()
77 if (!max_rate) in mwifiex_convert_mcsmap_to_maxrate()
79 max_rate = max_rate_lgi_80MHZ[nss - 1][mcs - 1]; in mwifiex_convert_mcsmap_to_maxrate()
82 return max_rate; in mwifiex_convert_mcsmap_to_maxrate()
/linux-6.1.9/drivers/clk/imx/ !
Dclk-pllv3.c172 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-6.1.9/drivers/clk/ !
Dclk-scmi.c56 fmax = clk->info->range.max_rate; in scmi_clk_round_rate()
138 unsigned long min_rate, max_rate; in scmi_clk_ops_init() local
159 max_rate = sclk->info->list.rates[num_rates - 1]; in scmi_clk_ops_init()
162 max_rate = sclk->info->range.max_rate; in scmi_clk_ops_init()
165 clk_hw_set_rate_range(&sclk->hw, min_rate, max_rate); in scmi_clk_ops_init()
Dclk.c79 unsigned long max_rate; member
103 unsigned long max_rate; member
582 if (req->max_rate > old_req->max_rate) in clk_core_forward_rate_req()
583 req->max_rate = old_req->max_rate; in clk_core_forward_rate_req()
671 unsigned long *max_rate) in clk_core_get_boundaries() argument
678 *max_rate = core->max_rate; in clk_core_get_boundaries()
684 *max_rate = min(*max_rate, clk_user->max_rate); in clk_core_get_boundaries()
697 unsigned long *max_rate) in clk_hw_get_rate_range() argument
699 clk_core_get_boundaries(hw->core, min_rate, max_rate); in clk_hw_get_rate_range()
705 unsigned long max_rate) in clk_core_check_boundaries() argument
[all …]
/linux-6.1.9/drivers/clk/renesas/ !
Drcar-gen4-cpg.c41 unsigned long max_rate; /* Maximum rate for normal mode */ member
69 rate = min(req->rate, req->max_rate); in cpg_z_clk_determine_rate()
70 if (rate <= zclk->max_rate) { in cpg_z_clk_determine_rate()
72 prate = zclk->max_rate; in cpg_z_clk_determine_rate()
82 max_mult = min(div64_ul(req->max_rate * 32ULL, prate), 32ULL); in cpg_z_clk_determine_rate()
172 zclk->max_rate = clk_hw_get_rate(clk_hw_get_parent(&zclk->hw)) / in cpg_z_clk_register()
Drcar-gen3-cpg.c74 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()
/linux-6.1.9/drivers/clocksource/ !
Dtimer-microchip-pit64b.c232 u32 max_rate) in mchp_pit64b_pres_compute() argument
238 if (tmp <= max_rate) in mchp_pit64b_pres_compute()
284 unsigned long max_rate) in mchp_pit64b_init_mode() argument
297 gclk_round = clk_round_rate(timer->gclk, max_rate); in mchp_pit64b_init_mode()
304 mchp_pit64b_pres_compute(&pres, gclk_round, max_rate); in mchp_pit64b_init_mode()
305 best_diff = abs(gclk_round / (pres + 1) - max_rate); in mchp_pit64b_init_mode()
316 mchp_pit64b_pres_compute(&pres, pclk_rate, max_rate); in mchp_pit64b_init_mode()
317 diff = abs(pclk_rate / (pres + 1) - max_rate); in mchp_pit64b_init_mode()
/linux-6.1.9/drivers/staging/rtl8723bs/core/ !
Drtw_ioctl_set.c473 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()
Drtw_ieee80211.c1084 u16 max_rate = 0; in rtw_mcs_rate() local
1087 max_rate = (bw_40MHz) ? ((short_GI)?1500:1350):((short_GI)?722:650); in rtw_mcs_rate()
1089 max_rate = (bw_40MHz) ? ((short_GI)?1350:1215):((short_GI)?650:585); in rtw_mcs_rate()
1091 max_rate = (bw_40MHz) ? ((short_GI)?1200:1080):((short_GI)?578:520); in rtw_mcs_rate()
1093 max_rate = (bw_40MHz) ? ((short_GI)?900:810):((short_GI)?433:390); in rtw_mcs_rate()
1095 max_rate = (bw_40MHz) ? ((short_GI)?600:540):((short_GI)?289:260); in rtw_mcs_rate()
1097 max_rate = (bw_40MHz) ? ((short_GI)?450:405):((short_GI)?217:195); in rtw_mcs_rate()
1099 max_rate = (bw_40MHz) ? ((short_GI)?300:270):((short_GI)?144:130); in rtw_mcs_rate()
1101 max_rate = (bw_40MHz) ? ((short_GI)?150:135):((short_GI)?72:65); in rtw_mcs_rate()
1103 return max_rate; in rtw_mcs_rate()
/linux-6.1.9/sound/usb/ !
Dformat.c308 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-6.1.9/drivers/clk/bcm/ !
Dclk-raspberrypi.c253 req->rate = clamp(req->rate, req->min_rate, req->max_rate); in raspberrypi_fw_dumb_determine_rate()
280 u32 min_rate, max_rate; in raspberrypi_clk_register() local
309 &max_rate); in raspberrypi_clk_register()
320 clk_hw_set_rate_range(&data->hw, min_rate, max_rate); in raspberrypi_clk_register()
334 clk_hw_set_rate_range(&data->hw, variant->min_rate, max_rate); in raspberrypi_clk_register()
/linux-6.1.9/drivers/staging/r8188eu/core/ !
Drtw_ioctl_set.c436 u16 rate = 0, max_rate = 0; in rtw_get_cur_max_rate() local
464 max_rate = rtw_mcs_rate(bw_40MHz & (pregistrypriv->cbw40_enable), in rtw_get_cur_max_rate()
472 if (rate > max_rate) in rtw_get_cur_max_rate()
473 max_rate = rate; in rtw_get_cur_max_rate()
477 max_rate *= 5; in rtw_get_cur_max_rate()
480 return max_rate; in rtw_get_cur_max_rate()
Drtw_ieee80211.c1130 u16 max_rate = 0; in rtw_mcs_rate() local
1133 max_rate = (bw_40MHz) ? ((short_GI_40) ? 1500 : 1350) : ((short_GI_20) ? 722 : 650); in rtw_mcs_rate()
1135 max_rate = (bw_40MHz) ? ((short_GI_40) ? 1350 : 1215) : ((short_GI_20) ? 650 : 585); in rtw_mcs_rate()
1137 max_rate = (bw_40MHz) ? ((short_GI_40) ? 1200 : 1080) : ((short_GI_20) ? 578 : 520); in rtw_mcs_rate()
1139 max_rate = (bw_40MHz) ? ((short_GI_40) ? 900 : 810) : ((short_GI_20) ? 433 : 390); in rtw_mcs_rate()
1141 max_rate = (bw_40MHz) ? ((short_GI_40) ? 600 : 540) : ((short_GI_20) ? 289 : 260); in rtw_mcs_rate()
1143 max_rate = (bw_40MHz) ? ((short_GI_40) ? 450 : 405) : ((short_GI_20) ? 217 : 195); in rtw_mcs_rate()
1145 max_rate = (bw_40MHz) ? ((short_GI_40) ? 300 : 270) : ((short_GI_20) ? 144 : 130); in rtw_mcs_rate()
1147 max_rate = (bw_40MHz) ? ((short_GI_40) ? 150 : 135) : ((short_GI_20) ? 72 : 65); in rtw_mcs_rate()
1149 return max_rate; in rtw_mcs_rate()
/linux-6.1.9/drivers/thunderbolt/ !
Dtunnel.c1270 int ret, max_rate, allocate_up, allocate_down; in tb_usb3_reclaim_available_bandwidth() local
1289 max_rate = ret * 90 / 100; in tb_usb3_reclaim_available_bandwidth()
1292 if (tunnel->allocated_up >= max_rate && in tb_usb3_reclaim_available_bandwidth()
1293 tunnel->allocated_down >= max_rate) in tb_usb3_reclaim_available_bandwidth()
1297 allocate_up = min(max_rate, *available_up); in tb_usb3_reclaim_available_bandwidth()
1301 allocate_down = min(max_rate, *available_down); in tb_usb3_reclaim_available_bandwidth()
1482 int max_rate = 0; in tb_tunnel_alloc_usb3() local
1489 max_rate = tb_usb3_max_link_rate(down, up); in tb_tunnel_alloc_usb3()
1490 if (max_rate < 0) in tb_tunnel_alloc_usb3()
1494 max_rate = max_rate * 90 / 100; in tb_tunnel_alloc_usb3()
[all …]
/linux-6.1.9/drivers/net/ethernet/huawei/hinic/ !
Dhinic_sriov.c135 u32 max_rate, u32 min_rate) in hinic_set_vf_tx_rate_max_min() argument
143 rate_cfg.max_rate = max_rate; in hinic_set_vf_tx_rate_max_min()
151 HW_VF_ID_TO_OS(vf_id), max_rate, min_rate, err, in hinic_set_vf_tx_rate_max_min()
157 nic_io->vf_infos[HW_VF_ID_TO_OS(vf_id)].max_rate = max_rate; in hinic_set_vf_tx_rate_max_min()
187 nic_io->vf_infos[HW_VF_ID_TO_OS(vf_id)].max_rate = tx_rate; in hinic_set_vf_rate_limit()
194 u32 max_rate, u32 min_rate) in hinic_set_vf_tx_rate() argument
198 err = hinic_set_vf_tx_rate_max_min(hwdev, vf_id, max_rate, min_rate); in hinic_set_vf_tx_rate()
209 return hinic_set_vf_rate_limit(hwdev, vf_id, max_rate); in hinic_set_vf_tx_rate()
243 if (vf_info->max_rate) { in hinic_init_vf_config()
244 err = hinic_set_vf_tx_rate(hwdev, vf_id, vf_info->max_rate, in hinic_init_vf_config()
[all …]
/linux-6.1.9/drivers/phy/rockchip/ !
Dphy-rockchip-inno-dsidphy.c202 enum phy_max_rate max_rate; member
395 if (inno->pdata->max_rate == MAX_2_5GHZ) { in inno_dsidphy_mipi_mode_enable()
472 if (inno->pdata->max_rate == MAX_1GHZ) { in inno_dsidphy_mipi_mode_enable()
495 if (inno->pdata->max_rate == MAX_2_5GHZ) in inno_dsidphy_mipi_mode_enable()
502 if (inno->pdata->max_rate == MAX_2_5GHZ) in inno_dsidphy_mipi_mode_enable()
507 if (inno->pdata->max_rate == MAX_2_5GHZ) in inno_dsidphy_mipi_mode_enable()
687 .max_rate = MAX_1GHZ,
693 .max_rate = MAX_2_5GHZ,
/linux-6.1.9/arch/arm64/kernel/ !
Dtopology.c115 static int freq_inv_set_max_ratio(int cpu, u64 max_rate, u64 ref_rate) in freq_inv_set_max_ratio() argument
119 if (unlikely(!max_rate || !ref_rate)) { in freq_inv_set_max_ratio()
139 ratio = div64_u64(ratio, max_rate); in freq_inv_set_max_ratio()

1234567