Searched refs:policy (Results 26 - 50 of 505) sorted by relevance

1234567891011>>

/linux-master/net/netlink/
H A DMakefile6 obj-y := af_netlink.o genetlink.o policy.o
H A Dpolicy.c22 const struct nla_policy *policy; member in struct:netlink_policy_dump_state::__anon3206
28 const struct nla_policy *policy,
34 if (!policy || !maxtype)
38 if (state->policies[i].policy == policy &&
42 if (!state->policies[i].policy) {
43 state->policies[i].policy = policy;
60 state->policies[old_n_alloc].policy = policy;
27 add_policy(struct netlink_policy_dump_state **statep, const struct nla_policy *policy, unsigned int maxtype) argument
82 netlink_policy_dump_get_policy_idx(struct netlink_policy_dump_state *state, const struct nla_policy *policy, unsigned int maxtype) argument
127 netlink_policy_dump_add_policy(struct netlink_policy_dump_state **pstate, const struct nla_policy *policy, unsigned int maxtype) argument
153 const struct nla_policy *policy; local
434 struct nlattr *policy; local
[all...]
/linux-master/drivers/block/drbd/
H A Ddrbd_nla.h6 const struct nla_policy *policy);
/linux-master/security/selinux/include/
H A Dconditional.h16 int security_get_bools(struct selinux_policy *policy, u32 *len, char ***names,
/linux-master/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 in struct:stp_policy_node
110 stm = policy_node->policy->stm;
157 stm = policy_node->policy->stm;
228 struct stp_policy *policy; local
231 policy = container_of(group, struct stp_policy, group);
235 policy = parent_node->policy;
291 struct stp_policy *policy = to_stp_policy(item); local
307 struct stp_policy *policy = to_stp_policy(item); local
326 stp_policy_unbind(struct stp_policy *policy) argument
353 struct stp_policy *policy = to_stp_policy(item); local
491 __stp_policy_node_lookup(struct stp_policy *policy, char *s) argument
[all...]
/linux-master/tools/testing/selftests/kvm/include/
H A Dnumaif.h20 long get_mempolicy(int *policy, const unsigned long *nmask, argument
23 return syscall(__NR_get_mempolicy, policy, nmask,
/linux-master/drivers/cpufreq/
H A Dmediatek-cpufreq-hw.c60 struct cpufreq_policy *policy; local
63 policy = cpufreq_cpu_get_raw(cpu_dev->id);
64 if (!policy)
67 data = policy->driver_data;
83 static int mtk_cpufreq_hw_target_index(struct cpufreq_policy *policy, argument
86 struct mtk_cpufreq_data *data = policy->driver_data;
96 struct cpufreq_policy *policy; local
99 policy = cpufreq_cpu_get_raw(cpu);
100 if (!policy)
103 data = policy
111 mtk_cpufreq_hw_fast_switch(struct cpufreq_policy *policy, unsigned int target_freq) argument
158 mtk_cpu_resources_init(struct platform_device *pdev, struct cpufreq_policy *policy, const u16 *offsets) argument
222 mtk_cpufreq_hw_cpu_init(struct cpufreq_policy *policy) argument
263 mtk_cpufreq_hw_cpu_exit(struct cpufreq_policy *policy) argument
277 mtk_cpufreq_register_em(struct cpufreq_policy *policy) argument
[all...]
H A Dqcom-cpufreq-hw.c57 struct cpufreq_policy *policy; member in struct:qcom_cpufreq_data
71 static int qcom_cpufreq_set_bw(struct cpufreq_policy *policy, argument
79 dev = get_cpu_device(policy->cpu);
112 static int qcom_cpufreq_hw_target_index(struct cpufreq_policy *policy, argument
115 struct qcom_cpufreq_data *data = policy->driver_data;
117 unsigned long freq = policy->freq_table[index].frequency;
123 for (i = 1; i < cpumask_weight(policy->related_cpus); i++)
127 qcom_cpufreq_set_bw(policy, freq);
149 struct cpufreq_policy *policy; local
152 policy
168 struct cpufreq_policy *policy; local
182 qcom_cpufreq_hw_fast_switch(struct cpufreq_policy *policy, unsigned int target_freq) argument
200 qcom_cpufreq_hw_read_lut(struct device *cpu_dev, struct cpufreq_policy *policy) argument
326 struct cpufreq_policy *policy = data->policy; local
426 qcom_cpufreq_hw_lmh_init(struct cpufreq_policy *policy, int index) argument
464 qcom_cpufreq_hw_cpu_online(struct cpufreq_policy *policy) argument
485 qcom_cpufreq_hw_cpu_offline(struct cpufreq_policy *policy) argument
511 qcom_cpufreq_hw_cpu_init(struct cpufreq_policy *policy) argument
576 qcom_cpufreq_hw_cpu_exit(struct cpufreq_policy *policy) argument
590 qcom_cpufreq_ready(struct cpufreq_policy *policy) argument
[all...]
H A Dcpufreq_stats.c58 static ssize_t show_total_trans(struct cpufreq_policy *policy, char *buf) argument
60 struct cpufreq_stats *stats = policy->stats;
69 static ssize_t show_time_in_state(struct cpufreq_policy *policy, char *buf) argument
71 struct cpufreq_stats *stats = policy->stats;
103 static ssize_t store_reset(struct cpufreq_policy *policy, const char *buf, argument
106 struct cpufreq_stats *stats = policy->stats;
124 static ssize_t show_trans_table(struct cpufreq_policy *policy, char *buf) argument
126 struct cpufreq_stats *stats = policy->stats;
194 void cpufreq_stats_free_table(struct cpufreq_policy *policy) argument
196 struct cpufreq_stats *stats = policy
210 cpufreq_stats_create_table(struct cpufreq_policy *policy) argument
265 cpufreq_stats_record_transition(struct cpufreq_policy *policy, unsigned int new_freq) argument
[all...]
H A Dapple-soc-cpufreq.c106 struct cpufreq_policy *policy = cpufreq_cpu_get_raw(cpu); local
107 struct apple_cpu_priv *priv = policy->driver_data;
125 cpufreq_for_each_valid_entry(p, policy->freq_table)
134 static int apple_soc_cpufreq_set_target(struct cpufreq_policy *policy, argument
137 struct apple_cpu_priv *priv = policy->driver_data;
138 unsigned int pstate = policy->freq_table[index].driver_data;
161 static unsigned int apple_soc_cpufreq_fast_switch(struct cpufreq_policy *policy, argument
164 if (apple_soc_cpufreq_set_target(policy, policy->cached_resolved_idx) < 0)
167 return policy
170 apple_soc_cpufreq_find_cluster(struct cpufreq_policy *policy, void __iomem **reg_base, const struct apple_soc_cpufreq_info **info) argument
204 apple_soc_cpufreq_init(struct cpufreq_policy *policy) argument
308 apple_soc_cpufreq_exit(struct cpufreq_policy *policy) argument
[all...]
H A Dcpufreq_ondemand.c60 static unsigned int generic_powersave_bias_target(struct cpufreq_policy *policy, argument
67 struct policy_dbs_info *policy_dbs = policy->governor_data;
71 struct cpufreq_frequency_table *freq_table = policy->freq_table;
79 index = cpufreq_frequency_table_target(policy, freq_next, relation);
85 index = cpufreq_table_find_index_h(policy, freq_avg,
88 index = cpufreq_table_find_index_l(policy, freq_avg,
107 static void ondemand_powersave_bias_init(struct cpufreq_policy *policy) argument
109 struct od_policy_dbs_info *dbs_info = to_dbs_info(policy->governor_data);
114 static void dbs_freq_increase(struct cpufreq_policy *policy, unsigned int freq) argument
116 struct policy_dbs_info *policy_dbs = policy
135 od_update(struct cpufreq_policy *policy) argument
171 od_dbs_update(struct cpufreq_policy *policy) argument
390 od_start(struct cpufreq_policy *policy) argument
428 struct cpufreq_policy *policy; local
[all...]
H A Ds3c64xx-cpufreq.c51 static int s3c64xx_cpufreq_set_target(struct cpufreq_policy *policy, argument
58 old_freq = clk_get_rate(policy->clk) / 1000;
75 ret = clk_set_rate(policy->clk, new_freq * 1000);
90 if (clk_set_rate(policy->clk, old_freq * 1000) < 0)
99 clk_get_rate(policy->clk) / 1000);
143 static int s3c64xx_cpufreq_driver_init(struct cpufreq_policy *policy) argument
147 if (policy->cpu != 0)
150 policy->clk = clk_get(NULL, "armclk");
151 if (IS_ERR(policy->clk)) {
153 PTR_ERR(policy
[all...]
H A Domap-cpufreq.c42 static int omap_target(struct cpufreq_policy *policy, unsigned int index) argument
49 old_freq = policy->cur;
53 ret = clk_round_rate(policy->clk, freq);
89 ret = clk_set_rate(policy->clk, new_freq * 1000);
97 clk_set_rate(policy->clk, old_freq * 1000);
111 static int omap_cpu_init(struct cpufreq_policy *policy) argument
115 policy->clk = clk_get(NULL, "cpufreq_ck");
116 if (IS_ERR(policy->clk))
117 return PTR_ERR(policy->clk);
124 __func__, policy
138 omap_cpu_exit(struct cpufreq_policy *policy) argument
[all...]
H A Dcpufreq_conservative.c38 struct cpufreq_policy *policy)
40 unsigned int freq_step = (cs_tuners->freq_step * policy->max) / 100;
58 static unsigned int cs_dbs_update(struct cpufreq_policy *policy) argument
60 struct policy_dbs_info *policy_dbs = policy->governor_data;
65 unsigned int load = dbs_update(policy);
80 if (requested_freq > policy->max || requested_freq < policy->min) {
81 requested_freq = policy->cur;
85 freq_step = get_freq_step(cs_tuners, policy);
94 if (requested_freq > policy
37 get_freq_step(struct cs_dbs_tuners *cs_tuners, struct cpufreq_policy *policy) argument
308 cs_start(struct cpufreq_policy *policy) argument
[all...]
H A Dscmi-cpufreq.c37 struct cpufreq_policy *policy = cpufreq_cpu_get_raw(cpu); local
38 struct scmi_data *priv = policy->driver_data;
54 scmi_cpufreq_set_target(struct cpufreq_policy *policy, unsigned int index) argument
56 struct scmi_data *priv = policy->driver_data;
57 u64 freq = policy->freq_table[index].frequency;
62 static unsigned int scmi_cpufreq_fast_switch(struct cpufreq_policy *policy, argument
65 struct scmi_data *priv = policy->driver_data;
177 static int scmi_cpufreq_init(struct cpufreq_policy *policy) argument
185 cpu_dev = get_cpu_device(policy->cpu);
187 pr_err("failed to get cpu%d device\n", policy
311 scmi_cpufreq_exit(struct cpufreq_policy *policy) argument
323 scmi_cpufreq_register_em(struct cpufreq_policy *policy) argument
[all...]
H A Dacpi-cpufreq.c136 static int set_boost(struct cpufreq_policy *policy, int val) argument
138 on_each_cpu_mask(policy->cpus, boost_set_msr_each,
141 cpumask_pr_args(policy->cpus), str_enabled_disabled(val));
146 static ssize_t show_freqdomain_cpus(struct cpufreq_policy *policy, char *buf) argument
148 struct acpi_cpufreq_data *data = policy->driver_data;
159 static ssize_t store_cpb(struct cpufreq_policy *policy, const char *buf, argument
173 set_boost(policy, val);
179 static ssize_t show_cpb(struct cpufreq_policy *policy, char *buf) argument
201 static unsigned extract_io(struct cpufreq_policy *policy, u32 value) argument
203 struct acpi_cpufreq_data *data = policy
216 extract_msr(struct cpufreq_policy *policy, u32 msr) argument
237 extract_freq(struct cpufreq_policy *policy, u32 val) argument
370 struct cpufreq_policy *policy; local
399 check_freqs(struct cpufreq_policy *policy, const struct cpumask *mask, unsigned int freq) argument
415 acpi_cpufreq_target(struct cpufreq_policy *policy, unsigned int index) argument
465 acpi_cpufreq_fast_switch(struct cpufreq_policy *policy, unsigned int target_freq) argument
670 acpi_cpufreq_cpu_init(struct cpufreq_policy *policy) argument
909 acpi_cpufreq_cpu_exit(struct cpufreq_policy *policy) argument
926 acpi_cpufreq_resume(struct cpufreq_policy *policy) argument
[all...]
H A Dcpufreq_governor.h37 /* Governor demand based switching data (per-policy or global). */
77 /* Common to all CPUs of a policy */
79 struct cpufreq_policy *policy; member in struct:policy_dbs_info
81 * Per policy mutex that serializes load evaluation from limit-change
91 /* dbs_data may be shared between multiple policy objects */
135 unsigned int (*gov_dbs_update)(struct cpufreq_policy *policy);
140 void (*start)(struct cpufreq_policy *policy);
143 static inline struct dbs_governor *dbs_governor_of(struct cpufreq_policy *policy) argument
145 return container_of(policy->governor, struct dbs_governor, gov);
149 int cpufreq_dbs_governor_init(struct cpufreq_policy *policy);
[all...]
H A Dcpufreq-nforce2.c242 * nforce2_target - set a new CPUFreq policy
243 * @policy: new policy
248 * Sets a new CPUFreq policy.
250 static int nforce2_target(struct cpufreq_policy *policy, argument
257 if ((target_freq > policy->max) || (target_freq < policy->min))
262 freqs.old = nforce2_get(policy->cpu);
271 cpufreq_freq_transition_begin(policy, &freqs);
285 cpufreq_freq_transition_end(policy,
294 nforce2_verify(struct cpufreq_policy_data *policy) argument
307 nforce2_cpu_init(struct cpufreq_policy *policy) argument
362 nforce2_cpu_exit(struct cpufreq_policy *policy) argument
[all...]
H A Dbmips-cpufreq.c66 bmips_cpufreq_get_freq_table(const struct cpufreq_policy *policy) argument
105 static int bmips_cpufreq_target_index(struct cpufreq_policy *policy, argument
108 unsigned int div = policy->freq_table[index].driver_data;
124 static int bmips_cpufreq_exit(struct cpufreq_policy *policy) argument
126 kfree(policy->freq_table);
131 static int bmips_cpufreq_init(struct cpufreq_policy *policy) argument
135 freq_table = bmips_cpufreq_get_freq_table(policy);
142 cpufreq_generic_init(policy, freq_table, TRANSITION_LATENCY);
H A Dqoriq-cpufreq.c86 static void set_affected_cpus(struct cpufreq_policy *policy) argument
88 struct cpumask *dstp = policy->cpus;
99 if (clk_is_match(policy->clk, clk))
155 static int qoriq_cpufreq_cpu_init(struct cpufreq_policy *policy) argument
164 unsigned int cpu = policy->cpu;
175 policy->clk = of_clk_get(np, 0);
176 if (IS_ERR(policy->clk)) {
181 hwclk = __clk_get_hw(policy->clk);
202 policy->freq_table = table;
206 set_affected_cpus(policy);
228 qoriq_cpufreq_cpu_exit(struct cpufreq_policy *policy) argument
240 qoriq_cpufreq_target(struct cpufreq_policy *policy, unsigned int index) argument
[all...]
/linux-master/security/tomoyo/
H A DMakefile4 targets += builtin-policy.h
14 $(obj)/builtin-policy.h: $(wildcard $(obj)/policy/*.conf $(srctree)/$(src)/policy/*.conf.default) FORCE
15 $(call if_changed,policy)
18 $(obj)/common.o: $(obj)/builtin-policy.h
/linux-master/drivers/thermal/
H A Dcpufreq_cooling.c62 * @policy: cpufreq policy.
75 struct cpufreq_policy *policy; member in struct:cpufreq_cooling_device
239 struct cpufreq_policy *policy = cpufreq_cdev->policy; local
241 freq = cpufreq_quick_get(policy->cpu);
243 for_each_cpu(cpu, policy->related_cpus) {
258 trace_thermal_power_cpu_get_power_simple(policy->cpu, *power);
287 num_cpus = cpumask_weight(cpufreq_cdev->policy->cpus);
322 struct cpufreq_policy *policy local
336 struct cpufreq_policy *policy; local
395 struct cpufreq_policy *policy; local
521 __cpufreq_cooling_register(struct device_node *np, struct cpufreq_policy *policy, struct em_perf_domain *em) argument
631 cpufreq_cooling_register(struct cpufreq_policy *policy) argument
654 of_cpufreq_cooling_register(struct cpufreq_policy *policy) argument
[all...]
/linux-master/kernel/sched/
H A Dcpufreq_schedutil.c17 struct cpufreq_policy *policy; member in struct:sugov_policy
81 if (!cpufreq_this_cpu_can_update(sg_policy->policy))
119 * correlate frequency and compute capacity for a given cpufreq policy. We use
121 * @policy: the cpufreq policy of the CPU in question.
126 unsigned long get_capacity_ref_freq(struct cpufreq_policy *policy) argument
128 unsigned int freq = arch_scale_freq_ref(policy->cpu);
134 return policy->cpuinfo.max_freq;
140 return policy->cur + (policy
168 struct cpufreq_policy *policy = sg_policy->policy; local
458 struct cpufreq_policy *policy = sg_policy->policy; local
626 sugov_policy_alloc(struct cpufreq_policy *policy) argument
661 struct cpufreq_policy *policy = sg_policy->policy; local
725 sugov_init(struct cpufreq_policy *policy) argument
803 sugov_exit(struct cpufreq_policy *policy) argument
825 sugov_start(struct cpufreq_policy *policy) argument
858 sugov_stop(struct cpufreq_policy *policy) argument
874 sugov_limits(struct cpufreq_policy *policy) argument
[all...]
/linux-master/tools/testing/selftests/kvm/lib/x86_64/
H A Dsev.c38 void sev_vm_launch(struct kvm_vm *vm, uint32_t policy) argument
41 .policy = policy,
50 TEST_ASSERT_EQ(status.policy, policy);
56 if (policy & SEV_POLICY_ES)
90 struct kvm_vm *vm_sev_create_with_one_vcpu(uint32_t policy, void *guest_code, argument
96 .subtype = policy & SEV_POLICY_ES ? VM_SUBTYPE_SEV_ES :
106 sev_vm_launch(vm, policy);
/linux-master/net/core/
H A Dnetdev-genl-gen.c81 .policy = netdev_dev_get_nl_policy,
94 .policy = netdev_page_pool_get_nl_policy,
108 .policy = netdev_page_pool_stats_get_nl_policy,
121 .policy = netdev_queue_get_do_nl_policy,
128 .policy = netdev_queue_get_dump_nl_policy,
135 .policy = netdev_napi_get_do_nl_policy,
142 .policy = netdev_napi_get_dump_nl_policy,
149 .policy = netdev_qstats_get_nl_policy,

Completed in 203 milliseconds

1234567891011>>