/linux/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()
|
/linux/drivers/cpufreq/ |
H A D | amd-pstate.c | 494 unsigned long max_freq; in amd_pstate_update() local 506 max_freq = READ_ONCE(cpudata->max_limit_freq); in amd_pstate_update() 507 policy->cur = div_u64(des_perf * max_freq, max_perf); in amd_pstate_update() 573 u32 max_limit_perf, min_limit_perf, lowest_perf, max_perf, max_freq; in amd_pstate_update_min_max_limit() local 577 max_freq = READ_ONCE(cpudata->max_freq); in amd_pstate_update_min_max_limit() 578 max_limit_perf = div_u64(policy->max * max_perf, max_freq); in amd_pstate_update_min_max_limit() 579 min_limit_perf = div_u64(policy->min * max_perf, max_freq); in amd_pstate_update_min_max_limit() 603 if (!cpudata->max_freq) in amd_pstate_update_freq() 617 cpudata->max_freq); in amd_pstate_update_freq() 699 u32 nominal_freq, max_freq; in amd_pstate_cpu_boost_update() 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() 182 max_freq = simple_strtoul(str, &str, 0); 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() 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()
|
H A D | pmac64-cpufreq.c | 344 unsigned long max_freq; in g5_neo2_cpufreq_init() local 436 max_freq = (*valp)/1000; in g5_neo2_cpufreq_init() 437 g5_cpu_freqs[0].frequency = max_freq; in g5_neo2_cpufreq_init() 438 g5_cpu_freqs[1].frequency = max_freq/2; in g5_neo2_cpufreq_init() 484 u64 max_freq, min_freq, ih, il; in g5_pm72_cpufreq_init() local 574 max_freq = (*valp)/1000; in g5_pm72_cpufreq_init() 592 min_freq = (max_freq * il) / ih; in g5_pm72_cpufreq_init() 595 if (min_freq >= max_freq || min_freq < 1000) { in g5_pm72_cpufreq_init() 600 g5_cpu_freqs[0].frequency = max_freq; in g5_pm72_cpufreq_init()
|
H A D | ppc_cbe_cpufreq.c | 58 u32 max_freq; in cbe_cpufreq_cpu_init() local 87 max_freq = *max_freqp / 1000; in cbe_cpufreq_cpu_init() 89 pr_debug("max clock-frequency is at %u kHz\n", max_freq); in cbe_cpufreq_cpu_init() 94 pos->frequency = max_freq / pos->driver_data; in cbe_cpufreq_cpu_init()
|
/linux/tools/testing/selftests/intel_pstate/ |
H A D | run.sh | 97 max_freq=$((_max_freq / 1000)) 100 [ $EVALUATE_ONLY -eq 0 ] && for freq in `seq $max_freq -100 $min_freq` 107 [ $EVALUATE_ONLY -eq 0 ] && cpupower frequency-set -g powersave --max=${max_freq}MHz >& /dev/null 111 echo "The maximum frequency of the cpu is $max_freq MHz" 116 for freq in `seq $max_freq -100 $min_freq` 126 $((max_perf_pct * max_freq))
|
/linux/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()
|
/linux/drivers/clk/tegra/ |
H A D | cvb.c | 57 int speedo_value, unsigned long max_freq) in build_opp_table() argument 67 if (!entry->freq || (entry->freq > max_freq)) in build_opp_table() 106 unsigned long max_freq) in tegra_cvb_add_opp_table() argument 121 max_freq); in tegra_cvb_add_opp_table() 130 unsigned long max_freq) in tegra_cvb_remove_opp_table() argument 137 if (!entry->freq || (entry->freq > max_freq)) in tegra_cvb_remove_opp_table()
|
H A D | cvb.h | 55 unsigned long max_freq); 58 unsigned long max_freq);
|
/linux/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()
|
/linux/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,
|
/linux/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 = nvbios_rd32(bios, bios->bmp_offset + 67); in nvbios_pll_parse() [all …]
|
/linux/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, 118 dws->max_freq = desc->max_freq; in dw_spi_pci_probe()
|
/linux/drivers/devfreq/ |
H A D | devfreq.c | 103 unsigned long max_freq = ULONG_MAX; in find_available_max_freq() local 105 opp = dev_pm_opp_find_freq_floor_indexed(devfreq->dev.parent, &max_freq, 0); in find_available_max_freq() 107 max_freq = 0; in find_available_max_freq() 111 return max_freq; in find_available_max_freq() 124 unsigned long *max_freq) in devfreq_get_freq_range() argument 138 *max_freq = freq_table[devfreq->max_state - 1]; in devfreq_get_freq_range() 141 *max_freq = freq_table[0]; in devfreq_get_freq_range() 151 *max_freq = min(*max_freq, in devfreq_get_freq_range() 156 *max_freq = min(*max_freq, devfreq->scaling_max_freq); in devfreq_get_freq_range() 158 if (*min_freq > *max_freq) in devfreq_get_freq_range() [all …]
|
/linux/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,
|
H A D | omap5-thermal-data.c | 136 .max_freq = OMAP5430_MPU_MAX_FREQ, 146 .max_freq = OMAP5430_GPU_MAX_FREQ, 156 .max_freq = OMAP5430_CORE_MAX_FREQ,
|
H A D | omap3-thermal-data.c | 42 .max_freq = 32768, 110 .max_freq = 32768,
|
/linux/drivers/gpu/drm/i915/gt/ |
H A D | selftest_slpc.c | 114 u32 step, max_freq, req_freq; in vary_max_freq() local 121 for (max_freq = slpc->rp0_freq; max_freq > slpc->min_freq; in vary_max_freq() 122 max_freq -= step) { in vary_max_freq() 123 err = slpc_set_max_freq(slpc, max_freq); in vary_max_freq() 130 if (req_freq > (max_freq + FREQUENCY_REQ_UNIT)) { in vary_max_freq() 132 max_freq + FREQUENCY_REQ_UNIT); in vary_max_freq()
|
H A D | intel_rps.c | 311 rps->max_freq = fmin; in gen5_rps_init() 425 val = rps->max_freq - val; in gen5_invert_freq() 969 if (val < rps->min_freq || val > rps->max_freq) in rps_set_boost_freq() 1063 GEM_BUG_ON(val > rps->max_freq); in intel_rps_set() 1182 rps->max_freq = rps->rp0_freq; in gen6_rps_init() 1199 rps->max_freq); in gen6_rps_init() 1543 if (rps->max_freq <= rps->min_freq) in intel_rps_enable() 1565 rps->min_freq, rps->max_freq, in intel_rps_enable() 1567 intel_gpu_freq(rps, rps->max_freq), in intel_rps_enable() 1571 GEM_BUG_ON(rps->max_freq < rps->min_freq); in intel_rps_enable() [all …]
|
/linux/drivers/gpu/drm/bridge/ |
H A D | thc63lvd1024.c | 59 unsigned int max_freq; in thc63_mode_valid() local 69 max_freq = 150000; in thc63_mode_valid() 72 max_freq = 135000; in thc63_mode_valid() 78 if (mode->clock > max_freq) in thc63_mode_valid()
|
/linux/drivers/acpi/ |
H A D | processor_thermal.c | 100 unsigned long max_freq; in cpufreq_set_cur_state() local 127 max_freq = (policy->cpuinfo.max_freq * in cpufreq_set_cur_state() 132 ret = freq_qos_update_request(&pr->thermal_req, max_freq); in cpufreq_set_cur_state()
|
/linux/drivers/base/ |
H A D | arch_topology.c | 134 unsigned long max_freq) in topology_set_freq_scale() argument 139 if (WARN_ON_ONCE(!cur_freq || !max_freq)) in topology_set_freq_scale() 150 scale = (cur_freq << SCHED_CAPACITY_SHIFT) / max_freq; in topology_set_freq_scale() 184 u32 max_freq; in topology_update_hw_pressure() local 189 max_freq = arch_scale_freq_ref(cpu); in topology_update_hw_pressure() 195 if (max_freq <= capped_freq) in topology_update_hw_pressure() 198 capacity = mult_frac(max_capacity, capped_freq, max_freq); in topology_update_hw_pressure() 449 per_cpu(capacity_freq_ref, cpu) = policy->cpuinfo.max_freq; in init_cpu_capacity_callback()
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A D | pllnv04.c | 41 int minvco = info->vco1.min_freq, maxvco = info->vco1.max_freq; in getMNP_single() 140 int minvco1 = info->vco1.min_freq, maxvco1 = info->vco1.max_freq; in getMNP_double() 141 int minvco2 = info->vco2.min_freq, maxvco2 = info->vco2.max_freq; in getMNP_double() 232 if (!info->vco2.max_freq || !N2) { in nv04_pll_calc()
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-devfreq | 83 What: /sys/class/devfreq/.../max_freq 87 The /sys/class/devfreq/.../max_freq shows and stores 89 the user does not care. max_freq overrides the 91 The max_freq overrides min_freq because max_freq may be
|