Home
last modified time | relevance | path

Searched refs:freqs (Results 1 – 25 of 46) sorted by relevance

12

/kernel/linux/linux-5.10/tools/power/cpupower/utils/
Dcpufreq-info.c247 struct cpufreq_available_frequencies *freqs; in get_boost_mode() local
254 freqs = cpufreq_get_boost_frequencies(cpu); in get_boost_mode()
255 if (freqs) { in get_boost_mode()
257 while (freqs->next) { in get_boost_mode()
258 print_speed(freqs->frequency); in get_boost_mode()
260 freqs = freqs->next; in get_boost_mode()
262 print_speed(freqs->frequency); in get_boost_mode()
264 cpufreq_put_available_frequencies(freqs); in get_boost_mode()
478 struct cpufreq_available_frequencies *freqs; in debug_output_one() local
486 freqs = cpufreq_get_available_frequencies(cpu); in debug_output_one()
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-s3c/
Dmach-osiris-dvs.c54 struct s3c_cpufreq_freqs *freqs = to_s3c_cpufreq(cf); in osiris_dvs_notify() local
55 bool old_dvs = is_dvs(&freqs->old); in osiris_dvs_notify()
56 bool new_dvs = is_dvs(&freqs->new); in osiris_dvs_notify()
63 freqs->old.armclk, freqs->old.hclk, in osiris_dvs_notify()
64 freqs->new.armclk, freqs->new.hclk); in osiris_dvs_notify()
/kernel/linux/linux-5.10/drivers/pcmcia/
Dpxa2xx_base.c189 struct cpufreq_freqs *freqs) in pxa2xx_pcmcia_frequency_change() argument
193 if (freqs->new > freqs->old) { in pxa2xx_pcmcia_frequency_change()
196 freqs->new / 1000, (freqs->new / 100) % 10, in pxa2xx_pcmcia_frequency_change()
197 freqs->old / 1000, (freqs->old / 100) % 10); in pxa2xx_pcmcia_frequency_change()
203 if (freqs->new < freqs->old) { in pxa2xx_pcmcia_frequency_change()
206 freqs->new / 1000, (freqs->new / 100) % 10, in pxa2xx_pcmcia_frequency_change()
207 freqs->old / 1000, (freqs->old / 100) % 10); in pxa2xx_pcmcia_frequency_change()
Dsa11xx_base.c116 struct cpufreq_freqs *freqs) in sa1100_pcmcia_frequency_change() argument
120 if (freqs->new > freqs->old) in sa1100_pcmcia_frequency_change()
121 sa1100_pcmcia_set_mecr(skt, freqs->new); in sa1100_pcmcia_frequency_change()
125 if (freqs->new < freqs->old) in sa1100_pcmcia_frequency_change()
126 sa1100_pcmcia_set_mecr(skt, freqs->new); in sa1100_pcmcia_frequency_change()
/kernel/linux/linux-5.10/drivers/cpufreq/
Dcpufreq-nforce2.c254 struct cpufreq_freqs freqs; in nforce2_target() local
262 freqs.old = nforce2_get(policy->cpu); in nforce2_target()
263 freqs.new = target_fsb * fid * 100; in nforce2_target()
265 if (freqs.old == freqs.new) in nforce2_target()
269 freqs.old, freqs.new); in nforce2_target()
271 cpufreq_freq_transition_begin(policy, &freqs); in nforce2_target()
285 cpufreq_freq_transition_end(policy, &freqs, 0); in nforce2_target()
Dcpufreq.c344 struct cpufreq_freqs *freqs, in cpufreq_notify_transition() argument
354 freqs->policy = policy; in cpufreq_notify_transition()
355 freqs->flags = cpufreq_driver->flags; in cpufreq_notify_transition()
357 state, freqs->new); in cpufreq_notify_transition()
366 if (policy->cur && policy->cur != freqs->old) { in cpufreq_notify_transition()
368 freqs->old, policy->cur); in cpufreq_notify_transition()
369 freqs->old = policy->cur; in cpufreq_notify_transition()
373 CPUFREQ_PRECHANGE, freqs); in cpufreq_notify_transition()
375 adjust_jiffies(CPUFREQ_PRECHANGE, freqs); in cpufreq_notify_transition()
379 adjust_jiffies(CPUFREQ_POSTCHANGE, freqs); in cpufreq_notify_transition()
[all …]
Dsh-cpufreq.c49 struct cpufreq_freqs freqs; in __sh_cpufreq_target() local
66 freqs.old = sh_cpufreq_get(cpu); in __sh_cpufreq_target()
67 freqs.new = (freq + 500) / 1000; in __sh_cpufreq_target()
68 freqs.flags = 0; in __sh_cpufreq_target()
70 cpufreq_freq_transition_begin(target->policy, &freqs); in __sh_cpufreq_target()
72 cpufreq_freq_transition_end(target->policy, &freqs, 0); in __sh_cpufreq_target()
Dpowernow-k6.c228 struct cpufreq_freqs freqs; in powernow_k6_cpu_exit() local
230 freqs.old = policy->cur; in powernow_k6_cpu_exit()
231 freqs.new = clock_ratio[i].frequency; in powernow_k6_cpu_exit()
232 freqs.flags = 0; in powernow_k6_cpu_exit()
234 cpufreq_freq_transition_begin(policy, &freqs); in powernow_k6_cpu_exit()
236 cpufreq_freq_transition_end(policy, &freqs, 0); in powernow_k6_cpu_exit()
Ds3c24xx-cpufreq.c152 struct s3c_cpufreq_freqs freqs; in s3c_cpufreq_settarget() local
165 freqs.pll_changing = 1; in s3c_cpufreq_settarget()
194 freqs.old = cpu_cur.freq; in s3c_cpufreq_settarget()
195 freqs.new = cpu_new.freq; in s3c_cpufreq_settarget()
197 freqs.freqs.old = cpu_cur.freq.armclk / 1000; in s3c_cpufreq_settarget()
198 freqs.freqs.new = cpu_new.freq.armclk / 1000; in s3c_cpufreq_settarget()
210 cpufreq_freq_transition_begin(policy, &freqs.freqs); in s3c_cpufreq_settarget()
254 cpufreq_freq_transition_end(policy, &freqs.freqs, 0); in s3c_cpufreq_settarget()
Dgx-suspmod.c255 struct cpufreq_freqs freqs; in gx_set_cpuspeed() local
257 freqs.old = gx_get_cpuspeed(0); in gx_set_cpuspeed()
262 freqs.new = new_khz; in gx_set_cpuspeed()
264 cpufreq_freq_transition_begin(policy, &freqs); in gx_set_cpuspeed()
313 cpufreq_freq_transition_end(policy, &freqs, 0); in gx_set_cpuspeed()
317 pr_debug("suspend modulation w/ clock speed: %d kHz.\n", freqs.new); in gx_set_cpuspeed()
Dpmac32-cpufreq.c483 const u32 *freqs, *ratio; in pmac_cpufreq_init_MacRISC3() local
485 freqs = of_get_property(cpunode, "bus-frequencies", &lenp); in pmac_cpufreq_init_MacRISC3()
487 if (freqs == NULL || lenp != 2) { in pmac_cpufreq_init_MacRISC3()
499 low_freq = min(freqs[0], freqs[1]); in pmac_cpufreq_init_MacRISC3()
500 hi_freq = max(freqs[0], freqs[1]); in pmac_cpufreq_init_MacRISC3()
Dlonghaul.c250 struct cpufreq_freqs freqs; in longhaul_setstate() local
271 freqs.old = calc_speed(longhaul_get_cpu_mult()); in longhaul_setstate()
272 freqs.new = speed; in longhaul_setstate()
347 freqs.new = calc_speed(longhaul_get_cpu_mult()); in longhaul_setstate()
349 if (unlikely(freqs.new != speed)) { in longhaul_setstate()
960 struct cpufreq_freqs freqs; in longhaul_exit() local
962 freqs.old = policy->cur; in longhaul_exit()
963 freqs.new = longhaul_table[i].frequency; in longhaul_exit()
964 freqs.flags = 0; in longhaul_exit()
966 cpufreq_freq_transition_begin(policy, &freqs); in longhaul_exit()
[all …]
Dpxa3xx-cpufreq.c87 struct pxa3xx_freq_info *freqs, int num) in setup_freqs_table() argument
98 table[i].frequency = freqs[i].cpufreq_mhz * 1000; in setup_freqs_table()
103 pxa3xx_freqs = freqs; in setup_freqs_table()
Dcppc_cpufreq.c153 struct cpufreq_freqs freqs; in cppc_cpufreq_set_target() local
165 freqs.old = policy->cur; in cppc_cpufreq_set_target()
166 freqs.new = target_freq; in cppc_cpufreq_set_target()
168 cpufreq_freq_transition_begin(policy, &freqs); in cppc_cpufreq_set_target()
170 cpufreq_freq_transition_end(policy, &freqs, ret != 0); in cppc_cpufreq_set_target()
Dpowernow-k7.c251 struct cpufreq_freqs freqs; in powernow_target() local
265 freqs.old = fsb * fid_codes[cfid] / 10; in powernow_target()
267 freqs.new = powernow_table[index].frequency; in powernow_target()
274 if (freqs.old > freqs.new) { in powernow_target()
Dpcc-cpufreq.c202 struct cpufreq_freqs freqs; in pcc_cpufreq_target() local
215 freqs.old = policy->cur; in pcc_cpufreq_target()
216 freqs.new = target_freq; in pcc_cpufreq_target()
217 cpufreq_freq_transition_begin(policy, &freqs); in pcc_cpufreq_target()
234 cpufreq_freq_transition_end(policy, &freqs, status != CMD_COMPLETE); in pcc_cpufreq_target()
/kernel/linux/linux-5.10/arch/x86/kernel/
Dtsc_msr.c57 u32 freqs[MAX_NUM_FREQS]; member
68 .freqs = { 0, 0, 0, 0, 0, 99840, 0, 83200 },
74 .freqs = { 0, 133200, 0, 0, 0, 99840, 0, 83200 },
144 .freqs = { 78000, 78000, 78000, 78000, 78000, 78000, 78000, 78000,
206 freq = freq_desc->freqs[index]; in cpu_khz_from_msr()
/kernel/linux/linux-5.10/tools/testing/selftests/intel_pstate/
Drun.sh60 grep MHz /proc/cpuinfo | sort -u > /tmp/result.freqs
61 num_freqs=$(wc -l /tmp/result.freqs | awk ' { print $1 } ')
63 tail -n 1 /tmp/result.freqs > /tmp/result.$1
65 cp /tmp/result.freqs /tmp/result.$1
/kernel/linux/linux-5.10/tools/testing/selftests/cpufreq/
Dcpufreq.sh149 local freqs=$(cat $filepath/scaling_available_frequencies)
150 printf "Available frequencies for $1: $freqs\n\n"
153 for freq in $freqs; do
Dspecial-tests.sh98 local freqs=$(cat $filepath/scaling_available_frequencies)
104 for freq in $freqs; do
/kernel/linux/linux-5.10/drivers/media/pci/cx18/
Dcx18-controls.c94 static const u32 freqs[3] = { 44100, 48000, 32000 }; in cx18_s_audio_sampling_freq() local
99 if (idx < ARRAY_SIZE(freqs)) in cx18_s_audio_sampling_freq()
100 cx18_call_all(cx, audio, s_clock_freq, freqs[idx]); in cx18_s_audio_sampling_freq()
/kernel/linux/linux-5.10/include/linux/soc/samsung/
Ds3c-cpu-freq.h61 struct cpufreq_freqs freqs; member
68 #define to_s3c_cpufreq(_cf) container_of(_cf, struct s3c_cpufreq_freqs, freqs)
/kernel/linux/linux-5.10/drivers/clk/pxa/
Dclk-pxa.c208 struct pxa2xx_freq *freqs, int nb_freqs) in pxa2xx_determine_rate() argument
214 rate = freqs[i].cpll; in pxa2xx_determine_rate()
232 rate = freqs[closest_below].cpll; in pxa2xx_determine_rate()
234 rate = freqs[closest_above].cpll; in pxa2xx_determine_rate()
/kernel/linux/linux-5.10/drivers/media/pci/ivtv/
Divtv-controls.c69 static const u32 freqs[3] = { 44100, 48000, 32000 }; in ivtv_s_audio_sampling_freq() local
74 if (idx < ARRAY_SIZE(freqs)) in ivtv_s_audio_sampling_freq()
75 ivtv_call_all(itv, audio, s_clock_freq, freqs[idx]); in ivtv_s_audio_sampling_freq()
/kernel/linux/linux-5.10/drivers/devfreq/
Dgovernor_passive.c132 struct devfreq_freqs *freqs = (struct devfreq_freqs *)ptr; in devfreq_passive_notifier_call() local
133 unsigned long freq = freqs->new; in devfreq_passive_notifier_call()

12