/linux-master/drivers/cpufreq/ |
H A D | cpufreq-dt.c | 57 static int set_target(struct cpufreq_policy *policy, unsigned int index) argument 59 struct private_data *priv = policy->driver_data; 60 unsigned long freq = policy->freq_table[index].frequency; 103 static int cpufreq_init(struct cpufreq_policy *policy) argument 111 priv = cpufreq_dt_find_data(policy->cpu); 113 pr_err("failed to find data for cpu%d\n", policy->cpu); 129 cpumask_copy(policy->cpus, priv->cpus); 130 policy->driver_data = priv; 131 policy->clk = cpu_clk; 132 policy 154 cpufreq_online(struct cpufreq_policy *policy) argument 160 cpufreq_offline(struct cpufreq_policy *policy) argument 169 cpufreq_exit(struct cpufreq_policy *policy) argument [all...] |
H A D | speedstep-ich.c | 253 * speedstep_target - set a new CPUFreq policy 254 * @policy: new policy 257 * Sets a new CPUFreq policy. 259 static int speedstep_target(struct cpufreq_policy *policy, unsigned int index) argument 263 policy_cpu = cpumask_any_and(policy->cpus, cpu_online_mask); 273 struct cpufreq_policy *policy; member in struct:get_freqs 285 &get_freqs->policy->cpuinfo.transition_latency, 289 static int speedstep_cpu_init(struct cpufreq_policy *policy) argument 296 cpumask_copy(policy [all...] |
H A D | p4-clockmod.c | 103 static int cpufreq_p4_target(struct cpufreq_policy *policy, unsigned int index) argument 111 for_each_cpu(i, policy->cpus) 155 static int cpufreq_p4_cpu_init(struct cpufreq_policy *policy) argument 157 struct cpuinfo_x86 *c = &cpu_data(policy->cpu); 162 cpumask_copy(policy->cpus, topology_sibling_cpumask(policy->cpu)); 172 has_N44_O17_errata[policy->cpu] = 1; 179 cpufreq_p4_setdc(policy->cpu, DC_DISABLE); 189 if ((i < 2) && (has_N44_O17_errata[policy->cpu])) 195 /* cpuinfo and default policy value [all...] |
H A D | amd-pstate-ut.c | 127 struct cpufreq_policy *policy = NULL; local 131 policy = cpufreq_cpu_get(cpu); 132 if (!policy) 134 cpudata = policy->driver_data; 185 cpufreq_cpu_put(policy); 191 cpufreq_cpu_put(policy); 202 struct cpufreq_policy *policy = NULL; local 206 policy = cpufreq_cpu_get(cpu); 207 if (!policy) 209 cpudata = policy [all...] |
H A D | speedstep-centrino.c | 234 static int centrino_cpu_init_table(struct cpufreq_policy *policy) argument 236 struct cpuinfo_x86 *cpu = &cpu_data(policy->cpu); 261 per_cpu(centrino_model, policy->cpu) = model; 270 static inline int centrino_cpu_init_table(struct cpufreq_policy *policy) argument 345 static int centrino_cpu_init(struct cpufreq_policy *policy) argument 347 struct cpuinfo_x86 *cpu = &cpu_data(policy->cpu); 359 if (policy->cpu != 0) 367 per_cpu(centrino_cpu, policy->cpu) = &cpu_ids[i]; 369 if (!per_cpu(centrino_cpu, policy->cpu)) { 376 if (centrino_cpu_init_table(policy)) 403 centrino_cpu_exit(struct cpufreq_policy *policy) argument 422 centrino_target(struct cpufreq_policy *policy, unsigned int index) argument [all...] |
H A D | pasemi-cpufreq.c | 124 static int pas_cpufreq_cpu_init(struct cpufreq_policy *policy) argument 134 cpu = of_get_cpu_node(policy->cpu, NULL); 182 pr_debug("init cpufreq on CPU %d\n", policy->cpu); 192 cur_astate = get_cur_astate(policy->cpu); 195 policy->cur = pas_freqs[cur_astate].frequency; 196 ppc_proc_freq = policy->cur * 1000ul; 198 cpufreq_generic_init(policy, pas_freqs, get_gizmo_latency()); 207 static int pas_cpufreq_cpu_exit(struct cpufreq_policy *policy) argument 224 static int pas_cpufreq_target(struct cpufreq_policy *policy, argument 230 policy [all...] |
H A D | sparc-us3-cpufreq.c | 93 static int us3_freq_target(struct cpufreq_policy *policy, unsigned int index) argument 95 unsigned int cpu = policy->cpu; 120 static int us3_freq_cpu_init(struct cpufreq_policy *policy) argument 122 unsigned int cpu = policy->cpu; 136 policy->cpuinfo.transition_latency = 0; 137 policy->cur = clock_tick; 138 policy->freq_table = table; 143 static int us3_freq_cpu_exit(struct cpufreq_policy *policy) argument 145 us3_freq_target(policy, 0);
|
H A D | intel_pstate.c | 193 * @policy: CPUFreq policy value 212 * when policy switched to performance 213 * @epp_policy: Last saved policy used to set EPP/EPB 230 unsigned int policy; member in struct:cpudata 437 static void intel_pstate_init_acpi_perf_limits(struct cpufreq_policy *policy) argument 444 intel_pstate_set_itmt_prio(policy->cpu); 451 cpu = all_cpu_data[policy->cpu]; 454 policy->cpu); 474 pr_debug("CPU%u - ACPI _PSS perf data\n", policy 493 intel_pstate_exit_perf_limits(struct cpufreq_policy *policy) argument 504 intel_pstate_init_acpi_perf_limits(struct cpufreq_policy *policy) argument 508 intel_pstate_exit_perf_limits(struct cpufreq_policy *policy) argument 805 show_energy_performance_available_preferences( struct cpufreq_policy *policy, char *buf) argument 823 store_energy_performance_preference( struct cpufreq_policy *policy, const char *buf, size_t count) argument 891 show_energy_performance_preference( struct cpufreq_policy *policy, char *buf) argument 909 show_base_frequency(struct cpufreq_policy *policy, char *buf) argument 1106 intel_pstate_suspend(struct cpufreq_policy *policy) argument 1120 intel_pstate_resume(struct cpufreq_policy *policy) argument 1154 __intel_pstate_update_max_freq(struct cpudata *cpudata, struct cpufreq_policy *policy) argument 1164 struct cpufreq_policy *policy = cpufreq_cpu_acquire(cpu); local 1352 struct cpufreq_policy *policy; local 1621 struct cpufreq_policy *policy = cpufreq_cpu_acquire(cpudata->cpu); local 2596 intel_pstate_set_policy(struct cpufreq_policy *policy) argument 2645 intel_pstate_adjust_policy_max(struct cpudata *cpu, struct cpufreq_policy_data *policy) argument 2657 intel_pstate_verify_cpu_policy(struct cpudata *cpu, struct cpufreq_policy_data *policy) argument 2675 intel_pstate_verify_policy(struct cpufreq_policy_data *policy) argument 2682 intel_cpufreq_cpu_offline(struct cpufreq_policy *policy) argument 2707 intel_pstate_cpu_online(struct cpufreq_policy *policy) argument 2727 intel_pstate_cpu_offline(struct cpufreq_policy *policy) argument 2734 intel_pstate_cpu_exit(struct cpufreq_policy *policy) argument 2743 __intel_pstate_cpu_init(struct cpufreq_policy *policy) argument 2774 intel_pstate_cpu_init(struct cpufreq_policy *policy) argument 2810 intel_cpufreq_verify_policy(struct cpufreq_policy_data *policy) argument 2893 intel_cpufreq_update_pstate(struct cpufreq_policy *policy, int target_pstate, bool fast_switch) argument 2918 intel_cpufreq_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) argument 2943 intel_cpufreq_fast_switch(struct cpufreq_policy *policy, unsigned int target_freq) argument 3003 intel_cpufreq_cpu_init(struct cpufreq_policy *policy) argument 3077 intel_cpufreq_cpu_exit(struct cpufreq_policy *policy) argument 3090 intel_cpufreq_suspend(struct cpufreq_policy *policy) argument [all...] |
H A D | tegra186-cpufreq.c | 72 static int tegra186_cpufreq_init(struct cpufreq_policy *policy) argument 75 unsigned int cluster = data->cpus[policy->cpu].bpmp_cluster_id; 77 policy->freq_table = data->clusters[cluster].table; 78 policy->cpuinfo.transition_latency = 300 * 1000; 79 policy->driver_data = NULL; 84 static int tegra186_cpufreq_set_target(struct cpufreq_policy *policy, argument 88 struct cpufreq_frequency_table *tbl = policy->freq_table + index; 89 unsigned int edvd_offset = data->cpus[policy->cpu].edvd_offset; 101 struct cpufreq_policy *policy; local 105 policy [all...] |
H A D | davinci-cpufreq.c | 35 static int davinci_target(struct cpufreq_policy *policy, unsigned int idx) argument 42 old_freq = policy->cur; 69 static int davinci_cpu_init(struct cpufreq_policy *policy) argument 75 if (policy->cpu != 0) 85 policy->clk = cpufreq.armclk; 93 cpufreq_generic_init(policy, freq_table, 2000 * 1000);
|
/linux-master/fs/crypto/ |
H A D | fscrypt_private.h | 117 * number, or 0 if the policy version is unrecognized. 119 static inline int fscrypt_policy_size(const union fscrypt_policy *policy) argument 121 switch (policy->version) { 123 return sizeof(policy->v1); 125 return sizeof(policy->v2); 130 /* Return the contents encryption mode of a valid encryption policy */ 132 fscrypt_policy_contents_mode(const union fscrypt_policy *policy) argument 134 switch (policy->version) { 136 return policy->v1.contents_encryption_mode; 138 return policy 145 fscrypt_policy_fnames_mode(const union fscrypt_policy *policy) argument 158 fscrypt_policy_flags(const union fscrypt_policy *policy) argument 170 fscrypt_policy_v2_du_bits(const struct fscrypt_policy_v2 *policy, const struct inode *inode) argument 177 fscrypt_policy_du_bits(const union fscrypt_policy *policy, const struct inode *inode) argument [all...] |
H A D | Makefile | 11 policy.o
|
/linux-master/net/mptcp/ |
H A D | mptcp_pm_gen.c | 96 .policy = mptcp_pm_add_addr_nl_policy, 104 .policy = mptcp_pm_del_addr_nl_policy, 113 .policy = mptcp_pm_get_addr_nl_policy, 121 .policy = mptcp_pm_flush_addrs_nl_policy, 129 .policy = mptcp_pm_set_limits_nl_policy, 137 .policy = mptcp_pm_get_limits_nl_policy, 144 .policy = mptcp_pm_set_flags_nl_policy, 152 .policy = mptcp_pm_announce_nl_policy, 160 .policy = mptcp_pm_remove_nl_policy, 168 .policy [all...] |
/linux-master/scripts/selinux/mdp/ |
H A D | Makefile | 7 clean-files := policy.* file_contexts
|
/linux-master/drivers/gpu/drm/amd/display/dc/dml2/ |
H A D | dml2_policy.h | 45 void build_unoptimized_policy_settings(enum dml_project_id project, struct dml_mode_eval_policy_st *policy);
|
/linux-master/drivers/macintosh/ |
H A D | windfarm_cpufreq_clamp.c | 65 struct cpufreq_policy *policy; local 70 policy = cpufreq_cpu_get(0); 71 if (!policy) { 72 pr_warn("%s: cpufreq policy not found cpu0\n", __func__); 76 min_freq = policy->cpuinfo.min_freq; 77 max_freq = policy->cpuinfo.max_freq; 79 ret = freq_qos_add_request(&policy->constraints, &qos_req, FREQ_QOS_MAX, 82 cpufreq_cpu_put(policy);
|
/linux-master/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...] |
/linux-master/drivers/acpi/ |
H A D | processor_thermal.c | 67 struct cpufreq_policy *policy; local 72 policy = cpufreq_cpu_get(cpu); 73 if (policy) { 74 cpufreq_cpu_put(policy); 98 struct cpufreq_policy *policy; local 123 policy = cpufreq_cpu_get(i); 124 if (!policy) 127 max_freq = (policy->cpuinfo.max_freq * 130 cpufreq_cpu_put(policy); 158 void acpi_thermal_cpufreq_init(struct cpufreq_policy *policy) argument 184 acpi_thermal_cpufreq_exit(struct cpufreq_policy *policy) argument [all...] |
/linux-master/security/apparmor/ |
H A D | policy_compat.c | 5 * This file contains AppArmor functions for unpacking policy loaded 11 * Code to provide backwards compatibility with older policy versions, 12 * by converting/mapping older policy formats into the newer internal 296 int aa_compat_map_xmatch(struct aa_policydb *policy) argument 298 policy->perms = compute_xmatch_perms(policy->dfa, &policy->size); 299 if (!policy->perms) 302 remap_dfa_accept(policy->dfa, 1); 307 int aa_compat_map_policy(struct aa_policydb *policy, u3 argument 318 aa_compat_map_file(struct aa_policydb *policy) argument [all...] |
/linux-master/net/devlink/ |
H A D | netlink_gen.c | 578 .policy = devlink_get_nl_policy, 594 .policy = devlink_port_get_do_nl_policy, 601 .policy = devlink_port_get_dump_nl_policy, 611 .policy = devlink_port_set_nl_policy, 621 .policy = devlink_port_new_nl_policy, 631 .policy = devlink_port_del_nl_policy, 641 .policy = devlink_port_split_nl_policy, 651 .policy = devlink_port_unsplit_nl_policy, 661 .policy = devlink_sb_get_do_nl_policy, 668 .policy [all...] |
/linux-master/drivers/powercap/ |
H A D | dtpm_cpu.c | 149 struct cpufreq_policy *policy; local 154 policy = cpufreq_cpu_get(dtpm_cpu->cpu); 155 if (policy) { 156 for_each_cpu(dtpm_cpu->cpu, policy->related_cpus) 159 cpufreq_cpu_put(policy); 197 struct cpufreq_policy *policy; local 207 policy = cpufreq_cpu_get(cpu); 208 if (!policy) 226 for_each_cpu(cpu, policy->related_cpus) 237 ret = freq_qos_add_request(&policy [all...] |
/linux-master/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 129 pr_info("SELinux: Class %s not defined in policy.\n", 148 pr_info("SELinux: Permission %s in class %s not defined in policy.\n", 173 * Get real, policy values from mapped values 185 * Get kernel value for class from its policy value 241 struct selinux_policy *policy; local 247 policy = rcu_dereference(selinux_state.policy); 716 security_validtrans_handle_fail(struct selinux_policy *policy, struct sidtab_entry *oentry, struct sidtab_entry *nentry, struct sidtab_entry *tentry, u16 tclass) argument 750 struct selinux_policy *policy; local 854 struct selinux_policy *policy; local 934 avd_init(struct selinux_policy *policy, struct av_decision *avd) argument 1006 struct selinux_policy *policy; local 1101 struct selinux_policy *policy; local 1158 struct selinux_policy *policy; local 1284 struct selinux_policy *policy; local 1312 struct selinux_policy *policy; local 1508 struct selinux_policy *policy; local 1637 compute_sid_handle_invalid_context( struct selinux_policy *policy, struct sidtab_entry *sentry, struct sidtab_entry *tentry, u16 tclass, struct context *newcontext) argument 1713 struct selinux_policy *policy; local 2114 security_load_policycaps(struct selinux_policy *policy) argument 2141 selinux_policy_free(struct selinux_policy *policy) argument 2153 selinux_policy_cond_free(struct selinux_policy *policy) argument 2392 struct selinux_policy *policy; local 2444 struct selinux_policy *policy; local 2496 struct selinux_policy *policy; local 2548 struct selinux_policy *policy; local 2614 struct selinux_policy *policy; local 2708 struct selinux_policy *policy; local 2827 __security_genfs_sid(struct selinux_policy *policy, const char *fstype, const char *path, u16 orig_sclass, u32 *sid) argument 2883 struct selinux_policy *policy; local 2901 selinux_policy_genfs_sid(struct selinux_policy *policy, const char *fstype, const char *path, u16 orig_sclass, u32 *sid) argument 2917 struct selinux_policy *policy; local 2973 security_get_bools(struct selinux_policy *policy, u32 *len, char ***names, int **values) argument 3100 struct selinux_policy *policy; local 3158 struct selinux_policy *policy; local 3269 struct selinux_policy *policy; local 3353 security_get_classes(struct selinux_policy *policy, char ***classes, u32 *nclasses) argument 3394 security_get_permissions(struct selinux_policy *policy, const char *class, char ***perms, u32 *nperms) argument 3442 struct selinux_policy *policy; local 3457 struct selinux_policy *policy; local 3482 struct selinux_policy *policy; local 3514 struct selinux_policy *policy; local 3639 struct selinux_policy *policy; local 3819 struct selinux_policy *policy; local 3894 struct selinux_policy *policy; local 3934 __security_read_policy(struct selinux_policy *policy, void *data, size_t *len) argument 3960 struct selinux_policy *policy; local 3990 struct selinux_policy *policy; local [all...] |
/linux-master/drivers/block/drbd/ |
H A D | drbd_nla.c | 32 const struct nla_policy *policy) 38 err = nla_parse_nested_deprecated(tb, maxtype, nla, policy, 31 drbd_nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla, const struct nla_policy *policy) argument
|
/linux-master/net/handshake/ |
H A D | genl.c | 30 .policy = handshake_accept_nl_policy, 37 .policy = handshake_done_nl_policy,
|
/linux-master/drivers/devfreq/ |
H A D | governor_passive.c | 22 struct cpufreq_policy *policy) 26 if (!p_data || !policy) 30 if (parent_cpu_data->first_cpu == cpumask_first(policy->related_cpus)) 83 struct cpufreq_policy *policy; local 90 policy = cpufreq_cpu_get(cpu); 91 if (!policy) { 96 parent_cpu_data = get_parent_cpu_data(p_data, policy); 98 cpufreq_cpu_put(policy); 109 cpufreq_cpu_put(policy); 124 cpufreq_cpu_put(policy); 21 get_parent_cpu_data(struct devfreq_passive_data *p_data, struct cpufreq_policy *policy) argument 259 struct cpufreq_policy *policy; local [all...] |