/linux-master/tools/testing/selftests/kvm/lib/x86_64/ |
H A D | sev.c | 63 void sev_vm_launch(struct kvm_vm *vm, uint32_t policy) argument 66 .policy = policy, 75 TEST_ASSERT_EQ(status.policy, policy); 81 if (policy & SEV_POLICY_ES) 131 void vm_sev_launch(struct kvm_vm *vm, uint32_t policy, uint8_t *measurement) argument 133 sev_vm_launch(vm, 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...] |
/linux-master/drivers/gpu/drm/amd/display/dc/dml2/ |
H A D | dml2_policy.c | 278 void build_unoptimized_policy_settings(enum dml_project_id project, struct dml_mode_eval_policy_st *policy) argument 281 policy->MPCCombineUse[i] = dml_mpc_as_needed_for_voltage; // TOREVIEW: Is this still needed? When is MPCC useful for pstate given CRB? 282 policy->ODMUse[i] = dml_odm_use_policy_combine_as_needed; 283 policy->ImmediateFlipRequirement[i] = dml_immediate_flip_required; 284 policy->AllowForPStateChangeOrStutterInVBlank[i] = dml_prefetch_support_uclk_fclk_and_stutter_if_possible; 287 /* Change the default policy initializations as per spreadsheet. We might need to 290 policy->UseUnboundedRequesting = dml_unbounded_requesting_enable; 291 policy->UseMinimumRequiredDCFCLK = false; 292 policy->DRAMClockChangeRequirementFinal = true; // TOREVIEW: What does this mean? 293 policy [all...] |
/linux-master/drivers/cpufreq/ |
H A D | sc520_freq.c | 53 static int sc520_freq_target(struct cpufreq_policy *policy, unsigned int state) argument 72 static int sc520_freq_cpu_init(struct cpufreq_policy *policy) argument 81 /* cpuinfo and default policy values */ 82 policy->cpuinfo.transition_latency = 1000000; /* 1ms */ 83 policy->freq_table = sc520_freq_table;
|
H A D | pxa3xx-cpufreq.c | 107 static int setup_freqs_table(struct cpufreq_policy *policy, argument 128 policy->freq_table = table; 165 static int pxa3xx_cpufreq_set(struct cpufreq_policy *policy, unsigned int index) argument 170 if (policy->cpu != 0) 183 static int pxa3xx_cpufreq_init(struct cpufreq_policy *policy) argument 187 /* set default policy and cpuinfo */ 188 policy->min = policy->cpuinfo.min_freq = 104000; 189 policy->max = policy [all...] |
H A D | vexpress-spc-cpufreq.c | 177 static int ve_spc_cpufreq_set_target(struct cpufreq_policy *policy, argument 180 u32 cpu = policy->cpu, cur_cluster, new_cluster, actual_cluster; 410 static int ve_spc_cpufreq_init(struct cpufreq_policy *policy) argument 412 u32 cur_cluster = cpu_to_cluster(policy->cpu); 416 cpu_dev = get_cpu_device(policy->cpu); 419 policy->cpu); 426 dev_pm_opp_get_sharing_cpus(cpu_dev, policy->cpus); 428 for_each_cpu(cpu, policy->cpus) 432 per_cpu(physical_cluster, policy->cpu) = A15_CLUSTER; 435 ret = get_cluster_clk_and_freq_table(cpu_dev, policy 450 ve_spc_cpufreq_exit(struct cpufreq_policy *policy) argument [all...] |
H A D | powernv-cpufreq.c | 60 * struct global_pstate_info - Per policy data structure to maintain history of 75 * @policy: Associated CPUFreq policy 85 struct cpufreq_policy *policy; member in struct:global_pstate_info 216 static inline void reset_gpstates(struct cpufreq_policy *policy) argument 218 struct global_pstate_info *gpstates = policy->driver_data; 378 static ssize_t cpuinfo_nominal_freq_show(struct cpufreq_policy *policy, argument 398 static ssize_t name##_show(struct cpufreq_policy *policy, char *buf) \ 400 struct chip *chip = per_cpu(chip_info, policy->cpu); \ 674 struct cpufreq_policy *policy local 741 powernv_cpufreq_target_index(struct cpufreq_policy *policy, unsigned int new_index) argument 828 powernv_cpufreq_cpu_init(struct cpufreq_policy *policy) argument 877 powernv_cpufreq_cpu_exit(struct cpufreq_policy *policy) argument 918 struct cpufreq_policy *policy; local 1019 powernv_fast_switch(struct cpufreq_policy *policy, unsigned int target_freq) argument [all...] |
H A D | brcmstb-avs-cpufreq.c | 483 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); local 486 if (!policy) 489 priv = policy->driver_data; 491 cpufreq_cpu_put(policy); 496 static int brcm_avs_target_index(struct cpufreq_policy *policy, argument 499 return brcm_avs_set_pstate(policy->driver_data, 500 policy->freq_table[index].driver_data); 503 static int brcm_avs_suspend(struct cpufreq_policy *policy) argument 505 struct private_data *priv = policy->driver_data; 528 static int brcm_avs_resume(struct cpufreq_policy *policy) argument 619 brcm_avs_cpufreq_init(struct cpufreq_policy *policy) argument 661 show_brcm_avs_pstate(struct cpufreq_policy *policy, char *buf) argument 672 show_brcm_avs_mode(struct cpufreq_policy *policy, char *buf) argument 684 show_brcm_avs_pmap(struct cpufreq_policy *policy, char *buf) argument 702 show_brcm_avs_voltage(struct cpufreq_policy *policy, char *buf) argument 709 show_brcm_avs_frequency(struct cpufreq_policy *policy, char *buf) argument [all...] |
H A D | mediatek-cpufreq.c | 52 /* Avoid race condition for regulators between notify and policy */ 200 static int mtk_cpufreq_set_target(struct cpufreq_policy *policy, argument 203 struct cpufreq_frequency_table *freq_table = policy->freq_table; 204 struct clk *cpu_clk = policy->clk; 206 struct mtk_cpu_dvfs_info *info = policy->driver_data; 234 policy->cpu, freq_hz); 258 "cpu%d: failed to scale up voltage!\n", policy->cpu); 268 "cpu%d: failed to re-parent cpu clock!\n", policy->cpu); 277 "cpu%d: failed to scale cpu clock rate!\n", policy->cpu); 287 "cpu%d: failed to re-parent cpu clock!\n", policy 323 struct cpufreq_policy *policy; local 573 mtk_cpufreq_init(struct cpufreq_policy *policy) argument 602 mtk_cpufreq_exit(struct cpufreq_policy *policy) argument [all...] |
H A D | powernow-k6.c | 139 static int powernow_k6_target(struct cpufreq_policy *policy, argument 153 static int powernow_k6_cpu_init(struct cpufreq_policy *policy) argument 159 if (policy->cpu != 0) 214 /* cpuinfo and default policy values */ 215 policy->cpuinfo.transition_latency = 500000; 216 policy->freq_table = clock_ratio; 222 static int powernow_k6_cpu_exit(struct cpufreq_policy *policy) argument 230 freqs.old = policy->cur; 234 cpufreq_freq_transition_begin(policy, &freqs); 235 powernow_k6_target(policy, [all...] |
H A D | e_powersaver.c | 79 static int eps_acpi_exit(struct cpufreq_policy *policy) argument 108 struct cpufreq_policy *policy, 153 static int eps_target(struct cpufreq_policy *policy, unsigned int index) argument 156 unsigned int cpu = policy->cpu; 166 ret = eps_set_state(centaur, policy, dest_state); 172 static int eps_cpu_init(struct cpufreq_policy *policy) argument 191 if (policy->cpu != 0) 289 if (!acpi_processor_get_bios_limit(policy->cpu, &limit)) { 293 eps_acpi_exit(policy); 357 policy 107 eps_set_state(struct eps_cpu_data *centaur, struct cpufreq_policy *policy, u32 dest_state) argument 363 eps_cpu_exit(struct cpufreq_policy *policy) argument [all...] |
/linux-master/security/selinux/ |
H A D | ima.c | 68 * selinux_ima_measure_state_locked - Measure SELinux state and hash of policy 73 void *policy = NULL; local 92 * Measure SELinux policy only after initialization is completed. 97 rc = security_read_state_kernel(&policy, &policy_len); 99 pr_err("SELinux: %s: failed to read policy %d.\n", __func__, rc); 103 ima_measure_critical_data("selinux", "selinux-policy-hash", 104 policy, policy_len, true, 107 vfree(policy); 111 * selinux_ima_measure_state - Measure SELinux state and hash of policy
|
/linux-master/scripts/selinux/ |
H A D | install_policy.sh | 5 echo "$0: must be root to install the selinux policy" 39 ./mdp -m policy.conf file_contexts 40 $CP -U allow -M -o policy.$VERS policy.conf 42 mkdir -p /etc/selinux/dummy/policy 60 cp policy.$VERS /etc/selinux/dummy/policy 70 echo "Creating new /etc/selinux/config for dummy policy."
|
/linux-master/drivers/gpu/drm/i915/gt/ |
H A D | intel_llc.c | 32 struct cpufreq_policy *policy; local 35 policy = cpufreq_cpu_get(0); 36 if (policy) { 37 max_khz = policy->cpuinfo.max_freq; 38 cpufreq_cpu_put(policy);
|
/linux-master/drivers/power/supply/ |
H A D | wm8350_power.c | 87 struct wm8350_charger_policy *policy) 91 if (!policy) { 93 "No charger policy, charger not configured.\n"); 98 if (policy->fast_limit_USB_mA > 500) { 103 eoc_mA = WM8350_CHG_EOC_mA(policy->eoc_mA); 110 reg | eoc_mA | policy->trickle_start_mV | 117 WM8350_CHG_FAST_LIMIT_mA(policy->fast_limit_USB_mA); 119 policy->charge_mV | policy->trickle_charge_USB_mA | 121 policy 86 wm8350_charger_config(struct wm8350 *wm8350, struct wm8350_charger_policy *policy) argument 188 struct wm8350_charger_policy *policy = power->policy; local 540 struct wm8350_charger_policy *policy = power->policy; local [all...] |
/linux-master/include/net/ |
H A D | netlink.h | 170 * Standard attribute types to specify validation policy 220 * struct nla_policy - attribute validation policy 240 * number in the nested policy. 260 * NLA_NESTED `nested_policy' to a nested policy to validate, must 265 * NLA_NESTED_ARRAY `nested_policy' points to a nested policy to validate, 344 * only, and specifies special data about the policy, namely it 352 * of this is that types not specified in the policy will be 358 * the enum used by the policy, and be set to the new value that 381 #define _NLA_POLICY_NESTED(maxattr, policy) \ 382 { .type = NLA_NESTED, .nested_policy = policy, 678 nla_parse(struct nlattr **tb, int maxtype, const struct nlattr *head, int len, const struct nla_policy *policy, struct netlink_ext_ack *extack) argument 703 nla_parse_deprecated(struct nlattr **tb, int maxtype, const struct nlattr *head, int len, const struct nla_policy *policy, struct netlink_ext_ack *extack) argument 728 nla_parse_deprecated_strict(struct nlattr **tb, int maxtype, const struct nlattr *head, int len, const struct nla_policy *policy, struct netlink_ext_ack *extack) argument 750 __nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, unsigned int validate, struct netlink_ext_ack *extack) argument 777 nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) argument 797 nlmsg_parse_deprecated(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) argument 818 nlmsg_parse_deprecated_strict(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) argument 856 nla_validate_deprecated(const struct nlattr *head, int len, int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) argument 879 nla_validate(const struct nlattr *head, int len, int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) argument 895 nlmsg_validate_deprecated(const struct nlmsghdr *nlh, int hdrlen, int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) argument 1310 nla_parse_nested(struct nlattr *tb[], int maxtype, const struct nlattr *nla, const struct nla_policy *policy, struct netlink_ext_ack *extack) argument 1334 nla_parse_nested_deprecated(struct nlattr *tb[], int maxtype, const struct nlattr *nla, const struct nla_policy *policy, struct netlink_ext_ack *extack) argument 1994 __nla_validate_nested(const struct nlattr *start, int maxtype, const struct nla_policy *policy, unsigned int validate, struct netlink_ext_ack *extack) argument 2004 nla_validate_nested(const struct nlattr *start, int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) argument 2013 nla_validate_nested_deprecated(const struct nlattr *start, int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) argument [all...] |
/linux-master/tools/power/cpupower/lib/ |
H A D | cpufreq.c | 238 struct cpufreq_policy *policy; local 240 policy = malloc(sizeof(struct cpufreq_policy)); 241 if (!policy) 244 policy->governor = sysfs_cpufreq_get_one_string(cpu, SCALING_GOVERNOR); 245 if (!policy->governor) { 246 free(policy); 249 policy->min = sysfs_cpufreq_get_one_value(cpu, SCALING_MIN_FREQ); 250 policy->max = sysfs_cpufreq_get_one_value(cpu, SCALING_MAX_FREQ); 251 if ((!policy->min) || (!policy 260 cpufreq_put_policy(struct cpufreq_policy *policy) argument 598 cpufreq_set_policy(unsigned int cpu, struct cpufreq_policy *policy) argument [all...] |
/linux-master/tools/lib/bpf/ |
H A D | nlattr.c | 46 struct libbpf_nla_policy *policy) 55 pt = &policy[type]; 92 * @arg policy Attribute validation policy. 98 * compatibility. If \a policy is not NULL, the attribute will be 99 * validated using the specified policy. 105 int len, struct libbpf_nla_policy *policy) 118 if (policy) { 119 err = validate_nla(nla, maxtype, policy); 141 * @arg policy Attribut 45 validate_nla(struct nlattr *nla, int maxtype, struct libbpf_nla_policy *policy) argument 104 libbpf_nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, int len, struct libbpf_nla_policy *policy) argument 149 libbpf_nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla, struct libbpf_nla_policy *policy) argument [all...] |
/linux-master/drivers/dpll/ |
H A D | dpll_nl.c | 83 .policy = dpll_device_id_get_nl_policy, 92 .policy = dpll_device_get_nl_policy, 106 .policy = dpll_device_set_nl_policy, 115 .policy = dpll_pin_id_get_nl_policy, 124 .policy = dpll_pin_get_do_nl_policy, 131 .policy = dpll_pin_get_dump_nl_policy, 140 .policy = dpll_pin_set_nl_policy,
|
/linux-master/net/ethtool/ |
H A D | netlink.c | 104 /* No validation here, command policy should have a nested policy set 785 .policy = ethnl_strset_get_policy, 794 .policy = ethnl_linkinfo_get_policy, 801 .policy = ethnl_linkinfo_set_policy, 810 .policy = ethnl_linkmodes_get_policy, 817 .policy = ethnl_linkmodes_set_policy, 826 .policy = ethnl_linkstate_get_policy, 835 .policy = ethnl_debug_get_policy, 842 .policy [all...] |
H A D | module.c | 66 if (data->power.policy) 81 if (data->power.policy && 83 data->power.policy)) 115 "Setting power mode policy is not supported by this device"); 134 power_new.policy = nla_get_u8(tb[ETHTOOL_A_MODULE_POWER_MODE_POLICY]); 139 if (power_new.policy == power.policy)
|
/linux-master/security/apparmor/include/ |
H A D | lib.h | 143 * @list: list policy object is on 171 * __policy_find - find a policy by @name on a policy list 177 * Returns: unrefcounted policy that match @name or NULL if not found 182 struct aa_policy *policy; local 184 list_for_each_entry_rcu(policy, head, list) { 185 if (!strcmp(policy->name, name)) 186 return policy; 192 * __policy_strn_find - find a policy that's name matches @len chars of @str 199 * Returns: unrefcounted policy tha 207 struct aa_policy *policy; local [all...] |
/linux-master/security/apparmor/ |
H A D | mount.c | 24 #include "include/policy.h" 224 static int do_match_mnt(struct aa_policydb *policy, aa_state_t start, argument 231 AA_BUG(!policy); 232 AA_BUG(!policy->dfa); 233 AA_BUG(!policy->perms); 236 state = aa_dfa_match(policy->dfa, start, mntpnt); 237 state = aa_dfa_null_transition(policy->dfa, state); 242 state = aa_dfa_match(policy->dfa, state, devname); 243 state = aa_dfa_null_transition(policy->dfa, state); 248 state = aa_dfa_match(policy [all...] |
/linux-master/tools/testing/selftests/kvm/x86_64/ |
H A D | sev_smoke_test.c | 64 static void test_sync_vmsa(uint32_t policy) argument 102 vm_sev_launch(vm, SEV_POLICY_ES | policy, NULL); 121 static void test_sev(void *guest_code, uint64_t policy) argument 127 uint32_t type = policy & SEV_POLICY_ES ? KVM_X86_SEV_ES_VM : KVM_X86_SEV_VM; 132 vm_sev_launch(vm, policy, NULL); 137 if (policy & SEV_POLICY_ES) {
|
/linux-master/net/smc/ |
H A D | smc_netlink.c | 86 .policy = smc_gen_ueid_policy, 92 .policy = smc_gen_ueid_policy, 141 .policy = smc_gen_nl_policy,
|