Home
last modified time | relevance | path

Searched refs:max_freq (Results 1 – 25 of 153) sorted by relevance

1234567

/kernel/linux/linux-5.10/drivers/cpufreq/
Dtango-cpufreq.c15 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()
Delanfreq.c32 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);
Dfreq_table.c37 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()
Dppc_cbe_cpufreq.c59 u32 max_freq; in cbe_cpufreq_cpu_init() local
88 max_freq = *max_freqp / 1000; in cbe_cpufreq_cpu_init()
90 pr_debug("max clock-frequency is at %u kHz\n", max_freq); in cbe_cpufreq_cpu_init()
95 pos->frequency = max_freq / pos->driver_data; in cbe_cpufreq_cpu_init()
Dpmac64-cpufreq.c344 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()
Dmaple-cpufreq.c161 unsigned long max_freq; in maple_cpufreq_init() local
212 max_freq = (*valp)/1000; in maple_cpufreq_init()
213 maple_cpu_freqs[0].frequency = max_freq; in maple_cpufreq_init()
214 maple_cpu_freqs[1].frequency = max_freq/2; in maple_cpufreq_init()
Dvexpress-spc-cpufreq.c77 u32 max_freq = 0, cpu_freq; in find_cluster_maxfreq() local
83 max_freq < cpu_freq) in find_cluster_maxfreq()
84 max_freq = cpu_freq; in find_cluster_maxfreq()
87 return max_freq; in find_cluster_maxfreq()
229 u32 max_freq = 0; in get_table_max() local
232 if (pos->frequency > max_freq) in get_table_max()
233 max_freq = pos->frequency; in get_table_max()
234 return max_freq; in get_table_max()
Dloongson1-cpufreq.c30 unsigned int max_freq; member
95 if ((freq < cpufreq->min_freq) || (freq > cpufreq->max_freq)) in ls1x_cpufreq_init()
187 cpufreq->max_freq = pdata->max_freq; in ls1x_cpufreq_probe()
Dintel_pstate.c149 unsigned int max_freq; member
459 policy->cpuinfo.max_freq / 1000; in intel_pstate_init_acpi_perf_limits()
1024 policy->cpuinfo.max_freq = global.turbo_disabled_mf ? in intel_pstate_update_max_freq()
1025 cpudata->pstate.max_freq : cpudata->pstate.turbo_freq; in intel_pstate_update_max_freq()
1742 cpu->pstate.max_freq = cpu->pstate.max_pstate * cpu->pstate.scaling; in intel_pstate_get_cpu_pstates()
2204 cpu->pstate.max_freq : cpu->pstate.turbo_freq; in intel_pstate_get_max_freq()
2213 int max_freq; in intel_pstate_update_perf_limits() local
2227 max_freq = max_state * cpu->pstate.scaling; in intel_pstate_update_perf_limits()
2229 max_policy_perf = max_state * policy_max / max_freq; in intel_pstate_update_perf_limits()
2233 min_policy_perf = max_state * policy_min / max_freq; in intel_pstate_update_perf_limits()
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-shmobile/
Dtimer.c18 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-5.10/tools/testing/selftests/intel_pstate/
Drun.sh92 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/
Dwindfarm_cpufreq_clamp.c22 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-5.10/drivers/clk/tegra/
Dcvb.c57 int speedo_value, unsigned long max_freq) in build_opp_table() argument
67 if (!entry->freq || (entry->freq > max_freq)) in build_opp_table()
105 unsigned long max_freq) in tegra_cvb_add_opp_table() argument
120 max_freq); in tegra_cvb_add_opp_table()
129 unsigned long max_freq) in tegra_cvb_remove_opp_table() argument
136 if (!entry->freq || (entry->freq > max_freq)) in tegra_cvb_remove_opp_table()
Dcvb.h55 unsigned long max_freq);
58 unsigned long max_freq);
/kernel/linux/linux-5.10/drivers/memory/
Djedec_ddr_data.c35 .max_freq = 200000000,
56 .max_freq = 266666666,
77 .max_freq = 400000000,
98 .max_freq = 533333333,
/kernel/linux/linux-5.10/arch/arm/mach-davinci/
Dboard-mityomapl138.c60 int max_freq; /* khz */ member
66 .max_freq = 300000,
70 .max_freq = 375000,
74 .max_freq = 456000,
78 .max_freq = 300000,
82 .max_freq = 375000,
86 .max_freq = 456000,
90 .max_freq = 375000,
108 da850_max_speed = mityomapl138_pn_info[i].max_freq; in mityomapl138_cpufreq_init()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Ddebugfs_gt_pm.c288 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 *= (IS_GEN9_BC(i915) || in frequency_show()
[all …]
Dintel_llc.c34 max_khz = policy->cpuinfo.max_freq; in cpu_max_MHz()
56 if (rps->max_freq <= rps->min_freq) in get_ia_constants()
67 consts->max_gpu_freq = rps->max_freq; in get_ia_constants()
Dintel_rps.c283 rps->max_freq = fmin; in gen5_rps_init()
407 val = rps->max_freq - val; in gen5_rps_set()
925 GEM_BUG_ON(val > rps->max_freq); in intel_rps_set()
974 rps->max_freq = rps->rp0_freq; in gen6_rps_init()
988 rps->max_freq); in gen6_rps_init()
998 rps->max_freq *= GEN9_FREQ_SCALER; in gen6_rps_init()
1338 if (rps->max_freq <= rps->min_freq) in intel_rps_enable()
1360 rps->min_freq, rps->max_freq, in intel_rps_enable()
1362 intel_gpu_freq(rps, rps->max_freq)); in intel_rps_enable()
1364 GEM_BUG_ON(rps->max_freq < rps->min_freq); in intel_rps_enable()
[all …]
/kernel/linux/linux-5.10/drivers/clk/hisilicon/
Dclk-hi6220-stub.c97 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-5.10/drivers/spi/
Dspi-dw-pci.c31 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-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dpll.c259 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 = nvbios_rd32(bios, bios->bmp_offset + 67); in nvbios_pll_parse()
[all …]
/kernel/linux/linux-5.10/drivers/thermal/ti-soc-thermal/
Ddra752-thermal-data.c153 .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/devfreq/
Ddevfreq.c100 unsigned long max_freq = ULONG_MAX; in find_available_max_freq() local
102 opp = dev_pm_opp_find_freq_floor(devfreq->dev.parent, &max_freq); in find_available_max_freq()
104 max_freq = 0; in find_available_max_freq()
108 return max_freq; in find_available_max_freq()
121 unsigned long *max_freq) in get_freq_range() argument
135 *max_freq = freq_table[devfreq->profile->max_state - 1]; in get_freq_range()
138 *max_freq = freq_table[0]; in get_freq_range()
148 *max_freq = min(*max_freq, in get_freq_range()
153 *max_freq = min(*max_freq, devfreq->scaling_max_freq); in get_freq_range()
155 if (*min_freq > *max_freq) in get_freq_range()
[all …]
/kernel/linux/linux-5.10/drivers/acpi/
Dprocessor_thermal.c86 unsigned long max_freq; in cpufreq_set_cur_state() local
113 max_freq = (policy->cpuinfo.max_freq * (100 - reduction_pctg(i) * 20)) / 100; in cpufreq_set_cur_state()
117 ret = freq_qos_update_request(&pr->thermal_req, max_freq); in cpufreq_set_cur_state()

1234567