Home
last modified time | relevance | path

Searched refs:cpufreq_policy (Results 1 – 25 of 110) sorted by relevance

12345

/linux-6.1.9/include/linux/
Dcpufreq.h55 struct cpufreq_policy { struct
182 struct cpufreq_policy *policy; argument
195 struct cpufreq_policy *cpufreq_cpu_get_raw(unsigned int cpu);
196 struct cpufreq_policy *cpufreq_cpu_get(unsigned int cpu);
197 void cpufreq_cpu_put(struct cpufreq_policy *policy);
199 static inline struct cpufreq_policy *cpufreq_cpu_get_raw(unsigned int cpu) in cpufreq_cpu_get_raw()
203 static inline struct cpufreq_policy *cpufreq_cpu_get(unsigned int cpu) in cpufreq_cpu_get()
207 static inline void cpufreq_cpu_put(struct cpufreq_policy *policy) { } in cpufreq_cpu_put()
210 static inline bool policy_is_inactive(struct cpufreq_policy *policy) in policy_is_inactive()
215 static inline bool policy_is_shared(struct cpufreq_policy *policy) in policy_is_shared()
[all …]
Dcpu_cooling.h20 struct cpufreq_policy;
28 cpufreq_cooling_register(struct cpufreq_policy *policy);
41 of_cpufreq_cooling_register(struct cpufreq_policy *policy);
45 cpufreq_cooling_register(struct cpufreq_policy *policy) in cpufreq_cooling_register()
57 of_cpufreq_cooling_register(struct cpufreq_policy *policy) in of_cpufreq_cooling_register()
/linux-6.1.9/drivers/cpufreq/
Dcpufreq_governor.h79 struct cpufreq_policy *policy;
135 unsigned int (*gov_dbs_update)(struct cpufreq_policy *policy);
140 void (*start)(struct cpufreq_policy *policy);
143 static inline struct dbs_governor *dbs_governor_of(struct cpufreq_policy *policy) in dbs_governor_of()
149 int cpufreq_dbs_governor_init(struct cpufreq_policy *policy);
150 void cpufreq_dbs_governor_exit(struct cpufreq_policy *policy);
151 int cpufreq_dbs_governor_start(struct cpufreq_policy *policy);
152 void cpufreq_dbs_governor_stop(struct cpufreq_policy *policy);
153 void cpufreq_dbs_governor_limits(struct cpufreq_policy *policy);
169 unsigned int (*powersave_bias_target)(struct cpufreq_policy *policy,
[all …]
Dcpufreq.c59 static DEFINE_PER_CPU(struct cpufreq_policy *, cpufreq_cpu_data);
77 static unsigned int __cpufreq_get(struct cpufreq_policy *policy);
78 static int cpufreq_init_governor(struct cpufreq_policy *policy);
79 static void cpufreq_exit_governor(struct cpufreq_policy *policy);
80 static void cpufreq_governor_limits(struct cpufreq_policy *policy);
81 static int cpufreq_set_policy(struct cpufreq_policy *policy,
114 struct kobject *get_governor_parent_kobj(struct cpufreq_policy *policy) in get_governor_parent_kobj()
168 void cpufreq_generic_init(struct cpufreq_policy *policy, in cpufreq_generic_init()
183 struct cpufreq_policy *cpufreq_cpu_get_raw(unsigned int cpu) in cpufreq_cpu_get_raw()
185 struct cpufreq_policy *policy = per_cpu(cpufreq_cpu_data, cpu); in cpufreq_cpu_get_raw()
[all …]
Dcpufreq-dt.h12 struct cpufreq_policy;
17 unsigned int (*get_intermediate)(struct cpufreq_policy *policy,
19 int (*target_intermediate)(struct cpufreq_policy *policy,
21 int (*suspend)(struct cpufreq_policy *policy);
22 int (*resume)(struct cpufreq_policy *policy);
Dcpufreq_userspace.c28 static int cpufreq_set(struct cpufreq_policy *policy, unsigned int freq) in cpufreq_set()
47 static ssize_t show_speed(struct cpufreq_policy *policy, char *buf) in show_speed()
52 static int cpufreq_userspace_policy_init(struct cpufreq_policy *policy) in cpufreq_userspace_policy_init()
64 static void cpufreq_userspace_policy_exit(struct cpufreq_policy *policy) in cpufreq_userspace_policy_exit()
72 static int cpufreq_userspace_policy_start(struct cpufreq_policy *policy) in cpufreq_userspace_policy_start()
86 static void cpufreq_userspace_policy_stop(struct cpufreq_policy *policy) in cpufreq_userspace_policy_stop()
98 static void cpufreq_userspace_policy_limits(struct cpufreq_policy *policy) in cpufreq_userspace_policy_limits()
Dppc_cbe_cpufreq.h23 void cbe_cpufreq_pmi_policy_init(struct cpufreq_policy *policy);
24 void cbe_cpufreq_pmi_policy_exit(struct cpufreq_policy *policy);
29 static inline void cbe_cpufreq_pmi_policy_init(struct cpufreq_policy *policy) {} in cbe_cpufreq_pmi_policy_init()
30 static inline void cbe_cpufreq_pmi_policy_exit(struct cpufreq_policy *policy) {} in cbe_cpufreq_pmi_policy_exit()
Dfreq_table.c17 bool policy_has_boost_freq(struct cpufreq_policy *policy) in policy_has_boost_freq()
32 int cpufreq_frequency_table_cpuinfo(struct cpufreq_policy *policy, in cpufreq_frequency_table_cpuinfo()
118 int cpufreq_table_index_unsorted(struct cpufreq_policy *policy, in cpufreq_table_index_unsorted()
211 int cpufreq_frequency_table_get_index(struct cpufreq_policy *policy, in cpufreq_frequency_table_get_index()
233 static ssize_t show_available_freqs(struct cpufreq_policy *policy, char *buf, in show_available_freqs()
273 static ssize_t scaling_available_frequencies_show(struct cpufreq_policy *policy, in scaling_available_frequencies_show()
285 static ssize_t scaling_boost_frequencies_show(struct cpufreq_policy *policy, in scaling_boost_frequencies_show()
299 static int set_freq_table_sorted(struct cpufreq_policy *policy) in set_freq_table_sorted()
354 int cpufreq_table_validate_and_sort(struct cpufreq_policy *policy) in cpufreq_table_validate_and_sort()
Dcppc_cpufreq.c164 static void cppc_cpufreq_cpu_fie_init(struct cpufreq_policy *policy) in cppc_cpufreq_cpu_fie_init()
205 static void cppc_cpufreq_cpu_fie_exit(struct cpufreq_policy *policy) in cppc_cpufreq_cpu_fie_exit()
274 static inline void cppc_cpufreq_cpu_fie_init(struct cpufreq_policy *policy) in cppc_cpufreq_cpu_fie_init()
278 static inline void cppc_cpufreq_cpu_fie_exit(struct cpufreq_policy *policy) in cppc_cpufreq_cpu_fie_exit()
378 static int cppc_cpufreq_set_target(struct cpufreq_policy *policy, in cppc_cpufreq_set_target()
409 static unsigned int cppc_cpufreq_fast_switch(struct cpufreq_policy *policy, in cppc_cpufreq_fast_switch()
470 static void cppc_cpufreq_register_em(struct cpufreq_policy *policy);
480 static unsigned int get_perf_level_count(struct cpufreq_policy *policy) in get_perf_level_count()
514 struct cpufreq_policy *policy; in cppc_get_cpu_power()
581 struct cpufreq_policy *policy; in cppc_get_cpu_cost()
[all …]
Dmediatek-cpufreq-hw.c58 struct cpufreq_policy *policy; in mtk_cpufreq_get_cpu_power()
81 static int mtk_cpufreq_hw_target_index(struct cpufreq_policy *policy, in mtk_cpufreq_hw_target_index()
94 struct cpufreq_policy *policy; in mtk_cpufreq_hw_get()
109 static unsigned int mtk_cpufreq_hw_fast_switch(struct cpufreq_policy *policy, in mtk_cpufreq_hw_fast_switch()
157 struct cpufreq_policy *policy, in mtk_cpu_resources_init()
216 static int mtk_cpufreq_hw_cpu_init(struct cpufreq_policy *policy) in mtk_cpufreq_hw_cpu_init()
257 static int mtk_cpufreq_hw_cpu_exit(struct cpufreq_policy *policy) in mtk_cpufreq_hw_cpu_exit()
271 static void mtk_cpufreq_register_em(struct cpufreq_policy *policy) in mtk_cpufreq_register_em()
Dqcom-cpufreq-hw.c57 struct cpufreq_policy *policy;
67 static int qcom_cpufreq_set_bw(struct cpufreq_policy *policy, in qcom_cpufreq_set_bw()
108 static int qcom_cpufreq_hw_target_index(struct cpufreq_policy *policy, in qcom_cpufreq_hw_target_index()
144 struct cpufreq_policy *policy; in qcom_cpufreq_hw_get()
160 struct cpufreq_policy *policy; in qcom_cpufreq_get_freq()
176 static unsigned int qcom_cpufreq_hw_fast_switch(struct cpufreq_policy *policy, in qcom_cpufreq_hw_fast_switch()
195 struct cpufreq_policy *policy) in qcom_cpufreq_hw_read_lut()
320 struct cpufreq_policy *policy = data->policy; in qcom_lmh_dcvs_notify()
422 static int qcom_cpufreq_hw_lmh_init(struct cpufreq_policy *policy, int index) in qcom_cpufreq_hw_lmh_init()
468 static int qcom_cpufreq_hw_cpu_online(struct cpufreq_policy *policy) in qcom_cpufreq_hw_cpu_online()
[all …]
Dsh-cpufreq.c33 struct cpufreq_policy *policy;
45 struct cpufreq_policy *policy = target->policy; in __sh_cpufreq_target()
80 static int sh_cpufreq_target(struct cpufreq_policy *policy, in sh_cpufreq_target()
107 static int sh_cpufreq_cpu_init(struct cpufreq_policy *policy) in sh_cpufreq_cpu_init()
138 static int sh_cpufreq_cpu_exit(struct cpufreq_policy *policy) in sh_cpufreq_cpu_exit()
Dcpufreq_stats.c58 static ssize_t show_total_trans(struct cpufreq_policy *policy, char *buf) in show_total_trans()
69 static ssize_t show_time_in_state(struct cpufreq_policy *policy, char *buf) in show_time_in_state()
103 static ssize_t store_reset(struct cpufreq_policy *policy, const char *buf, in store_reset()
124 static ssize_t show_trans_table(struct cpufreq_policy *policy, char *buf) in show_trans_table()
196 void cpufreq_stats_free_table(struct cpufreq_policy *policy) in cpufreq_stats_free_table()
212 void cpufreq_stats_create_table(struct cpufreq_policy *policy) in cpufreq_stats_create_table()
266 void cpufreq_stats_record_transition(struct cpufreq_policy *policy, in cpufreq_stats_record_transition()
Dcpufreq_governor.c114 unsigned int dbs_update(struct cpufreq_policy *policy) in dbs_update()
235 struct cpufreq_policy *policy; in dbs_work_handler()
325 struct cpufreq_policy *policy = policy_dbs->policy; in gov_set_update_util()
339 static inline void gov_clear_update_util(struct cpufreq_policy *policy) in gov_clear_update_util()
349 static struct policy_dbs_info *alloc_policy_dbs_info(struct cpufreq_policy *policy, in alloc_policy_dbs_info()
400 int cpufreq_dbs_governor_init(struct cpufreq_policy *policy) in cpufreq_dbs_governor_init()
488 void cpufreq_dbs_governor_exit(struct cpufreq_policy *policy) in cpufreq_dbs_governor_exit()
511 int cpufreq_dbs_governor_start(struct cpufreq_policy *policy) in cpufreq_dbs_governor_start()
549 void cpufreq_dbs_governor_stop(struct cpufreq_policy *policy) in cpufreq_dbs_governor_stop()
561 void cpufreq_dbs_governor_limits(struct cpufreq_policy *policy) in cpufreq_dbs_governor_limits()
Dscmi-cpufreq.c36 struct cpufreq_policy *policy = cpufreq_cpu_get_raw(cpu); in scmi_cpufreq_get_rate()
53 scmi_cpufreq_set_target(struct cpufreq_policy *policy, unsigned int index) in scmi_cpufreq_set_target()
61 static unsigned int scmi_cpufreq_fast_switch(struct cpufreq_policy *policy, in scmi_cpufreq_fast_switch()
127 static int scmi_cpufreq_init(struct cpufreq_policy *policy) in scmi_cpufreq_init()
243 static int scmi_cpufreq_exit(struct cpufreq_policy *policy) in scmi_cpufreq_exit()
255 static void scmi_cpufreq_register_em(struct cpufreq_policy *policy) in scmi_cpufreq_register_em()
Dbmips-cpufreq.c66 bmips_cpufreq_get_freq_table(const struct cpufreq_policy *policy) in bmips_cpufreq_get_freq_table()
105 static int bmips_cpufreq_target_index(struct cpufreq_policy *policy, in bmips_cpufreq_target_index()
124 static int bmips_cpufreq_exit(struct cpufreq_policy *policy) in bmips_cpufreq_exit()
131 static int bmips_cpufreq_init(struct cpufreq_policy *policy) in bmips_cpufreq_init()
Dacpi-cpufreq.c134 static int set_boost(struct cpufreq_policy *policy, int val) in set_boost()
144 static ssize_t show_freqdomain_cpus(struct cpufreq_policy *policy, char *buf) in show_freqdomain_cpus()
157 static ssize_t store_cpb(struct cpufreq_policy *policy, const char *buf, in store_cpb()
177 static ssize_t show_cpb(struct cpufreq_policy *policy, char *buf) in show_cpb()
199 static unsigned extract_io(struct cpufreq_policy *policy, u32 value) in extract_io()
214 static unsigned extract_msr(struct cpufreq_policy *policy, u32 msr) in extract_msr()
235 static unsigned extract_freq(struct cpufreq_policy *policy, u32 val) in extract_freq()
368 struct cpufreq_policy *policy; in get_cur_freq_on_cpu()
397 static unsigned int check_freqs(struct cpufreq_policy *policy, in check_freqs()
413 static int acpi_cpufreq_target(struct cpufreq_policy *policy, in acpi_cpufreq_target()
[all …]
Dcpufreq_ondemand.c61 static unsigned int generic_powersave_bias_target(struct cpufreq_policy *policy, in generic_powersave_bias_target()
108 static void ondemand_powersave_bias_init(struct cpufreq_policy *policy) in ondemand_powersave_bias_init()
115 static void dbs_freq_increase(struct cpufreq_policy *policy, unsigned int freq) in dbs_freq_increase()
136 static void od_update(struct cpufreq_policy *policy) in od_update()
172 static unsigned int od_dbs_update(struct cpufreq_policy *policy) in od_dbs_update()
391 static void od_start(struct cpufreq_policy *policy) in od_start()
429 struct cpufreq_policy *policy; in od_set_powersave_bias()
457 (struct cpufreq_policy *, unsigned int, unsigned int), in od_register_powersave_bias_handler()
Damd-pstate.c252 static int amd_pstate_target(struct cpufreq_policy *policy, in amd_pstate_target()
288 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); in amd_pstate_adjust_perf()
385 static int amd_pstate_set_boost(struct cpufreq_policy *policy, int state) in amd_pstate_set_boost()
429 static int amd_pstate_cpu_init(struct cpufreq_policy *policy) in amd_pstate_cpu_init()
514 static int amd_pstate_cpu_exit(struct cpufreq_policy *policy) in amd_pstate_cpu_exit()
525 static int amd_pstate_cpu_resume(struct cpufreq_policy *policy) in amd_pstate_cpu_resume()
536 static int amd_pstate_cpu_suspend(struct cpufreq_policy *policy) in amd_pstate_cpu_suspend()
554 static ssize_t show_amd_pstate_max_freq(struct cpufreq_policy *policy, in show_amd_pstate_max_freq()
567 static ssize_t show_amd_pstate_lowest_nonlinear_freq(struct cpufreq_policy *policy, in show_amd_pstate_lowest_nonlinear_freq()
584 static ssize_t show_amd_pstate_highest_perf(struct cpufreq_policy *policy, in show_amd_pstate_highest_perf()
Dbrcmstb-avs-cpufreq.c479 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); in brcm_avs_cpufreq_get()
487 static int brcm_avs_target_index(struct cpufreq_policy *policy, in brcm_avs_target_index()
494 static int brcm_avs_suspend(struct cpufreq_policy *policy) in brcm_avs_suspend()
519 static int brcm_avs_resume(struct cpufreq_policy *policy) in brcm_avs_resume()
610 static int brcm_avs_cpufreq_init(struct cpufreq_policy *policy) in brcm_avs_cpufreq_init()
652 static ssize_t show_brcm_avs_pstate(struct cpufreq_policy *policy, char *buf) in show_brcm_avs_pstate()
663 static ssize_t show_brcm_avs_mode(struct cpufreq_policy *policy, char *buf) in show_brcm_avs_mode()
675 static ssize_t show_brcm_avs_pmap(struct cpufreq_policy *policy, char *buf) in show_brcm_avs_pmap()
693 static ssize_t show_brcm_avs_voltage(struct cpufreq_policy *policy, char *buf) in show_brcm_avs_voltage()
700 static ssize_t show_brcm_avs_frequency(struct cpufreq_policy *policy, char *buf) in show_brcm_avs_frequency()
/linux-6.1.9/tools/power/cpupower/lib/
Dcpufreq.h11 struct cpufreq_policy { struct
100 struct cpufreq_policy *cpufreq_get_policy(unsigned int cpu);
102 void cpufreq_put_policy(struct cpufreq_policy *policy);
183 int cpufreq_set_policy(unsigned int cpu, struct cpufreq_policy *policy);
/linux-6.1.9/Documentation/translations/zh_CN/cpu-freq/
Dcpu-drivers.rst102 只为某个策略调用一次,而不是对该策略管理的每个CPU调用一次。它需要一个 ``struct cpufreq_policy
144 以便纠正不兼容的值。为了验证这些值,cpufreq_verify_within_limits(``struct cpufreq_policy
164 target_index调用有两个参数: ``struct cpufreq_policy * policy`` 和 ``unsigned int``
174 target调用有三个参数。``struct cpufreq_policy * policy``, unsigned int target_frequency,
194 这个函数有两个参数: ``struct cpufreq_policy *policy`` 和 ``unsigned int target_frequency``。
200 setpolicy调用只需要一个 ``struct cpufreq_policy * policy`` 作为参数。需要将处理器内或芯片组内动态频
/linux-6.1.9/Documentation/translations/zh_TW/cpu-freq/
Dcpu-drivers.rst99 只對策略調用一次,而不是對策略管理的每個CPU調用一次。它需要一個 ``struct cpufreq_policy
144 以便糾正不兼容的值。爲了驗證這些值,cpufreq_verify_within_limits(``struct cpufreq_policy
164 target_index調用有兩個參數:``struct cpufreq_policy * policy``和``unsigned int``
173 目標調用有三個參數。``struct cpufreq_policy * policy``, unsigned int target_frequency,
193 這個函數有兩個參數: ``struct cpufreq_policy *policy`` 和 ``unsigned int target_frequency``。
199 setpolicy調用只需要一個``struct cpufreq_policy * policy``作爲參數。需要將處理器內或晶片組內動態頻
/linux-6.1.9/include/acpi/
Dprocessor.h318 void acpi_processor_ppc_init(struct cpufreq_policy *policy);
319 void acpi_processor_ppc_exit(struct cpufreq_policy *policy);
327 static inline void acpi_processor_ppc_init(struct cpufreq_policy *policy) in acpi_processor_ppc_init()
331 static inline void acpi_processor_ppc_exit(struct cpufreq_policy *policy) in acpi_processor_ppc_exit()
450 void acpi_thermal_cpufreq_init(struct cpufreq_policy *policy);
451 void acpi_thermal_cpufreq_exit(struct cpufreq_policy *policy);
453 static inline void acpi_thermal_cpufreq_init(struct cpufreq_policy *policy) in acpi_thermal_cpufreq_init()
457 static inline void acpi_thermal_cpufreq_exit(struct cpufreq_policy *policy) in acpi_thermal_cpufreq_exit()
/linux-6.1.9/drivers/thermal/
Dcpufreq_cooling.c75 struct cpufreq_policy *policy;
225 struct cpufreq_policy *policy = cpufreq_cdev->policy; in cpufreq_get_requested_power()
302 struct cpufreq_policy *policy = cpufreq_cdev->policy; in cpufreq_power2state()
316 struct cpufreq_policy *policy; in em_is_sane()
375 struct cpufreq_policy *policy; in get_state_freq()
493 struct cpufreq_policy *policy, in __cpufreq_cooling_register()
602 cpufreq_cooling_register(struct cpufreq_policy *policy) in cpufreq_cooling_register()
625 of_cpufreq_cooling_register(struct cpufreq_policy *policy) in of_cpufreq_cooling_register()

12345