Home
last modified time | relevance | path

Searched refs:policy (Results 1 - 25 of 1016) sorted by relevance

12345678910>>...41

/kernel/linux/linux-6.6/drivers/cpufreq/
H A Dcpufreq.c82 static unsigned int __cpufreq_get(struct cpufreq_policy *policy);
83 static int cpufreq_init_governor(struct cpufreq_policy *policy);
84 static void cpufreq_exit_governor(struct cpufreq_policy *policy);
85 static void cpufreq_governor_limits(struct cpufreq_policy *policy);
86 static int cpufreq_set_policy(struct cpufreq_policy *policy,
92 * Two notifier lists: the "policy" list is involved in the
93 * validation process for a new CPU frequency policy; the
120 struct kobject *get_governor_parent_kobj(struct cpufreq_policy *policy) in get_governor_parent_kobj() argument
123 return &policy->kobj; in get_governor_parent_kobj()
172 * - policy
174 cpufreq_generic_init(struct cpufreq_policy *policy, struct cpufreq_frequency_table *table, unsigned int transition_latency) cpufreq_generic_init() argument
191 struct cpufreq_policy *policy = per_cpu(cpufreq_cpu_data, cpu); cpufreq_cpu_get_raw() local
199 struct cpufreq_policy *policy = cpufreq_cpu_get_raw(cpu); cpufreq_generic_get() local
224 struct cpufreq_policy *policy = NULL; cpufreq_cpu_get() local
250 cpufreq_cpu_put(struct cpufreq_policy *policy) cpufreq_cpu_put() argument
260 cpufreq_cpu_release(struct cpufreq_policy *policy) cpufreq_cpu_release() argument
286 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); cpufreq_cpu_acquire() local
349 cpufreq_notify_transition(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, unsigned int state) cpufreq_notify_transition() argument
401 cpufreq_notify_post_transition(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, int transition_failed) cpufreq_notify_post_transition() argument
413 cpufreq_freq_transition_begin(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs) cpufreq_freq_transition_begin() argument
447 cpufreq_freq_transition_end(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, int transition_failed) cpufreq_freq_transition_end() argument
500 cpufreq_enable_fast_switch(struct cpufreq_policy *policy) cpufreq_enable_fast_switch() argument
524 cpufreq_disable_fast_switch(struct cpufreq_policy *policy) cpufreq_disable_fast_switch() argument
536 __resolve_freq(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) __resolve_freq() argument
563 cpufreq_driver_resolve_freq(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_driver_resolve_freq() argument
570 cpufreq_policy_transition_delay_us(struct cpufreq_policy *policy) cpufreq_policy_transition_delay_us() argument
627 show_local_boost(struct cpufreq_policy *policy, char *buf) show_local_boost() argument
632 store_local_boost(struct cpufreq_policy *policy, const char *buf, size_t count) store_local_boost() argument
747 show_scaling_cur_freq(struct cpufreq_policy *policy, char *buf) show_scaling_cur_freq() argument
786 show_cpuinfo_cur_freq(struct cpufreq_policy *policy, char *buf) show_cpuinfo_cur_freq() argument
800 show_scaling_governor(struct cpufreq_policy *policy, char *buf) show_scaling_governor() argument
815 store_scaling_governor(struct cpufreq_policy *policy, const char *buf, size_t count) store_scaling_governor() argument
852 show_scaling_driver(struct cpufreq_policy *policy, char *buf) show_scaling_driver() argument
860 show_scaling_available_governors(struct cpufreq_policy *policy, char *buf) show_scaling_available_governors() argument
907 show_related_cpus(struct cpufreq_policy *policy, char *buf) show_related_cpus() argument
915 show_affected_cpus(struct cpufreq_policy *policy, char *buf) show_affected_cpus() argument
920 store_scaling_setspeed(struct cpufreq_policy *policy, const char *buf, size_t count) store_scaling_setspeed() argument
938 show_scaling_setspeed(struct cpufreq_policy *policy, char *buf) show_scaling_setspeed() argument
949 show_bios_limit(struct cpufreq_policy *policy, char *buf) show_bios_limit() argument
995 struct cpufreq_policy *policy = to_policy(kobj); show() local
1013 struct cpufreq_policy *policy = to_policy(kobj); store() local
1030 struct cpufreq_policy *policy = to_policy(kobj); cpufreq_sysfs_release() local
1046 add_cpu_dev_symlink(struct cpufreq_policy *policy, unsigned int cpu, struct device *dev) add_cpu_dev_symlink() argument
1060 remove_cpu_dev_symlink(struct cpufreq_policy *policy, int cpu, struct device *dev) remove_cpu_dev_symlink() argument
1068 cpufreq_add_dev_interface(struct cpufreq_policy *policy) cpufreq_add_dev_interface() argument
1106 cpufreq_init_policy(struct cpufreq_policy *policy) cpufreq_init_policy() argument
1154 cpufreq_add_policy_cpu(struct cpufreq_policy *policy, unsigned int cpu) cpufreq_add_policy_cpu() argument
1177 refresh_frequency_limits(struct cpufreq_policy *policy) refresh_frequency_limits() argument
1189 struct cpufreq_policy *policy = handle_update() local
1201 struct cpufreq_policy *policy = container_of(nb, struct cpufreq_policy, nb_min); cpufreq_notifier_min() local
1210 struct cpufreq_policy *policy = container_of(nb, struct cpufreq_policy, nb_max); cpufreq_notifier_max() local
1216 cpufreq_policy_put_kobj(struct cpufreq_policy *policy) cpufreq_policy_put_kobj() argument
1240 struct cpufreq_policy *policy; cpufreq_policy_alloc() local
1321 cpufreq_policy_free(struct cpufreq_policy *policy) cpufreq_policy_free() argument
1372 struct cpufreq_policy *policy; cpufreq_online() local
1613 struct cpufreq_policy *policy; cpufreq_add_dev() local
1633 __cpufreq_offline(unsigned int cpu, struct cpufreq_policy *policy) __cpufreq_offline() argument
1685 struct cpufreq_policy *policy; cpufreq_offline() local
1711 struct cpufreq_policy *policy = per_cpu(cpufreq_cpu_data, cpu); cpufreq_remove_dev() local
1745 cpufreq_out_of_sync(struct cpufreq_policy *policy, unsigned int new_freq) cpufreq_out_of_sync() argument
1760 cpufreq_verify_current_freq(struct cpufreq_policy *policy, bool update) cpufreq_verify_current_freq() argument
1803 struct cpufreq_policy *policy; cpufreq_quick_get() local
1835 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); cpufreq_quick_get_max() local
1855 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); cpufreq_get_hw_max_freq() local
1867 __cpufreq_get(struct cpufreq_policy *policy) __cpufreq_get() argument
1883 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); cpufreq_get() local
1910 cpufreq_generic_suspend(struct cpufreq_policy *policy) cpufreq_generic_suspend() argument
1942 struct cpufreq_policy *policy; cpufreq_suspend() local
1976 struct cpufreq_policy *policy; cpufreq_resume() local
2168 cpufreq_driver_fast_switch(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_driver_fast_switch() argument
2235 __target_intermediate(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, int index) __target_intermediate() argument
2260 __target_index(struct cpufreq_policy *policy, int index) __target_index() argument
2320 __cpufreq_driver_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) __cpufreq_driver_target() argument
2362 cpufreq_driver_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) cpufreq_driver_target() argument
2383 cpufreq_init_governor(struct cpufreq_policy *policy) cpufreq_init_governor() argument
2429 cpufreq_exit_governor(struct cpufreq_policy *policy) cpufreq_exit_governor() argument
2442 cpufreq_start_governor(struct cpufreq_policy *policy) cpufreq_start_governor() argument
2469 cpufreq_stop_governor(struct cpufreq_policy *policy) cpufreq_stop_governor() argument
2480 cpufreq_governor_limits(struct cpufreq_policy *policy) cpufreq_governor_limits() argument
2516 struct cpufreq_policy *policy; cpufreq_unregister_governor() local
2554 cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu) cpufreq_get_policy() argument
2586 cpufreq_set_policy(struct cpufreq_policy *policy, struct cpufreq_governor *new_gov, unsigned int new_pol) cpufreq_set_policy() argument
2690 struct cpufreq_policy *policy = cpufreq_cpu_acquire(cpu); cpufreq_update_policy() local
2729 cpufreq_boost_set_sw(struct cpufreq_policy *policy, int state) cpufreq_boost_set_sw() argument
2751 struct cpufreq_policy *policy; cpufreq_boost_trigger_state() local
[all...]
H A Dcpufreq_userspace.c23 * @policy: pointer to policy struct where freq is being set
28 static int cpufreq_set(struct cpufreq_policy *policy, unsigned int freq) in cpufreq_set() argument
31 unsigned int *setspeed = policy->governor_data; in cpufreq_set()
33 pr_debug("cpufreq_set for cpu %u, freq %u kHz\n", policy->cpu, freq); in cpufreq_set()
36 if (!per_cpu(cpu_is_managed, policy->cpu)) in cpufreq_set()
41 ret = __cpufreq_driver_target(policy, freq, CPUFREQ_RELATION_L); in cpufreq_set()
47 static ssize_t show_speed(struct cpufreq_policy *policy, char *buf) in show_speed() argument
49 return sprintf(buf, "%u\n", policy->cur); in show_speed()
52 static int cpufreq_userspace_policy_init(struct cpufreq_policy *policy) in cpufreq_userspace_policy_init() argument
64 cpufreq_userspace_policy_exit(struct cpufreq_policy *policy) cpufreq_userspace_policy_exit() argument
72 cpufreq_userspace_policy_start(struct cpufreq_policy *policy) cpufreq_userspace_policy_start() argument
86 cpufreq_userspace_policy_stop(struct cpufreq_policy *policy) cpufreq_userspace_policy_stop() argument
98 cpufreq_userspace_policy_limits(struct cpufreq_policy *policy) cpufreq_userspace_policy_limits() argument
[all...]
H A Dfreq_table.c17 bool policy_has_boost_freq(struct cpufreq_policy *policy) in policy_has_boost_freq() argument
19 struct cpufreq_frequency_table *pos, *table = policy->freq_table; in policy_has_boost_freq()
32 int cpufreq_frequency_table_cpuinfo(struct cpufreq_policy *policy, in cpufreq_frequency_table_cpuinfo() argument
43 if ((!cpufreq_boost_enabled() || !policy->boost_enabled) in cpufreq_frequency_table_cpuinfo()
54 policy->min = policy->cpuinfo.min_freq = min_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 in cpufreq_frequency_table_cpuinfo()
69 cpufreq_frequency_table_verify(struct cpufreq_policy_data *policy, struct cpufreq_frequency_table *table) cpufreq_frequency_table_verify() argument
109 cpufreq_generic_frequency_table_verify(struct cpufreq_policy_data *policy) cpufreq_generic_frequency_table_verify() argument
118 cpufreq_table_index_unsorted(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) cpufreq_table_index_unsorted() argument
211 cpufreq_frequency_table_get_index(struct cpufreq_policy *policy, unsigned int freq) cpufreq_frequency_table_get_index() argument
233 show_available_freqs(struct cpufreq_policy *policy, char *buf, bool show_boost) show_available_freqs() argument
273 scaling_available_frequencies_show(struct cpufreq_policy *policy, char *buf) scaling_available_frequencies_show() argument
285 scaling_boost_frequencies_show(struct cpufreq_policy *policy, char *buf) scaling_boost_frequencies_show() argument
299 set_freq_table_sorted(struct cpufreq_policy *policy) set_freq_table_sorted() argument
354 cpufreq_table_validate_and_sort(struct cpufreq_policy *policy) cpufreq_table_validate_and_sort() argument
[all...]
H A Dsh-cpufreq.c33 struct cpufreq_policy *policy; member
45 struct cpufreq_policy *policy = target->policy; in __sh_cpufreq_target() local
46 int cpu = policy->cpu; in __sh_cpufreq_target()
60 if (freq < (policy->min * 1000) || freq > (policy->max * 1000)) 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()
80 static int sh_cpufreq_target(struct cpufreq_policy *policy, in sh_cpufreq_target() argument
84 struct cpufreq_target data = { .policy in sh_cpufreq_target()
89 sh_cpufreq_verify(struct cpufreq_policy_data *policy) sh_cpufreq_verify() argument
107 sh_cpufreq_cpu_init(struct cpufreq_policy *policy) sh_cpufreq_cpu_init() argument
138 sh_cpufreq_cpu_exit(struct cpufreq_policy *policy) sh_cpufreq_cpu_exit() argument
[all...]
H A Damd-pstate.c220 if (epp > 0 && cpudata->policy == CPUFREQ_POLICY_PERFORMANCE) { in amd_pstate_set_energy_pref_index()
221 pr_debug("EPP cannot be set under performance policy\n"); in amd_pstate_set_energy_pref_index()
471 static int amd_pstate_verify(struct cpufreq_policy_data *policy) in amd_pstate_verify() argument
473 cpufreq_verify_within_cpu_limits(policy); in amd_pstate_verify()
478 static int amd_pstate_update_min_max_limit(struct cpufreq_policy *policy) in amd_pstate_update_min_max_limit() argument
481 struct amd_cpudata *cpudata = policy->driver_data; in amd_pstate_update_min_max_limit()
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()
488 WRITE_ONCE(cpudata->max_limit_freq, policy->max); in amd_pstate_update_min_max_limit()
489 WRITE_ONCE(cpudata->min_limit_freq, policy in amd_pstate_update_min_max_limit()
494 amd_pstate_update_freq(struct cpufreq_policy *policy, unsigned int target_freq, bool fast_switch) amd_pstate_update_freq() argument
535 amd_pstate_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) amd_pstate_target() argument
542 amd_pstate_fast_switch(struct cpufreq_policy *policy, unsigned int target_freq) amd_pstate_fast_switch() argument
557 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); amd_pstate_adjust_perf() local
665 amd_pstate_set_boost(struct cpufreq_policy *policy, int state) amd_pstate_set_boost() argument
709 amd_pstate_cpu_init(struct cpufreq_policy *policy) amd_pstate_cpu_init() argument
798 amd_pstate_cpu_exit(struct cpufreq_policy *policy) amd_pstate_cpu_exit() argument
810 amd_pstate_cpu_resume(struct cpufreq_policy *policy) amd_pstate_cpu_resume() argument
821 amd_pstate_cpu_suspend(struct cpufreq_policy *policy) amd_pstate_cpu_suspend() argument
839 show_amd_pstate_max_freq(struct cpufreq_policy *policy, char *buf) show_amd_pstate_max_freq() argument
852 show_amd_pstate_lowest_nonlinear_freq(struct cpufreq_policy *policy, char *buf) show_amd_pstate_lowest_nonlinear_freq() argument
869 show_amd_pstate_highest_perf(struct cpufreq_policy *policy, char *buf) show_amd_pstate_highest_perf() argument
880 show_energy_performance_available_preferences( struct cpufreq_policy *policy, char *buf) show_energy_performance_available_preferences() argument
899 store_energy_performance_preference( struct cpufreq_policy *policy, const char *buf, size_t count) store_energy_performance_preference() argument
921 show_energy_performance_preference( struct cpufreq_policy *policy, char *buf) show_energy_performance_preference() argument
1131 amd_pstate_epp_cpu_init(struct cpufreq_policy *policy) amd_pstate_epp_cpu_init() argument
1217 amd_pstate_epp_cpu_exit(struct cpufreq_policy *policy) amd_pstate_epp_cpu_exit() argument
1223 amd_pstate_epp_update_limit(struct cpufreq_policy *policy) amd_pstate_epp_update_limit() argument
1283 amd_pstate_epp_set_policy(struct cpufreq_policy *policy) amd_pstate_epp_set_policy() argument
1322 amd_pstate_epp_cpu_online(struct cpufreq_policy *policy) amd_pstate_epp_cpu_online() argument
1336 amd_pstate_epp_offline(struct cpufreq_policy *policy) amd_pstate_epp_offline() argument
1365 amd_pstate_epp_cpu_offline(struct cpufreq_policy *policy) amd_pstate_epp_cpu_offline() argument
1380 amd_pstate_epp_verify_policy(struct cpufreq_policy_data *policy) amd_pstate_epp_verify_policy() argument
1387 amd_pstate_epp_suspend(struct cpufreq_policy *policy) amd_pstate_epp_suspend() argument
1407 amd_pstate_epp_resume(struct cpufreq_policy *policy) amd_pstate_epp_resume() argument
[all...]
H A Dgx-suspmod.c136 /* For the default policy, we want at least some processing power
250 static void gx_set_cpuspeed(struct cpufreq_policy *policy, unsigned int khz) in gx_set_cpuspeed() argument
264 cpufreq_freq_transition_begin(policy, &freqs); in gx_set_cpuspeed()
313 cpufreq_freq_transition_end(policy, &freqs, 0); in gx_set_cpuspeed()
331 static int cpufreq_gx_verify(struct cpufreq_policy_data *policy) in cpufreq_gx_verify() argument
336 if (!stock_freq || !policy) in cpufreq_gx_verify()
339 policy->cpu = 0; in cpufreq_gx_verify()
340 cpufreq_verify_within_limits(policy, (stock_freq / max_duration), in cpufreq_gx_verify()
344 * within policy->min and policy in cpufreq_gx_verify()
371 cpufreq_gx_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) cpufreq_gx_target() argument
398 cpufreq_gx_cpu_init(struct cpufreq_policy *policy) cpufreq_gx_cpu_init() argument
[all...]
H A Dacpi-cpufreq.c136 static int set_boost(struct cpufreq_policy *policy, int val) in set_boost() argument
138 on_each_cpu_mask(policy->cpus, boost_set_msr_each, in set_boost()
141 cpumask_pr_args(policy->cpus), str_enabled_disabled(val)); in set_boost()
146 static ssize_t show_freqdomain_cpus(struct cpufreq_policy *policy, char *buf) in show_freqdomain_cpus() argument
148 struct acpi_cpufreq_data *data = policy->driver_data; in show_freqdomain_cpus()
159 static ssize_t store_cpb(struct cpufreq_policy *policy, const char *buf, in store_cpb() argument
173 set_boost(policy, val); in store_cpb()
179 static ssize_t show_cpb(struct cpufreq_policy *policy, char *buf) in show_cpb() argument
201 static unsigned extract_io(struct cpufreq_policy *policy, u32 value) in extract_io() argument
203 struct acpi_cpufreq_data *data = policy in extract_io()
216 extract_msr(struct cpufreq_policy *policy, u32 msr) extract_msr() argument
237 extract_freq(struct cpufreq_policy *policy, u32 val) extract_freq() argument
370 struct cpufreq_policy *policy; get_cur_freq_on_cpu() local
399 check_freqs(struct cpufreq_policy *policy, const struct cpumask *mask, unsigned int freq) check_freqs() argument
415 acpi_cpufreq_target(struct cpufreq_policy *policy, unsigned int index) acpi_cpufreq_target() argument
465 acpi_cpufreq_fast_switch(struct cpufreq_policy *policy, unsigned int target_freq) acpi_cpufreq_fast_switch() argument
670 acpi_cpufreq_cpu_init(struct cpufreq_policy *policy) acpi_cpufreq_cpu_init() argument
909 acpi_cpufreq_cpu_exit(struct cpufreq_policy *policy) acpi_cpufreq_cpu_exit() argument
926 acpi_cpufreq_resume(struct cpufreq_policy *policy) acpi_cpufreq_resume() argument
[all...]
H A Dqcom-cpufreq-hw.c57 struct cpufreq_policy *policy; member
71 static int qcom_cpufreq_set_bw(struct cpufreq_policy *policy, in qcom_cpufreq_set_bw() argument
79 dev = get_cpu_device(policy->cpu); in qcom_cpufreq_set_bw()
112 static int qcom_cpufreq_hw_target_index(struct cpufreq_policy *policy, in qcom_cpufreq_hw_target_index() argument
115 struct qcom_cpufreq_data *data = policy->driver_data; in qcom_cpufreq_hw_target_index()
117 unsigned long freq = policy->freq_table[index].frequency; in qcom_cpufreq_hw_target_index()
123 for (i = 1; i < cpumask_weight(policy->related_cpus); i++) in qcom_cpufreq_hw_target_index()
127 qcom_cpufreq_set_bw(policy, freq); in qcom_cpufreq_hw_target_index()
149 struct cpufreq_policy *policy; in qcom_cpufreq_get_freq() local
152 policy in qcom_cpufreq_get_freq()
168 struct cpufreq_policy *policy; qcom_cpufreq_hw_get() local
182 qcom_cpufreq_hw_fast_switch(struct cpufreq_policy *policy, unsigned int target_freq) qcom_cpufreq_hw_fast_switch() argument
200 qcom_cpufreq_hw_read_lut(struct device *cpu_dev, struct cpufreq_policy *policy) qcom_cpufreq_hw_read_lut() argument
326 struct cpufreq_policy *policy = data->policy; qcom_lmh_dcvs_notify() local
426 qcom_cpufreq_hw_lmh_init(struct cpufreq_policy *policy, int index) qcom_cpufreq_hw_lmh_init() argument
464 qcom_cpufreq_hw_cpu_online(struct cpufreq_policy *policy) qcom_cpufreq_hw_cpu_online() argument
485 qcom_cpufreq_hw_cpu_offline(struct cpufreq_policy *policy) qcom_cpufreq_hw_cpu_offline() argument
511 qcom_cpufreq_hw_cpu_init(struct cpufreq_policy *policy) qcom_cpufreq_hw_cpu_init() argument
576 qcom_cpufreq_hw_cpu_exit(struct cpufreq_policy *policy) qcom_cpufreq_hw_cpu_exit() argument
590 qcom_cpufreq_ready(struct cpufreq_policy *policy) qcom_cpufreq_ready() argument
[all...]
H A Dcppc_cpufreq.c164 static void cppc_cpufreq_cpu_fie_init(struct cpufreq_policy *policy) in cppc_cpufreq_cpu_fie_init() argument
172 for_each_cpu(cpu, policy->cpus) { in cppc_cpufreq_cpu_fie_init()
175 cppc_fi->cpu_data = policy->driver_data; in cppc_cpufreq_cpu_fie_init()
194 topology_set_scale_freq_source(&cppc_sftd, policy->cpus); in cppc_cpufreq_cpu_fie_init()
198 * We free all the resources on policy's removal and not on CPU removal as the
203 * We just need to make sure to remove them all on policy->exit().
205 static void cppc_cpufreq_cpu_fie_exit(struct cpufreq_policy *policy) in cppc_cpufreq_cpu_fie_exit() argument
213 /* policy->cpus will be empty here, use related_cpus instead */ in cppc_cpufreq_cpu_fie_exit()
214 topology_clear_scale_freq_source(SCALE_FREQ_SOURCE_CPPC, policy->related_cpus); in cppc_cpufreq_cpu_fie_exit()
216 for_each_cpu(cpu, policy in cppc_cpufreq_cpu_fie_exit()
277 cppc_cpufreq_cpu_fie_init(struct cpufreq_policy *policy) cppc_cpufreq_cpu_fie_init() argument
281 cppc_cpufreq_cpu_fie_exit(struct cpufreq_policy *policy) cppc_cpufreq_cpu_fie_exit() argument
381 cppc_cpufreq_set_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) cppc_cpufreq_set_target() argument
412 cppc_cpufreq_fast_switch(struct cpufreq_policy *policy, unsigned int target_freq) cppc_cpufreq_fast_switch() argument
433 cppc_verify_policy(struct cpufreq_policy_data *policy) cppc_verify_policy() argument
483 get_perf_level_count(struct cpufreq_policy *policy) get_perf_level_count() argument
517 struct cpufreq_policy *policy; cppc_get_cpu_power() local
584 struct cpufreq_policy *policy; cppc_get_cpu_cost() local
639 cppc_cpufreq_register_em(struct cpufreq_policy *policy) cppc_cpufreq_register_em() argument
698 cppc_cpufreq_put_cpu_data(struct cpufreq_policy *policy) cppc_cpufreq_put_cpu_data() argument
708 cppc_cpufreq_cpu_init(struct cpufreq_policy *policy) cppc_cpufreq_cpu_init() argument
794 cppc_cpufreq_cpu_exit(struct cpufreq_policy *policy) cppc_cpufreq_cpu_exit() argument
846 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); cppc_cpufreq_get_rate() local
869 cppc_cpufreq_set_boost(struct cpufreq_policy *policy, int state) cppc_cpufreq_set_boost() argument
895 show_freqdomain_cpus(struct cpufreq_policy *policy, char *buf) show_freqdomain_cpus() argument
929 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); hisi_cppc_cpufreq_get_rate() local
[all...]
H A Dcpufreq_governor.c90 * (that may be a single policy or a bunch of them if governor tunables are
102 for_each_cpu(j, policy_dbs->policy->cpus) { in gov_update_cpu_data()
114 unsigned int dbs_update(struct cpufreq_policy *policy) in dbs_update() argument
116 struct policy_dbs_info *policy_dbs = policy->governor_data; in dbs_update()
137 for_each_cpu(j, policy->cpus) { in dbs_update()
235 struct cpufreq_policy *policy; in dbs_work_handler() local
239 policy = policy_dbs->policy; in dbs_work_handler()
240 gov = dbs_governor_of(policy); in dbs_work_handler()
247 gov_update_sample_delay(policy_dbs, gov->gov_dbs_update(policy)); in dbs_work_handler()
325 struct cpufreq_policy *policy = policy_dbs->policy; gov_set_update_util() local
339 gov_clear_update_util(struct cpufreq_policy *policy) gov_clear_update_util() argument
349 alloc_policy_dbs_info(struct cpufreq_policy *policy, struct dbs_governor *gov) alloc_policy_dbs_info() argument
400 cpufreq_dbs_governor_init(struct cpufreq_policy *policy) cpufreq_dbs_governor_init() argument
490 cpufreq_dbs_governor_exit(struct cpufreq_policy *policy) cpufreq_dbs_governor_exit() argument
513 cpufreq_dbs_governor_start(struct cpufreq_policy *policy) cpufreq_dbs_governor_start() argument
551 cpufreq_dbs_governor_stop(struct cpufreq_policy *policy) cpufreq_dbs_governor_stop() argument
563 cpufreq_dbs_governor_limits(struct cpufreq_policy *policy) cpufreq_dbs_governor_limits() argument
[all...]
H A Dlongrun.c29 * longrun_get_policy - get the current LongRun policy
30 * @policy: struct cpufreq_policy where current policy is written into
32 * Reads the current LongRun policy by access to MSR_TMTA_LONGRUN_FLAGS
35 static void longrun_get_policy(struct cpufreq_policy *policy) in longrun_get_policy() argument
42 policy->policy = CPUFREQ_POLICY_PERFORMANCE; in longrun_get_policy()
44 policy->policy = CPUFREQ_POLICY_POWERSAVE; in longrun_get_policy()
53 policy in longrun_get_policy()
71 longrun_set_policy(struct cpufreq_policy *policy) longrun_set_policy() argument
125 longrun_verify_policy(struct cpufreq_policy_data *policy) longrun_verify_policy() argument
252 longrun_cpu_init(struct cpufreq_policy *policy) longrun_cpu_init() argument
[all...]
H A Dmediatek-cpufreq-hw.c60 struct cpufreq_policy *policy; in mtk_cpufreq_get_cpu_power() local
63 policy = cpufreq_cpu_get_raw(cpu_dev->id); in mtk_cpufreq_get_cpu_power()
64 if (!policy) in mtk_cpufreq_get_cpu_power()
67 data = policy->driver_data; in mtk_cpufreq_get_cpu_power()
83 static int mtk_cpufreq_hw_target_index(struct cpufreq_policy *policy, in mtk_cpufreq_hw_target_index() argument
86 struct mtk_cpufreq_data *data = policy->driver_data; in mtk_cpufreq_hw_target_index()
96 struct cpufreq_policy *policy; in mtk_cpufreq_hw_get() local
99 policy = cpufreq_cpu_get_raw(cpu); in mtk_cpufreq_hw_get()
100 if (!policy) in mtk_cpufreq_hw_get()
103 data = policy in mtk_cpufreq_hw_get()
111 mtk_cpufreq_hw_fast_switch(struct cpufreq_policy *policy, unsigned int target_freq) mtk_cpufreq_hw_fast_switch() argument
158 mtk_cpu_resources_init(struct platform_device *pdev, struct cpufreq_policy *policy, const u16 *offsets) mtk_cpu_resources_init() argument
222 mtk_cpufreq_hw_cpu_init(struct cpufreq_policy *policy) mtk_cpufreq_hw_cpu_init() argument
263 mtk_cpufreq_hw_cpu_exit(struct cpufreq_policy *policy) mtk_cpufreq_hw_cpu_exit() argument
277 mtk_cpufreq_register_em(struct cpufreq_policy *policy) mtk_cpufreq_register_em() argument
[all...]
/kernel/linux/linux-5.10/drivers/cpufreq/
H A Dcpufreq.c79 static unsigned int __cpufreq_get(struct cpufreq_policy *policy);
80 static int cpufreq_init_governor(struct cpufreq_policy *policy);
81 static void cpufreq_exit_governor(struct cpufreq_policy *policy);
82 static void cpufreq_governor_limits(struct cpufreq_policy *policy);
83 static int cpufreq_set_policy(struct cpufreq_policy *policy,
88 * Two notifier lists: the "policy" list is involved in the
89 * validation process for a new CPU frequency policy; the
116 struct kobject *get_governor_parent_kobj(struct cpufreq_policy *policy) in get_governor_parent_kobj() argument
119 return &policy->kobj; in get_governor_parent_kobj()
168 * - policy
170 cpufreq_generic_init(struct cpufreq_policy *policy, struct cpufreq_frequency_table *table, unsigned int transition_latency) cpufreq_generic_init() argument
187 struct cpufreq_policy *policy = per_cpu(cpufreq_cpu_data, cpu); cpufreq_cpu_get_raw() local
195 struct cpufreq_policy *policy = cpufreq_cpu_get_raw(cpu); cpufreq_generic_get() local
220 struct cpufreq_policy *policy = NULL; cpufreq_cpu_get() local
246 cpufreq_cpu_put(struct cpufreq_policy *policy) cpufreq_cpu_put() argument
256 cpufreq_cpu_release(struct cpufreq_policy *policy) cpufreq_cpu_release() argument
282 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); cpufreq_cpu_acquire() local
343 cpufreq_notify_transition(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, unsigned int state) cpufreq_notify_transition() argument
395 cpufreq_notify_post_transition(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, int transition_failed) cpufreq_notify_post_transition() argument
407 cpufreq_freq_transition_begin(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs) cpufreq_freq_transition_begin() argument
441 cpufreq_freq_transition_end(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, int transition_failed) cpufreq_freq_transition_end() argument
494 cpufreq_enable_fast_switch(struct cpufreq_policy *policy) cpufreq_enable_fast_switch() argument
518 cpufreq_disable_fast_switch(struct cpufreq_policy *policy) cpufreq_disable_fast_switch() argument
541 cpufreq_driver_resolve_freq(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_driver_resolve_freq() argument
563 cpufreq_policy_transition_delay_us(struct cpufreq_policy *policy) cpufreq_policy_transition_delay_us() argument
704 show_scaling_cur_freq(struct cpufreq_policy *policy, char *buf) show_scaling_cur_freq() argument
743 show_cpuinfo_cur_freq(struct cpufreq_policy *policy, char *buf) show_cpuinfo_cur_freq() argument
757 show_scaling_governor(struct cpufreq_policy *policy, char *buf) show_scaling_governor() argument
772 store_scaling_governor(struct cpufreq_policy *policy, const char *buf, size_t count) store_scaling_governor() argument
809 show_scaling_driver(struct cpufreq_policy *policy, char *buf) show_scaling_driver() argument
817 show_scaling_available_governors(struct cpufreq_policy *policy, char *buf) show_scaling_available_governors() argument
862 show_related_cpus(struct cpufreq_policy *policy, char *buf) show_related_cpus() argument
870 show_affected_cpus(struct cpufreq_policy *policy, char *buf) show_affected_cpus() argument
875 store_scaling_setspeed(struct cpufreq_policy *policy, const char *buf, size_t count) store_scaling_setspeed() argument
893 show_scaling_setspeed(struct cpufreq_policy *policy, char *buf) show_scaling_setspeed() argument
904 show_bios_limit(struct cpufreq_policy *policy, char *buf) show_bios_limit() argument
949 struct cpufreq_policy *policy = to_policy(kobj); show() local
966 struct cpufreq_policy *policy = to_policy(kobj); store() local
993 struct cpufreq_policy *policy = to_policy(kobj); cpufreq_sysfs_release() local
1009 add_cpu_dev_symlink(struct cpufreq_policy *policy, unsigned int cpu, struct device *dev) add_cpu_dev_symlink() argument
1023 remove_cpu_dev_symlink(struct cpufreq_policy *policy, struct device *dev) remove_cpu_dev_symlink() argument
1030 cpufreq_add_dev_interface(struct cpufreq_policy *policy) cpufreq_add_dev_interface() argument
1062 cpufreq_init_policy(struct cpufreq_policy *policy) cpufreq_init_policy() argument
1110 cpufreq_add_policy_cpu(struct cpufreq_policy *policy, unsigned int cpu) cpufreq_add_policy_cpu() argument
1133 refresh_frequency_limits(struct cpufreq_policy *policy) refresh_frequency_limits() argument
1145 struct cpufreq_policy *policy = handle_update() local
1157 struct cpufreq_policy *policy = container_of(nb, struct cpufreq_policy, nb_min); cpufreq_notifier_min() local
1166 struct cpufreq_policy *policy = container_of(nb, struct cpufreq_policy, nb_max); cpufreq_notifier_max() local
1172 cpufreq_policy_put_kobj(struct cpufreq_policy *policy) cpufreq_policy_put_kobj() argument
1196 struct cpufreq_policy *policy; cpufreq_policy_alloc() local
1277 cpufreq_policy_free(struct cpufreq_policy *policy) cpufreq_policy_free() argument
1320 struct cpufreq_policy *policy; cpufreq_online() local
1542 struct cpufreq_policy *policy; cpufreq_add_dev() local
1562 __cpufreq_offline(unsigned int cpu, struct cpufreq_policy *policy) __cpufreq_offline() argument
1620 struct cpufreq_policy *policy; cpufreq_offline() local
1646 struct cpufreq_policy *policy = per_cpu(cpufreq_cpu_data, cpu); cpufreq_remove_dev() local
1682 cpufreq_out_of_sync(struct cpufreq_policy *policy, unsigned int new_freq) cpufreq_out_of_sync() argument
1697 cpufreq_verify_current_freq(struct cpufreq_policy *policy, bool update) cpufreq_verify_current_freq() argument
1730 struct cpufreq_policy *policy; cpufreq_quick_get() local
1762 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); cpufreq_quick_get_max() local
1782 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); cpufreq_get_hw_max_freq() local
1794 __cpufreq_get(struct cpufreq_policy *policy) __cpufreq_get() argument
1810 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); cpufreq_get() local
1837 cpufreq_generic_suspend(struct cpufreq_policy *policy) cpufreq_generic_suspend() argument
1869 struct cpufreq_policy *policy; cpufreq_suspend() local
1903 struct cpufreq_policy *policy; cpufreq_resume() local
2096 cpufreq_driver_fast_switch(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_driver_fast_switch() argument
2123 __target_intermediate(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, int index) __target_intermediate() argument
2148 __target_index(struct cpufreq_policy *policy, int index) __target_index() argument
2205 __cpufreq_driver_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) __cpufreq_driver_target() argument
2246 cpufreq_driver_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) cpufreq_driver_target() argument
2267 cpufreq_init_governor(struct cpufreq_policy *policy) cpufreq_init_governor() argument
2313 cpufreq_exit_governor(struct cpufreq_policy *policy) cpufreq_exit_governor() argument
2326 cpufreq_start_governor(struct cpufreq_policy *policy) cpufreq_start_governor() argument
2353 cpufreq_stop_governor(struct cpufreq_policy *policy) cpufreq_stop_governor() argument
2364 cpufreq_governor_limits(struct cpufreq_policy *policy) cpufreq_governor_limits() argument
2400 struct cpufreq_policy *policy; cpufreq_unregister_governor() local
2438 cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu) cpufreq_get_policy() argument
2470 cpufreq_set_policy(struct cpufreq_policy *policy, struct cpufreq_governor *new_gov, unsigned int new_pol) cpufreq_set_policy() argument
2567 struct cpufreq_policy *policy = cpufreq_cpu_acquire(cpu); cpufreq_update_policy() local
2606 cpufreq_boost_set_sw(struct cpufreq_policy *policy, int state) cpufreq_boost_set_sw() argument
2628 struct cpufreq_policy *policy; cpufreq_boost_trigger_state() local
[all...]
H A Dfreq_table.c17 bool policy_has_boost_freq(struct cpufreq_policy *policy) in policy_has_boost_freq() argument
19 struct cpufreq_frequency_table *pos, *table = policy->freq_table; in policy_has_boost_freq()
32 int cpufreq_frequency_table_cpuinfo(struct cpufreq_policy *policy, in cpufreq_frequency_table_cpuinfo() argument
54 policy->min = policy->cpuinfo.min_freq = min_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()
63 if (policy in cpufreq_frequency_table_cpuinfo()
69 cpufreq_frequency_table_verify(struct cpufreq_policy_data *policy, struct cpufreq_frequency_table *table) cpufreq_frequency_table_verify() argument
109 cpufreq_generic_frequency_table_verify(struct cpufreq_policy_data *policy) cpufreq_generic_frequency_table_verify() argument
118 cpufreq_table_index_unsorted(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) cpufreq_table_index_unsorted() argument
211 cpufreq_frequency_table_get_index(struct cpufreq_policy *policy, unsigned int freq) cpufreq_frequency_table_get_index() argument
233 show_available_freqs(struct cpufreq_policy *policy, char *buf, bool show_boost) show_available_freqs() argument
273 scaling_available_frequencies_show(struct cpufreq_policy *policy, char *buf) scaling_available_frequencies_show() argument
285 scaling_boost_frequencies_show(struct cpufreq_policy *policy, char *buf) scaling_boost_frequencies_show() argument
299 set_freq_table_sorted(struct cpufreq_policy *policy) set_freq_table_sorted() argument
354 cpufreq_table_validate_and_sort(struct cpufreq_policy *policy) cpufreq_table_validate_and_sort() argument
[all...]
H A Dcpufreq_userspace.c23 * @policy: pointer to policy struct where freq is being set
28 static int cpufreq_set(struct cpufreq_policy *policy, unsigned int freq) in cpufreq_set() argument
31 unsigned int *setspeed = policy->governor_data; in cpufreq_set()
33 pr_debug("cpufreq_set for cpu %u, freq %u kHz\n", policy->cpu, freq); in cpufreq_set()
36 if (!per_cpu(cpu_is_managed, policy->cpu)) in cpufreq_set()
41 ret = __cpufreq_driver_target(policy, freq, CPUFREQ_RELATION_L); in cpufreq_set()
47 static ssize_t show_speed(struct cpufreq_policy *policy, char *buf) in show_speed() argument
49 return sprintf(buf, "%u\n", policy->cur); in show_speed()
52 static int cpufreq_userspace_policy_init(struct cpufreq_policy *policy) in cpufreq_userspace_policy_init() argument
64 cpufreq_userspace_policy_exit(struct cpufreq_policy *policy) cpufreq_userspace_policy_exit() argument
72 cpufreq_userspace_policy_start(struct cpufreq_policy *policy) cpufreq_userspace_policy_start() argument
86 cpufreq_userspace_policy_stop(struct cpufreq_policy *policy) cpufreq_userspace_policy_stop() argument
98 cpufreq_userspace_policy_limits(struct cpufreq_policy *policy) cpufreq_userspace_policy_limits() argument
[all...]
H A Dsh-cpufreq.c34 struct cpufreq_policy *policy; member
46 struct cpufreq_policy *policy = target->policy; in __sh_cpufreq_target() local
47 int cpu = policy->cpu; in __sh_cpufreq_target()
61 if (freq < (policy->min * 1000) || freq > (policy->max * 1000)) 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()
81 static int sh_cpufreq_target(struct cpufreq_policy *policy, in sh_cpufreq_target() argument
85 struct cpufreq_target data = { .policy in sh_cpufreq_target()
90 sh_cpufreq_verify(struct cpufreq_policy_data *policy) sh_cpufreq_verify() argument
108 sh_cpufreq_cpu_init(struct cpufreq_policy *policy) sh_cpufreq_cpu_init() argument
139 sh_cpufreq_cpu_exit(struct cpufreq_policy *policy) sh_cpufreq_cpu_exit() argument
149 sh_cpufreq_cpu_ready(struct cpufreq_policy *policy) sh_cpufreq_cpu_ready() argument
[all...]
H A Dgx-suspmod.c136 /* For the default policy, we want at least some processing power
250 static void gx_set_cpuspeed(struct cpufreq_policy *policy, unsigned int khz) in gx_set_cpuspeed() argument
264 cpufreq_freq_transition_begin(policy, &freqs); in gx_set_cpuspeed()
313 cpufreq_freq_transition_end(policy, &freqs, 0); in gx_set_cpuspeed()
331 static int cpufreq_gx_verify(struct cpufreq_policy_data *policy) in cpufreq_gx_verify() argument
336 if (!stock_freq || !policy) in cpufreq_gx_verify()
339 policy->cpu = 0; in cpufreq_gx_verify()
340 cpufreq_verify_within_limits(policy, (stock_freq / max_duration), in cpufreq_gx_verify()
344 * within policy->min and policy in cpufreq_gx_verify()
371 cpufreq_gx_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) cpufreq_gx_target() argument
398 cpufreq_gx_cpu_init(struct cpufreq_policy *policy) cpufreq_gx_cpu_init() argument
[all...]
H A Dacpi-cpufreq.c130 static int set_boost(struct cpufreq_policy *policy, int val) in set_boost() argument
132 on_each_cpu_mask(policy->cpus, boost_set_msr_each, in set_boost()
135 cpumask_pr_args(policy->cpus), val ? "en" : "dis"); in set_boost()
140 static ssize_t show_freqdomain_cpus(struct cpufreq_policy *policy, char *buf) in show_freqdomain_cpus() argument
142 struct acpi_cpufreq_data *data = policy->driver_data; in show_freqdomain_cpus()
153 static ssize_t store_cpb(struct cpufreq_policy *policy, const char *buf, in store_cpb() argument
167 set_boost(policy, val); in store_cpb()
173 static ssize_t show_cpb(struct cpufreq_policy *policy, char *buf) in show_cpb() argument
195 static unsigned extract_io(struct cpufreq_policy *policy, u32 value) in extract_io() argument
197 struct acpi_cpufreq_data *data = policy in extract_io()
210 extract_msr(struct cpufreq_policy *policy, u32 msr) extract_msr() argument
231 extract_freq(struct cpufreq_policy *policy, u32 val) extract_freq() argument
364 struct cpufreq_policy *policy; get_cur_freq_on_cpu() local
393 check_freqs(struct cpufreq_policy *policy, const struct cpumask *mask, unsigned int freq) check_freqs() argument
409 acpi_cpufreq_target(struct cpufreq_policy *policy, unsigned int index) acpi_cpufreq_target() argument
459 acpi_cpufreq_fast_switch(struct cpufreq_policy *policy, unsigned int target_freq) acpi_cpufreq_fast_switch() argument
668 acpi_cpufreq_cpu_init(struct cpufreq_policy *policy) acpi_cpufreq_cpu_init() argument
901 acpi_cpufreq_cpu_exit(struct cpufreq_policy *policy) acpi_cpufreq_cpu_exit() argument
917 acpi_cpufreq_cpu_ready(struct cpufreq_policy *policy) acpi_cpufreq_cpu_ready() argument
927 acpi_cpufreq_resume(struct cpufreq_policy *policy) acpi_cpufreq_resume() argument
[all...]
H A Dcpufreq_governor.c90 * (that may be a single policy or a bunch of them if governor tunables are
102 for_each_cpu(j, policy_dbs->policy->cpus) { in gov_update_cpu_data()
114 unsigned int dbs_update(struct cpufreq_policy *policy) in dbs_update() argument
116 struct policy_dbs_info *policy_dbs = policy->governor_data; in dbs_update()
137 for_each_cpu(j, policy->cpus) { in dbs_update()
235 struct cpufreq_policy *policy; in dbs_work_handler() local
239 policy = policy_dbs->policy; in dbs_work_handler()
240 gov = dbs_governor_of(policy); in dbs_work_handler()
247 gov_update_sample_delay(policy_dbs, gov->gov_dbs_update(policy)); in dbs_work_handler()
325 struct cpufreq_policy *policy = policy_dbs->policy; gov_set_update_util() local
339 gov_clear_update_util(struct cpufreq_policy *policy) gov_clear_update_util() argument
349 alloc_policy_dbs_info(struct cpufreq_policy *policy, struct dbs_governor *gov) alloc_policy_dbs_info() argument
391 cpufreq_dbs_governor_init(struct cpufreq_policy *policy) cpufreq_dbs_governor_init() argument
477 cpufreq_dbs_governor_exit(struct cpufreq_policy *policy) cpufreq_dbs_governor_exit() argument
505 cpufreq_dbs_governor_start(struct cpufreq_policy *policy) cpufreq_dbs_governor_start() argument
543 cpufreq_dbs_governor_stop(struct cpufreq_policy *policy) cpufreq_dbs_governor_stop() argument
555 cpufreq_dbs_governor_limits(struct cpufreq_policy *policy) cpufreq_dbs_governor_limits() argument
[all...]
H A Dlongrun.c29 * longrun_get_policy - get the current LongRun policy
30 * @policy: struct cpufreq_policy where current policy is written into
32 * Reads the current LongRun policy by access to MSR_TMTA_LONGRUN_FLAGS
35 static void longrun_get_policy(struct cpufreq_policy *policy) in longrun_get_policy() argument
42 policy->policy = CPUFREQ_POLICY_PERFORMANCE; in longrun_get_policy()
44 policy->policy = CPUFREQ_POLICY_POWERSAVE; in longrun_get_policy()
53 policy in longrun_get_policy()
71 longrun_set_policy(struct cpufreq_policy *policy) longrun_set_policy() argument
125 longrun_verify_policy(struct cpufreq_policy_data *policy) longrun_verify_policy() argument
252 longrun_cpu_init(struct cpufreq_policy *policy) longrun_cpu_init() argument
[all...]
/kernel/linux/linux-5.10/fs/crypto/
H A Dpolicy.c3 * Encryption policy functions for per-file encryption support.
10 * Modified by Eric Biggers, 2019 for v2 policy support.
21 * @policy1: the first policy
22 * @policy2: the second policy
80 static bool supported_iv_ino_lblk_policy(const struct fscrypt_policy_v2 *policy, in supported_iv_ino_lblk_policy() argument
95 if (policy->contents_encryption_mode != FSCRYPT_MODE_AES_256_XTS) { in supported_iv_ino_lblk_policy()
97 "Can't use %s policy with contents mode other than AES-256-XTS", in supported_iv_ino_lblk_policy()
109 "Can't use %s policy on filesystem '%s' because it doesn't have stable inode numbers", in supported_iv_ino_lblk_policy()
117 "Can't use %s policy on filesystem '%s' because its inode numbers are too long", in supported_iv_ino_lblk_policy()
123 "Can't use %s policy o in supported_iv_ino_lblk_policy()
130 fscrypt_supported_v1_policy(const struct fscrypt_policy_v1 *policy, const struct inode *inode) fscrypt_supported_v1_policy() argument
164 fscrypt_supported_v2_policy(const struct fscrypt_policy_v2 *policy, const struct inode *inode) fscrypt_supported_v2_policy() argument
268 const struct fscrypt_policy_v1 *policy = &policy_u->v1; fscrypt_new_context() local
284 const struct fscrypt_policy_v2 *policy = &policy_u->v2; fscrypt_new_context() local
330 struct fscrypt_policy_v1 *policy = &policy_u->v1; fscrypt_policy_from_context() local
345 struct fscrypt_policy_v2 *policy = &policy_u->v2; fscrypt_policy_from_context() local
366 fscrypt_get_policy(struct inode *inode, union fscrypt_policy *policy) fscrypt_get_policy() argument
389 set_encryption_policy(struct inode *inode, const union fscrypt_policy *policy) set_encryption_policy() argument
438 union fscrypt_policy policy; fscrypt_ioctl_set_policy() local
504 union fscrypt_policy policy; fscrypt_ioctl_get_policy() local
524 union fscrypt_policy *policy = (union fscrypt_policy *)&arg.policy; fscrypt_ioctl_get_policy_ex() local
531 offsetof(typeof(arg), policy)); fscrypt_ioctl_get_policy_ex() local
718 union fscrypt_policy *policy = NULL; fscrypt_set_test_dummy_encryption() local
796 const union fscrypt_policy *policy = fscrypt_get_dummy_policy(sb); fscrypt_show_test_dummy_encryption() local
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dcpufreq.h59 unsigned int cpu; /* cpu managing this policy, must be online */
68 unsigned int restore_freq; /* = policy->cur before transition */
71 unsigned int policy; /* see above */ member
72 unsigned int last_policy; /* policy before unplug */
93 * - Any routine that wants to read from the policy structure will
95 * - Any routine that will write to the policy structure and/or may take away
96 * the policy altogether (eg. CPU hotplug), will hold this lock in write
105 * policy and that the change will affect all of the policy CPUs then.
120 * the driver to set the frequency for this policy
172 struct cpufreq_policy *policy; global() member
197 cpufreq_cpu_put(struct cpufreq_policy *policy) cpufreq_cpu_put() argument
200 policy_is_inactive(struct cpufreq_policy *policy) policy_is_inactive() argument
205 policy_is_shared(struct cpufreq_policy *policy) policy_is_shared() argument
260 cpufreq_stats_create_table(struct cpufreq_policy *policy) cpufreq_stats_create_table() argument
261 cpufreq_stats_free_table(struct cpufreq_policy *policy) cpufreq_stats_free_table() argument
262 cpufreq_stats_record_transition(struct cpufreq_policy *policy, unsigned int new_freq) cpufreq_stats_record_transition() argument
452 cpufreq_verify_within_limits(struct cpufreq_policy_data *policy, unsigned int min, unsigned int max) cpufreq_verify_within_limits() argument
470 cpufreq_verify_within_cpu_limits(struct cpufreq_policy_data *policy) cpufreq_verify_within_cpu_limits() argument
627 cpufreq_policy_apply_limits(struct cpufreq_policy *policy) cpufreq_policy_apply_limits() argument
766 cpufreq_table_find_index_al(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_table_find_index_al() argument
787 cpufreq_table_find_index_dl(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_table_find_index_dl() argument
817 cpufreq_table_find_index_l(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_table_find_index_l() argument
829 cpufreq_table_find_index_ah(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_table_find_index_ah() argument
859 cpufreq_table_find_index_dh(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_table_find_index_dh() argument
880 cpufreq_table_find_index_h(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_table_find_index_h() argument
892 cpufreq_table_find_index_ac(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_table_find_index_ac() argument
926 cpufreq_table_find_index_dc(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_table_find_index_dc() argument
960 cpufreq_table_find_index_c(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_table_find_index_c() argument
971 cpufreq_frequency_table_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) cpufreq_frequency_table_target() argument
992 cpufreq_table_count_valid_entries(const struct cpufreq_policy *policy) cpufreq_table_count_valid_entries() argument
1020 policy_has_boost_freq(struct cpufreq_policy *policy) policy_has_boost_freq() argument
1030 sched_cpufreq_governor_change(struct cpufreq_policy *policy, struct cpufreq_governor *old_gov) sched_cpufreq_governor_change() argument
[all...]
/kernel/linux/linux-6.6/fs/crypto/
H A Dpolicy.c3 * Encryption policy functions for per-file encryption support.
10 * Modified by Eric Biggers, 2019 for v2 policy support.
22 * @policy1: the first policy
23 * @policy2: the second policy
36 int fscrypt_policy_to_key_spec(const union fscrypt_policy *policy, in fscrypt_policy_to_key_spec() argument
39 switch (policy->version) { in fscrypt_policy_to_key_spec()
42 memcpy(key_spec->u.descriptor, policy->v1.master_key_descriptor, in fscrypt_policy_to_key_spec()
47 memcpy(key_spec->u.identifier, policy->v2.master_key_identifier, in fscrypt_policy_to_key_spec()
120 static bool supported_iv_ino_lblk_policy(const struct fscrypt_policy_v2 *policy, in supported_iv_ino_lblk_policy() argument
135 if (policy in supported_iv_ino_lblk_policy()
170 fscrypt_supported_v1_policy(const struct fscrypt_policy_v1 *policy, const struct inode *inode) fscrypt_supported_v1_policy() argument
204 fscrypt_supported_v2_policy(const struct fscrypt_policy_v2 *policy, const struct inode *inode) fscrypt_supported_v2_policy() argument
308 const struct fscrypt_policy_v1 *policy = &policy_u->v1; fscrypt_new_context() local
324 const struct fscrypt_policy_v2 *policy = &policy_u->v2; fscrypt_new_context() local
370 struct fscrypt_policy_v1 *policy = &policy_u->v1; fscrypt_policy_from_context() local
385 struct fscrypt_policy_v2 *policy = &policy_u->v2; fscrypt_policy_from_context() local
406 fscrypt_get_policy(struct inode *inode, union fscrypt_policy *policy) fscrypt_get_policy() argument
429 set_encryption_policy(struct inode *inode, const union fscrypt_policy *policy) set_encryption_policy() argument
478 union fscrypt_policy policy; fscrypt_ioctl_set_policy() local
544 union fscrypt_policy policy; fscrypt_ioctl_get_policy() local
564 union fscrypt_policy *policy = (union fscrypt_policy *)&arg.policy; fscrypt_ioctl_get_policy_ex() local
571 offsetof(typeof(arg), policy)); fscrypt_ioctl_get_policy_ex() local
780 union fscrypt_policy *policy; fscrypt_parse_test_dummy_encryption() local
855 const union fscrypt_policy *policy = fscrypt_get_dummy_policy(sb); fscrypt_show_test_dummy_encryption() local
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dcpufreq.h63 unsigned int cpu; /* cpu managing this policy, must be online */
74 unsigned int policy; /* see above */ member
75 unsigned int last_policy; /* policy before unplug */
96 * - Any routine that wants to read from the policy structure will
98 * - Any routine that will write to the policy structure and/or may take away
99 * the policy altogether (eg. CPU hotplug), will hold this lock in write
108 * policy and that the change will affect all of the policy CPUs then.
130 * the driver to set the frequency for this policy. To be set by the
144 /* Per policy boos
185 struct cpufreq_policy *policy; global() member
210 cpufreq_cpu_put(struct cpufreq_policy *policy) cpufreq_cpu_put() argument
213 policy_is_inactive(struct cpufreq_policy *policy) policy_is_inactive() argument
218 policy_is_shared(struct cpufreq_policy *policy) policy_is_shared() argument
274 cpufreq_stats_create_table(struct cpufreq_policy *policy) cpufreq_stats_create_table() argument
275 cpufreq_stats_free_table(struct cpufreq_policy *policy) cpufreq_stats_free_table() argument
276 cpufreq_stats_record_transition(struct cpufreq_policy *policy, unsigned int new_freq) cpufreq_stats_record_transition() argument
470 cpufreq_verify_within_limits(struct cpufreq_policy_data *policy, unsigned int min, unsigned int max) cpufreq_verify_within_limits() argument
479 cpufreq_verify_within_cpu_limits(struct cpufreq_policy_data *policy) cpufreq_verify_within_cpu_limits() argument
641 cpufreq_policy_apply_limits(struct cpufreq_policy *policy) cpufreq_policy_apply_limits() argument
804 cpufreq_table_find_index_al(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) cpufreq_table_find_index_al() argument
826 cpufreq_table_find_index_dl(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) cpufreq_table_find_index_dl() argument
857 cpufreq_table_find_index_l(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) cpufreq_table_find_index_l() argument
872 cpufreq_table_find_index_ah(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) cpufreq_table_find_index_ah() argument
903 cpufreq_table_find_index_dh(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) cpufreq_table_find_index_dh() argument
925 cpufreq_table_find_index_h(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) cpufreq_table_find_index_h() argument
940 cpufreq_table_find_index_ac(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) cpufreq_table_find_index_ac() argument
975 cpufreq_table_find_index_dc(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) cpufreq_table_find_index_dc() argument
1010 cpufreq_table_find_index_c(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) cpufreq_table_find_index_c() argument
1024 cpufreq_is_in_limits(struct cpufreq_policy *policy, int idx) cpufreq_is_in_limits() argument
1036 cpufreq_frequency_table_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) cpufreq_frequency_table_target() argument
1078 cpufreq_table_count_valid_entries(const struct cpufreq_policy *policy) cpufreq_table_count_valid_entries() argument
1103 cpufreq_table_set_inefficient(struct cpufreq_policy *policy, unsigned int frequency) cpufreq_table_set_inefficient() argument
1189 policy_has_boost_freq(struct cpufreq_policy *policy) policy_has_boost_freq() argument
1195 cpufreq_table_set_inefficient(struct cpufreq_policy *policy, unsigned int frequency) cpufreq_table_set_inefficient() argument
1213 sched_cpufreq_governor_change(struct cpufreq_policy *policy, struct cpufreq_governor *old_gov) sched_cpufreq_governor_change() argument
1238 cpufreq_register_em_with_opp(struct cpufreq_policy *policy) cpufreq_register_em_with_opp() argument
[all...]
/kernel/linux/linux-6.6/kernel/sched/
H A Dcpufreq_schedutil.c19 struct cpufreq_policy *policy; member
87 if (!cpufreq_this_cpu_can_update(sg_policy->policy)) in sugov_should_update_freq()
124 * get_next_freq - Compute a new frequency for a given cpufreq policy.
125 * @sg_policy: schedutil policy object to compute the new frequency for.
142 * next_freq (as calculated above) is returned, subject to policy min/max and
148 struct cpufreq_policy *policy = sg_policy->policy; in get_next_freq() local
150 policy->cpuinfo.max_freq : policy->cur; in get_next_freq()
159 return cpufreq_driver_resolve_freq(policy, fre in get_next_freq()
445 struct cpufreq_policy *policy = sg_policy->policy; sugov_next_freq_shared() local
609 sugov_policy_alloc(struct cpufreq_policy *policy) global() argument
644 struct cpufreq_policy *policy = sg_policy->policy; global() local
708 sugov_init(struct cpufreq_policy *policy) global() argument
784 sugov_exit(struct cpufreq_policy *policy) global() argument
804 sugov_start(struct cpufreq_policy *policy) global() argument
842 sugov_stop(struct cpufreq_policy *policy) global() argument
858 sugov_limits(struct cpufreq_policy *policy) global() argument
902 sched_cpufreq_governor_change(struct cpufreq_policy *policy, struct cpufreq_governor *old_gov) global() argument
[all...]

Completed in 20 milliseconds

12345678910>>...41