/kernel/linux/linux-5.10/drivers/cpufreq/ |
H A D | tango-cpufreq.c | 15 unsigned long max_freq; in tango_cpufreq_init() local 26 max_freq = clk_get_rate(cpu_clk); in tango_cpufreq_init() 28 dev_pm_opp_add(cpu_dev, max_freq / 1, 0); in tango_cpufreq_init() 29 dev_pm_opp_add(cpu_dev, max_freq / 2, 0); in tango_cpufreq_init() 30 dev_pm_opp_add(cpu_dev, max_freq / 3, 0); in tango_cpufreq_init() 31 dev_pm_opp_add(cpu_dev, max_freq / 5, 0); in tango_cpufreq_init() 32 dev_pm_opp_add(cpu_dev, max_freq / 9, 0); in tango_cpufreq_init()
|
H A D | elanfreq.c | 32 static int max_freq; variable 155 if (!max_freq) in elanfreq_cpu_init() 156 max_freq = elanfreq_get_cpu_frequency(0); in elanfreq_cpu_init() 160 if (pos->frequency > max_freq) in elanfreq_cpu_init() 178 * max_freq module parameter instead. 182 max_freq = simple_strtoul(str, &str, 0); in elanfreq_setup() 183 pr_warn("You're using the deprecated elanfreq command line option. Use elanfreq.max_freq instead, please!\n"); in elanfreq_setup() 220 module_param(max_freq, int, 0444);
|
H A D | freq_table.c | 37 unsigned int max_freq = 0; in cpufreq_frequency_table_cpuinfo() local 50 if (freq > max_freq) in cpufreq_frequency_table_cpuinfo() 51 max_freq = freq; in cpufreq_frequency_table_cpuinfo() 55 policy->max = max_freq; in cpufreq_frequency_table_cpuinfo() 57 * If the driver has set its own cpuinfo.max_freq above max_freq, leave in cpufreq_frequency_table_cpuinfo() 60 if (policy->cpuinfo.max_freq < max_freq) in cpufreq_frequency_table_cpuinfo() 61 policy->max = policy->cpuinfo.max_freq = max_freq; in cpufreq_frequency_table_cpuinfo() [all...] |
/kernel/linux/linux-5.10/arch/arm/mach-shmobile/ |
H A D | timer.c | 18 u32 max_freq = 0; in shmobile_init_delay() local 24 max_freq = max(max_freq, freq); in shmobile_init_delay() 27 if (!max_freq) in shmobile_init_delay() 40 preset_lpj = max_freq / HZ; in shmobile_init_delay()
|
/kernel/linux/linux-6.6/arch/arm/mach-shmobile/ |
H A D | timer.c | 18 u32 max_freq = 0; in shmobile_init_delay() local 24 max_freq = max(max_freq, freq); in shmobile_init_delay() 27 if (!max_freq) in shmobile_init_delay() 40 preset_lpj = max_freq / HZ; in shmobile_init_delay()
|
/kernel/linux/linux-6.6/drivers/cpufreq/ |
H A D | amd-pstate.c | 483 max_limit_perf = div_u64(policy->max * cpudata->highest_perf, cpudata->max_freq); in amd_pstate_update_min_max_limit() 484 min_limit_perf = div_u64(policy->min * cpudata->highest_perf, cpudata->max_freq); in amd_pstate_update_min_max_limit() 501 if (!cpudata->max_freq) in amd_pstate_update_freq() 515 cpudata->max_freq); in amd_pstate_update_freq() 556 cap_perf, lowest_nonlinear_perf, max_freq; in amd_pstate_adjust_perf() local 567 max_freq = READ_ONCE(cpudata->max_freq); in amd_pstate_adjust_perf() 585 target_freq = div_u64(des_perf * max_freq, max_perf); in amd_pstate_adjust_perf() 608 u32 max_perf, max_freq, nominal_freq, nominal_perf; in amd_get_max_freq() local 622 max_freq in amd_get_max_freq() 711 int min_freq, max_freq, nominal_freq, lowest_nonlinear_freq, ret; amd_pstate_cpu_init() local 842 int max_freq; show_amd_pstate_max_freq() local 1133 int min_freq, max_freq, nominal_freq, lowest_nonlinear_freq, ret; amd_pstate_epp_cpu_init() local [all...] |
H A D | elanfreq.c | 32 static int max_freq; variable 155 if (!max_freq) in elanfreq_cpu_init() 156 max_freq = elanfreq_get_cpu_frequency(0); in elanfreq_cpu_init() 160 if (pos->frequency > max_freq) in elanfreq_cpu_init() 178 * max_freq module parameter instead. 182 max_freq = simple_strtoul(str, &str, 0); in elanfreq_setup() 183 pr_warn("You're using the deprecated elanfreq command line option. Use elanfreq.max_freq instead, please!\n"); in elanfreq_setup() 220 module_param(max_freq, int, 0444);
|
H A D | freq_table.c | 37 unsigned int max_freq = 0; in cpufreq_frequency_table_cpuinfo() local 50 if (freq > max_freq) in cpufreq_frequency_table_cpuinfo() 51 max_freq = freq; in cpufreq_frequency_table_cpuinfo() 55 policy->max = max_freq; in cpufreq_frequency_table_cpuinfo() 57 * If the driver has set its own cpuinfo.max_freq above max_freq, leave in cpufreq_frequency_table_cpuinfo() 60 if (policy->cpuinfo.max_freq < max_freq) in cpufreq_frequency_table_cpuinfo() 61 policy->max = policy->cpuinfo.max_freq = max_freq; in cpufreq_frequency_table_cpuinfo() [all...] |
/kernel/linux/linux-5.10/drivers/clk/tegra/ |
H A D | cvb.c | 57 int speedo_value, unsigned long max_freq) in build_opp_table() 67 if (!entry->freq || (entry->freq > max_freq)) in build_opp_table() 92 * @max_freq: highest safe clock rate 105 unsigned long max_freq) in tegra_cvb_add_opp_table() 120 max_freq); in tegra_cvb_add_opp_table() 129 unsigned long max_freq) in tegra_cvb_remove_opp_table() 136 if (!entry->freq || (entry->freq > max_freq)) in tegra_cvb_remove_opp_table() 55 build_opp_table(struct device *dev, const struct cvb_table *table, struct rail_alignment *align, int speedo_value, unsigned long max_freq) build_opp_table() argument 102 tegra_cvb_add_opp_table(struct device *dev, const struct cvb_table *tables, size_t count, struct rail_alignment *align, int process_id, int speedo_id, int speedo_value, unsigned long max_freq) tegra_cvb_add_opp_table() argument 127 tegra_cvb_remove_opp_table(struct device *dev, const struct cvb_table *table, unsigned long max_freq) tegra_cvb_remove_opp_table() argument
|
/kernel/linux/linux-5.10/tools/testing/selftests/intel_pstate/ |
H A D | run.sh | 92 max_freq=$(($_max_freq / 1000)) 95 [ $EVALUATE_ONLY -eq 0 ] && for freq in `seq $max_freq -100 $min_freq` 102 [ $EVALUATE_ONLY -eq 0 ] && cpupower frequency-set -g powersave --max=${max_freq}MHz >& /dev/null 106 echo "The maximum frequency of the cpu is $max_freq MHz" 111 for freq in `seq $max_freq -100 $min_freq` 121 $((max_perf_pct * max_freq))
|
/kernel/linux/linux-6.6/drivers/clk/tegra/ |
H A D | cvb.c | 57 int speedo_value, unsigned long max_freq) in build_opp_table() 67 if (!entry->freq || (entry->freq > max_freq)) in build_opp_table() 93 * @max_freq: highest safe clock rate 106 unsigned long max_freq) in tegra_cvb_add_opp_table() 121 max_freq); in tegra_cvb_add_opp_table() 130 unsigned long max_freq) in tegra_cvb_remove_opp_table() 137 if (!entry->freq || (entry->freq > max_freq)) in tegra_cvb_remove_opp_table() 55 build_opp_table(struct device *dev, const struct cvb_table *table, struct rail_alignment *align, int speedo_value, unsigned long max_freq) build_opp_table() argument 103 tegra_cvb_add_opp_table(struct device *dev, const struct cvb_table *tables, size_t count, struct rail_alignment *align, int process_id, int speedo_id, int speedo_value, unsigned long max_freq) tegra_cvb_add_opp_table() argument 128 tegra_cvb_remove_opp_table(struct device *dev, const struct cvb_table *table, unsigned long max_freq) tegra_cvb_remove_opp_table() argument
|
/kernel/linux/linux-6.6/tools/testing/selftests/intel_pstate/ |
H A D | run.sh | 92 max_freq=$(($_max_freq / 1000)) 95 [ $EVALUATE_ONLY -eq 0 ] && for freq in `seq $max_freq -100 $min_freq` 102 [ $EVALUATE_ONLY -eq 0 ] && cpupower frequency-set -g powersave --max=${max_freq}MHz >& /dev/null 106 echo "The maximum frequency of the cpu is $max_freq MHz" 111 for freq in `seq $max_freq -100 $min_freq` 121 $((max_perf_pct * max_freq))
|
/kernel/linux/linux-5.10/drivers/macintosh/ |
H A D | windfarm_cpufreq_clamp.c | 22 static unsigned int min_freq, max_freq; variable 33 freq = max_freq; in clamp_set() 79 max_freq = policy->cpuinfo.max_freq; in wf_cpufreq_clamp_init() 82 max_freq); in wf_cpufreq_clamp_init()
|
/kernel/linux/linux-6.6/drivers/macintosh/ |
H A D | windfarm_cpufreq_clamp.c | 20 static unsigned int min_freq, max_freq; variable 31 freq = max_freq; in clamp_set() 77 max_freq = policy->cpuinfo.max_freq; in wf_cpufreq_clamp_init() 80 max_freq); in wf_cpufreq_clamp_init()
|
/kernel/linux/linux-5.10/drivers/memory/ |
H A D | jedec_ddr_data.c | 35 .max_freq = 200000000, 56 .max_freq = 266666666, 77 .max_freq = 400000000, 98 .max_freq = 533333333,
|
/kernel/linux/linux-6.6/drivers/memory/ |
H A D | jedec_ddr_data.c | 35 .max_freq = 200000000, 56 .max_freq = 266666666, 77 .max_freq = 400000000, 98 .max_freq = 533333333,
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
H A D | debugfs_gt_pm.c | 288 intel_gpu_freq(rps, rps->max_freq)); in frequency_show() 308 int max_freq; in frequency_show() local 436 max_freq = (IS_GEN9_LP(i915) ? rp_state_cap >> 0 : in frequency_show() 438 max_freq *= (IS_GEN9_BC(i915) || in frequency_show() 441 intel_gpu_freq(rps, max_freq)); in frequency_show() 443 max_freq = (rp_state_cap & 0xff00) >> 8; in frequency_show() 444 max_freq *= (IS_GEN9_BC(i915) || in frequency_show() 447 intel_gpu_freq(rps, max_freq)); in frequency_show() 449 max_freq = (IS_GEN9_LP(i915) ? rp_state_cap >> 16 : in frequency_show() 451 max_freq * in frequency_show() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | pll.c | 259 info->vco1.max_freq = nvbios_rd32(bios, data + 4); in nvbios_pll_parse() 261 info->vco2.max_freq = nvbios_rd32(bios, data + 12); in nvbios_pll_parse() 305 info->vco1.max_freq = nvbios_rd16(bios, data + 6) * 1000; in nvbios_pll_parse() 307 info->vco2.max_freq = nvbios_rd16(bios, data + 10) * 1000; in nvbios_pll_parse() 334 info->vco1.max_freq = nvbios_rd16(bios, data + 2) * 1000; in nvbios_pll_parse() 336 info->vco2.max_freq = nvbios_rd16(bios, data + 6) * 1000; in nvbios_pll_parse() 358 info->vco1.max_freq = nvbios_rd16(bios, data + 2) * 1000; in nvbios_pll_parse() 372 info->vco1.max_freq = nvbios_rd16(bios, data + 7) * 1000; in nvbios_pll_parse() 406 if (!info->vco1.max_freq) { in nvbios_pll_parse() 407 info->vco1.max_freq in nvbios_pll_parse() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | pll.c | 258 info->vco1.max_freq = nvbios_rd32(bios, data + 4); in nvbios_pll_parse() 260 info->vco2.max_freq = nvbios_rd32(bios, data + 12); in nvbios_pll_parse() 304 info->vco1.max_freq = nvbios_rd16(bios, data + 6) * 1000; in nvbios_pll_parse() 306 info->vco2.max_freq = nvbios_rd16(bios, data + 10) * 1000; in nvbios_pll_parse() 333 info->vco1.max_freq = nvbios_rd16(bios, data + 2) * 1000; in nvbios_pll_parse() 335 info->vco2.max_freq = nvbios_rd16(bios, data + 6) * 1000; in nvbios_pll_parse() 357 info->vco1.max_freq = nvbios_rd16(bios, data + 2) * 1000; in nvbios_pll_parse() 371 info->vco1.max_freq = nvbios_rd16(bios, data + 7) * 1000; in nvbios_pll_parse() 405 if (!info->vco1.max_freq) { in nvbios_pll_parse() 406 info->vco1.max_freq in nvbios_pll_parse() [all...] |
/kernel/linux/linux-5.10/drivers/thermal/ti-soc-thermal/ |
H A D | dra752-thermal-data.c | 153 .max_freq = DRA752_MPU_MAX_FREQ, 161 .max_freq = DRA752_GPU_MAX_FREQ, 169 .max_freq = DRA752_CORE_MAX_FREQ, 177 .max_freq = DRA752_DSPEVE_MAX_FREQ, 185 .max_freq = DRA752_IVA_MAX_FREQ,
|
/kernel/linux/linux-5.10/drivers/spi/ |
H A D | spi-dw-pci.c | 31 u32 max_freq; member 47 dws->max_freq = MRST_SPI_CLK_BASE / (clk_cdiv + 1); in spi_mid_init() 79 .max_freq = 100000000, 119 dws->max_freq = desc->max_freq; in spi_pci_probe()
|
/kernel/linux/linux-6.6/drivers/spi/ |
H A D | spi-dw-pci.c | 31 u32 max_freq; member 47 dws->max_freq = MRST_SPI_CLK_BASE / (clk_cdiv + 1); in dw_spi_pci_mid_init() 79 .max_freq = 100000000, 119 dws->max_freq = desc->max_freq; in dw_spi_pci_probe()
|
/kernel/linux/linux-6.6/drivers/thermal/ti-soc-thermal/ |
H A D | dra752-thermal-data.c | 153 .max_freq = DRA752_MPU_MAX_FREQ, 161 .max_freq = DRA752_GPU_MAX_FREQ, 169 .max_freq = DRA752_CORE_MAX_FREQ, 177 .max_freq = DRA752_DSPEVE_MAX_FREQ, 185 .max_freq = DRA752_IVA_MAX_FREQ,
|
/kernel/linux/linux-5.10/drivers/clk/hisilicon/ |
H A D | clk-hi6220-stub.c | 97 unsigned int max_freq; in hi6220_acpu_round_freq() local 105 regmap_read(stub_clk->dfs_map, ACPU_DFS_FREQ_MAX, &max_freq); in hi6220_acpu_round_freq() 108 max_freq = min(max_freq, limit_freq); in hi6220_acpu_round_freq() 110 if (WARN_ON(freq > max_freq)) in hi6220_acpu_round_freq() 111 freq = max_freq; in hi6220_acpu_round_freq()
|
/kernel/linux/linux-6.6/drivers/clk/hisilicon/ |
H A D | clk-hi6220-stub.c | 97 unsigned int max_freq; in hi6220_acpu_round_freq() local 105 regmap_read(stub_clk->dfs_map, ACPU_DFS_FREQ_MAX, &max_freq); in hi6220_acpu_round_freq() 108 max_freq = min(max_freq, limit_freq); in hi6220_acpu_round_freq() 110 if (WARN_ON(freq > max_freq)) in hi6220_acpu_round_freq() 111 freq = max_freq; in hi6220_acpu_round_freq()
|