Searched refs:policy (Results 101 - 125 of 505) sorted by relevance

1234567891011>>

/linux-master/security/apparmor/
H A Dlib.c21 #include "include/policy.h"
55 * Split a namespace name from a profile name (see policy.c for naming
345 state = aa_dfa_next(rules->policy->dfa,
346 rules->policy->start[AA_CLASS_LABEL],
437 * aa_policy_init - initialize a policy structure
438 * @policy: policy to initialize (NOT NULL)
440 * @name: name of the policy, init will make a copy of it (NOT NULL)
445 * Returns: true if policy init successful
447 bool aa_policy_init(struct aa_policy *policy, cons argument
477 aa_policy_destroy(struct aa_policy *policy) argument
[all...]
/linux-master/tools/testing/selftests/cpufreq/
H A Dcpufreq.sh31 policies=$(ls $CPUFREQROOT| grep "policy[0-9].*")
32 for policy in $policies; do
33 $@ $policy
39 policies=$(ls $CPUFREQROOT| grep "policy[0-9].*")
40 for policy in $policies; do
41 $@ $policy &
120 # $1: policy
126 # $1: policy
134 # $1: policy
H A Dspecial-tests.sh20 # $1: policy
47 # $1: policy
68 echo ondemand | sudo tee $CPUFREQROOT/policy*/scaling_governor &
69 echo userspace | sudo tee $CPUFREQROOT/policy*/scaling_governor &
/linux-master/include/linux/sched/
H A Dcpufreq.h24 bool cpufreq_this_cpu_can_update(struct cpufreq_policy *policy);
/linux-master/drivers/cpufreq/
H A Dloongson2_cpufreq.c49 static int loongson2_cpufreq_target(struct cpufreq_policy *policy, argument
64 static int loongson2_cpufreq_cpu_init(struct cpufreq_policy *policy) argument
84 cpufreq_generic_init(policy, &loongson2_clockmod_table[0], 0);
88 static int loongson2_cpufreq_exit(struct cpufreq_policy *policy) argument
H A Ds5pv210-cpufreq.c223 static int s5pv210_target(struct cpufreq_policy *policy, unsigned int index) argument
242 old_freq = policy->cur;
246 priv_index = cpufreq_table_find_index_h(policy, old_freq, false);
498 static int s5pv210_cpu_init(struct cpufreq_policy *policy) argument
503 policy->clk = clk_get(NULL, "armclk");
504 if (IS_ERR(policy->clk))
505 return PTR_ERR(policy->clk);
519 if (policy->cpu != 0) {
543 policy->suspend_freq = SLEEP_FREQ;
544 cpufreq_generic_init(policy, s5pv210_freq_tabl
558 struct cpufreq_policy *policy; local
[all...]
H A Dsparc-us2e-cpufreq.c265 static int us2e_freq_target(struct cpufreq_policy *policy, unsigned int index) argument
267 unsigned int cpu = policy->cpu;
272 static int us2e_freq_cpu_init(struct cpufreq_policy *policy) argument
274 unsigned int cpu = policy->cpu;
292 policy->cpuinfo.transition_latency = 0;
293 policy->cur = clock_tick;
294 policy->freq_table = table;
299 static int us2e_freq_cpu_exit(struct cpufreq_policy *policy) argument
301 us2e_freq_target(policy, 0);
H A Dpxa2xx-cpufreq.c70 /* Use the turbo mode frequencies for the CPUFREQ_POLICY_POWERSAVE policy */
184 static int pxa_set_target(struct cpufreq_policy *policy, unsigned int idx) argument
192 /* Get the current policy */
199 policy->cur / 1000, new_freq_cpu / 1000);
201 if (vcc_core && new_freq_cpu > policy->cur) {
218 if (vcc_core && new_freq_cpu < policy->cur)
224 static int pxa_cpufreq_init(struct cpufreq_policy *policy) argument
237 /* set default policy and cpuinfo */
238 policy->cpuinfo.transition_latency = 1000; /* FIXME: 1 ms, assumed */
269 * Set the policy'
[all...]
H A Dtegra194-cpufreq.c61 void (*set_cpu_ndiv)(struct cpufreq_policy *policy, u64 ndiv);
84 static int tegra_cpufreq_set_bw(struct cpufreq_policy *policy, unsigned long freq_khz) argument
91 dev = get_cpu_device(policy->cpu);
133 static void tegra234_set_cpu_ndiv(struct cpufreq_policy *policy, u64 ndiv) argument
138 for_each_cpu(cpu, policy->cpus)
380 static void tegra194_set_cpu_ndiv(struct cpufreq_policy *policy, u64 ndiv) argument
382 on_each_cpu_mask(policy->cpus, tegra194_set_cpu_ndiv_sysreg, &ndiv, true);
423 static int tegra_cpufreq_init_cpufreq_table(struct cpufreq_policy *policy, argument
436 cpu_dev = get_cpu_device(policy->cpu);
438 pr_err("%s: failed to get cpu%d device\n", __func__, policy
500 tegra194_cpufreq_init(struct cpufreq_policy *policy) argument
538 tegra194_cpufreq_online(struct cpufreq_policy *policy) argument
544 tegra194_cpufreq_offline(struct cpufreq_policy *policy) argument
554 tegra194_cpufreq_exit(struct cpufreq_policy *policy) argument
564 tegra194_cpufreq_set_target(struct cpufreq_policy *policy, unsigned int index) argument
[all...]
H A Delanfreq.c105 static int elanfreq_target(struct cpufreq_policy *policy, argument
144 static int elanfreq_cpu_init(struct cpufreq_policy *policy) argument
163 policy->freq_table = elanfreq_table;
H A Dspear-cpufreq.c103 static int spear_cpufreq_target(struct cpufreq_policy *policy, argument
153 static int spear_cpufreq_init(struct cpufreq_policy *policy) argument
155 policy->clk = spear_cpufreq.clk;
156 cpufreq_generic_init(policy, spear_cpufreq.freq_tbl,
H A Dpcc-cpufreq.c113 static int pcc_cpufreq_verify(struct cpufreq_policy_data *policy) argument
115 cpufreq_verify_within_cpu_limits(policy);
198 static int pcc_cpufreq_target(struct cpufreq_policy *policy, argument
208 cpu = policy->cpu;
216 freqs.old = policy->cur;
218 cpufreq_freq_transition_begin(policy, &freqs);
236 cpufreq_freq_transition_end(policy, &freqs, status != CMD_COMPLETE);
538 static int pcc_cpufreq_cpu_init(struct cpufreq_policy *policy) argument
540 unsigned int cpu = policy->cpu;
554 policy
565 pcc_cpufreq_cpu_exit(struct cpufreq_policy *policy) argument
[all...]
/linux-master/tools/testing/selftests/amd-pstate/
H A Drun.sh69 # $1: policy
77 policies=$(ls $CPUFREQROOT| grep "policy[0-9].*")
78 for policy in $policies; do
79 cur_gov=$(find_current_governor $policy)
80 echo "$policy $cur_gov" >> $OUTFILE.backup_governor.log
91 for policy in $policies; do
96 echo $governor > $CPUFREQROOT/$policy/scaling_governor
105 policies=$(ls $CPUFREQROOT| grep "policy[0-9].*")
106 for policy in $policies; do
107 filepath=$CPUFREQROOT/$policy/scaling_available_governor
[all...]
/linux-master/security/apparmor/include/
H A Dpolicy.h5 * This file contains AppArmor policy definitions.
77 /* struct aa_policydb - match engine for a policy
127 static inline struct aa_perms *aa_lookup_perms(struct aa_policydb *policy, argument
130 unsigned int index = ACCEPT_TABLE(policy->dfa)[state];
132 if (!(policy->perms))
135 return &(policy->perms[index]);
155 * @policy: general match rules governing policy
167 /* TODO: merge policy and file */
168 struct aa_policydb *policy; member in struct:aa_ruleset
[all...]
/linux-master/tools/power/cpupower/utils/
H A Dcpufreq-info.c59 struct cpufreq_policy *policy; local
68 policy = cpufreq_get_policy(cpu);
69 if (!policy)
75 min_pctg = (policy->min * 100) / max;
76 max_pctg = (policy->max * 100) / max;
79 cpu , policy->min, max ? min_pctg : 0, policy->max,
80 max ? max_pctg : 0, policy->governor);
82 cpufreq_put_policy(policy);
309 /* --policy /
313 struct cpufreq_policy *policy = cpufreq_get_policy(cpu); local
[all...]
/linux-master/tools/power/cpupower/lib/
H A Dcpufreq.h74 * considerations by cpufreq policy notifiers in the kernel.
93 /* determine CPUfreq policy currently used
102 void cpufreq_put_policy(struct cpufreq_policy *policy);
177 /* set new cpufreq policy
179 * Tries to set the passed policy as new policy as close as possible,
183 int cpufreq_set_policy(unsigned int cpu, struct cpufreq_policy *policy);
186 /* modify a policy by only changing min/max freq or governor
/linux-master/include/linux/
H A Dpage-flags.h411 #define TESTPAGEFLAG(uname, lname, policy) \
412 FOLIO_TEST_FLAG(lname, FOLIO_##policy) \
414 { return test_bit(PG_##lname, &policy(page, 0)->flags); }
416 #define SETPAGEFLAG(uname, lname, policy) \
417 FOLIO_SET_FLAG(lname, FOLIO_##policy) \
419 { set_bit(PG_##lname, &policy(page, 1)->flags); }
421 #define CLEARPAGEFLAG(uname, lname, policy) \
422 FOLIO_CLEAR_FLAG(lname, FOLIO_##policy) \
424 { clear_bit(PG_##lname, &policy(page, 1)->flags); }
426 #define __SETPAGEFLAG(uname, lname, policy) \
[all...]
/linux-master/tools/net/ynl/lib/
H A Dynl.c49 ynl_err_walk_report_one(struct ynl_policy_nest *policy, unsigned int type, argument
52 if (!policy) {
54 *n += snprintf(str, str_sz, "!policy");
58 if (type > policy->max_attr) {
64 if (!policy->table[type].name) {
72 ".%s", policy->table[type].name);
78 struct ynl_policy_nest *policy, char *str, int str_sz,
88 if (!policy) {
90 n += snprintf(str, str_sz, "!policy");
112 if (ynl_err_walk_report_one(policy, typ
77 ynl_err_walk(struct ynl_sock *ys, void *start, void *end, unsigned int off, struct ynl_policy_nest *policy, char *str, int str_sz, struct ynl_policy_nest **nest_pol) argument
299 struct ynl_policy_attr *policy; local
[all...]
/linux-master/net/xfrm/
H A Dxfrm_policy.c78 /* xfrm inexact policy search tree:
111 * This result set then needs to be searched for the policy with
197 xfrm_policy_insert_list(struct hlist_head *chain, struct xfrm_policy *policy,
200 struct xfrm_policy *policy);
208 static inline bool xfrm_pol_hold_rcu(struct xfrm_policy *policy) argument
210 return refcount_inc_not_zero(&policy->refcnt);
406 struct xfrm_policy *policy; local
408 policy = kzalloc(sizeof(struct xfrm_policy), gfp);
410 if (policy) {
411 write_pnet(&policy
429 struct xfrm_policy *policy = container_of(head, struct xfrm_policy, rcu); local
437 xfrm_policy_destroy(struct xfrm_policy *policy) argument
453 xfrm_policy_kill(struct xfrm_policy *policy) argument
771 xfrm_policy_inexact_insert_use_any_list(const struct xfrm_policy *policy) argument
861 struct xfrm_policy *policy, *p; local
1143 xfrm_policy_inexact_alloc_chain(struct xfrm_pol_inexact_bin *bin, struct xfrm_policy *policy, u8 dir) argument
1203 xfrm_policy_inexact_insert(struct xfrm_policy *policy, u8 dir, int excl) argument
1244 struct xfrm_policy *policy; local
1520 xfrm_policy_insert_inexact_list(struct hlist_head *chain, struct xfrm_policy *policy) argument
1556 xfrm_policy_insert_list(struct hlist_head *chain, struct xfrm_policy *policy, bool excl) argument
1593 xfrm_policy_insert(int dir, struct xfrm_policy *policy, int excl) argument
2460 xfrm_tmpl_resolve_one(struct xfrm_policy *policy, const struct flowi *fl, struct xfrm_state **xfrm, unsigned short family) argument
2629 xfrm_bundle_create(struct xfrm_policy *policy, struct xfrm_state **xfrm, struct xfrm_dst **bundle, int nx, const struct flowi *fl, struct dst_entry *dst) argument
[all...]
/linux-master/drivers/gpu/drm/amd/display/dc/dsc/
H A Ddc_dsc.c35 /* default DSC policy target bitrate limit is 16bpp */
38 /* default DSC policy enables DSC only when needed */
664 /* Decides if DSC should be used and calculates target bpp if it should, applying DSC policy.
671 const struct dc_dsc_policy *policy,
683 if (decide_dsc_bandwidth_range(policy->min_target_bpp * 16, policy->max_target_bpp * 16,
686 if (policy->enable_dsc_when_not_needed)
839 /* Attempts to set DSC configuration for the stream, applying DSC policy.
882 struct dc_dsc_policy policy; local
886 dc_dsc_get_policy_for_timing(timing, options->max_target_bpp_limit_override_x16, &policy);
670 decide_dsc_target_bpp_x16( const struct dc_dsc_policy *policy, const struct dsc_enc_caps *dsc_common_caps, const int target_bandwidth_kbps, const struct dc_crtc_timing *timing, const int num_slices_h, const enum dc_link_encoding_format link_encoding, int *target_bpp_x16) argument
1152 dc_dsc_get_policy_for_timing(const struct dc_crtc_timing *timing, uint32_t max_target_bpp_limit_override_x16, struct dc_dsc_policy *policy) argument
[all...]
/linux-master/drivers/infiniband/hw/mlx5/
H A Dib_virt.c64 mlx5_ib_warn(dev, "failed to query port policy for vf %d (%d)\n",
69 info->linkstate = mlx_to_net_policy(rep->policy);
78 static inline enum port_state_policy net_to_mlx_policy(int policy) argument
80 switch (policy) {
105 in->policy = net_to_mlx_policy(state);
106 if (in->policy == MLX5_POLICY_INVALID) {
113 vfs_ctx[vf].policy = in->policy;
/linux-master/drivers/thermal/ti-soc-thermal/
H A Dti-thermal-common.c30 struct cpufreq_policy *policy; member in struct:ti_thermal_data
237 data->policy = cpufreq_cpu_get(0);
238 if (!data->policy) {
239 pr_debug("%s: CPUFreq policy not found\n", __func__);
244 data->cool_dev = cpufreq_cooling_register(data->policy);
249 cpufreq_cpu_put(data->policy);
266 if (data->policy)
267 cpufreq_cpu_put(data->policy);
/linux-master/drivers/hwtracing/stm/
H A DMakefile4 stm_core-y := core.o policy.o
H A Dstm.h32 struct stp_policy *policy; member in struct:stm_device
54 void stp_policy_unbind(struct stp_policy *policy);
/linux-master/security/safesetid/
H A Dlsm.h25 SIDPOL_DEFAULT, /* source ID is unaffected by policy */
26 SIDPOL_CONSTRAINED, /* source ID is affected by policy */
41 * Hash table entry to store safesetid policy signifying that 'src_id'
67 enum sid_policy_type _setid_policy_lookup(struct setid_ruleset *policy,

Completed in 236 milliseconds

1234567891011>>