/linux-6.12.1/tools/power/cpupower/utils/ |
D | cpufreq-info.c | 212 struct cpufreq_available_frequencies *freqs; in get_boost_mode() local 219 freqs = cpufreq_get_boost_frequencies(cpu); in get_boost_mode() 220 if (freqs) { in get_boost_mode() 222 while (freqs->next) { in get_boost_mode() 223 print_speed(freqs->frequency, no_rounding); in get_boost_mode() 225 freqs = freqs->next; in get_boost_mode() 227 print_speed(freqs->frequency, no_rounding); in get_boost_mode() 229 cpufreq_put_available_frequencies(freqs); in get_boost_mode() 454 struct cpufreq_available_frequencies *freqs; in debug_output_one() local 462 freqs = cpufreq_get_available_frequencies(cpu); in debug_output_one() [all …]
|
/linux-6.12.1/drivers/pcmcia/ |
D | pxa2xx_base.c | 180 struct cpufreq_freqs *freqs) in pxa2xx_pcmcia_frequency_change() argument 184 if (freqs->new > freqs->old) { in pxa2xx_pcmcia_frequency_change() 187 freqs->new / 1000, (freqs->new / 100) % 10, in pxa2xx_pcmcia_frequency_change() 188 freqs->old / 1000, (freqs->old / 100) % 10); in pxa2xx_pcmcia_frequency_change() 194 if (freqs->new < freqs->old) { in pxa2xx_pcmcia_frequency_change() 197 freqs->new / 1000, (freqs->new / 100) % 10, in pxa2xx_pcmcia_frequency_change() 198 freqs->old / 1000, (freqs->old / 100) % 10); in pxa2xx_pcmcia_frequency_change()
|
D | sa11xx_base.c | 116 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()
|
/linux-6.12.1/drivers/cpufreq/ |
D | cpufreq-nforce2.c | 254 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()
|
D | cpufreq.c | 350 struct cpufreq_freqs *freqs, in cpufreq_notify_transition() argument 360 freqs->policy = policy; in cpufreq_notify_transition() 361 freqs->flags = cpufreq_driver->flags; in cpufreq_notify_transition() 363 state, freqs->new); in cpufreq_notify_transition() 372 if (policy->cur && policy->cur != freqs->old) { in cpufreq_notify_transition() 374 freqs->old, policy->cur); in cpufreq_notify_transition() 375 freqs->old = policy->cur; in cpufreq_notify_transition() 379 CPUFREQ_PRECHANGE, freqs); in cpufreq_notify_transition() 381 adjust_jiffies(CPUFREQ_PRECHANGE, freqs); in cpufreq_notify_transition() 385 adjust_jiffies(CPUFREQ_POSTCHANGE, freqs); in cpufreq_notify_transition() [all …]
|
D | sh-cpufreq.c | 48 struct cpufreq_freqs freqs; in __sh_cpufreq_target() local 65 freqs.old = sh_cpufreq_get(cpu); in __sh_cpufreq_target() 66 freqs.new = (freq + 500) / 1000; in __sh_cpufreq_target() 67 freqs.flags = 0; in __sh_cpufreq_target() 69 cpufreq_freq_transition_begin(target->policy, &freqs); in __sh_cpufreq_target() 71 cpufreq_freq_transition_end(target->policy, &freqs, 0); in __sh_cpufreq_target()
|
D | powernow-k6.c | 228 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()
|
D | gx-suspmod.c | 255 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()
|
D | pmac32-cpufreq.c | 481 const u32 *freqs, *ratio; in pmac_cpufreq_init_MacRISC3() local 483 freqs = of_get_property(cpunode, "bus-frequencies", &lenp); in pmac_cpufreq_init_MacRISC3() 485 if (freqs == NULL || lenp != 2) { in pmac_cpufreq_init_MacRISC3() 497 low_freq = min(freqs[0], freqs[1]); in pmac_cpufreq_init_MacRISC3() 498 hi_freq = max(freqs[0], freqs[1]); in pmac_cpufreq_init_MacRISC3()
|
D | longhaul.c | 251 struct cpufreq_freqs freqs; in longhaul_setstate() local 272 freqs.old = calc_speed(longhaul_get_cpu_mult()); in longhaul_setstate() 273 freqs.new = speed; in longhaul_setstate() 348 freqs.new = calc_speed(longhaul_get_cpu_mult()); in longhaul_setstate() 350 if (unlikely(freqs.new != speed)) { in longhaul_setstate() 959 struct cpufreq_freqs freqs; in longhaul_exit() local 961 freqs.old = policy->cur; in longhaul_exit() 962 freqs.new = longhaul_table[i].frequency; in longhaul_exit() 963 freqs.flags = 0; in longhaul_exit() 965 cpufreq_freq_transition_begin(policy, &freqs); in longhaul_exit() [all …]
|
D | pxa3xx-cpufreq.c | 108 struct pxa3xx_freq_info *freqs, int num) in setup_freqs_table() argument 119 table[i].frequency = freqs[i].cpufreq_mhz * 1000; in setup_freqs_table() 124 pxa3xx_freqs = freqs; in setup_freqs_table()
|
D | powernow-k7.c | 251 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()
|
D | pcc-cpufreq.c | 203 struct cpufreq_freqs freqs; in pcc_cpufreq_target() local 216 freqs.old = policy->cur; in pcc_cpufreq_target() 217 freqs.new = target_freq; in pcc_cpufreq_target() 218 cpufreq_freq_transition_begin(policy, &freqs); in pcc_cpufreq_target() 236 cpufreq_freq_transition_end(policy, &freqs, status != CMD_COMPLETE); in pcc_cpufreq_target()
|
D | cppc_cpufreq.c | 293 struct cpufreq_freqs freqs; in cppc_cpufreq_set_target() local 298 freqs.old = policy->cur; in cppc_cpufreq_set_target() 299 freqs.new = target_freq; in cppc_cpufreq_set_target() 301 cpufreq_freq_transition_begin(policy, &freqs); in cppc_cpufreq_set_target() 303 cpufreq_freq_transition_end(policy, &freqs, ret != 0); in cppc_cpufreq_set_target()
|
D | powernow-k8.c | 887 struct cpufreq_freqs freqs; in transition_frequency_fidvid() local 912 freqs.old = find_khz_freq_from_fid(data->currfid); in transition_frequency_fidvid() 913 freqs.new = find_khz_freq_from_fid(fid); in transition_frequency_fidvid() 915 cpufreq_freq_transition_begin(policy, &freqs); in transition_frequency_fidvid() 917 cpufreq_freq_transition_end(policy, &freqs, res); in transition_frequency_fidvid()
|
/linux-6.12.1/arch/x86/kernel/ |
D | tsc_msr.c | 57 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()
|
/linux-6.12.1/tools/testing/selftests/intel_pstate/ |
D | run.sh | 65 grep MHz /proc/cpuinfo | sort -u > /tmp/result.freqs 66 num_freqs=$(wc -l /tmp/result.freqs | awk ' { print $1 } ') 68 tail -n 1 /tmp/result.freqs > /tmp/result.$1 70 cp /tmp/result.freqs /tmp/result.$1
|
/linux-6.12.1/drivers/devfreq/ |
D | governor_passive.c | 208 struct cpufreq_freqs *freqs = ptr; in cpufreq_passive_notifier_call() local 212 if (event != CPUFREQ_POSTCHANGE || !freqs) in cpufreq_passive_notifier_call() 215 parent_cpu_data = get_parent_cpu_data(p_data, freqs->policy); in cpufreq_passive_notifier_call() 216 if (!parent_cpu_data || parent_cpu_data->cur_freq == freqs->new) in cpufreq_passive_notifier_call() 220 parent_cpu_data->cur_freq = freqs->new; in cpufreq_passive_notifier_call() 223 ret = devfreq_update_target(devfreq, freqs->new); in cpufreq_passive_notifier_call() 344 struct devfreq_freqs *freqs = (struct devfreq_freqs *)ptr; in devfreq_passive_notifier_call() local 345 unsigned long freq = freqs->new; in devfreq_passive_notifier_call()
|
D | devfreq.c | 325 struct devfreq_freqs *freqs, unsigned int state) in devfreq_notify_transition() argument 333 DEVFREQ_PRECHANGE, freqs); in devfreq_notify_transition() 338 DEVFREQ_POSTCHANGE, freqs); in devfreq_notify_transition() 350 struct devfreq_freqs freqs; in devfreq_set_target() local 359 freqs.old = cur_freq; in devfreq_set_target() 360 freqs.new = new_freq; in devfreq_set_target() 361 devfreq_notify_transition(devfreq, &freqs, DEVFREQ_PRECHANGE); in devfreq_set_target() 365 freqs.new = cur_freq; in devfreq_set_target() 366 devfreq_notify_transition(devfreq, &freqs, DEVFREQ_POSTCHANGE); in devfreq_set_target() 378 freqs.new = new_freq; in devfreq_set_target() [all …]
|
/linux-6.12.1/tools/testing/selftests/cpufreq/ |
D | cpufreq.sh | 149 local freqs=$(cat $filepath/scaling_available_frequencies) 150 printf "Available frequencies for $1: $freqs\n\n" 153 for freq in $freqs; do
|
D | special-tests.sh | 98 local freqs=$(cat $filepath/scaling_available_frequencies) 104 for freq in $freqs; do
|
/linux-6.12.1/drivers/media/pci/cx18/ |
D | cx18-controls.c | 94 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()
|
/linux-6.12.1/drivers/clk/pxa/ |
D | clk-pxa.c | 215 struct pxa2xx_freq *freqs, int nb_freqs) in pxa2xx_determine_rate() argument 221 rate = freqs[i].cpll; in pxa2xx_determine_rate() 239 rate = freqs[closest_below].cpll; in pxa2xx_determine_rate() 241 rate = freqs[closest_above].cpll; in pxa2xx_determine_rate()
|
/linux-6.12.1/drivers/media/pci/ivtv/ |
D | ivtv-controls.c | 69 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()
|
/linux-6.12.1/drivers/mmc/host/ |
D | dw_mmc-rockchip.c | 30 static const unsigned int freqs[] = { 100000, 200000, 300000, 400000 }; variable 485 for (i = 0; i < ARRAY_SIZE(freqs); i++) { in dw_mci_rockchip_init() 486 ret = clk_round_rate(host->ciu_clk, freqs[i] * RK3288_CLKGEN_DIV); in dw_mci_rockchip_init()
|