/kernel/linux/linux-5.10/tools/perf/util/ |
D | record.c | 158 unsigned int max_rate; in record_opts__config_freq() local 177 if (get_max_rate(&max_rate)) in record_opts__config_freq() 183 if (user_freq && (max_rate < opts->freq)) { in record_opts__config_freq() 188 max_rate); in record_opts__config_freq() 195 max_rate, opts->freq, max_rate); in record_opts__config_freq() 197 opts->freq = max_rate; in record_opts__config_freq() 204 if (max_rate < opts->freq) { in record_opts__config_freq() 208 max_rate); in record_opts__config_freq() 209 opts->freq = max_rate; in record_opts__config_freq()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/core/ |
D | rtw_ieee80211.c | 1020 u16 max_rate = 0; in rtw_mcs_rate() local 1024 max_rate = (bw_40MHz) ? ((short_GI_40) ? 1500 : 1350) : ((short_GI_20) ? 722 : 650); in rtw_mcs_rate() 1026 max_rate = (bw_40MHz) ? ((short_GI_40) ? 1350 : 1215) : ((short_GI_20) ? 650 : 585); in rtw_mcs_rate() 1028 max_rate = (bw_40MHz) ? ((short_GI_40) ? 1200 : 1080) : ((short_GI_20) ? 578 : 520); in rtw_mcs_rate() 1030 max_rate = (bw_40MHz) ? ((short_GI_40) ? 900 : 810) : ((short_GI_20) ? 433 : 390); in rtw_mcs_rate() 1032 max_rate = (bw_40MHz) ? ((short_GI_40) ? 600 : 540) : ((short_GI_20) ? 289 : 260); in rtw_mcs_rate() 1034 max_rate = (bw_40MHz) ? ((short_GI_40) ? 450 : 405) : ((short_GI_20) ? 217 : 195); in rtw_mcs_rate() 1036 max_rate = (bw_40MHz) ? ((short_GI_40) ? 300 : 270) : ((short_GI_20) ? 144 : 130); in rtw_mcs_rate() 1038 max_rate = (bw_40MHz) ? ((short_GI_40) ? 150 : 135) : ((short_GI_20) ? 72 : 65); in rtw_mcs_rate() 1042 max_rate = (bw_40MHz) ? ((short_GI_40) ? 3000 : 2700) : ((short_GI_20) ? 1444 : 1300); in rtw_mcs_rate() [all …]
|
D | rtw_ioctl_set.c | 538 u16 rate = 0, max_rate = 0; in rtw_get_cur_max_rate() local 561 max_rate = rtw_mcs_rate( in rtw_get_cur_max_rate() 573 if (rate > max_rate) in rtw_get_cur_max_rate() 574 max_rate = rate; in rtw_get_cur_max_rate() 578 max_rate *= 5; in rtw_get_cur_max_rate() 581 return max_rate; in rtw_get_cur_max_rate()
|
/kernel/linux/linux-5.10/drivers/clk/tegra/ |
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()
|
/kernel/linux/linux-5.10/drivers/memory/tegra/ |
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() 202 emc->debugfs.max_rate = 0; in tegra186_emc_probe() 222 if (emc->dvfs[i].rate > emc->debugfs.max_rate) in tegra186_emc_probe() 223 emc->debugfs.max_rate = emc->dvfs[i].rate; in tegra186_emc_probe() 230 emc->debugfs.max_rate); in tegra186_emc_probe() 234 emc->debugfs.min_rate, emc->debugfs.max_rate, in tegra186_emc_probe()
|
D | tegra20-emc.c | 157 unsigned long max_rate; member 447 unsigned long max_rate, in emc_round_rate() argument 460 if (emc->timings[i].rate > max_rate) { in emc_round_rate() 476 rate, min_rate, max_rate); in emc_round_rate() 583 *rate = emc->debugfs.max_rate; in tegra_emc_debug_max_rate_get() 600 emc->debugfs.max_rate = rate; in tegra_emc_debug_max_rate_set() 616 emc->debugfs.max_rate = 0; in tegra_emc_debugfs_init() 622 if (emc->timings[i].rate > emc->debugfs.max_rate) in tegra_emc_debugfs_init() 623 emc->debugfs.max_rate = emc->timings[i].rate; in tegra_emc_debugfs_init() 628 emc->debugfs.max_rate = emc->debugfs.min_rate; in tegra_emc_debugfs_init() [all …]
|
D | tegra30-emc.c | 353 unsigned long max_rate; member 1053 unsigned long max_rate, in emc_round_rate() argument 1066 if (emc->timings[i].rate > max_rate) { in emc_round_rate() 1082 rate, min_rate, max_rate); in emc_round_rate() 1189 *rate = emc->debugfs.max_rate; in tegra_emc_debug_max_rate_get() 1206 emc->debugfs.max_rate = rate; in tegra_emc_debug_max_rate_set() 1222 emc->debugfs.max_rate = 0; in tegra_emc_debugfs_init() 1228 if (emc->timings[i].rate > emc->debugfs.max_rate) in tegra_emc_debugfs_init() 1229 emc->debugfs.max_rate = emc->timings[i].rate; in tegra_emc_debugfs_init() 1234 emc->debugfs.max_rate = emc->debugfs.min_rate; in tegra_emc_debugfs_init() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/core/ |
D | rtw_ieee80211.c | 1235 u16 max_rate = 0; in rtw_mcs_rate() local 1239 max_rate = (bw_40MHz) ? ((short_GI)?1500:1350):((short_GI)?722:650); in rtw_mcs_rate() 1241 max_rate = (bw_40MHz) ? ((short_GI)?1350:1215):((short_GI)?650:585); in rtw_mcs_rate() 1243 max_rate = (bw_40MHz) ? ((short_GI)?1200:1080):((short_GI)?578:520); in rtw_mcs_rate() 1245 max_rate = (bw_40MHz) ? ((short_GI)?900:810):((short_GI)?433:390); in rtw_mcs_rate() 1247 max_rate = (bw_40MHz) ? ((short_GI)?600:540):((short_GI)?289:260); in rtw_mcs_rate() 1249 max_rate = (bw_40MHz) ? ((short_GI)?450:405):((short_GI)?217:195); in rtw_mcs_rate() 1251 max_rate = (bw_40MHz) ? ((short_GI)?300:270):((short_GI)?144:130); in rtw_mcs_rate() 1253 max_rate = (bw_40MHz) ? ((short_GI)?150:135):((short_GI)?72:65); in rtw_mcs_rate() 1257 max_rate = (bw_40MHz) ? ((short_GI)?3000:2700):((short_GI)?1444:1300); in rtw_mcs_rate() [all …]
|
D | rtw_ioctl_set.c | 640 u16 rate = 0, max_rate = 0; in rtw_get_cur_max_rate() local 660 max_rate = rtw_mcs_rate( in rtw_get_cur_max_rate() 669 if (rate > max_rate) in rtw_get_cur_max_rate() 670 max_rate = rate; in rtw_get_cur_max_rate() 674 max_rate = max_rate*10/2; in rtw_get_cur_max_rate() 677 return max_rate; in rtw_get_cur_max_rate()
|
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/ |
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()
|
/kernel/linux/linux-5.10/drivers/clk/ |
D | clk-scmi.c | 54 fmax = clk->info->range.max_rate; in scmi_clk_round_rate() 106 unsigned long min_rate, max_rate; in scmi_clk_ops_init() local 127 max_rate = sclk->info->list.rates[num_rates - 1]; in scmi_clk_ops_init() 130 max_rate = sclk->info->range.max_rate; in scmi_clk_ops_init() 133 clk_hw_set_rate_range(&sclk->hw, min_rate, max_rate); in scmi_clk_ops_init()
|
D | clk.c | 79 unsigned long max_rate; member 103 unsigned long max_rate; member 629 unsigned long *max_rate) in clk_core_get_boundaries() argument 636 *max_rate = core->max_rate; in clk_core_get_boundaries() 642 *max_rate = min(*max_rate, clk_user->max_rate); in clk_core_get_boundaries() 647 unsigned long max_rate) in clk_core_check_boundaries() argument 653 if (min_rate > core->max_rate || max_rate < core->min_rate) in clk_core_check_boundaries() 657 if (min_rate > user->max_rate || max_rate < user->min_rate) in clk_core_check_boundaries() 664 unsigned long max_rate) in clk_hw_set_rate_range() argument 667 hw->core->max_rate = max_rate; in clk_hw_set_rate_range() [all …]
|
/kernel/linux/linux-5.10/drivers/clk/imx/ |
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()
|
/kernel/linux/linux-5.10/drivers/clocksource/ |
D | timer-microchip-pit64b.c | 191 u32 max_rate) in mchp_pit64b_pres_compute() argument 197 if (tmp <= max_rate) in mchp_pit64b_pres_compute() 241 unsigned long max_rate) in mchp_pit64b_init_mode() argument 254 gclk_round = clk_round_rate(timer->gclk, max_rate); in mchp_pit64b_init_mode() 261 mchp_pit64b_pres_compute(&pres, gclk_round, max_rate); in mchp_pit64b_init_mode() 262 best_diff = abs(gclk_round / (pres + 1) - max_rate); in mchp_pit64b_init_mode() 273 mchp_pit64b_pres_compute(&pres, pclk_rate, max_rate); in mchp_pit64b_init_mode() 274 diff = abs(pclk_rate / (pres + 1) - max_rate); in mchp_pit64b_init_mode()
|
/kernel/linux/linux-5.10/sound/usb/ |
D | format.c | 300 unsigned int max_rate; in focusrite_valid_sample_rate() local 313 max_rate = combine_quad(&fmt[6]); in focusrite_valid_sample_rate() 316 if (max_rate != 48000 && in focusrite_valid_sample_rate() 317 max_rate != 96000 && in focusrite_valid_sample_rate() 318 max_rate != 192000 && in focusrite_valid_sample_rate() 319 max_rate != 384000) { in focusrite_valid_sample_rate() 323 fp->iface, fp->altsetting, max_rate); in focusrite_valid_sample_rate() 328 return rate <= max_rate; in focusrite_valid_sample_rate()
|
/kernel/linux/linux-5.10/drivers/thunderbolt/ |
D | tunnel.c | 951 int ret, max_rate, allocate_up, allocate_down; in tb_usb3_reclaim_available_bandwidth() local 970 max_rate = ret * 90 / 100; in tb_usb3_reclaim_available_bandwidth() 973 if (tunnel->allocated_up >= max_rate && in tb_usb3_reclaim_available_bandwidth() 974 tunnel->allocated_down >= max_rate) in tb_usb3_reclaim_available_bandwidth() 978 allocate_up = min(max_rate, *available_up); in tb_usb3_reclaim_available_bandwidth() 982 allocate_down = min(max_rate, *available_down); in tb_usb3_reclaim_available_bandwidth() 1143 int max_rate = 0; in tb_tunnel_alloc_usb3() local 1150 max_rate = tb_usb3_max_link_rate(down, up); in tb_tunnel_alloc_usb3() 1151 if (max_rate < 0) in tb_tunnel_alloc_usb3() 1155 max_rate = max_rate * 90 / 100; in tb_tunnel_alloc_usb3() [all …]
|
/kernel/linux/linux-5.10/drivers/devfreq/ |
D | tegra20-devfreq.c | 126 unsigned long max_rate; in tegra_devfreq_probe() local 152 max_rate = clk_round_rate(tegra->emc_clock, ULONG_MAX); in tegra_devfreq_probe() 154 for (rate = 0; rate <= max_rate; rate++) { in tegra_devfreq_probe()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/ |
D | hinic_sriov.c | 133 u32 max_rate, u32 min_rate) in hinic_set_vf_tx_rate_max_min() argument 141 rate_cfg.max_rate = max_rate; in hinic_set_vf_tx_rate_max_min() 149 HW_VF_ID_TO_OS(vf_id), max_rate, min_rate, err, in hinic_set_vf_tx_rate_max_min() 155 nic_io->vf_infos[HW_VF_ID_TO_OS(vf_id)].max_rate = max_rate; in hinic_set_vf_tx_rate_max_min() 185 nic_io->vf_infos[HW_VF_ID_TO_OS(vf_id)].max_rate = tx_rate; in hinic_set_vf_rate_limit() 192 u32 max_rate, u32 min_rate) in hinic_set_vf_tx_rate() argument 196 err = hinic_set_vf_tx_rate_max_min(hwdev, vf_id, max_rate, min_rate); in hinic_set_vf_tx_rate() 207 return hinic_set_vf_rate_limit(hwdev, vf_id, max_rate); in hinic_set_vf_tx_rate() 241 if (vf_info->max_rate) { in hinic_init_vf_config() 242 err = hinic_set_vf_tx_rate(hwdev, vf_id, vf_info->max_rate, in hinic_init_vf_config() [all …]
|
/kernel/linux/linux-5.10/drivers/clk/bcm/ |
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()
|
/kernel/linux/linux-5.10/drivers/clk/ti/ |
D | clkt_dpll.c | 301 if (dd->max_rate && target_rate > dd->max_rate) in omap2_dpll_round_rate() 302 target_rate = dd->max_rate; in omap2_dpll_round_rate()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/ |
D | nouveau_dp.c | 233 unsigned int max_rate, mode_rate, ds_max_dotclock, clock = mode->clock; in nv50_dp_mode_valid() local 246 max_rate = outp->dp.link_nr * outp->dp.link_bw; in nv50_dp_mode_valid() 248 if (mode_rate > max_rate) in nv50_dp_mode_valid()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_wx.c | 50 u16 max_rate, rate; in rtl819x_translate_scan() local 110 max_rate = 0; in rtl819x_translate_scan() 120 if (rate > max_rate) in rtl819x_translate_scan() 121 max_rate = rate; in rtl819x_translate_scan() 129 if (rate > max_rate) in rtl819x_translate_scan() 130 max_rate = rate; in rtl819x_translate_scan() 148 if (rate > max_rate) in rtl819x_translate_scan() 149 max_rate = rate; in rtl819x_translate_scan() 153 iwe.u.bitrate.value = max_rate * 500000; in rtl819x_translate_scan()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8192e/ |
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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | rl.c | 162 return (rate <= table->max_rate && rate >= table->min_rate); in mlx5_rl_is_in_range() 188 rate, table->min_rate, table->max_rate); in mlx5_rl_add_rate_raw() 313 table->max_rate = MLX5_CAP_QOS(dev, packet_pacing_max_rate); in mlx5_init_rl_table() 331 table->max_rate >> 10); in mlx5_init_rl_table()
|
/kernel/linux/linux-5.10/drivers/iio/adc/ |
D | ad9467.c | 235 .max_rate = 125000000UL, 247 .max_rate = 500000000UL, 259 .max_rate = 250000000UL, 350 if (r_clk < 0 || r_clk > info->max_rate) { in ad9467_write_raw()
|