/linux/drivers/cpufreq/ |
H A D | cpufreq.c | 83 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 D | freq_table.c | 17 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 D | cpufreq_userspace.c | 26 * @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 D | virtual-cpufreq.c | 92 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 D | sh-cpufreq.c | 33 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 D | amd-pstate.c | 230 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 D | acpi-cpufreq.c | 131 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 D | gx-suspmod.c | 136 /* 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 D | cpufreq_governor.c | 90 * (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 D | longrun.c | 29 * 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 D | cpufreq_ondemand.c | 60 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 D | qcom-cpufreq-hw.c | 58 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...] |
H A D | mediatek-cpufreq-hw.c | 60 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 159 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 275 mtk_cpufreq_register_em(struct cpufreq_policy * policy) mtk_cpufreq_register_em() argument [all...] |
H A D | apple-soc-cpufreq.c | 137 struct cpufreq_policy *policy; in apple_soc_cpufreq_get_rate() local 142 policy = cpufreq_cpu_get_raw(cpu); in apple_soc_cpufreq_get_rate() 143 if (unlikely(!policy)) in apple_soc_cpufreq_get_rate() 146 priv = policy->driver_data; in apple_soc_cpufreq_get_rate() 162 cpufreq_for_each_valid_entry(p, policy->freq_table) in apple_soc_cpufreq_get_rate() 171 static int apple_soc_cpufreq_set_target(struct cpufreq_policy *policy, in apple_soc_cpufreq_set_target() argument 174 struct apple_cpu_priv *priv = policy->driver_data; in apple_soc_cpufreq_set_target() 175 unsigned int pstate = policy->freq_table[index].driver_data; in apple_soc_cpufreq_set_target() 201 static unsigned int apple_soc_cpufreq_fast_switch(struct cpufreq_policy *policy, in apple_soc_cpufreq_fast_switch() argument 204 if (apple_soc_cpufreq_set_target(policy, polic in apple_soc_cpufreq_fast_switch() 210 apple_soc_cpufreq_find_cluster(struct cpufreq_policy * policy,void __iomem ** reg_base,const struct apple_soc_cpufreq_info ** info) apple_soc_cpufreq_find_cluster() argument 238 apple_soc_cpufreq_init(struct cpufreq_policy * policy) apple_soc_cpufreq_init() argument 332 apple_soc_cpufreq_exit(struct cpufreq_policy * policy) apple_soc_cpufreq_exit() argument [all...] |
H A D | amd_freq_sensitivity.c | 39 static unsigned int amd_powersave_bias_target(struct cpufreq_policy *policy, in amd_powersave_bias_target() argument 46 struct cpu_data_t *data = &per_cpu(cpu_data, policy->cpu); in amd_powersave_bias_target() 47 struct policy_dbs_info *policy_dbs = policy->governor_data; in amd_powersave_bias_target() 51 if (!policy->freq_table) in amd_powersave_bias_target() 54 rdmsr_on_cpu(policy->cpu, MSR_AMD64_FREQ_SENSITIVITY_ACTUAL, in amd_powersave_bias_target() 56 rdmsr_on_cpu(policy->cpu, MSR_AMD64_FREQ_SENSITIVITY_REFERENCE, in amd_powersave_bias_target() 63 freq_next = policy->cur; in amd_powersave_bias_target() 72 freq_next = policy->cur; in amd_powersave_bias_target() 83 if (data->freq_prev == policy->cur) in amd_powersave_bias_target() 84 freq_next = policy in amd_powersave_bias_target() [all...] |
H A D | cpufreq_stats.c | 58 static ssize_t show_total_trans(struct cpufreq_policy *policy, char *buf) in show_total_trans() argument 60 struct cpufreq_stats *stats = policy->stats; in show_total_trans() 69 static ssize_t show_time_in_state(struct cpufreq_policy *policy, char *buf) in show_time_in_state() argument 71 struct cpufreq_stats *stats = policy->stats; in show_time_in_state() 103 static ssize_t store_reset(struct cpufreq_policy *policy, const char *buf, in store_reset() argument 106 struct cpufreq_stats *stats = policy->stats; in store_reset() 124 static ssize_t show_trans_table(struct cpufreq_policy *policy, char *buf) in show_trans_table() argument 126 struct cpufreq_stats *stats = policy->stats; in show_trans_table() 194 void cpufreq_stats_free_table(struct cpufreq_policy *policy) in cpufreq_stats_free_table() argument 196 struct cpufreq_stats *stats = policy in cpufreq_stats_free_table() 210 cpufreq_stats_create_table(struct cpufreq_policy * policy) cpufreq_stats_create_table() argument 265 cpufreq_stats_record_transition(struct cpufreq_policy * policy,unsigned int new_freq) cpufreq_stats_record_transition() argument [all...] |
/linux/fs/crypto/ |
H A D | policy.c | 3 * 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/include/linux/ |
H A D | cpufreq.h | 63 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/Documentation/translations/zh_TW/cpu-freq/ |
H A D | cpu-drivers.rst | 103 *policy`` 作爲參數。現在該怎麼做呢? 110 |policy->cpuinfo.min_freq和 | 該CPU支持的最低和最高頻率(kHz) | 111 |policy->cpuinfo.max_freq | | 114 |policy->cpuinfo.transition_latency | CPU在兩個頻率之間切換所需的時間,以 | 119 |policy->cur | 該CPU當前的工作頻率(如適用) | 122 |policy->min, | 必須包含該CPU的"默認策略"。稍後 | 123 |policy->max, | 會用這些值調用 | 124 |policy->policy and, if necessary, | cpufreq_driver.verify和下面函數 | 125 |policy [all...] |
/linux/Documentation/translations/zh_CN/cpu-freq/ |
H A D | cpu-drivers.rst | 103 *policy`` 作为参数。现在该怎么做呢? 110 |policy->cpuinfo.min_freq和 | 该CPU支持的最低和最高频率(kHz) | 111 |policy->cpuinfo.max_freq | | 114 |policy->cpuinfo.transition_latency | CPU在两个频率之间切换所需的时间,以 | 119 |policy->cur | 该CPU当前的工作频率(如适用) | 122 |policy->min, | 必须包含该CPU的"默认策略"。稍后 | 123 |policy->max, | 会用这些值调用 | 124 |policy->policy and, if necessary, | cpufreq_driver.verify和下面函数 | 125 |policy [all...] |
/linux/kernel/sched/ |
H A D | cpufreq_schedutil.c | 19 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/drivers/hwtracing/stm/ |
H A D | policy.c | 3 * 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/drivers/thermal/ |
H A D | cpufreq_cooling.c | 60 * @policy: cpufreq policy. 73 struct cpufreq_policy *policy; member 237 struct cpufreq_policy *policy = cpufreq_cdev->policy; in cpufreq_get_requested_power() local 239 freq = cpufreq_quick_get(policy->cpu); in cpufreq_get_requested_power() 241 for_each_cpu(cpu, policy->related_cpus) { in cpufreq_get_requested_power() 256 trace_thermal_power_cpu_get_power_simple(policy->cpu, *power); in cpufreq_get_requested_power() 285 num_cpus = cpumask_weight(cpufreq_cdev->policy->cpus); in cpufreq_state2power() 320 struct cpufreq_policy *policy in cpufreq_power2state() local 334 struct cpufreq_policy *policy; em_is_sane() local 393 struct cpufreq_policy *policy; get_state_freq() local 517 __cpufreq_cooling_register(struct device_node * np,struct cpufreq_policy * policy,struct em_perf_domain * em) __cpufreq_cooling_register() argument 626 cpufreq_cooling_register(struct cpufreq_policy * policy) cpufreq_cooling_register() argument 649 of_cpufreq_cooling_register(struct cpufreq_policy * policy) of_cpufreq_cooling_register() argument [all...] |
/linux/tools/perf/Documentation/ |
H A D | security.txt | 13 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/security/selinux/ss/ |
H A D | services.c | 15 * Added conditional policy language extensions 20 * Added support for the policy capability bitmap 32 * Added support for runtime switching of the policy type 130 pr_info("SELinux: Class %s not defined in policy.\n", in selinux_set_mapping() 149 pr_info("SELinux: Permission %s in class %s not defined in policy.\n", in selinux_set_mapping() 174 * Get real, policy values from mapped values 186 * Get kernel value for class from its policy value 242 struct selinux_policy *policy; in security_mls_enabled() local 248 policy = rcu_dereference(selinux_state.policy); in security_mls_enabled() 725 security_validtrans_handle_fail(struct selinux_policy * policy,struct sidtab_entry * oentry,struct sidtab_entry * nentry,struct sidtab_entry * tentry,u16 tclass) security_validtrans_handle_fail() argument 759 struct selinux_policy *policy; security_compute_validatetrans() local 863 struct selinux_policy *policy; security_bounded_transition() local 943 avd_init(struct selinux_policy * policy,struct av_decision * avd) avd_init() argument 1033 struct selinux_policy *policy; security_compute_xperms_decision() local 1129 struct selinux_policy *policy; security_compute_av() local 1196 struct selinux_policy *policy; security_compute_av_user() local 1332 struct selinux_policy *policy; security_sidtab_hash_stats() local 1360 struct selinux_policy *policy; security_sid_to_context_core() local 1556 struct selinux_policy *policy; security_context_to_sid_core() local 1686 compute_sid_handle_invalid_context(struct selinux_policy * policy,struct sidtab_entry * sentry,struct sidtab_entry * tentry,u16 tclass,struct context * newcontext) compute_sid_handle_invalid_context() argument 1761 struct selinux_policy *policy; security_compute_sid() local 2170 security_load_policycaps(struct selinux_policy * policy) security_load_policycaps() argument 2197 selinux_policy_free(struct selinux_policy * policy) selinux_policy_free() argument 2209 selinux_policy_cond_free(struct selinux_policy * policy) selinux_policy_cond_free() argument 2448 struct selinux_policy *policy; security_port_sid() local 2500 struct selinux_policy *policy; security_ib_pkey_sid() local 2552 struct selinux_policy *policy; security_ib_endport_sid() local 2604 struct selinux_policy *policy; security_netif_sid() local 2676 struct selinux_policy *policy; security_node_sid() local 2770 struct selinux_policy *policy; security_get_user_sids() local 2889 __security_genfs_sid(struct selinux_policy * policy,const char * fstype,const char * path,u16 orig_sclass,u32 * sid) __security_genfs_sid() argument 2955 struct selinux_policy *policy; security_genfs_sid() local 2973 selinux_policy_genfs_sid(struct selinux_policy * policy,const char * fstype,const char * path,u16 orig_sclass,u32 * sid) selinux_policy_genfs_sid() argument 2989 struct selinux_policy *policy; security_fs_use() local 3045 security_get_bools(struct selinux_policy * policy,u32 * len,char *** names,int ** values) security_get_bools() argument 3172 struct selinux_policy *policy; security_get_bool_value() local 3230 struct selinux_policy *policy; security_sid_mls_copy() local 3341 struct selinux_policy *policy; security_net_peersid_resolve() local 3425 security_get_classes(struct selinux_policy * policy,char *** classes,u32 * nclasses) security_get_classes() argument 3466 security_get_permissions(struct selinux_policy * policy,const char * class,char *** perms,u32 * nperms) security_get_permissions() argument 3514 struct selinux_policy *policy; security_get_reject_unknown() local 3529 struct selinux_policy *policy; security_get_allow_unknown() local 3554 struct selinux_policy *policy; security_policycap_supported() local 3587 struct selinux_policy *policy; selinux_audit_rule_init() local 3712 struct selinux_policy *policy; selinux_audit_rule_match() local 3892 struct selinux_policy *policy; security_netlbl_secattr_to_sid() local 3967 struct selinux_policy *policy; security_netlbl_sid_to_secattr() local 4007 __security_read_policy(struct selinux_policy * policy,void * data,size_t * len) __security_read_policy() argument 4033 struct selinux_policy *policy; security_read_policy() local 4063 struct selinux_policy *policy; security_read_state_kernel() local [all...] |