Home
last modified time | relevance | path

Searched full:policy (Results 1 – 25 of 1328) sorted by relevance

12345678910>>...54

/linux/drivers/cpufreq/
H A Dcpufreq.c83 static unsigned int __cpufreq_get(struct cpufreq_policy *policy);
84 static int cpufreq_init_governor(struct cpufreq_policy *policy);
85 static void cpufreq_exit_governor(struct cpufreq_policy *policy);
86 static void cpufreq_governor_limits(struct cpufreq_policy *policy);
87 static int cpufreq_set_policy(struct cpufreq_policy *policy,
94 * Two notifier lists: the "policy" list is involved in the
95 * validation process for a new CPU frequency policy; the
124 struct kobject *get_governor_parent_kobj(struct cpufreq_policy *policy) in get_governor_parent_kobj() argument
127 return &policy->kobj; in get_governor_parent_kobj()
176 * - policy
178 cpufreq_generic_init(struct cpufreq_policy * policy,struct cpufreq_frequency_table * table,unsigned int transition_latency) cpufreq_generic_init() argument
195 struct cpufreq_policy *policy = per_cpu(cpufreq_cpu_data, cpu); cpufreq_cpu_get_raw() local
203 struct cpufreq_policy *policy = cpufreq_cpu_get_raw(cpu); cpufreq_generic_get() local
228 struct cpufreq_policy *policy = NULL; cpufreq_cpu_get() local
254 cpufreq_cpu_put(struct cpufreq_policy * policy) cpufreq_cpu_put() argument
308 cpufreq_notify_transition(struct cpufreq_policy * policy,struct cpufreq_freqs * freqs,unsigned int state) cpufreq_notify_transition() argument
360 cpufreq_notify_post_transition(struct cpufreq_policy * policy,struct cpufreq_freqs * freqs,int transition_failed) cpufreq_notify_post_transition() argument
372 cpufreq_freq_transition_begin(struct cpufreq_policy * policy,struct cpufreq_freqs * freqs) cpufreq_freq_transition_begin() argument
406 cpufreq_freq_transition_end(struct cpufreq_policy * policy,struct cpufreq_freqs * freqs,int transition_failed) cpufreq_freq_transition_end() argument
459 cpufreq_enable_fast_switch(struct cpufreq_policy * policy) cpufreq_enable_fast_switch() argument
483 cpufreq_disable_fast_switch(struct cpufreq_policy * policy) cpufreq_disable_fast_switch() argument
495 __resolve_freq(struct cpufreq_policy * policy,unsigned int target_freq,unsigned int min,unsigned int max,unsigned int relation) __resolve_freq() argument
524 cpufreq_driver_resolve_freq(struct cpufreq_policy * policy,unsigned int target_freq) cpufreq_driver_resolve_freq() argument
545 cpufreq_policy_transition_delay_us(struct cpufreq_policy * policy) cpufreq_policy_transition_delay_us() argument
591 show_local_boost(struct cpufreq_policy * policy,char * buf) show_local_boost() argument
596 policy_set_boost(struct cpufreq_policy * policy,bool enable) policy_set_boost() argument
612 store_local_boost(struct cpufreq_policy * policy,const char * buf,size_t count) store_local_boost() argument
720 cpufreq_avg_freq_supported(struct cpufreq_policy * policy) cpufreq_avg_freq_supported() argument
725 show_scaling_cur_freq(struct cpufreq_policy * policy,char * buf) show_scaling_cur_freq() argument
767 show_cpuinfo_cur_freq(struct cpufreq_policy * policy,char * buf) show_cpuinfo_cur_freq() argument
781 show_cpuinfo_avg_freq(struct cpufreq_policy * policy,char * buf) show_cpuinfo_avg_freq() argument
794 show_scaling_governor(struct cpufreq_policy * policy,char * buf) show_scaling_governor() argument
808 store_scaling_governor(struct cpufreq_policy * policy,const char * buf,size_t count) store_scaling_governor() argument
845 show_scaling_driver(struct cpufreq_policy * policy,char * buf) show_scaling_driver() argument
853 show_scaling_available_governors(struct cpufreq_policy * policy,char * buf) show_scaling_available_governors() argument
900 show_related_cpus(struct cpufreq_policy * policy,char * buf) show_related_cpus() argument
908 show_affected_cpus(struct cpufreq_policy * policy,char * buf) show_affected_cpus() argument
913 store_scaling_setspeed(struct cpufreq_policy * policy,const char * buf,size_t count) store_scaling_setspeed() argument
931 show_scaling_setspeed(struct cpufreq_policy * policy,char * buf) show_scaling_setspeed() argument
942 show_bios_limit(struct cpufreq_policy * policy,char * buf) show_bios_limit() argument
990 struct cpufreq_policy *policy = to_policy(kobj); show() local
1007 struct cpufreq_policy *policy = to_policy(kobj); store() local
1023 struct cpufreq_policy *policy = to_policy(kobj); cpufreq_sysfs_release() local
1039 add_cpu_dev_symlink(struct cpufreq_policy * policy,unsigned int cpu,struct device * dev) add_cpu_dev_symlink() argument
1053 remove_cpu_dev_symlink(struct cpufreq_policy * policy,int cpu,struct device * dev) remove_cpu_dev_symlink() argument
1061 cpufreq_add_dev_interface(struct cpufreq_policy * policy) cpufreq_add_dev_interface() argument
1116 cpufreq_init_policy(struct cpufreq_policy * policy) cpufreq_init_policy() argument
1164 cpufreq_add_policy_cpu(struct cpufreq_policy * policy,unsigned int cpu) cpufreq_add_policy_cpu() argument
1188 refresh_frequency_limits(struct cpufreq_policy * policy) refresh_frequency_limits() argument
1200 struct cpufreq_policy *policy = handle_update() local
1213 struct cpufreq_policy *policy = container_of(nb, struct cpufreq_policy, nb_min); cpufreq_notifier_min() local
1222 struct cpufreq_policy *policy = container_of(nb, struct cpufreq_policy, nb_max); cpufreq_notifier_max() local
1228 cpufreq_policy_put_kobj(struct cpufreq_policy * policy) cpufreq_policy_put_kobj() argument
1252 struct cpufreq_policy *policy; cpufreq_policy_alloc() local
1333 cpufreq_policy_free(struct cpufreq_policy * policy) cpufreq_policy_free() argument
1382 cpufreq_policy_online(struct cpufreq_policy * policy,unsigned int cpu,bool new_policy) cpufreq_policy_online() argument
1588 struct cpufreq_policy *policy; cpufreq_online() local
1653 struct cpufreq_policy *policy; cpufreq_add_dev() local
1673 __cpufreq_offline(unsigned int cpu,struct cpufreq_policy * policy) __cpufreq_offline() argument
1722 struct cpufreq_policy *policy; cpufreq_offline() local
1747 struct cpufreq_policy *policy = per_cpu(cpufreq_cpu_data, cpu); cpufreq_remove_dev() local
1786 cpufreq_out_of_sync(struct cpufreq_policy * policy,unsigned int new_freq) cpufreq_out_of_sync() argument
1801 cpufreq_verify_current_freq(struct cpufreq_policy * policy,bool update) cpufreq_verify_current_freq() argument
1906 __cpufreq_get(struct cpufreq_policy * policy) __cpufreq_get() argument
1945 cpufreq_generic_suspend(struct cpufreq_policy * policy) cpufreq_generic_suspend() argument
1977 struct cpufreq_policy *policy; cpufreq_suspend() local
2011 struct cpufreq_policy *policy; cpufreq_resume() local
2203 cpufreq_driver_fast_switch(struct cpufreq_policy * policy,unsigned int target_freq) cpufreq_driver_fast_switch() argument
2270 __target_intermediate(struct cpufreq_policy * policy,struct cpufreq_freqs * freqs,int index) __target_intermediate() argument
2295 __target_index(struct cpufreq_policy * policy,int index) __target_index() argument
2355 __cpufreq_driver_target(struct cpufreq_policy * policy,unsigned int target_freq,unsigned int relation) __cpufreq_driver_target() argument
2398 cpufreq_driver_target(struct cpufreq_policy * policy,unsigned int target_freq,unsigned int relation) cpufreq_driver_target() argument
2413 cpufreq_init_governor(struct cpufreq_policy * policy) cpufreq_init_governor() argument
2459 cpufreq_exit_governor(struct cpufreq_policy * policy) cpufreq_exit_governor() argument
2472 cpufreq_start_governor(struct cpufreq_policy * policy) cpufreq_start_governor() argument
2498 cpufreq_stop_governor(struct cpufreq_policy * policy) cpufreq_stop_governor() argument
2509 cpufreq_governor_limits(struct cpufreq_policy * policy) cpufreq_governor_limits() argument
2545 struct cpufreq_policy *policy; cpufreq_unregister_governor() local
2583 cpufreq_update_pressure(struct cpufreq_policy * policy) cpufreq_update_pressure() argument
2624 cpufreq_set_policy(struct cpufreq_policy * policy,struct cpufreq_governor * new_gov,unsigned int new_pol) cpufreq_set_policy() argument
2727 cpufreq_policy_refresh(struct cpufreq_policy * policy) cpufreq_policy_refresh() argument
2788 cpufreq_boost_set_sw(struct cpufreq_policy * policy,int state) cpufreq_boost_set_sw() argument
2811 struct cpufreq_policy *policy; cpufreq_boost_trigger_state() local
[all...]
H A Dcpufreq_userspace.c26 * @policy: pointer to policy struct where freq is being set
31 static int cpufreq_set(struct cpufreq_policy *policy, unsigned int freq) in cpufreq_set() argument
34 struct userspace_policy *userspace = policy->governor_data; in cpufreq_set()
36 pr_debug("cpufreq_set for cpu %u, freq %u kHz\n", policy->cpu, freq); in cpufreq_set()
44 ret = __cpufreq_driver_target(policy, freq, CPUFREQ_RELATION_L); in cpufreq_set()
50 static ssize_t show_speed(struct cpufreq_policy *policy, char *buf) in show_speed() argument
52 return sprintf(buf, "%u\n", policy->cur); in show_speed()
55 static int cpufreq_userspace_policy_init(struct cpufreq_policy *policy) in cpufreq_userspace_policy_init() argument
65 policy in cpufreq_userspace_policy_init()
73 cpufreq_userspace_policy_exit(struct cpufreq_policy * policy) cpufreq_userspace_policy_exit() argument
79 cpufreq_userspace_policy_start(struct cpufreq_policy * policy) cpufreq_userspace_policy_start() argument
93 cpufreq_userspace_policy_stop(struct cpufreq_policy * policy) cpufreq_userspace_policy_stop() argument
105 cpufreq_userspace_policy_limits(struct cpufreq_policy * policy) cpufreq_userspace_policy_limits() argument
[all...]
H A Dfreq_table.c17 static 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()
31 int cpufreq_frequency_table_cpuinfo(struct cpufreq_policy *policy, in cpufreq_frequency_table_cpuinfo() argument
42 if ((!cpufreq_boost_enabled() || !policy->boost_enabled) in cpufreq_frequency_table_cpuinfo()
53 policy->min = policy->cpuinfo.min_freq = min_freq; in cpufreq_frequency_table_cpuinfo()
54 policy->max = max_freq; in cpufreq_frequency_table_cpuinfo()
59 if (policy->cpuinfo.max_freq < max_freq) in cpufreq_frequency_table_cpuinfo()
60 policy->max = policy in cpufreq_frequency_table_cpuinfo()
68 cpufreq_frequency_table_verify(struct cpufreq_policy_data * policy,struct cpufreq_frequency_table * table) cpufreq_frequency_table_verify() argument
108 cpufreq_generic_frequency_table_verify(struct cpufreq_policy_data * policy) cpufreq_generic_frequency_table_verify() argument
117 cpufreq_table_index_unsorted(struct cpufreq_policy * policy,unsigned int target_freq,unsigned int min,unsigned int max,unsigned int relation) cpufreq_table_index_unsorted() argument
210 cpufreq_frequency_table_get_index(struct cpufreq_policy * policy,unsigned int freq) cpufreq_frequency_table_get_index() argument
232 show_available_freqs(struct cpufreq_policy * policy,char * buf,bool show_boost) show_available_freqs() argument
272 scaling_available_frequencies_show(struct cpufreq_policy * policy,char * buf) scaling_available_frequencies_show() argument
283 scaling_boost_frequencies_show(struct cpufreq_policy * policy,char * buf) scaling_boost_frequencies_show() argument
290 set_freq_table_sorted(struct cpufreq_policy * policy) set_freq_table_sorted() argument
345 cpufreq_table_validate_and_sort(struct cpufreq_policy * policy) cpufreq_table_validate_and_sort() argument
[all...]
H A Damd-pstate.c230 static int msr_update_perf(struct cpufreq_policy *policy, u8 min_perf, in msr_update_perf() argument
233 struct amd_cpudata *cpudata = policy->driver_data; in msr_update_perf()
253 policy->boost_enabled, in msr_update_perf()
277 static inline int amd_pstate_update_perf(struct cpufreq_policy *policy, in amd_pstate_update_perf() argument
282 return static_call(amd_pstate_update_perf)(policy, min_perf, des_perf, in amd_pstate_update_perf()
286 static int msr_set_epp(struct cpufreq_policy *policy, u8 epp) in msr_set_epp() argument
288 struct amd_cpudata *cpudata = policy->driver_data; in msr_set_epp()
305 policy->boost_enabled, in msr_set_epp()
326 static inline int amd_pstate_set_epp(struct cpufreq_policy *policy, u8 epp) in amd_pstate_set_epp() argument
328 return static_call(amd_pstate_set_epp)(policy, ep in amd_pstate_set_epp()
331 shmem_set_epp(struct cpufreq_policy * policy,u8 epp) shmem_set_epp() argument
372 msr_cppc_enable(struct cpufreq_policy * policy) msr_cppc_enable() argument
377 shmem_cppc_enable(struct cpufreq_policy * policy) shmem_cppc_enable() argument
384 amd_pstate_cppc_enable(struct cpufreq_policy * policy) amd_pstate_cppc_enable() argument
481 shmem_update_perf(struct cpufreq_policy * policy,u8 min_perf,u8 des_perf,u8 max_perf,u8 epp,bool fast_switch) shmem_update_perf() argument
628 amd_pstate_update_min_max_limit(struct cpufreq_policy * policy) amd_pstate_update_min_max_limit() argument
647 amd_pstate_update_freq(struct cpufreq_policy * policy,unsigned int target_freq,bool fast_switch) amd_pstate_update_freq() argument
686 amd_pstate_target(struct cpufreq_policy * policy,unsigned int target_freq,unsigned int relation) amd_pstate_target() argument
693 amd_pstate_fast_switch(struct cpufreq_policy * policy,unsigned int target_freq) amd_pstate_fast_switch() argument
742 amd_pstate_cpu_boost_update(struct cpufreq_policy * policy,bool on) amd_pstate_cpu_boost_update() argument
768 amd_pstate_set_boost(struct cpufreq_policy * policy,int state) amd_pstate_set_boost() argument
842 amd_pstate_update_limits(struct cpufreq_policy * policy) amd_pstate_update_limits() argument
965 amd_pstate_cpu_init(struct cpufreq_policy * policy) amd_pstate_cpu_init() argument
1054 amd_pstate_cpu_exit(struct cpufreq_policy * policy) amd_pstate_cpu_exit() argument
1075 show_amd_pstate_max_freq(struct cpufreq_policy * policy,char * buf) show_amd_pstate_max_freq() argument
1088 show_amd_pstate_lowest_nonlinear_freq(struct cpufreq_policy * policy,char * buf) show_amd_pstate_lowest_nonlinear_freq() argument
1105 show_amd_pstate_highest_perf(struct cpufreq_policy * policy,char * buf) show_amd_pstate_highest_perf() argument
1115 show_amd_pstate_prefcore_ranking(struct cpufreq_policy * policy,char * buf) show_amd_pstate_prefcore_ranking() argument
1126 show_amd_pstate_hw_prefcore(struct cpufreq_policy * policy,char * buf) show_amd_pstate_hw_prefcore() argument
1138 show_energy_performance_available_preferences(struct cpufreq_policy * policy,char * buf) show_energy_performance_available_preferences() argument
1157 store_energy_performance_preference(struct cpufreq_policy * policy,const char * buf,size_t count) store_energy_performance_preference() argument
1188 show_energy_performance_preference(struct cpufreq_policy * policy,char * buf) show_energy_performance_preference() argument
1457 amd_pstate_epp_cpu_init(struct cpufreq_policy * policy) amd_pstate_epp_cpu_init() argument
1540 amd_pstate_epp_cpu_exit(struct cpufreq_policy * policy) amd_pstate_epp_cpu_exit() argument
1557 amd_pstate_epp_update_limit(struct cpufreq_policy * policy) amd_pstate_epp_update_limit() argument
1577 amd_pstate_epp_set_policy(struct cpufreq_policy * policy) amd_pstate_epp_set_policy() argument
1600 amd_pstate_cpu_online(struct cpufreq_policy * policy) amd_pstate_cpu_online() argument
1605 amd_pstate_cpu_offline(struct cpufreq_policy * policy) amd_pstate_cpu_offline() argument
1618 amd_pstate_suspend(struct cpufreq_policy * policy) amd_pstate_suspend() argument
1642 amd_pstate_resume(struct cpufreq_policy * policy) amd_pstate_resume() argument
1653 amd_pstate_epp_resume(struct cpufreq_policy * policy) amd_pstate_epp_resume() 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 Dvirtual-cpufreq.c92 static unsigned int virt_cpufreq_set_perf(struct cpufreq_policy *policy, in virt_cpufreq_set_perf() argument
96 base + policy->cpu * PER_CPU_OFFSET + REG_SET_PERF_STATE_OFFSET); in virt_cpufreq_set_perf()
100 static unsigned int virt_cpufreq_fast_switch(struct cpufreq_policy *policy, in virt_cpufreq_fast_switch() argument
103 virt_cpufreq_set_perf(policy, target_freq); in virt_cpufreq_fast_switch()
115 static int virt_cpufreq_target(struct cpufreq_policy *policy, in virt_cpufreq_target() argument
122 freqs.old = policy->cur; in virt_cpufreq_target()
125 cpufreq_freq_transition_begin(policy, &freqs); in virt_cpufreq_target()
126 ret = virt_cpufreq_set_perf(policy, target_freq); in virt_cpufreq_target()
127 cpufreq_freq_transition_end(policy, &freqs, ret != 0); in virt_cpufreq_target()
132 static int virt_cpufreq_get_sharing_cpus(struct cpufreq_policy *policy) in virt_cpufreq_get_sharing_cpus() argument
156 virt_cpufreq_get_freq_info(struct cpufreq_policy * policy) virt_cpufreq_get_freq_info() argument
187 virt_cpufreq_cpu_init(struct cpufreq_policy * policy) virt_cpufreq_cpu_init() argument
232 virt_cpufreq_cpu_exit(struct cpufreq_policy * policy) virt_cpufreq_cpu_exit() argument
238 virt_cpufreq_online(struct cpufreq_policy * policy) virt_cpufreq_online() argument
244 virt_cpufreq_offline(struct cpufreq_policy * policy) virt_cpufreq_offline() argument
250 virt_cpufreq_verify_policy(struct cpufreq_policy_data * policy) virt_cpufreq_verify_policy() 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 Dacpi-cpufreq.c131 static int set_boost(struct cpufreq_policy *policy, int val) in set_boost() argument
133 on_each_cpu_mask(policy->cpus, boost_set_msr_each, in set_boost()
136 cpumask_pr_args(policy->cpus), str_enabled_disabled(val)); in set_boost()
141 static ssize_t show_freqdomain_cpus(struct cpufreq_policy *policy, char *buf) in show_freqdomain_cpus() argument
143 struct acpi_cpufreq_data *data = policy->driver_data; in show_freqdomain_cpus()
154 static ssize_t store_cpb(struct cpufreq_policy *policy, const char *buf, in store_cpb() argument
168 set_boost(policy, val); in store_cpb()
174 static ssize_t show_cpb(struct cpufreq_policy *policy, char *buf) in show_cpb() argument
196 static unsigned extract_io(struct cpufreq_policy *policy, u32 value) in extract_io() argument
198 struct acpi_cpufreq_data *data = policy in extract_io()
211 extract_msr(struct cpufreq_policy * policy,u32 msr) extract_msr() argument
232 extract_freq(struct cpufreq_policy * policy,u32 val) extract_freq() argument
365 struct cpufreq_policy *policy; get_cur_freq_on_cpu() local
394 check_freqs(struct cpufreq_policy * policy,const struct cpumask * mask,unsigned int freq) check_freqs() argument
410 acpi_cpufreq_target(struct cpufreq_policy * policy,unsigned int index) acpi_cpufreq_target() argument
460 acpi_cpufreq_fast_switch(struct cpufreq_policy * policy,unsigned int target_freq) acpi_cpufreq_fast_switch() argument
685 acpi_cpufreq_cpu_init(struct cpufreq_policy * policy) acpi_cpufreq_cpu_init() argument
939 acpi_cpufreq_cpu_exit(struct cpufreq_policy * policy) acpi_cpufreq_cpu_exit() argument
954 acpi_cpufreq_resume(struct cpufreq_policy * policy) acpi_cpufreq_resume() argument
[all...]
H A Dcpufreq_ondemand.c60 static unsigned int generic_powersave_bias_target(struct cpufreq_policy *policy, in generic_powersave_bias_target() argument
67 struct policy_dbs_info *policy_dbs = policy->governor_data; in generic_powersave_bias_target()
71 struct cpufreq_frequency_table *freq_table = policy->freq_table; in generic_powersave_bias_target()
79 index = cpufreq_frequency_table_target(policy, freq_next, policy->min, in generic_powersave_bias_target()
80 policy->max, relation); in generic_powersave_bias_target()
86 index = cpufreq_table_find_index_h(policy, freq_avg, in generic_powersave_bias_target()
89 index = cpufreq_table_find_index_l(policy, freq_avg, in generic_powersave_bias_target()
108 static void ondemand_powersave_bias_init(struct cpufreq_policy *policy) in ondemand_powersave_bias_init() argument
110 struct od_policy_dbs_info *dbs_info = to_dbs_info(policy in ondemand_powersave_bias_init()
115 dbs_freq_increase(struct cpufreq_policy * policy,unsigned int freq) dbs_freq_increase() argument
136 od_update(struct cpufreq_policy * policy) od_update() argument
172 od_dbs_update(struct cpufreq_policy * policy) od_dbs_update() argument
391 od_start(struct cpufreq_policy * policy) od_start() argument
429 struct cpufreq_policy *policy; od_set_powersave_bias() 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()
236 struct cpufreq_policy *policy; in dbs_work_handler() local
240 policy = policy_dbs->policy; in dbs_work_handler()
241 gov = dbs_governor_of(policy); in dbs_work_handler()
248 gov_update_sample_delay(policy_dbs, gov->gov_dbs_update(policy)); in dbs_work_handler()
326 struct cpufreq_policy *policy = policy_dbs->policy; gov_set_update_util() local
340 gov_clear_update_util(struct cpufreq_policy * policy) gov_clear_update_util() argument
350 alloc_policy_dbs_info(struct cpufreq_policy * policy,struct dbs_governor * gov) alloc_policy_dbs_info() argument
401 cpufreq_dbs_governor_init(struct cpufreq_policy * policy) cpufreq_dbs_governor_init() argument
491 cpufreq_dbs_governor_exit(struct cpufreq_policy * policy) cpufreq_dbs_governor_exit() argument
514 cpufreq_dbs_governor_start(struct cpufreq_policy * policy) cpufreq_dbs_governor_start() argument
552 cpufreq_dbs_governor_stop(struct cpufreq_policy * policy) cpufreq_dbs_governor_stop() argument
564 cpufreq_dbs_governor_limits(struct cpufreq_policy * policy) cpufreq_dbs_governor_limits() argument
[all...]
H A Dqcom-cpufreq-hw.c58 struct cpufreq_policy *policy; member
72 static int qcom_cpufreq_set_bw(struct cpufreq_policy *policy, in qcom_cpufreq_set_bw() argument
80 dev = get_cpu_device(policy->cpu); in qcom_cpufreq_set_bw()
113 static int qcom_cpufreq_hw_target_index(struct cpufreq_policy *policy, in qcom_cpufreq_hw_target_index() argument
116 struct qcom_cpufreq_data *data = policy->driver_data; in qcom_cpufreq_hw_target_index()
118 unsigned long freq = policy->freq_table[index].frequency; in qcom_cpufreq_hw_target_index()
124 for (i = 1; i < cpumask_weight(policy->related_cpus); i++) in qcom_cpufreq_hw_target_index()
128 qcom_cpufreq_set_bw(policy, freq); in qcom_cpufreq_hw_target_index()
146 static unsigned int qcom_cpufreq_get_freq(struct cpufreq_policy *policy) in qcom_cpufreq_get_freq() argument
152 if (!policy) in qcom_cpufreq_get_freq()
164 __qcom_cpufreq_hw_get(struct cpufreq_policy * policy) __qcom_cpufreq_hw_get() argument
184 qcom_cpufreq_hw_fast_switch(struct cpufreq_policy * policy,unsigned int target_freq) qcom_cpufreq_hw_fast_switch() argument
203 qcom_cpufreq_hw_read_lut(struct device * cpu_dev,struct cpufreq_policy * policy) qcom_cpufreq_hw_read_lut() argument
328 struct cpufreq_policy *policy = data->policy; qcom_lmh_dcvs_notify() local
428 qcom_cpufreq_hw_lmh_init(struct cpufreq_policy * policy,int index) qcom_cpufreq_hw_lmh_init() argument
465 qcom_cpufreq_hw_cpu_online(struct cpufreq_policy * policy) qcom_cpufreq_hw_cpu_online() argument
486 qcom_cpufreq_hw_cpu_offline(struct cpufreq_policy * policy) qcom_cpufreq_hw_cpu_offline() argument
512 qcom_cpufreq_hw_cpu_init(struct cpufreq_policy * policy) qcom_cpufreq_hw_cpu_init() argument
572 qcom_cpufreq_hw_cpu_exit(struct cpufreq_policy * policy) qcom_cpufreq_hw_cpu_exit() argument
584 qcom_cpufreq_ready(struct cpufreq_policy * policy) qcom_cpufreq_ready() argument
[all...]
/linux/Documentation/admin-guide/mm/
H A Dnuma_memory_policy.rst2 NUMA Memory Policy
5 What is NUMA Memory Policy?
8 In the Linux kernel, "memory policy" determines from which node the kernel will
11 The current memory policy support was added to Linux 2.6 around May 2004. This
12 document attempts to describe the concepts and APIs of the 2.6 memory policy
24 Memory Policy Concepts
30 The Linux kernel supports _scopes_ of memory policy, described here from
33 System Default Policy
34 this policy is "hard coded" into the kernel. It is the policy
[all...]
/linux/fs/crypto/
H A Dpolicy.c3 * Encryption policy functions for per-file encryption support.
10 * Modified by Eric Biggers, 2019 for v2 policy support.
24 * @policy1: the first policy
25 * @policy2: the second policy
38 int fscrypt_policy_to_key_spec(const union fscrypt_policy *policy, in fscrypt_policy_to_key_spec() argument
41 switch (policy->version) { in fscrypt_policy_to_key_spec()
44 memcpy(key_spec->u.descriptor, policy->v1.master_key_descriptor, in fscrypt_policy_to_key_spec()
49 memcpy(key_spec->u.identifier, policy->v2.master_key_identifier, in fscrypt_policy_to_key_spec()
122 static bool supported_iv_ino_lblk_policy(const struct fscrypt_policy_v2 *policy, in supported_iv_ino_lblk_policy() argument
125 const char *type = (policy in supported_iv_ino_lblk_policy()
183 fscrypt_supported_v1_policy(const struct fscrypt_policy_v1 * policy,const struct inode * inode) fscrypt_supported_v1_policy() argument
217 fscrypt_supported_v2_policy(const struct fscrypt_policy_v2 * policy,const struct inode * inode) fscrypt_supported_v2_policy() argument
335 const struct fscrypt_policy_v1 *policy = &policy_u->v1; fscrypt_new_context() local
351 const struct fscrypt_policy_v2 *policy = &policy_u->v2; fscrypt_new_context() local
398 struct fscrypt_policy_v1 *policy = &policy_u->v1; fscrypt_policy_from_context() local
413 struct fscrypt_policy_v2 *policy = &policy_u->v2; fscrypt_policy_from_context() local
435 fscrypt_get_policy(struct inode * inode,union fscrypt_policy * policy) fscrypt_get_policy() argument
459 set_encryption_policy(struct inode * inode,const union fscrypt_policy * policy) set_encryption_policy() argument
507 union fscrypt_policy policy; fscrypt_ioctl_set_policy() local
573 union fscrypt_policy policy; fscrypt_ioctl_get_policy() local
593 union fscrypt_policy *policy = (union fscrypt_policy *)&arg.policy; fscrypt_ioctl_get_policy_ex() local
809 union fscrypt_policy *policy; fscrypt_parse_test_dummy_encryption() local
884 const union fscrypt_policy *policy = fscrypt_get_dummy_policy(sb); fscrypt_show_test_dummy_encryption() local
[all...]
/linux/Documentation/security/
H A Dipe.rst3 Integrity Policy Enforcement (IPE) - Kernel Documentation
20 policy. A mandatory access control system would be present, and
41 enforce the integrity policy, or it should not.
44 policy would indicate what labels required integrity verification, which
48 file should be subject to integrity policy.
75 The next step was to choose a *policy* to enforce the integrity mechanism.
76 The minimum requirements for the policy were:
78 1. The policy itself must be integrity verified (preventing trivial
80 2. The policy itself must be resistant to rollback attacks.
81 3. The policy enforcemen
143 Policy global() section in Design Rationale:
146 Plain TextPolicy global() argument
225 StartupBoot Policy global() argument
[all...]
/linux/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
194 struct cpufreq_policy *policy; global() member
219 cpufreq_cpu_put(struct cpufreq_policy * policy) cpufreq_cpu_put() argument
230 policy_is_shared(struct cpufreq_policy * policy) policy_is_shared() argument
294 cpufreq_stats_create_table(struct cpufreq_policy * policy) cpufreq_stats_create_table() argument
295 cpufreq_stats_free_table(struct cpufreq_policy * policy) cpufreq_stats_free_table() argument
296 cpufreq_stats_record_transition(struct cpufreq_policy * policy,unsigned int new_freq) cpufreq_stats_record_transition() argument
490 cpufreq_verify_within_limits(struct cpufreq_policy_data * policy,unsigned int min,unsigned int max) cpufreq_verify_within_limits() argument
499 cpufreq_verify_within_cpu_limits(struct cpufreq_policy_data * policy) cpufreq_verify_within_cpu_limits() argument
656 sugov_is_governor(struct cpufreq_policy * policy) sugov_is_governor() argument
662 cpufreq_policy_apply_limits(struct cpufreq_policy * policy) cpufreq_policy_apply_limits() argument
803 cpufreq_table_find_index_al(struct cpufreq_policy * policy,unsigned int target_freq,bool efficiencies) cpufreq_table_find_index_al() argument
825 cpufreq_table_find_index_dl(struct cpufreq_policy * policy,unsigned int target_freq,bool efficiencies) cpufreq_table_find_index_dl() argument
855 find_index_l(struct cpufreq_policy * policy,unsigned int target_freq,unsigned int min,unsigned int max,bool efficiencies) find_index_l() argument
871 cpufreq_table_find_index_l(struct cpufreq_policy * policy,unsigned int target_freq,bool efficiencies) cpufreq_table_find_index_l() argument
879 cpufreq_table_find_index_ah(struct cpufreq_policy * policy,unsigned int target_freq,bool efficiencies) cpufreq_table_find_index_ah() argument
910 cpufreq_table_find_index_dh(struct cpufreq_policy * policy,unsigned int target_freq,bool efficiencies) cpufreq_table_find_index_dh() argument
931 find_index_h(struct cpufreq_policy * policy,unsigned int target_freq,unsigned int min,unsigned int max,bool efficiencies) find_index_h() argument
947 cpufreq_table_find_index_h(struct cpufreq_policy * policy,unsigned int target_freq,bool efficiencies) cpufreq_table_find_index_h() argument
955 cpufreq_table_find_index_ac(struct cpufreq_policy * policy,unsigned int target_freq,bool efficiencies) cpufreq_table_find_index_ac() argument
990 cpufreq_table_find_index_dc(struct cpufreq_policy * policy,unsigned int target_freq,bool efficiencies) cpufreq_table_find_index_dc() argument
1024 find_index_c(struct cpufreq_policy * policy,unsigned int target_freq,unsigned int min,unsigned int max,bool efficiencies) find_index_c() argument
1040 cpufreq_table_find_index_c(struct cpufreq_policy * policy,unsigned int target_freq,bool efficiencies) cpufreq_table_find_index_c() argument
1047 cpufreq_is_in_limits(struct cpufreq_policy * policy,unsigned int min,unsigned int max,int idx) cpufreq_is_in_limits() argument
1061 cpufreq_frequency_table_target(struct cpufreq_policy * policy,unsigned int target_freq,unsigned int min,unsigned int max,unsigned int relation) cpufreq_frequency_table_target() argument
1102 cpufreq_table_count_valid_entries(const struct cpufreq_policy * policy) cpufreq_table_count_valid_entries() argument
1127 cpufreq_table_set_inefficient(struct cpufreq_policy * policy,unsigned int frequency) cpufreq_table_set_inefficient() argument
1199 cpufreq_boost_set_sw(struct cpufreq_policy * policy,int state) cpufreq_boost_set_sw() argument
1205 cpufreq_table_set_inefficient(struct cpufreq_policy * policy,unsigned int frequency) cpufreq_table_set_inefficient() argument
1242 cpufreq_register_em_with_opp(struct cpufreq_policy * policy) cpufreq_register_em_with_opp() argument
[all...]
/linux/drivers/gpu/drm/xe/
H A Dxe_gt_sriov_pf_policy.c61 xe_gt_sriov_notice(gt, "Failed to push %u policy KLV%s (%pe)\n", in pf_push_policy_buf_klvs()
97 static int pf_update_policy_bool(struct xe_gt *gt, u16 key, bool *policy, bool value) in pf_update_policy_bool() argument
103 xe_gt_sriov_notice(gt, "Failed to update policy %#x '%s' to '%s' (%pe)\n", in pf_update_policy_bool()
109 xe_gt_sriov_dbg(gt, "policy key %#x '%s' updated to '%s'\n", in pf_update_policy_bool()
113 *policy = value; in pf_update_policy_bool()
117 static int pf_update_policy_u32(struct xe_gt *gt, u16 key, u32 *policy, u32 value) in pf_update_policy_u32() argument
123 xe_gt_sriov_notice(gt, "Failed to update policy %#x '%s' to '%s' (%pe)\n", in pf_update_policy_u32()
129 xe_gt_sriov_dbg(gt, "policy key %#x '%s' updated to %u\n", in pf_update_policy_u32()
132 *policy = value; in pf_update_policy_u32()
156 &gt->sriov.pf.policy in pf_provision_sched_if_idle()
404 print_guc_policies(struct drm_printer * p,struct xe_gt_sriov_guc_policies * policy) print_guc_policies() argument
[all...]
/linux/tools/perf/Documentation/
H A Dsecurity.txt13 Targeted policy with perf_event_open() access control capabilities:
15 1. Download selinux-policy SRPM package (e.g. selinux-policy-3.14.4-48.fc31.src.rpm on FC31)
18 # rpm -Uhv selinux-policy-3.14.4-48.fc31.src.rpm
22 # rpmbuild -bp selinux-policy.spec
24 3. Place patch below at rpmbuild/BUILD/selinux-policy-b86eaaf4dbcf2d51dd4432df7185c0eaf3cbcc02
27 # patch -p1 < selinux-policy-perf-events-perfmon.patch
28 patching file policy/flask/access_vectors
29 patching file policy/flask/security_classes
30 # cat selinux-policy
[all...]
/linux/drivers/hwtracing/stm/
H A Dpolicy.c3 * System Trace Module (STM) master/channel allocation policy management
6 * A master/channel allocation policy allows mapping string identifiers to
21 * STP Master/Channel allocation policy configfs layout.
31 struct stp_policy *policy; member
110 stm = policy_node->policy->stm; in stp_policy_node_masters_store()
157 stm = policy_node->policy->stm; in stp_policy_node_channels_store()
228 struct stp_policy *policy; in stp_policy_node_make() local
231 policy = container_of(group, struct stp_policy, group); in stp_policy_node_make()
235 policy = parent_node->policy; in stp_policy_node_make()
291 struct stp_policy *policy = to_stp_policy(item); stp_policy_device_show() local
307 struct stp_policy *policy = to_stp_policy(item); stp_policy_protocol_show() local
326 stp_policy_unbind(struct stp_policy * policy) stp_policy_unbind() argument
353 struct stp_policy *policy = to_stp_policy(item); stp_policy_release() local
491 __stp_policy_node_lookup(struct stp_policy * policy,char * s) __stp_policy_node_lookup() argument
[all...]
/linux/Documentation/cpu-freq/
H A Dcpu-drivers.rst48 .init - A pointer to the per-policy initialization function.
68 .exit - A pointer to a per-policy cleanup function called during
71 .suspend - A pointer to a per-policy suspend function which is called
73 policy.
75 .resume - A pointer to a per-policy resume function which is called
78 .ready - A pointer to a per-policy ready function which is called after
79 the policy is fully initialized.
86 .set_boost - A pointer to a per-policy function to enable/disable boost
94 cpufreq driver registers itself, the per-policy initialization function
95 cpufreq_driver.init is called if no cpufreq policy existe
[all...]
/linux/security/apparmor/
H A DKconfig48 bool "Allow loaded policy to be introspected"
52 This option selects whether introspection of loaded policy
55 of loaded policy, and check point and restore support. It
65 This option selects whether introspection of loaded policy
68 checking loaded policy. This option adds to policy load
72 bool "Enable policy hash introspection by default"
76 This option selects whether sha256 hashing of loaded policy
78 loaded policy provide system administrators a quick way to
79 verify that policy i
[all...]
/linux/Documentation/ABI/testing/
H A Dconfigfs-stp-policy1 What: /config/stp-policy
9 What: /config/stp-policy/<device>.<policy>
13 This group is the root of a policy; its name is a concatenation
14 of an stm device name to which this policy applies and an
17 has a policy assigned to it, mkdir will fail with EBUSY.
19 What: /config/stp-policy/<device>.<policy>/device
23 STM device to which this policy applies, read only. Same as the
26 What: /config/stp-policy/<devic
[all...]
/linux/rust/kernel/
H A Dcpufreq.rs55 /// Supports multiple clock domains with per-policy governors in `cpu/cpuN/cpufreq/`.
120 /// Policy data.
210 /// use kernel::cpufreq::{Policy, TableIndex};
212 /// fn show_freq(policy: &Policy) -> Result {
213 /// let table = policy.freq_table()?;
387 /// CPU frequency policy.
393 /// A [`Policy`] instance always corresponds to a valid C `struct cpufreq_policy`.
403 /// use kernel::cpufreq::{ETERNAL_LATENCY_NS, Policy};
405 /// fn update_policy(policy
415 pub struct Policy(Opaque<bindings::cpufreq_policy>); global() struct
417 impl Policy { global() implementation
704 deref_mut(&mut self) -> &mut Policy deref_mut() argument
742 exit(_policy: &mut Policy, _data: Option<Self::PData>) -> Result exit() argument
767 ready(_policy: &mut Policy) ready() argument
780 target(_policy: &mut Policy, _target_freq: u32, _relation: Relation) -> Result target() argument
785 target_index(_policy: &mut Policy, _index: TableIndex) -> Result target_index() argument
790 fast_switch(_policy: &mut Policy, _target_freq: u32) -> u32 fast_switch() argument
795 adjust_perf(_policy: &mut Policy, _min_perf: usize, _target_perf: usize, _capacity: usize) adjust_perf() argument
800 get_intermediate(_policy: &mut Policy, _index: TableIndex) -> u32 get_intermediate() argument
805 target_intermediate(_policy: &mut Policy, _index: TableIndex) -> Result target_intermediate() argument
815 update_limits(_policy: &mut Policy) update_limits() argument
820 bios_limit(_policy: &mut Policy, _limit: &mut u32) -> Result bios_limit() argument
825 set_boost(_policy: &mut Policy, _state: i32) -> Result set_boost() argument
830 register_em(_policy: &mut Policy) register_em() argument
1071 let policy = unsafe { Policy::from_raw_mut(ptr) }; init_callback() localVariable
1088 let policy = unsafe { Policy::from_raw_mut(ptr) }; exit_callback() localVariable
1104 let policy = unsafe { Policy::from_raw_mut(ptr) }; online_callback() localVariable
1119 let policy = unsafe { Policy::from_raw_mut(ptr) }; offline_callback() localVariable
1134 let policy = unsafe { Policy::from_raw_mut(ptr) }; suspend_callback() localVariable
1149 let policy = unsafe { Policy::from_raw_mut(ptr) }; resume_callback() localVariable
1163 let policy = unsafe { Policy::from_raw_mut(ptr) }; ready_callback() localVariable
1192 let policy = unsafe { Policy::from_raw_mut(ptr) }; setpolicy_callback() localVariable
1211 let policy = unsafe { Policy::from_raw_mut(ptr) }; target_callback() localVariable
1229 let policy = unsafe { Policy::from_raw_mut(ptr) }; target_index_callback() localVariable
1251 let policy = unsafe { Policy::from_raw_mut(ptr) }; fast_switch_callback() localVariable
1286 let policy = unsafe { Policy::from_raw_mut(ptr) }; get_intermediate_callback() localVariable
1308 let policy = unsafe { Policy::from_raw_mut(ptr) }; target_intermediate_callback() localVariable
1339 let policy = unsafe { Policy::from_raw_mut(ptr) }; update_limits_callback() localVariable
1354 let mut policy = PolicyCpu::from_cpu(cpu_id)?; bios_limit_callback() localVariable
1374 let policy = unsafe { Policy::from_raw_mut(ptr) }; set_boost_callback() localVariable
1388 let policy = unsafe { Policy::from_raw_mut(ptr) }; register_em_callback() localVariable
[all...]
/linux/Documentation/admin-guide/pm/
H A Dcpufreq.rst85 ``CPUFreq`` Policy Objects
104 of its user space interface is based on the policy concept.
129 Once invoked, the ``CPUFreq`` core checks if the policy pointer is already set
130 for the given CPU and if so, it skips the policy object creation. Otherwise,
131 a new policy object is created and initialized, which involves the creation of
132 a new policy directory in ``sysfs``, and the policy pointer corresponding to
133 the given CPU is set to the new policy object's address in memory.
135 Next, the scaling driver's ``->init()`` callback is invoked with the policy
139 to, represented by its policy objec
[all...]
/linux/kernel/sched/
H A Dcpufreq_schedutil.c19 struct cpufreq_policy *policy; member
83 if (!cpufreq_this_cpu_can_update(sg_policy->policy)) in sugov_should_update_freq()
92 * of policy limits in cpufreq_driver_resolve_freq() or a policy in sugov_should_update_freq()
117 * The policy limits have changed, but if the return value of in sugov_update_next_freq()
122 * policy limits. in sugov_update_next_freq()
147 * correlate frequency and compute capacity for a given cpufreq policy. We use
149 * @policy: the cpufreq policy of the CPU in question.
154 unsigned long get_capacity_ref_freq(struct cpufreq_policy *policy) in get_capacity_ref_freq() argument
196 struct cpufreq_policy *policy = sg_policy->policy; get_next_freq() local
494 struct cpufreq_policy *policy = sg_policy->policy; sugov_next_freq_shared() local
637 sugov_policy_alloc(struct cpufreq_policy * policy) sugov_policy_alloc() argument
672 struct cpufreq_policy *policy = sg_policy->policy; sugov_kthread_create() local
740 sugov_init(struct cpufreq_policy * policy) sugov_init() argument
821 sugov_exit(struct cpufreq_policy * policy) sugov_exit() argument
843 sugov_start(struct cpufreq_policy * policy) sugov_start() argument
876 sugov_stop(struct cpufreq_policy * policy) sugov_stop() argument
892 sugov_limits(struct cpufreq_policy * policy) sugov_limits() argument
932 sugov_is_governor(struct cpufreq_policy * policy) sugov_is_governor() argument
[all...]
/linux/tools/testing/selftests/net/
H A Dxfrm_policy.sh4 # Check xfrm policy resolution. Topology:
15 # ns1: ping 10.0.1.253: passes via ipsec tunnel (direct policy)
16 # ns2: ping 10.0.2.253: passes via ipsec tunnel (direct policy)
38 ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tunnel priority 100 action allow
40 ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tunnel priority 100 action allow
64 # Adding a policy for '10.0.1.0/23' will make it necessary to
74 # adds new nodes to tree (neither network exists yet in policy database).
75 ip -net $ns xfrm policy add src 10.1.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block
78 ip -net $ns xfrm policy add src 10.2.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block
81 ip -net $ns xfrm policy ad
[all...]

12345678910>>...54