| /linux/drivers/cpufreq/ |
| H A D | cpufreq.c | 86 static unsigned int __cpufreq_get(struct cpufreq_policy *policy); 87 static int cpufreq_init_governor(struct cpufreq_policy *policy); 88 static void cpufreq_exit_governor(struct cpufreq_policy *policy); 89 static void cpufreq_governor_limits(struct cpufreq_policy *policy); 90 static int cpufreq_set_policy(struct cpufreq_policy *policy, 97 * Two notifier lists: the "policy" list is involved in the 98 * validation process for a new CPU frequency policy; the 127 struct kobject *get_governor_parent_kobj(struct cpufreq_policy *policy) in get_governor_parent_kobj() 130 return &policy->kobj; in get_governor_parent_kobj() 152 * - policy in cpufreq_generic_init() 124 get_governor_parent_kobj(struct cpufreq_policy * policy) get_governor_parent_kobj() argument 151 cpufreq_generic_init(struct cpufreq_policy * policy,struct cpufreq_frequency_table * table,unsigned int transition_latency) cpufreq_generic_init() argument 168 struct cpufreq_policy *policy = per_cpu(cpufreq_cpu_data, cpu); cpufreq_cpu_get_raw() local 182 struct cpufreq_policy *policy = cpufreq_cpu_get_raw(cpu); cpufreq_generic_get() local 207 struct cpufreq_policy *policy = NULL; cpufreq_cpu_get() local 233 cpufreq_cpu_put(struct cpufreq_policy * policy) cpufreq_cpu_put() argument 287 cpufreq_notify_transition(struct cpufreq_policy * policy,struct cpufreq_freqs * freqs,unsigned int state) cpufreq_notify_transition() argument 339 cpufreq_notify_post_transition(struct cpufreq_policy * policy,struct cpufreq_freqs * freqs,int transition_failed) cpufreq_notify_post_transition() argument 351 cpufreq_freq_transition_begin(struct cpufreq_policy * policy,struct cpufreq_freqs * freqs) cpufreq_freq_transition_begin() argument 385 cpufreq_freq_transition_end(struct cpufreq_policy * policy,struct cpufreq_freqs * freqs,int transition_failed) cpufreq_freq_transition_end() argument 438 cpufreq_enable_fast_switch(struct cpufreq_policy * policy) cpufreq_enable_fast_switch() argument 462 cpufreq_disable_fast_switch(struct cpufreq_policy * policy) cpufreq_disable_fast_switch() argument 474 __resolve_freq(struct cpufreq_policy * policy,unsigned int target_freq,unsigned int min,unsigned int max,unsigned int relation) __resolve_freq() argument 503 cpufreq_driver_resolve_freq(struct cpufreq_policy * policy,unsigned int target_freq) cpufreq_driver_resolve_freq() argument 524 cpufreq_policy_transition_delay_us(struct cpufreq_policy * policy) cpufreq_policy_transition_delay_us() argument 570 show_local_boost(struct cpufreq_policy * policy,char * buf) show_local_boost() argument 575 policy_set_boost(struct cpufreq_policy * policy,bool enable) policy_set_boost() argument 600 store_local_boost(struct cpufreq_policy * policy,const char * buf,size_t count) store_local_boost() argument 708 cpufreq_avg_freq_supported(struct cpufreq_policy * policy) cpufreq_avg_freq_supported() argument 713 show_scaling_cur_freq(struct cpufreq_policy * policy,char * buf) show_scaling_cur_freq() argument 755 show_cpuinfo_cur_freq(struct cpufreq_policy * policy,char * buf) show_cpuinfo_cur_freq() argument 769 show_cpuinfo_avg_freq(struct cpufreq_policy * policy,char * buf) show_cpuinfo_avg_freq() argument 782 show_scaling_governor(struct cpufreq_policy * policy,char * buf) show_scaling_governor() argument 796 store_scaling_governor(struct cpufreq_policy * policy,const char * buf,size_t count) store_scaling_governor() argument 833 show_scaling_driver(struct cpufreq_policy * policy,char * buf) show_scaling_driver() argument 841 show_scaling_available_governors(struct cpufreq_policy * policy,char * buf) show_scaling_available_governors() argument 888 show_related_cpus(struct cpufreq_policy * policy,char * buf) show_related_cpus() argument 896 show_affected_cpus(struct cpufreq_policy * policy,char * buf) show_affected_cpus() argument 901 store_scaling_setspeed(struct cpufreq_policy * policy,const char * buf,size_t count) store_scaling_setspeed() argument 919 show_scaling_setspeed(struct cpufreq_policy * policy,char * buf) show_scaling_setspeed() argument 930 show_bios_limit(struct cpufreq_policy * policy,char * buf) show_bios_limit() argument 978 struct cpufreq_policy *policy = to_policy(kobj); show() local 995 struct cpufreq_policy *policy = to_policy(kobj); store() local 1011 struct cpufreq_policy *policy = to_policy(kobj); cpufreq_sysfs_release() local 1027 add_cpu_dev_symlink(struct cpufreq_policy * policy,unsigned int cpu,struct device * dev) add_cpu_dev_symlink() argument 1041 remove_cpu_dev_symlink(struct cpufreq_policy * policy,int cpu,struct device * dev) remove_cpu_dev_symlink() argument 1049 cpufreq_add_dev_interface(struct cpufreq_policy * policy) cpufreq_add_dev_interface() argument 1104 cpufreq_init_policy(struct cpufreq_policy * policy) cpufreq_init_policy() argument 1153 cpufreq_add_policy_cpu(struct cpufreq_policy * policy,unsigned int cpu) cpufreq_add_policy_cpu() argument 1177 refresh_frequency_limits(struct cpufreq_policy * policy) refresh_frequency_limits() argument 1189 struct cpufreq_policy *policy = handle_update() local 1202 struct cpufreq_policy *policy = container_of(nb, struct cpufreq_policy, nb_min); cpufreq_notifier_min() local 1211 struct cpufreq_policy *policy = container_of(nb, struct cpufreq_policy, nb_max); cpufreq_notifier_max() local 1217 cpufreq_policy_put_kobj(struct cpufreq_policy * policy) cpufreq_policy_put_kobj() argument 1241 struct cpufreq_policy *policy; cpufreq_policy_alloc() local 1322 cpufreq_policy_free(struct cpufreq_policy * policy) cpufreq_policy_free() argument 1373 cpufreq_policy_init_qos(struct cpufreq_policy * policy) cpufreq_policy_init_qos() argument 1407 cpufreq_policy_online(struct cpufreq_policy * policy,unsigned int cpu,bool new_policy) cpufreq_policy_online() argument 1587 struct cpufreq_policy *policy; cpufreq_online() local 1652 struct cpufreq_policy *policy; cpufreq_add_dev() local 1672 __cpufreq_offline(unsigned int cpu,struct cpufreq_policy * policy) __cpufreq_offline() argument 1721 struct cpufreq_policy *policy; cpufreq_offline() local 1746 struct cpufreq_policy *policy = per_cpu(cpufreq_cpu_data, cpu); cpufreq_remove_dev() local 1785 cpufreq_out_of_sync(struct cpufreq_policy * policy,unsigned int new_freq) cpufreq_out_of_sync() argument 1800 cpufreq_verify_current_freq(struct cpufreq_policy * policy,bool update) cpufreq_verify_current_freq() argument 1900 __cpufreq_get(struct cpufreq_policy * policy) __cpufreq_get() argument 1937 cpufreq_generic_suspend(struct cpufreq_policy * policy) cpufreq_generic_suspend() argument 1969 struct cpufreq_policy *policy; cpufreq_suspend() local 2005 struct cpufreq_policy *policy; cpufreq_resume() local 2197 cpufreq_driver_fast_switch(struct cpufreq_policy * policy,unsigned int target_freq) cpufreq_driver_fast_switch() argument 2247 cpufreq_driver_adjust_perf(struct cpufreq_policy * policy,unsigned long min_perf,unsigned long target_perf,unsigned long max_perf,unsigned long capacity) cpufreq_driver_adjust_perf() argument 2268 __target_intermediate(struct cpufreq_policy * policy,struct cpufreq_freqs * freqs,int index) __target_intermediate() argument 2293 __target_index(struct cpufreq_policy * policy,int index) __target_index() argument 2353 __cpufreq_driver_target(struct cpufreq_policy * policy,unsigned int target_freq,unsigned int relation) __cpufreq_driver_target() argument 2400 cpufreq_driver_target(struct cpufreq_policy * policy,unsigned int target_freq,unsigned int relation) cpufreq_driver_target() argument 2415 cpufreq_init_governor(struct cpufreq_policy * policy) cpufreq_init_governor() argument 2461 cpufreq_exit_governor(struct cpufreq_policy * policy) cpufreq_exit_governor() argument 2474 cpufreq_start_governor(struct cpufreq_policy * policy) cpufreq_start_governor() argument 2500 cpufreq_stop_governor(struct cpufreq_policy * policy) cpufreq_stop_governor() argument 2511 cpufreq_governor_limits(struct cpufreq_policy * policy) cpufreq_governor_limits() argument 2547 struct cpufreq_policy *policy; cpufreq_unregister_governor() local 2585 cpufreq_update_pressure(struct cpufreq_policy * policy) cpufreq_update_pressure() argument 2629 cpufreq_set_policy(struct cpufreq_policy * policy,struct cpufreq_governor * new_gov,unsigned int new_pol) cpufreq_set_policy() argument 2741 cpufreq_policy_refresh(struct cpufreq_policy * policy) cpufreq_policy_refresh() argument 2798 cpufreq_boost_set_sw(struct cpufreq_policy * policy,int state) cpufreq_boost_set_sw() argument 2815 struct cpufreq_policy *policy; cpufreq_boost_trigger_state() local [all...] |
| H A D | cpufreq_userspace.c | 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 struct userspace_policy *userspace = policy->governor_data; in show_speed() 57 static int cpufreq_userspace_policy_init(struct cpufreq_policy *policy) in cpufreq_userspace_policy_init() argument 67 policy->governor_data = userspace; in cpufreq_userspace_policy_init() 75 static void cpufreq_userspace_policy_exit(struct cpufreq_policy *policy) in cpufreq_userspace_policy_exit() argument 77 kfree(policy->governor_data); in cpufreq_userspace_policy_exit() [all …]
|
| H A D | amd-pstate.c | 284 static int msr_update_perf(struct cpufreq_policy *policy, u8 min_perf, in amd_pstate_update_perf() 287 struct amd_cpudata *cpudata = policy->driver_data; in amd_pstate_update_perf() 305 policy->boost_enabled, in msr_set_epp() 328 static inline int amd_pstate_update_perf(struct cpufreq_policy *policy, 333 return static_call(amd_pstate_update_perf)(policy, min_perf, des_perf, in amd_pstate_set_epp() 337 static int msr_set_epp(struct cpufreq_policy *policy, u8 epp) in amd_pstate_set_floor_perf() 339 struct amd_cpudata *cpudata = policy->driver_data; in amd_pstate_set_floor_perf() 355 policy->boost_enabled, in amd_pstate_set_floor_perf() 376 static inline int amd_pstate_set_epp(struct cpufreq_policy *policy, u8 epp) in amd_pstate_init_floor_perf() 378 return static_call(amd_pstate_set_epp)(policy, ep in amd_pstate_init_floor_perf() 239 msr_update_perf(struct cpufreq_policy * policy,u8 min_perf,u8 des_perf,u8 max_perf,u8 epp,bool fast_switch) msr_update_perf() argument 283 amd_pstate_update_perf(struct cpufreq_policy * policy,u8 min_perf,u8 des_perf,u8 max_perf,u8 epp,bool fast_switch) amd_pstate_update_perf() argument 292 msr_set_epp(struct cpufreq_policy * policy,u8 epp) msr_set_epp() argument 331 amd_pstate_set_epp(struct cpufreq_policy * policy,u8 epp) amd_pstate_set_epp() argument 336 amd_pstate_set_floor_perf(struct cpufreq_policy * policy,u8 perf) amd_pstate_set_floor_perf() argument 371 amd_pstate_init_floor_perf(struct cpufreq_policy * policy) amd_pstate_init_floor_perf() argument 406 shmem_set_epp(struct cpufreq_policy * policy,u8 epp) shmem_set_epp() argument 446 msr_cppc_enable(struct cpufreq_policy * policy) msr_cppc_enable() argument 451 shmem_cppc_enable(struct cpufreq_policy * policy) shmem_cppc_enable() argument 458 amd_pstate_cppc_enable(struct cpufreq_policy * policy) amd_pstate_cppc_enable() argument 543 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 626 amd_pstate_update(struct cpufreq_policy * policy,u8 min_perf,u8 des_perf,u8 max_perf,bool fast_switch,int gov_flags) amd_pstate_update() argument 685 amd_pstate_update_min_max_limit(struct cpufreq_policy * policy) amd_pstate_update_min_max_limit() argument 727 amd_pstate_update_freq(struct cpufreq_policy * policy,unsigned int target_freq,bool fast_switch) amd_pstate_update_freq() argument 766 amd_pstate_target(struct cpufreq_policy * policy,unsigned int target_freq,unsigned int relation) amd_pstate_target() argument 773 amd_pstate_fast_switch(struct cpufreq_policy * policy,unsigned int target_freq) amd_pstate_fast_switch() argument 781 amd_pstate_adjust_perf(struct cpufreq_policy * policy,unsigned long _min_perf,unsigned long target_perf,unsigned long _max_perf,unsigned long capacity) amd_pstate_adjust_perf() argument 822 amd_pstate_cpu_boost_update(struct cpufreq_policy * policy,bool on) amd_pstate_cpu_boost_update() argument 844 amd_pstate_set_boost(struct cpufreq_policy * policy,int state) amd_pstate_set_boost() argument 918 amd_pstate_update_limits(struct cpufreq_policy * policy) amd_pstate_update_limits() argument 1050 amd_pstate_cpu_init(struct cpufreq_policy * policy) amd_pstate_cpu_init() argument 1143 amd_pstate_cpu_exit(struct cpufreq_policy * policy) amd_pstate_cpu_exit() argument 1158 amd_pstate_get_balanced_epp(struct cpufreq_policy * policy) amd_pstate_get_balanced_epp() argument 1195 amd_pstate_get_epp_from_platform_profile(struct cpufreq_policy * policy,enum platform_profile_option profile) amd_pstate_get_epp_from_platform_profile() argument 1263 amd_pstate_clear_dynamic_epp(struct cpufreq_policy * policy) amd_pstate_clear_dynamic_epp() argument 1278 amd_pstate_set_dynamic_epp(struct cpufreq_policy * policy) amd_pstate_set_dynamic_epp() argument 1335 show_amd_pstate_max_freq(struct cpufreq_policy * policy,char * buf) show_amd_pstate_max_freq() argument 1343 show_amd_pstate_lowest_nonlinear_freq(struct cpufreq_policy * policy,char * buf) show_amd_pstate_lowest_nonlinear_freq() argument 1360 show_amd_pstate_highest_perf(struct cpufreq_policy * policy,char * buf) show_amd_pstate_highest_perf() argument 1370 show_amd_pstate_prefcore_ranking(struct cpufreq_policy * policy,char * buf) show_amd_pstate_prefcore_ranking() argument 1381 show_amd_pstate_hw_prefcore(struct cpufreq_policy * policy,char * buf) show_amd_pstate_hw_prefcore() argument 1393 show_energy_performance_available_preferences(struct cpufreq_policy * policy,char * buf) show_energy_performance_available_preferences() argument 1410 store_energy_performance_preference(struct cpufreq_policy * policy,const char * buf,size_t count) store_energy_performance_preference() argument 1475 show_energy_performance_preference(struct cpufreq_policy * policy,char * buf) show_energy_performance_preference() argument 1509 store_amd_pstate_floor_freq(struct cpufreq_policy * policy,const char * buf,size_t count) store_amd_pstate_floor_freq() argument 1534 show_amd_pstate_floor_freq(struct cpufreq_policy * policy,char * buf) show_amd_pstate_floor_freq() argument 1542 show_amd_pstate_floor_count(struct cpufreq_policy * policy,char * buf) show_amd_pstate_floor_count() argument 1875 amd_pstate_epp_cpu_init(struct cpufreq_policy * policy) amd_pstate_epp_cpu_init() argument 1974 amd_pstate_epp_cpu_exit(struct cpufreq_policy * policy) amd_pstate_epp_cpu_exit() argument 1995 amd_pstate_epp_update_limit(struct cpufreq_policy * policy,bool policy_change) amd_pstate_epp_update_limit() argument 2017 amd_pstate_epp_set_policy(struct cpufreq_policy * policy) amd_pstate_epp_set_policy() argument 2052 amd_pstate_cpu_online(struct cpufreq_policy * policy) amd_pstate_cpu_online() argument 2067 amd_pstate_cpu_offline(struct cpufreq_policy * policy) amd_pstate_cpu_offline() argument 2089 amd_pstate_suspend(struct cpufreq_policy * policy) amd_pstate_suspend() argument 2118 amd_pstate_resume(struct cpufreq_policy * policy) amd_pstate_resume() argument 2136 amd_pstate_epp_resume(struct cpufreq_policy * policy) amd_pstate_epp_resume() argument [all...] |
| H A D | cppc_cpufreq.c | 154 static void cppc_cpufreq_cpu_fie_init(struct cpufreq_policy *policy) in cppc_cpufreq_cpu_fie_init() 163 for_each_cpu(cpu, policy->cpus) { in cppc_cpufreq_cpu_fie_init() 166 cppc_fi->cpu_data = policy->driver_data; in cppc_cpufreq_cpu_fie_init() 189 /* A shared policy may contain both PCC and non-PCC counters. */ 190 for_each_cpu(cpu, policy->cpus) { 201 * Drain work initialized by this policy even if processor removal has in cppc_cpufreq_cpu_fie_exit() 204 static void cppc_cpufreq_cpu_fie_exit(struct cpufreq_policy *policy) in cppc_cpufreq_cpu_fie_exit() 212 /* policy->cpus will be empty here, use related_cpus instead */ in cppc_cpufreq_cpu_fie_exit() 213 topology_clear_scale_freq_source(SCALE_FREQ_SOURCE_CPPC, policy->related_cpus); 215 for_each_cpu(cpu, policy in cppc_fie_kworker_init() 150 cppc_cpufreq_cpu_fie_init(struct cpufreq_policy * policy) cppc_cpufreq_cpu_fie_init() argument 194 cppc_cpufreq_cpu_fie_exit(struct cpufreq_policy * policy) cppc_cpufreq_cpu_fie_exit() argument 276 cppc_cpufreq_cpu_fie_init(struct cpufreq_policy * policy) cppc_cpufreq_cpu_fie_init() argument 280 cppc_cpufreq_cpu_fie_exit(struct cpufreq_policy * policy) cppc_cpufreq_cpu_fie_exit() argument 294 cppc_cpufreq_get_perf_limits(struct cppc_cpudata * cpu_data,struct cpufreq_policy * policy,u32 * min_perf,u32 * max_perf) cppc_cpufreq_get_perf_limits() argument 314 cppc_cpufreq_update_perf_limits(struct cppc_cpudata * cpu_data,struct cpufreq_policy * policy) cppc_cpufreq_update_perf_limits() argument 321 cppc_cpufreq_set_target(struct cpufreq_policy * policy,unsigned int target_freq,unsigned int relation) cppc_cpufreq_set_target() argument 348 cppc_cpufreq_fast_switch(struct cpufreq_policy * policy,unsigned int target_freq) cppc_cpufreq_fast_switch() argument 370 cppc_verify_policy(struct cpufreq_policy_data * policy) cppc_verify_policy() argument 429 get_perf_level_count(struct cpufreq_policy * policy) get_perf_level_count() argument 463 struct cpufreq_policy *policy; cppc_get_cpu_power() local 533 struct cpufreq_policy *policy; cppc_get_cpu_cost() local 555 cppc_cpufreq_register_em(struct cpufreq_policy * policy) cppc_cpufreq_register_em() argument 647 cppc_cpufreq_put_cpu_data(struct cpufreq_policy * policy) cppc_cpufreq_put_cpu_data() argument 656 cppc_cpufreq_cpu_init(struct cpufreq_policy * policy) cppc_cpufreq_cpu_init() argument 738 cppc_cpufreq_cpu_exit(struct cpufreq_policy * policy) cppc_cpufreq_cpu_exit() argument 845 cppc_cpufreq_set_boost(struct cpufreq_policy * policy,int state) cppc_cpufreq_set_boost() argument 858 show_freqdomain_cpus(struct cpufreq_policy * policy,char * buf) show_freqdomain_cpus() argument 865 show_auto_select(struct cpufreq_policy * policy,char * buf) show_auto_select() argument 882 store_auto_select(struct cpufreq_policy * policy,const char * buf,size_t count) store_auto_select() argument 977 store_energy_performance_preference_val(struct cpufreq_policy * policy,const char * buf,size_t count) store_energy_performance_preference_val() argument 999 struct cpufreq_policy *policy; cppc_get_perf_limited_filtered() local [all...] |
| H A D | cpufreq_ondemand.c | 37 static unsigned int generic_powersave_bias_target(struct cpufreq_policy *policy, in generic_powersave_bias_target() argument 44 struct policy_dbs_info *policy_dbs = policy->governor_data; in generic_powersave_bias_target() 48 struct cpufreq_frequency_table *freq_table = policy->freq_table; in generic_powersave_bias_target() 56 index = cpufreq_frequency_table_target(policy, freq_next, policy->min, in generic_powersave_bias_target() 57 policy->max, relation); in generic_powersave_bias_target() 63 index = cpufreq_table_find_index_h(policy, freq_avg, in generic_powersave_bias_target() 66 index = cpufreq_table_find_index_l(policy, freq_avg, in generic_powersave_bias_target() 85 static void ondemand_powersave_bias_init(struct cpufreq_policy *policy) in ondemand_powersave_bias_init() argument 87 struct od_policy_dbs_info *dbs_info = to_dbs_info(policy->governor_data); in ondemand_powersave_bias_init() 92 static void dbs_freq_increase(struct cpufreq_policy *policy, unsigned int freq) in dbs_freq_increase() argument [all …]
|
| H A D | mediatek-cpufreq-hw.c | 100 struct cpufreq_policy *policy; in mtk_cpufreq_get_cpu_power() local 103 policy = cpufreq_cpu_get_raw(cpu_dev->id); in mtk_cpufreq_get_cpu_power() 104 if (!policy) in mtk_cpufreq_get_cpu_power() 107 data = policy->driver_data; in mtk_cpufreq_get_cpu_power() 124 struct cpufreq_policy *policy) in mtk_cpufreq_hw_fdvfs_switch() argument 126 struct mtk_cpufreq_domain *data = policy->driver_data; in mtk_cpufreq_hw_fdvfs_switch() 131 for_each_cpu(cpu, policy->real_cpus) { in mtk_cpufreq_hw_fdvfs_switch() 136 static int mtk_cpufreq_hw_target_index(struct cpufreq_policy *policy, in mtk_cpufreq_hw_target_index() argument 139 struct mtk_cpufreq_domain *data = policy->driver_data; in mtk_cpufreq_hw_target_index() 143 target_freq = policy in mtk_cpufreq_hw_target_index() 155 struct cpufreq_policy *policy; mtk_cpufreq_hw_get() local 170 mtk_cpufreq_hw_fast_switch(struct cpufreq_policy * policy,unsigned int target_freq) mtk_cpufreq_hw_fast_switch() argument 221 mtk_cpu_resources_init(struct platform_device * pdev,struct cpufreq_policy * policy,struct mtk_cpufreq_priv * priv) mtk_cpu_resources_init() argument 293 mtk_cpufreq_hw_cpu_init(struct cpufreq_policy * policy) mtk_cpufreq_hw_cpu_init() argument 334 mtk_cpufreq_hw_cpu_exit(struct cpufreq_policy * policy) mtk_cpufreq_hw_cpu_exit() argument 346 mtk_cpufreq_register_em(struct cpufreq_policy * policy) mtk_cpufreq_register_em() argument [all...] |
| H A D | scpi-cpufreq.c | 32 struct cpufreq_policy *policy; in scpi_cpufreq_get_rate() local 36 policy = cpufreq_cpu_get_raw(cpu); in scpi_cpufreq_get_rate() 37 if (unlikely(!policy)) in scpi_cpufreq_get_rate() 40 priv = policy->driver_data; in scpi_cpufreq_get_rate() 47 scpi_cpufreq_set_target(struct cpufreq_policy *policy, unsigned int index) in scpi_cpufreq_set_target() argument 49 unsigned long freq_khz = policy->freq_table[index].frequency; in scpi_cpufreq_set_target() 50 struct scpi_data *priv = policy->driver_data; in scpi_cpufreq_set_target() 91 static int scpi_cpufreq_init(struct cpufreq_policy *policy) in scpi_cpufreq_init() argument 99 cpu_dev = get_cpu_device(policy->cpu); in scpi_cpufreq_init() 101 pr_err("failed to get cpu%d device\n", policy->cpu); in scpi_cpufreq_init() [all …]
|
| H A D | amd_freq_sensitivity.c | 38 static unsigned int amd_powersave_bias_target(struct cpufreq_policy *policy, in amd_powersave_bias_target() argument 45 struct cpu_data_t *data = &per_cpu(cpu_data, policy->cpu); in amd_powersave_bias_target() 46 struct policy_dbs_info *policy_dbs = policy->governor_data; in amd_powersave_bias_target() 50 if (!policy->freq_table) in amd_powersave_bias_target() 53 rdmsrq_on_cpu(policy->cpu, MSR_AMD64_FREQ_SENSITIVITY_ACTUAL, &actual.q); in amd_powersave_bias_target() 54 rdmsrq_on_cpu(policy->cpu, MSR_AMD64_FREQ_SENSITIVITY_REFERENCE, &reference.q); in amd_powersave_bias_target() 60 freq_next = policy->cur; in amd_powersave_bias_target() 69 freq_next = policy->cur; in amd_powersave_bias_target() 80 if (data->freq_prev == policy->cur) in amd_powersave_bias_target() 81 freq_next = policy->cur; in amd_powersave_bias_target() [all …]
|
| H A D | cpufreq_stats.c | 62 static ssize_t show_total_trans(struct cpufreq_policy *policy, char *buf) in show_total_trans() 64 struct cpufreq_stats *stats = policy->stats; in show_total_trans() 73 static ssize_t show_time_in_state(struct cpufreq_policy *policy, char *buf) in show_time_in_state() 75 struct cpufreq_stats *stats = policy->stats; in show_time_in_state() 107 static ssize_t store_reset(struct cpufreq_policy *policy, const char *buf, in store_reset() 110 struct cpufreq_stats *stats = policy->stats; in store_reset() 128 static ssize_t show_trans_table(struct cpufreq_policy *policy, char *buf) in show_trans_table() 130 struct cpufreq_stats *stats = policy->stats; in show_trans_table() 198 void cpufreq_stats_free_table(struct cpufreq_policy *policy) in cpufreq_stats_free_table() 200 struct cpufreq_stats *stats = policy in cpufreq_stats_free_table() 58 show_total_trans(struct cpufreq_policy * policy,char * buf) show_total_trans() argument 69 show_time_in_state(struct cpufreq_policy * policy,char * buf) show_time_in_state() argument 103 store_reset(struct cpufreq_policy * policy,const char * buf,size_t count) store_reset() argument 124 show_trans_table(struct cpufreq_policy * policy,char * buf) show_trans_table() argument 194 cpufreq_stats_free_table(struct cpufreq_policy * policy) cpufreq_stats_free_table() argument 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...] |
| H A D | scmi-cpufreq.c | 41 struct cpufreq_policy *policy; in scmi_cpufreq_get_rate() local 46 policy = cpufreq_cpu_get_raw(cpu); in scmi_cpufreq_get_rate() 47 if (unlikely(!policy)) in scmi_cpufreq_get_rate() 50 priv = policy->driver_data; in scmi_cpufreq_get_rate() 64 scmi_cpufreq_set_target(struct cpufreq_policy *policy, unsigned int index) in scmi_cpufreq_set_target() argument 66 struct scmi_data *priv = policy->driver_data; in scmi_cpufreq_set_target() 67 u64 freq = policy->freq_table[index].frequency; in scmi_cpufreq_set_target() 72 static unsigned int scmi_cpufreq_fast_switch(struct cpufreq_policy *policy, in scmi_cpufreq_fast_switch() argument 75 struct scmi_data *priv = policy->driver_data; in scmi_cpufreq_fast_switch() 198 static int scmi_cpufreq_init(struct cpufreq_policy *policy) in scmi_cpufreq_init() argument [all …]
|
| H A D | s3c64xx-cpufreq.c | 53 static int s3c64xx_cpufreq_set_target(struct cpufreq_policy *policy, in s3c64xx_cpufreq_set_target() argument 63 old_freq = clk_get_rate(policy->clk) / 1000; in s3c64xx_cpufreq_set_target() 78 ret = clk_set_rate(policy->clk, new_freq * 1000); in s3c64xx_cpufreq_set_target() 93 if (clk_set_rate(policy->clk, old_freq * 1000) < 0) in s3c64xx_cpufreq_set_target() 102 clk_get_rate(policy->clk) / 1000); in s3c64xx_cpufreq_set_target() 146 static int s3c64xx_cpufreq_driver_init(struct cpufreq_policy *policy) in s3c64xx_cpufreq_driver_init() argument 150 if (policy->cpu != 0) in s3c64xx_cpufreq_driver_init() 153 policy->clk = clk_get(NULL, "armclk"); in s3c64xx_cpufreq_driver_init() 154 if (IS_ERR(policy->clk)) { in s3c64xx_cpufreq_driver_init() 155 pr_err("Unable to obtain ARMCLK: %pe\n", policy in s3c64xx_cpufreq_driver_init() [all...] |
| H A D | cpufreq_governor.h | 38 /* Governor demand based switching data (per-policy or global). */ 78 /* Common to all CPUs of a policy */ 80 struct cpufreq_policy *policy; member 82 * Per policy mutex that serializes load evaluation from limit-change 92 /* dbs_data may be shared between multiple policy objects */ 98 /* Maximum load from the current policy sample. */ 138 unsigned int (*gov_dbs_update)(struct cpufreq_policy *policy); 143 void (*start)(struct cpufreq_policy *policy); 144 void (*limits)(struct cpufreq_policy *policy); 147 static inline struct dbs_governor *dbs_governor_of(struct cpufreq_policy *policy) in dbs_governor_of() 145 dbs_governor_of(struct cpufreq_policy * policy) dbs_governor_of() argument [all...] |
| /linux/fs/crypto/ |
| H A D | policy.c | 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->flags & FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64) in supported_iv_ino_lblk_policy() 136 if (policy->contents_encryption_mode != FSCRYPT_MODE_AES_256_XTS) { in supported_iv_ino_lblk_policy() 174 fscrypt_policy_v2_du_bits(policy, inode)) > 32) { in supported_iv_ino_lblk_policy() 189 if ((policy->flags & FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32) && in supported_iv_ino_lblk_policy() 200 static bool fscrypt_supported_v1_policy(const struct fscrypt_policy_v1 *policy, in fscrypt_supported_v1_policy() argument [all …]
|
| /linux/include/linux/ |
| H A D | cpufreq.h | 61 unsigned int cpu; /* cpu managing this policy, must be online */ 72 unsigned int policy; /* see above */ member 73 unsigned int last_policy; /* policy before unplug */ 95 * - Any routine that wants to read from the policy structure will 97 * - Any routine that will write to the policy structure and/or may take away 98 * the policy altogether (eg. CPU hotplug), will hold this lock in write 107 * policy and that the change will affect all of the policy CPUs then. 129 * the driver to set the frequency for this policy. To be set by the 143 /* Per policy boos 196 struct cpufreq_policy *policy; global() member 226 cpufreq_cpu_put(struct cpufreq_policy * policy) cpufreq_cpu_put() argument 237 policy_is_shared(struct cpufreq_policy * policy) policy_is_shared() argument 301 cpufreq_stats_create_table(struct cpufreq_policy * policy) cpufreq_stats_create_table() argument 302 cpufreq_stats_free_table(struct cpufreq_policy * policy) cpufreq_stats_free_table() argument 303 cpufreq_stats_record_transition(struct cpufreq_policy * policy,unsigned int new_freq) cpufreq_stats_record_transition() argument 501 cpufreq_verify_within_limits(struct cpufreq_policy_data * policy,unsigned int min,unsigned int max) cpufreq_verify_within_limits() argument 510 cpufreq_verify_within_cpu_limits(struct cpufreq_policy_data * policy) cpufreq_verify_within_cpu_limits() argument 668 sugov_is_governor(struct cpufreq_policy * policy) sugov_is_governor() argument 674 cpufreq_policy_apply_limits(struct cpufreq_policy * policy) cpufreq_policy_apply_limits() argument 814 cpufreq_table_find_index_al(struct cpufreq_policy * policy,unsigned int target_freq,bool efficiencies) cpufreq_table_find_index_al() argument 836 cpufreq_table_find_index_dl(struct cpufreq_policy * policy,unsigned int target_freq,bool efficiencies) cpufreq_table_find_index_dl() argument 866 find_index_l(struct cpufreq_policy * policy,unsigned int target_freq,unsigned int min,unsigned int max,bool efficiencies) find_index_l() argument 882 cpufreq_table_find_index_l(struct cpufreq_policy * policy,unsigned int target_freq,bool efficiencies) cpufreq_table_find_index_l() argument 890 cpufreq_table_find_index_ah(struct cpufreq_policy * policy,unsigned int target_freq,bool efficiencies) cpufreq_table_find_index_ah() argument 921 cpufreq_table_find_index_dh(struct cpufreq_policy * policy,unsigned int target_freq,bool efficiencies) cpufreq_table_find_index_dh() argument 942 find_index_h(struct cpufreq_policy * policy,unsigned int target_freq,unsigned int min,unsigned int max,bool efficiencies) find_index_h() argument 958 cpufreq_table_find_index_h(struct cpufreq_policy * policy,unsigned int target_freq,bool efficiencies) cpufreq_table_find_index_h() argument 966 cpufreq_table_find_index_ac(struct cpufreq_policy * policy,unsigned int target_freq,bool efficiencies) cpufreq_table_find_index_ac() argument 1001 cpufreq_table_find_index_dc(struct cpufreq_policy * policy,unsigned int target_freq,bool efficiencies) cpufreq_table_find_index_dc() argument 1035 find_index_c(struct cpufreq_policy * policy,unsigned int target_freq,unsigned int min,unsigned int max,bool efficiencies) find_index_c() argument 1051 cpufreq_table_find_index_c(struct cpufreq_policy * policy,unsigned int target_freq,bool efficiencies) cpufreq_table_find_index_c() argument 1058 cpufreq_is_in_limits(struct cpufreq_policy * policy,unsigned int min,unsigned int max,int idx) cpufreq_is_in_limits() argument 1072 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 1113 cpufreq_table_count_valid_entries(const struct cpufreq_policy * policy) cpufreq_table_count_valid_entries() argument 1138 cpufreq_table_set_inefficient(struct cpufreq_policy * policy,unsigned int frequency) cpufreq_table_set_inefficient() argument 1210 cpufreq_boost_set_sw(struct cpufreq_policy * policy,int state) cpufreq_boost_set_sw() argument 1216 cpufreq_table_set_inefficient(struct cpufreq_policy * policy,unsigned int frequency) cpufreq_table_set_inefficient() argument 1253 cpufreq_register_em_with_opp(struct cpufreq_policy * policy) cpufreq_register_em_with_opp() argument [all...] |
| /linux/Documentation/translations/zh_CN/cpu-freq/ |
| H A D | cpu-drivers.rst | 58 .init - 一个指向per-policy初始化函数的指针。 78 .exit - 一个指向per-policy清理函数的指针,该函数在CPU热插拔过程的CPU_POST_DEAD 81 .suspend - 一个指向per-policy暂停函数的指针,该函数在关中断且在该策略的调节器停止 84 .resume - 一个指向per-policy恢复函数的指针,该函数在关中断且在调节器再一次启动前被 87 .ready - 一个指向per-policy准备函数的指针,该函数在策略完全初始化之后被调用。 94 .set_boost - 一个指向per-policy函数的指针,该函数用来开启/关闭提升(boost)频率功能。 101 略不存在,则会调用per-policy的初始化函数cpufreq_driver.init。请注意,.init()和.exit()例程 103 *policy`` 作为参数。现在该怎么做呢? 110 |policy->cpuinfo.min_freq和 | 该CPU支持的最低和最高频率(kHz) | 111 |policy->cpuinfo.max_freq | | [all …]
|
| /linux/Documentation/translations/zh_TW/cpu-freq/ |
| H A D | cpu-drivers.rst | 58 .init - 一個指向per-policy初始化函數的指針。 78 .exit - 一個指向per-policy清理函數的指針,該函數在CPU熱插拔過程的CPU_POST_DEAD 81 .suspend - 一個指向per-policy暫停函數的指針,該函數在關中斷且在該策略的調節器停止 84 .resume - 一個指向per-policy恢復函數的指針,該函數在關中斷且在調節器再一次啓動前被 87 .ready - 一個指向per-policy準備函數的指針,該函數在策略完全初始化之後被調用。 94 .set_boost - 一個指向per-policy函數的指針,該函數用來開啓/關閉提升(boost)頻率功能。 101 略不存在,則會調用per-policy的初始化函數cpufreq_driver.init。請注意,.init()和.exit()例程 103 *policy`` 作爲參數。現在該怎麼做呢? 110 |policy->cpuinfo.min_freq和 | 該CPU支持的最低和最高頻率(kHz) | 111 |policy->cpuinfo.max_freq | | [all …]
|
| /linux/kernel/sched/ |
| H A D | cpufreq_schedutil.c | 19 struct cpufreq_policy *policy; member 81 * policy. in sugov_should_update_freq() 107 if (!cpufreq_this_cpu_can_update(sg_policy->policy)) in sugov_should_update_freq() 116 * of policy limits in cpufreq_driver_resolve_freq() or a policy in sugov_should_update_freq() 141 * The policy limits have changed, but if the return value of in sugov_update_next_freq() 146 * policy limits. in sugov_update_next_freq() 171 * correlate frequency and compute capacity for a given cpufreq policy. We use in get_capacity_ref_freq() 173 * @policy: the cpufreq policy o in get_capacity_ref_freq() 166 get_capacity_ref_freq(struct cpufreq_policy * policy) get_capacity_ref_freq() argument 208 struct cpufreq_policy *policy = sg_policy->policy; get_next_freq() local 509 struct cpufreq_policy *policy = sg_policy->policy; sugov_next_freq_shared() local 652 sugov_policy_alloc(struct cpufreq_policy * policy) sugov_policy_alloc() argument 687 struct cpufreq_policy *policy = sg_policy->policy; sugov_kthread_create() local 755 sugov_init(struct cpufreq_policy * policy) sugov_init() argument 836 sugov_exit(struct cpufreq_policy * policy) sugov_exit() argument 858 sugov_start(struct cpufreq_policy * policy) sugov_start() argument 902 sugov_stop(struct cpufreq_policy * policy) sugov_stop() argument 918 sugov_limits(struct cpufreq_policy * policy) sugov_limits() argument 958 sugov_is_governor(struct cpufreq_policy * policy) sugov_is_governor() argument [all...] |
| H A D | syscalls.c | 19 static inline int __normal_prio(int policy, int rt_prio, int nice) in __normal_prio() argument 23 if (dl_policy(policy)) in __normal_prio() 25 else if (rt_policy(policy)) in __normal_prio() 42 return __normal_prio(p->policy, p->rt_priority, PRIO_TO_NICE(p->static_prio)); in normal_prio() 164 * sched policy return value kernel prio user prio/nice 236 * sched_setparam() passes in -1 for its policy, to let the functions in DEFINE_CLASS() 244 int policy = attr->sched_policy; in DEFINE_CLASS() local 246 if (policy == SETPARAM_POLICY) in DEFINE_CLASS() 247 policy = p->policy; in DEFINE_CLASS() 288 __setscheduler_dl_pi(int newprio,int policy,struct task_struct * p,struct sched_change_ctx * scope) __setscheduler_dl_pi() argument 309 __setscheduler_dl_pi(int newprio,int policy,struct task_struct * p,struct sched_change_ctx * scope) __setscheduler_dl_pi() argument 437 user_check_sched_setscheduler(struct task_struct * p,const struct sched_attr * attr,int policy,int reset_on_fork) user_check_sched_setscheduler() argument 497 int oldpolicy = -1, policy = attr->sched_policy; __sched_setscheduler() local 725 _sched_setscheduler(struct task_struct * p,int policy,const struct sched_param * param,bool check) _sched_setscheduler() argument 758 sched_setscheduler(struct task_struct * p,int policy,const struct sched_param * param) sched_setscheduler() argument 788 sched_setscheduler_nocheck(struct task_struct * p,int policy,const struct sched_param * param) sched_setscheduler_nocheck() argument 853 do_sched_setscheduler(pid_t pid,int policy,struct sched_param __user * param) do_sched_setscheduler() argument 934 SYSCALL_DEFINE3(sched_setscheduler,pid_t,pid,int,policy,struct sched_param __user *,param) SYSCALL_DEFINE3() argument 1469 SYSCALL_DEFINE1(sched_get_priority_max,int,policy) SYSCALL_DEFINE1() argument 1497 SYSCALL_DEFINE1(sched_get_priority_min,int,policy) SYSCALL_DEFINE1() argument [all...] |
| /linux/drivers/hwtracing/stm/ |
| H A D | policy.c | 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() 238 if (!policy->stm) in stp_policy_node_make() 241 pdrv = policy->stm->pdrv; in stp_policy_node_make() 251 if (policy->stm->pdrv_node_type) in stp_policy_node_make() 252 type = policy->stm->pdrv_node_type; in stp_policy_node_make() [all …]
|
| /linux/net/netlink/ |
| H A D | policy.c | 22 const struct nla_policy *policy; member 28 const struct nla_policy *policy, in add_policy() argument 34 if (!policy) in add_policy() 38 if (state->policies[i].policy == policy && in add_policy() 42 if (!state->policies[i].policy) { in add_policy() 43 state->policies[i].policy = policy; in add_policy() 60 state->policies[old_n_alloc].policy = policy; in add_policy() 83 netlink_policy_dump_get_policy_idx(struct netlink_policy_dump_state * state,const struct nla_policy * policy,unsigned int maxtype) netlink_policy_dump_get_policy_idx() argument 127 netlink_policy_dump_add_policy(struct netlink_policy_dump_state ** pstate,const struct nla_policy * policy,unsigned int maxtype) netlink_policy_dump_add_policy() argument 152 const struct nla_policy *policy; netlink_policy_dump_add_policy() local 438 struct nlattr *policy; netlink_policy_dump_write() local [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-perf-events-perfmon.patch 31 diff -Nura a/policy/flask/access_vectors b/policy/flask/access_vectors [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() 726 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 760 struct selinux_policy *policy; security_compute_validatetrans() local 864 struct selinux_policy *policy; security_bounded_transition() local 944 avd_init(struct selinux_policy * policy,struct av_decision * avd) avd_init() argument 1034 struct selinux_policy *policy; security_compute_xperms_decision() local 1130 struct selinux_policy *policy; security_compute_av() local 1197 struct selinux_policy *policy; security_compute_av_user() local 1333 struct selinux_policy *policy; security_sidtab_hash_stats() local 1361 struct selinux_policy *policy; security_sid_to_context_core() local 1557 struct selinux_policy *policy; security_context_to_sid_core() local 1687 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 1762 struct selinux_policy *policy; security_compute_sid() local 2171 security_load_policycaps(struct selinux_policy * policy) security_load_policycaps() argument 2198 selinux_policy_free(struct selinux_policy * policy) selinux_policy_free() argument 2210 selinux_policy_cond_free(struct selinux_policy * policy) selinux_policy_cond_free() argument 2451 struct selinux_policy *policy; security_port_sid() local 2503 struct selinux_policy *policy; security_ib_pkey_sid() local 2555 struct selinux_policy *policy; security_ib_endport_sid() local 2607 struct selinux_policy *policy; security_netif_sid() local 2679 struct selinux_policy *policy; security_node_sid() local 2767 __security_genfs_sid(struct selinux_policy * policy,const char * fstype,const char * path,u16 orig_sclass,u32 * sid) __security_genfs_sid() argument 2833 struct selinux_policy *policy; security_genfs_sid() local 2851 selinux_policy_genfs_sid(struct selinux_policy * policy,const char * fstype,const char * path,u16 orig_sclass,u32 * sid) selinux_policy_genfs_sid() argument 2867 struct selinux_policy *policy; security_fs_use() local 2923 security_get_bools(struct selinux_policy * policy,u32 * len,char *** names,int ** values) security_get_bools() argument 3050 struct selinux_policy *policy; security_get_bool_value() local 3108 struct selinux_policy *policy; security_sid_mls_copy() local 3219 struct selinux_policy *policy; security_net_peersid_resolve() local 3303 security_get_classes(struct selinux_policy * policy,char *** classes,u32 * nclasses) security_get_classes() argument 3358 security_get_permissions(struct selinux_policy * policy,const char * class,char *** perms,u32 * nperms) security_get_permissions() argument 3406 struct selinux_policy *policy; security_get_reject_unknown() local 3421 struct selinux_policy *policy; security_get_allow_unknown() local 3446 struct selinux_policy *policy; security_policycap_supported() local 3486 struct selinux_policy *policy; selinux_audit_rule_init() local 3611 struct selinux_policy *policy; selinux_audit_rule_match() local 3772 struct selinux_policy *policy; security_netlbl_secattr_to_sid() local 3847 struct selinux_policy *policy; security_netlbl_sid_to_secattr() local 3887 __security_read_policy(struct selinux_policy * policy,void * data,size_t * len) __security_read_policy() argument 3913 struct selinux_policy *policy; security_read_policy() local 3943 struct selinux_policy *policy; security_read_state_kernel() local [all...] |
| /linux/Documentation/ABI/testing/ |
| H A D | configfs-stp-policy | 1 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/<device>.<policy>/<node> 34 What: /config/stp-policy/<device>.<policy>/<node>/masters 41 What: /config/stp-policy/<device>.<policy>/<node>/channels
|
| /linux/security/apparmor/ |
| H A D | Kconfig | 48 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 in the kernel matches what is expected, 80 however it can slow down policy load on some devices. In [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | xfrm_policy.sh | 4 # 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...] |