Lines Matching refs:cpufreq_policy
51 struct cpufreq_policy { struct
152 struct cpufreq_policy *policy; argument
165 struct cpufreq_policy *cpufreq_cpu_get_raw(unsigned int cpu);
166 struct cpufreq_policy *cpufreq_cpu_get(unsigned int cpu);
167 void cpufreq_cpu_put(struct cpufreq_policy *policy);
169 static inline struct cpufreq_policy *cpufreq_cpu_get_raw(unsigned int cpu) in cpufreq_cpu_get_raw()
173 static inline struct cpufreq_policy *cpufreq_cpu_get(unsigned int cpu) in cpufreq_cpu_get()
177 static inline void cpufreq_cpu_put(struct cpufreq_policy *policy) { } in cpufreq_cpu_put()
180 static inline bool policy_is_inactive(struct cpufreq_policy *policy) in policy_is_inactive()
185 static inline bool policy_is_shared(struct cpufreq_policy *policy) in policy_is_shared()
201 struct cpufreq_policy *cpufreq_cpu_acquire(unsigned int cpu);
202 void cpufreq_cpu_release(struct cpufreq_policy *policy);
203 int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu);
204 int cpufreq_set_policy(struct cpufreq_policy *policy,
205 struct cpufreq_policy *new_policy);
206 void refresh_frequency_limits(struct cpufreq_policy *policy);
210 struct kobject *get_governor_parent_kobj(struct cpufreq_policy *policy);
211 void cpufreq_enable_fast_switch(struct cpufreq_policy *policy);
212 void cpufreq_disable_fast_switch(struct cpufreq_policy *policy);
230 void cpufreq_stats_create_table(struct cpufreq_policy *policy);
231 void cpufreq_stats_free_table(struct cpufreq_policy *policy);
232 void cpufreq_stats_record_transition(struct cpufreq_policy *policy,
235 static inline void cpufreq_stats_create_table(struct cpufreq_policy *policy) { } in cpufreq_stats_create_table()
236 static inline void cpufreq_stats_free_table(struct cpufreq_policy *policy) { } in cpufreq_stats_free_table()
237 static inline void cpufreq_stats_record_transition(struct cpufreq_policy *policy, in cpufreq_stats_record_transition()
251 ssize_t (*show)(struct cpufreq_policy *, char *);
252 ssize_t (*store)(struct cpufreq_policy *, const char *, size_t count);
286 int (*init)(struct cpufreq_policy *policy);
287 int (*verify)(struct cpufreq_policy *policy);
290 int (*setpolicy)(struct cpufreq_policy *policy);
296 int (*target)(struct cpufreq_policy *policy,
299 int (*target_index)(struct cpufreq_policy *policy,
301 unsigned int (*fast_switch)(struct cpufreq_policy *policy,
310 unsigned int (*resolve_freq)(struct cpufreq_policy *policy,
328 unsigned int (*get_intermediate)(struct cpufreq_policy *policy,
330 int (*target_intermediate)(struct cpufreq_policy *policy,
342 int (*online)(struct cpufreq_policy *policy);
343 int (*offline)(struct cpufreq_policy *policy);
344 int (*exit)(struct cpufreq_policy *policy);
345 void (*stop_cpu)(struct cpufreq_policy *policy);
346 int (*suspend)(struct cpufreq_policy *policy);
347 int (*resume)(struct cpufreq_policy *policy);
350 void (*ready)(struct cpufreq_policy *policy);
418 static inline void cpufreq_verify_within_limits(struct cpufreq_policy *policy, in cpufreq_verify_within_limits()
435 cpufreq_verify_within_cpu_limits(struct cpufreq_policy *policy) in cpufreq_verify_within_cpu_limits()
444 int cpufreq_generic_suspend(struct cpufreq_policy *policy);
469 void cpufreq_freq_transition_begin(struct cpufreq_policy *policy,
471 void cpufreq_freq_transition_end(struct cpufreq_policy *policy,
534 int (*init)(struct cpufreq_policy *policy);
535 void (*exit)(struct cpufreq_policy *policy);
536 int (*start)(struct cpufreq_policy *policy);
537 void (*stop)(struct cpufreq_policy *policy);
538 void (*limits)(struct cpufreq_policy *policy);
539 ssize_t (*show_setspeed) (struct cpufreq_policy *policy,
541 int (*store_setspeed) (struct cpufreq_policy *policy,
550 unsigned int cpufreq_driver_fast_switch(struct cpufreq_policy *policy,
552 int cpufreq_driver_target(struct cpufreq_policy *policy,
555 int __cpufreq_driver_target(struct cpufreq_policy *policy,
558 unsigned int cpufreq_driver_resolve_freq(struct cpufreq_policy *policy,
560 unsigned int cpufreq_policy_transition_delay_us(struct cpufreq_policy *policy);
567 static inline void cpufreq_policy_apply_limits(struct cpufreq_policy *policy) in cpufreq_policy_apply_limits()
684 int cpufreq_frequency_table_cpuinfo(struct cpufreq_policy *policy,
687 int cpufreq_frequency_table_verify(struct cpufreq_policy *policy,
689 int cpufreq_generic_frequency_table_verify(struct cpufreq_policy *policy);
691 int cpufreq_table_index_unsorted(struct cpufreq_policy *policy,
694 int cpufreq_frequency_table_get_index(struct cpufreq_policy *policy,
703 bool policy_has_boost_freq(struct cpufreq_policy *policy);
706 static inline int cpufreq_table_find_index_al(struct cpufreq_policy *policy, in cpufreq_table_find_index_al()
727 static inline int cpufreq_table_find_index_dl(struct cpufreq_policy *policy, in cpufreq_table_find_index_dl()
757 static inline int cpufreq_table_find_index_l(struct cpufreq_policy *policy, in cpufreq_table_find_index_l()
769 static inline int cpufreq_table_find_index_ah(struct cpufreq_policy *policy, in cpufreq_table_find_index_ah()
799 static inline int cpufreq_table_find_index_dh(struct cpufreq_policy *policy, in cpufreq_table_find_index_dh()
820 static inline int cpufreq_table_find_index_h(struct cpufreq_policy *policy, in cpufreq_table_find_index_h()
832 static inline int cpufreq_table_find_index_ac(struct cpufreq_policy *policy, in cpufreq_table_find_index_ac()
866 static inline int cpufreq_table_find_index_dc(struct cpufreq_policy *policy, in cpufreq_table_find_index_dc()
900 static inline int cpufreq_table_find_index_c(struct cpufreq_policy *policy, in cpufreq_table_find_index_c()
911 static inline int cpufreq_frequency_table_target(struct cpufreq_policy *policy, in cpufreq_frequency_table_target()
932 static inline int cpufreq_table_count_valid_entries(const struct cpufreq_policy *policy) in cpufreq_table_count_valid_entries()
960 static inline bool policy_has_boost_freq(struct cpufreq_policy *policy) in policy_has_boost_freq()
967 void sched_cpufreq_governor_change(struct cpufreq_policy *policy,
970 static inline void sched_cpufreq_governor_change(struct cpufreq_policy *policy, in sched_cpufreq_governor_change()
986 int cpufreq_table_validate_and_sort(struct cpufreq_policy *policy);
989 void cpufreq_generic_init(struct cpufreq_policy *policy,