Home
last modified time | relevance | path

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

12345678910>>...43

/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()
149 * - policy
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 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 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()
72 * Any routine that writes to the policy struct will hold the "rwsem" of
[all …]
H A Damd-pstate.c239 static int msr_update_perf(struct cpufreq_policy *policy, u8 min_perf, in msr_update_perf() argument
242 struct amd_cpudata *cpudata = policy->driver_data; in msr_update_perf()
260 policy->boost_enabled, in msr_update_perf()
283 static inline int amd_pstate_update_perf(struct cpufreq_policy *policy, in amd_pstate_update_perf() argument
288 return static_call(amd_pstate_update_perf)(policy, min_perf, des_perf, in amd_pstate_update_perf()
292 static int msr_set_epp(struct cpufreq_policy *policy, u8 epp) in msr_set_epp() argument
294 struct amd_cpudata *cpudata = policy->driver_data; in msr_set_epp()
310 policy->boost_enabled, in msr_set_epp()
331 static inline int amd_pstate_set_epp(struct cpufreq_policy *policy, u8 epp) in amd_pstate_set_epp() argument
333 return static_call(amd_pstate_set_epp)(policy, epp); in amd_pstate_set_epp()
[all …]
H A Dcppc_cpufreq.c150 static void cppc_cpufreq_cpu_fie_init(struct cpufreq_policy *policy) in cppc_cpufreq_cpu_fie_init() argument
159 for_each_cpu(cpu, policy->cpus) { in cppc_cpufreq_cpu_fie_init()
162 cppc_fi->cpu_data = policy->driver_data; in cppc_cpufreq_cpu_fie_init()
183 topology_set_scale_freq_source(sftd, policy->cpus); in cppc_cpufreq_cpu_fie_init()
187 * We free all the resources on policy's removal and not on CPU removal as the
192 * We just need to make sure to remove them all on policy->exit().
194 static void cppc_cpufreq_cpu_fie_exit(struct cpufreq_policy *policy) in cppc_cpufreq_cpu_fie_exit() argument
202 /* policy->cpus will be empty here, use related_cpus instead */ in cppc_cpufreq_cpu_fie_exit()
203 topology_clear_scale_freq_source(SCALE_FREQ_SOURCE_CPPC, policy->related_cpus); in cppc_cpufreq_cpu_fie_exit()
205 for_each_cpu(cpu, policy->related_cpus) { in cppc_cpufreq_cpu_fie_exit()
[all …]
H A Dcpufreq_ondemand.c37 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 Dmediatek-cpufreq-hw.c100 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->freq_table[index].frequency; in mtk_cpufreq_hw_target_index()
[all …]
H A Dscpi-cpufreq.c32 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 Damd_freq_sensitivity.c38 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 Dscmi-cpufreq.c41 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 Dcpufreq_stats.c58 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->stats; in cpufreq_stats_free_table()
[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->flags & FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64) in supported_iv_ino_lblk_policy()
[all …]
/linux/net/netlink/
H A Dpolicy.c3 * NETLINK Policy advertisement to userspace
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 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 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-perf-events-perfmon.patch
31 diff -Nura a/policy/flask/access_vectors b/policy/flask/access_vectors
[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()
238 if (!policy->stm) in stp_policy_node_make()
[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 in the kernel matches what is expected,
80 however it can slow down policy load on some devices. In
[all …]
/linux/rust/kernel/
H A Dcpufreq.rs54 /// Supports multiple clock domains with per-policy governors in `cpu/cpuN/cpufreq/`.
119 /// Policy data.
209 /// use kernel::cpufreq::{Policy, TableIndex};
211 /// fn show_freq(policy: &Policy) -> Result {
212 /// let table = policy.freq_table()?;
391 /// CPU frequency policy.
397 /// A [`Policy`] instance always corresponds to a valid C `struct cpufreq_policy`.
407 /// use kernel::cpufreq::{DEFAULT_TRANSITION_LATENCY_NS, Policy};
410 /// 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
1269 let policy = unsafe { Policy::from_raw_mut(ptr) }; adjust_perf_callback() localVariable
1285 let policy = unsafe { Policy::from_raw_mut(ptr) }; get_intermediate_callback() localVariable
1307 let policy = unsafe { Policy::from_raw_mut(ptr) }; target_intermediate_callback() localVariable
1338 let policy = unsafe { Policy::from_raw_mut(ptr) }; update_limits_callback() localVariable
1353 let mut policy = PolicyCpu::from_cpu(cpu_id)?; bios_limit_callback() localVariable
1373 let policy = unsafe { Policy::from_raw_mut(ptr) }; set_boost_callback() localVariable
1387 let policy = unsafe { Policy::from_raw_mut(ptr) }; register_em_callback() localVariable
[all...]
/linux/kernel/sched/
H A Dcpufreq_schedutil.c19 struct cpufreq_policy *policy; member
95 if (!cpufreq_this_cpu_can_update(sg_policy->policy)) in sugov_should_update_freq()
104 * of policy limits in cpufreq_driver_resolve_freq() or a policy in sugov_should_update_freq()
129 * The policy limits have changed, but if the return value of in sugov_update_next_freq()
134 * policy limits. in sugov_update_next_freq()
159 * correlate frequency and compute capacity for a given cpufreq policy. We use
161 * @policy: the cpufreq policy of the CPU in question.
166 unsigned long get_capacity_ref_freq(struct cpufreq_policy *policy) in get_capacity_ref_freq() argument
168 unsigned int freq = arch_scale_freq_ref(policy->cpu); in get_capacity_ref_freq()
174 return policy->cpuinfo.max_freq; in get_capacity_ref_freq()
[all …]
H A Dsyscalls.c19 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()
249 p->policy = policy; in DEFINE_CLASS()
[all …]
/linux/security/selinux/ss/
H A Dservices.c15 * 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()
249 mls_enabled = policy->policydb.mls_enabled; in security_mls_enabled()
[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/<device>.<policy>/<node>
30 Policy node is a string identifier that software clients will
34 What: /config/stp-policy/<device>.<policy>/<node>/masters
[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 tu…
40 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu…
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 add src 10.2.0.0/23 dst 10.0.1.0/24 dir fwd priority 200 action block
[all …]
H A Dnl_nlctrl.py5 Tests for the nlctrl genetlink family (family info and policy dumps).
33 The policy map in the Netlink replies looks like this:
35 [{'family-id': 16, 'op-policy': {'do': 0, 'dump': 0, 'op-id': 3}},
36 {'family-id': 16, 'op-policy': {'dump': 1, 'op-id': 4}}, ...]
42 The policy itself is discarded here, only return which command has policy.
46 if 'op-policy' not in msg:
48 modes = dict(msg['op-policy'])
61 # All ops in nlctrl and netdev have a policy
114 # dev-get: do has a real policy with ifindex, dump has no policy
115 # (only the reject-all policy with maxattr=0)
[all …]
/linux/Documentation/trace/
H A Dstm.rst26 To solve this mapping problem, stm class provides a policy management
28 identifiers to ranges of masters and channels. If these rules (policy)
32 This policy is a tree structure containing rules (policy_node) that
34 associated with it, located in "stp-policy" subsystem directory in
35 configfs. The topmost directory's name (the policy) is formatted as
36 the STM device name to which this policy applies and an arbitrary
40 $ ls /config/stp-policy/dummy_stm.my-policy/user
42 $ cat /config/stp-policy/dummy_stm.my-policy/user/masters
44 $ cat /config/stp-policy/dummy_stm.my-policy/user/channels
60 In order to find an appropriate policy node for a given trace source,
[all …]
H A Dsys-t.rst15 a policy for your STM device, by specifying it in the policy name:
17 # mkdir /config/stp-policy/dummy_stm.0:p_sys-t.my-policy/
19 In other words, the policy name format is extended like this:
23 With Intel TH, therefore it can look like "0-sth:p_sys-t.my-policy".
30 # cat /config/stp-policy/dummy_stm.0:p_sys-t.my-policy/protocol
33 Now, with the MIPI SyS-T protocol driver, each policy node in the
37 # mkdir /config/stp-policy/dummy_stm.0:p_sys-t.my-policy/default
38 # ls /config/stp-policy/dummy_stm.0:p_sys-t.my-policy/default
59 See Documentation/ABI/testing/configfs-stp-policy-p_sys-t for more
/linux/security/ipe/
H A Dpolicy.c12 #include "policy.h"
16 /* lock for synchronizing writers across ipe policy */
21 * @p: Policy to extract the version from.
42 * ipe_free_policy() - Deallocate a given IPE policy.
43 * @p: Supplies the policy to free.
76 * ipe_update_policy() - parse a new policy and replace old with it.
77 * @root: Supplies a pointer to the securityfs inode saved the policy.
78 * @text: Supplies a pointer to the plain text policy.
89 * * %-ENOENT - Policy was deleted while updating
90 * * %-EINVAL - Policy name mismatch
[all …]

12345678910>>...43