/linux-master/drivers/cpufreq/ |
H A D | cpufreq.c | 82 static unsigned int __cpufreq_get(struct cpufreq_policy *policy); 83 static int cpufreq_init_governor(struct cpufreq_policy *policy); 84 static void cpufreq_exit_governor(struct cpufreq_policy *policy); 85 static void cpufreq_governor_limits(struct cpufreq_policy *policy); 86 static int cpufreq_set_policy(struct cpufreq_policy *policy, 92 * Two notifier lists: the "policy" list is involved in the 93 * validation process for a new CPU frequency policy; the 120 struct kobject *get_governor_parent_kobj(struct cpufreq_policy *policy) argument 123 return &policy->kobj; 172 * - policy 174 cpufreq_generic_init(struct cpufreq_policy *policy, struct cpufreq_frequency_table *table, unsigned int transition_latency) argument 191 struct cpufreq_policy *policy = per_cpu(cpufreq_cpu_data, cpu); local 199 struct cpufreq_policy *policy = cpufreq_cpu_get_raw(cpu); local 224 struct cpufreq_policy *policy = NULL; local 250 cpufreq_cpu_put(struct cpufreq_policy *policy) argument 260 cpufreq_cpu_release(struct cpufreq_policy *policy) argument 286 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); local 349 cpufreq_notify_transition(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, unsigned int state) argument 401 cpufreq_notify_post_transition(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, int transition_failed) argument 413 cpufreq_freq_transition_begin(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs) argument 447 cpufreq_freq_transition_end(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, int transition_failed) argument 500 cpufreq_enable_fast_switch(struct cpufreq_policy *policy) argument 524 cpufreq_disable_fast_switch(struct cpufreq_policy *policy) argument 536 __resolve_freq(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) argument 563 cpufreq_driver_resolve_freq(struct cpufreq_policy *policy, unsigned int target_freq) argument 570 cpufreq_policy_transition_delay_us(struct cpufreq_policy *policy) argument 636 show_local_boost(struct cpufreq_policy *policy, char *buf) argument 641 store_local_boost(struct cpufreq_policy *policy, const char *buf, size_t count) argument 756 show_scaling_cur_freq(struct cpufreq_policy *policy, char *buf) argument 795 show_cpuinfo_cur_freq(struct cpufreq_policy *policy, char *buf) argument 809 show_scaling_governor(struct cpufreq_policy *policy, char *buf) argument 824 store_scaling_governor(struct cpufreq_policy *policy, const char *buf, size_t count) argument 861 show_scaling_driver(struct cpufreq_policy *policy, char *buf) argument 869 show_scaling_available_governors(struct cpufreq_policy *policy, char *buf) argument 916 show_related_cpus(struct cpufreq_policy *policy, char *buf) argument 924 show_affected_cpus(struct cpufreq_policy *policy, char *buf) argument 929 store_scaling_setspeed(struct cpufreq_policy *policy, const char *buf, size_t count) argument 947 show_scaling_setspeed(struct cpufreq_policy *policy, char *buf) argument 958 show_bios_limit(struct cpufreq_policy *policy, char *buf) argument 1004 struct cpufreq_policy *policy = to_policy(kobj); local 1022 struct cpufreq_policy *policy = to_policy(kobj); local 1039 struct cpufreq_policy *policy = to_policy(kobj); local 1055 add_cpu_dev_symlink(struct cpufreq_policy *policy, unsigned int cpu, struct device *dev) argument 1069 remove_cpu_dev_symlink(struct cpufreq_policy *policy, int cpu, struct device *dev) argument 1077 cpufreq_add_dev_interface(struct cpufreq_policy *policy) argument 1115 cpufreq_init_policy(struct cpufreq_policy *policy) argument 1163 cpufreq_add_policy_cpu(struct cpufreq_policy *policy, unsigned int cpu) argument 1186 refresh_frequency_limits(struct cpufreq_policy *policy) argument 1198 struct cpufreq_policy *policy = local 1210 struct cpufreq_policy *policy = container_of(nb, struct cpufreq_policy, nb_min); local 1219 struct cpufreq_policy *policy = container_of(nb, struct cpufreq_policy, nb_max); local 1225 cpufreq_policy_put_kobj(struct cpufreq_policy *policy) argument 1249 struct cpufreq_policy *policy; local 1330 cpufreq_policy_free(struct cpufreq_policy *policy) argument 1381 struct cpufreq_policy *policy; local 1623 struct cpufreq_policy *policy; local 1643 __cpufreq_offline(unsigned int cpu, struct cpufreq_policy *policy) argument 1690 struct cpufreq_policy *policy; local 1716 struct cpufreq_policy *policy = per_cpu(cpufreq_cpu_data, cpu); local 1759 cpufreq_out_of_sync(struct cpufreq_policy *policy, unsigned int new_freq) argument 1774 cpufreq_verify_current_freq(struct cpufreq_policy *policy, bool update) argument 1817 struct cpufreq_policy *policy; local 1849 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); local 1869 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); local 1881 __cpufreq_get(struct cpufreq_policy *policy) argument 1897 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); local 1924 cpufreq_generic_suspend(struct cpufreq_policy *policy) argument 1956 struct cpufreq_policy *policy; local 1990 struct cpufreq_policy *policy; local 2182 cpufreq_driver_fast_switch(struct cpufreq_policy *policy, unsigned int target_freq) argument 2249 __target_intermediate(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, int index) argument 2274 __target_index(struct cpufreq_policy *policy, int index) argument 2334 __cpufreq_driver_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) argument 2376 cpufreq_driver_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) argument 2397 cpufreq_init_governor(struct cpufreq_policy *policy) argument 2443 cpufreq_exit_governor(struct cpufreq_policy *policy) argument 2456 cpufreq_start_governor(struct cpufreq_policy *policy) argument 2483 cpufreq_stop_governor(struct cpufreq_policy *policy) argument 2494 cpufreq_governor_limits(struct cpufreq_policy *policy) argument 2530 struct cpufreq_policy *policy; local 2568 cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu) argument 2600 cpufreq_set_policy(struct cpufreq_policy *policy, struct cpufreq_governor *new_gov, unsigned int new_pol) argument 2703 struct cpufreq_policy *policy = cpufreq_cpu_acquire(cpu); local 2742 cpufreq_boost_set_sw(struct cpufreq_policy *policy, int state) argument 2764 struct cpufreq_policy *policy; local [all...] |
H A D | cpufreq_userspace.c | 26 * @policy: pointer to policy struct where freq is being set 31 static int cpufreq_set(struct cpufreq_policy *policy, unsigned int freq) argument 34 struct userspace_policy *userspace = policy->governor_data; 36 pr_debug("cpufreq_set for cpu %u, freq %u kHz\n", policy->cpu, freq); 44 ret = __cpufreq_driver_target(policy, freq, CPUFREQ_RELATION_L); 50 static ssize_t show_speed(struct cpufreq_policy *policy, char *buf) argument 52 return sprintf(buf, "%u\n", policy->cur); 55 static int cpufreq_userspace_policy_init(struct cpufreq_policy *policy) argument 65 policy 73 cpufreq_userspace_policy_exit(struct cpufreq_policy *policy) argument 79 cpufreq_userspace_policy_start(struct cpufreq_policy *policy) argument 93 cpufreq_userspace_policy_stop(struct cpufreq_policy *policy) argument 105 cpufreq_userspace_policy_limits(struct cpufreq_policy *policy) argument [all...] |
H A D | cpufreq-dt.h | 17 unsigned int (*get_intermediate)(struct cpufreq_policy *policy, 19 int (*target_intermediate)(struct cpufreq_policy *policy, 21 int (*suspend)(struct cpufreq_policy *policy); 22 int (*resume)(struct cpufreq_policy *policy);
|
H A D | freq_table.c | 17 bool policy_has_boost_freq(struct cpufreq_policy *policy) argument 19 struct cpufreq_frequency_table *pos, *table = policy->freq_table; 32 int cpufreq_frequency_table_cpuinfo(struct cpufreq_policy *policy, argument 43 if ((!cpufreq_boost_enabled() || !policy->boost_enabled) 54 policy->min = policy->cpuinfo.min_freq = min_freq; 55 policy->max = max_freq; 60 if (policy->cpuinfo.max_freq < max_freq) 61 policy->max = policy 69 cpufreq_frequency_table_verify(struct cpufreq_policy_data *policy, struct cpufreq_frequency_table *table) argument 109 cpufreq_generic_frequency_table_verify(struct cpufreq_policy_data *policy) argument 118 cpufreq_table_index_unsorted(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) argument 211 cpufreq_frequency_table_get_index(struct cpufreq_policy *policy, unsigned int freq) argument 233 show_available_freqs(struct cpufreq_policy *policy, char *buf, bool show_boost) argument 273 scaling_available_frequencies_show(struct cpufreq_policy *policy, char *buf) argument 285 scaling_boost_frequencies_show(struct cpufreq_policy *policy, char *buf) argument 299 set_freq_table_sorted(struct cpufreq_policy *policy) argument 354 cpufreq_table_validate_and_sort(struct cpufreq_policy *policy) argument [all...] |
H A D | ppc_cbe_cpufreq.h | 23 void cbe_cpufreq_pmi_policy_init(struct cpufreq_policy *policy); 24 void cbe_cpufreq_pmi_policy_exit(struct cpufreq_policy *policy); 29 static inline void cbe_cpufreq_pmi_policy_init(struct cpufreq_policy *policy) {} argument 30 static inline void cbe_cpufreq_pmi_policy_exit(struct cpufreq_policy *policy) {} argument
|
H A D | sh-cpufreq.c | 33 struct cpufreq_policy *policy; member in struct:cpufreq_target 45 struct cpufreq_policy *policy = target->policy; local 46 int cpu = policy->cpu; 60 if (freq < (policy->min * 1000) || freq > (policy->max * 1000)) 69 cpufreq_freq_transition_begin(target->policy, &freqs); 71 cpufreq_freq_transition_end(target->policy, &freqs, 0); 80 static int sh_cpufreq_target(struct cpufreq_policy *policy, argument 84 struct cpufreq_target data = { .policy 89 sh_cpufreq_verify(struct cpufreq_policy_data *policy) argument 107 sh_cpufreq_cpu_init(struct cpufreq_policy *policy) argument 138 sh_cpufreq_cpu_exit(struct cpufreq_policy *policy) argument [all...] |
H A D | ppc_cbe_cpufreq.c | 54 static int cbe_cpufreq_cpu_init(struct cpufreq_policy *policy) argument 62 cpu = of_get_cpu_node(policy->cpu, NULL); 67 pr_debug("init cpufreq on CPU %d\n", policy->cpu); 72 if (!cbe_get_cpu_pmd_regs(policy->cpu) || 73 !cbe_get_cpu_mic_tm_regs(policy->cpu)) { 100 policy->cpuinfo.transition_latency = 25000; 102 cur_pmode = cbe_cpufreq_get_pmode(policy->cpu); 105 policy->cur = cbe_freqs[cur_pmode].frequency; 108 cpumask_copy(policy->cpus, cpu_sibling_mask(policy 116 cbe_cpufreq_cpu_exit(struct cpufreq_policy *policy) argument 122 cbe_cpufreq_target(struct cpufreq_policy *policy, unsigned int cbe_pmode_new) argument [all...] |
H A D | cpufreq_performance.c | 14 static void cpufreq_gov_performance_limits(struct cpufreq_policy *policy) argument 16 pr_debug("setting to %u kHz\n", policy->max); 17 __cpufreq_driver_target(policy, policy->max, CPUFREQ_RELATION_H); 41 MODULE_DESCRIPTION("CPUfreq policy governor 'performance'");
|
H A D | cpufreq_powersave.c | 14 static void cpufreq_gov_powersave_limits(struct cpufreq_policy *policy) argument 16 pr_debug("setting to %u kHz\n", policy->min); 17 __cpufreq_driver_target(policy, policy->min, CPUFREQ_RELATION_L); 28 MODULE_DESCRIPTION("CPUfreq policy governor 'powersave'");
|
H A D | cppc_cpufreq.c | 157 static void cppc_cpufreq_cpu_fie_init(struct cpufreq_policy *policy) argument 165 for_each_cpu(cpu, policy->cpus) { 168 cppc_fi->cpu_data = policy->driver_data; 187 topology_set_scale_freq_source(&cppc_sftd, policy->cpus); 191 * We free all the resources on policy's removal and not on CPU removal as the 196 * We just need to make sure to remove them all on policy->exit(). 198 static void cppc_cpufreq_cpu_fie_exit(struct cpufreq_policy *policy) argument 206 /* policy->cpus will be empty here, use related_cpus instead */ 207 topology_clear_scale_freq_source(SCALE_FREQ_SOURCE_CPPC, policy->related_cpus); 209 for_each_cpu(cpu, policy 270 cppc_cpufreq_cpu_fie_init(struct cpufreq_policy *policy) argument 274 cppc_cpufreq_cpu_fie_exit(struct cpufreq_policy *policy) argument 287 cppc_cpufreq_set_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) argument 317 cppc_cpufreq_fast_switch(struct cpufreq_policy *policy, unsigned int target_freq) argument 338 cppc_verify_policy(struct cpufreq_policy_data *policy) argument 388 get_perf_level_count(struct cpufreq_policy *policy) argument 422 struct cpufreq_policy *policy; local 489 struct cpufreq_policy *policy; local 544 cppc_cpufreq_register_em(struct cpufreq_policy *policy) argument 599 cppc_cpufreq_put_cpu_data(struct cpufreq_policy *policy) argument 609 cppc_cpufreq_cpu_init(struct cpufreq_policy *policy) argument 691 cppc_cpufreq_cpu_exit(struct cpufreq_policy *policy) argument 743 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); local 766 cppc_cpufreq_set_boost(struct cpufreq_policy *policy, int state) argument 790 show_freqdomain_cpus(struct cpufreq_policy *policy, char *buf) argument 824 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); local [all...] |
H A D | scpi-cpufreq.c | 32 struct cpufreq_policy *policy = cpufreq_cpu_get_raw(cpu); local 33 struct scpi_data *priv = policy->driver_data; 40 scpi_cpufreq_set_target(struct cpufreq_policy *policy, unsigned int index) argument 42 u64 rate = policy->freq_table[index].frequency * 1000; 43 struct scpi_data *priv = policy->driver_data; 83 static int scpi_cpufreq_init(struct cpufreq_policy *policy) argument 91 cpu_dev = get_cpu_device(policy->cpu); 93 pr_err("failed to get cpu%d device\n", policy->cpu); 103 ret = scpi_get_sharing_cpus(cpu_dev, policy->cpus); 109 ret = dev_pm_opp_set_sharing_cpus(cpu_dev, policy 170 scpi_cpufreq_exit(struct cpufreq_policy *policy) argument [all...] |
H A D | gx-suspmod.c | 136 /* For the default policy, we want at least some processing power 250 static void gx_set_cpuspeed(struct cpufreq_policy *policy, unsigned int khz) argument 264 cpufreq_freq_transition_begin(policy, &freqs); 313 cpufreq_freq_transition_end(policy, &freqs, 0); 331 static int cpufreq_gx_verify(struct cpufreq_policy_data *policy) argument 336 if (!stock_freq || !policy) 339 policy->cpu = 0; 340 cpufreq_verify_within_limits(policy, (stock_freq / max_duration), 344 * within policy->min and policy 371 cpufreq_gx_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) argument 398 cpufreq_gx_cpu_init(struct cpufreq_policy *policy) argument [all...] |
H A D | ppc_cbe_cpufreq_pmi.c | 66 struct cpufreq_policy *policy; local 80 policy = cpufreq_cpu_get(cpu); 81 if (!policy) { 82 pr_warn("cpufreq policy not found cpu%d\n", cpu); 86 req = policy->driver_data; 89 policy->freq_table[slow_mode].frequency); 95 cpufreq_cpu_put(policy); 103 void cbe_cpufreq_pmi_policy_init(struct cpufreq_policy *policy) argument 115 ret = freq_qos_add_request(&policy->constraints, req, FREQ_QOS_MAX, 116 policy 127 cbe_cpufreq_pmi_policy_exit(struct cpufreq_policy *policy) argument [all...] |
H A D | amd_freq_sensitivity.c | 39 static unsigned int amd_powersave_bias_target(struct cpufreq_policy *policy, argument 46 struct cpu_data_t *data = &per_cpu(cpu_data, policy->cpu); 47 struct policy_dbs_info *policy_dbs = policy->governor_data; 51 if (!policy->freq_table) 54 rdmsr_on_cpu(policy->cpu, MSR_AMD64_FREQ_SENSITIVITY_ACTUAL, 56 rdmsr_on_cpu(policy->cpu, MSR_AMD64_FREQ_SENSITIVITY_REFERENCE, 63 freq_next = policy->cur; 72 freq_next = policy->cur; 83 if (data->freq_prev == policy->cur) 84 freq_next = policy [all...] |
H A D | cpufreq_governor.c | 90 * (that may be a single policy or a bunch of them if governor tunables are 102 for_each_cpu(j, policy_dbs->policy->cpus) { 114 unsigned int dbs_update(struct cpufreq_policy *policy) argument 116 struct policy_dbs_info *policy_dbs = policy->governor_data; 137 for_each_cpu(j, policy->cpus) { 235 struct cpufreq_policy *policy; local 239 policy = policy_dbs->policy; 240 gov = dbs_governor_of(policy); 247 gov_update_sample_delay(policy_dbs, gov->gov_dbs_update(policy)); 325 struct cpufreq_policy *policy = policy_dbs->policy; local 339 gov_clear_update_util(struct cpufreq_policy *policy) argument 349 alloc_policy_dbs_info(struct cpufreq_policy *policy, struct dbs_governor *gov) argument 400 cpufreq_dbs_governor_init(struct cpufreq_policy *policy) argument 490 cpufreq_dbs_governor_exit(struct cpufreq_policy *policy) argument 513 cpufreq_dbs_governor_start(struct cpufreq_policy *policy) argument 551 cpufreq_dbs_governor_stop(struct cpufreq_policy *policy) argument 563 cpufreq_dbs_governor_limits(struct cpufreq_policy *policy) argument [all...] |
H A D | amd-pstate.c | 223 if (epp > 0 && cpudata->policy == CPUFREQ_POLICY_PERFORMANCE) { 224 pr_debug("EPP cannot be set under performance policy\n"); 478 static int amd_pstate_verify(struct cpufreq_policy_data *policy) argument 480 cpufreq_verify_within_cpu_limits(policy); 485 static int amd_pstate_update_min_max_limit(struct cpufreq_policy *policy) argument 488 struct amd_cpudata *cpudata = policy->driver_data; 490 max_limit_perf = div_u64(policy->max * cpudata->highest_perf, cpudata->max_freq); 491 min_limit_perf = div_u64(policy->min * cpudata->highest_perf, cpudata->max_freq); 502 WRITE_ONCE(cpudata->max_limit_freq, policy->max); 503 WRITE_ONCE(cpudata->min_limit_freq, policy 508 amd_pstate_update_freq(struct cpufreq_policy *policy, unsigned int target_freq, bool fast_switch) argument 549 amd_pstate_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) argument 556 amd_pstate_fast_switch(struct cpufreq_policy *policy, unsigned int target_freq) argument 571 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); local 679 amd_pstate_set_boost(struct cpufreq_policy *policy, int state) argument 799 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); local 831 amd_pstate_cpu_init(struct cpufreq_policy *policy) argument 922 amd_pstate_cpu_exit(struct cpufreq_policy *policy) argument 934 amd_pstate_cpu_resume(struct cpufreq_policy *policy) argument 945 amd_pstate_cpu_suspend(struct cpufreq_policy *policy) argument 963 show_amd_pstate_max_freq(struct cpufreq_policy *policy, char *buf) argument 976 show_amd_pstate_lowest_nonlinear_freq(struct cpufreq_policy *policy, char *buf) argument 993 show_amd_pstate_highest_perf(struct cpufreq_policy *policy, char *buf) argument 1004 show_amd_pstate_prefcore_ranking(struct cpufreq_policy *policy, char *buf) argument 1015 show_amd_pstate_hw_prefcore(struct cpufreq_policy *policy, char *buf) argument 1026 show_energy_performance_available_preferences( struct cpufreq_policy *policy, char *buf) argument 1045 store_energy_performance_preference( struct cpufreq_policy *policy, const char *buf, size_t count) argument 1067 show_energy_performance_preference( struct cpufreq_policy *policy, char *buf) argument 1291 amd_pstate_epp_cpu_init(struct cpufreq_policy *policy) argument 1379 amd_pstate_epp_cpu_exit(struct cpufreq_policy *policy) argument 1385 amd_pstate_epp_update_limit(struct cpufreq_policy *policy) argument 1451 amd_pstate_epp_set_policy(struct cpufreq_policy *policy) argument 1490 amd_pstate_epp_cpu_online(struct cpufreq_policy *policy) argument 1504 amd_pstate_epp_offline(struct cpufreq_policy *policy) argument 1533 amd_pstate_epp_cpu_offline(struct cpufreq_policy *policy) argument 1548 amd_pstate_epp_verify_policy(struct cpufreq_policy_data *policy) argument 1555 amd_pstate_epp_suspend(struct cpufreq_policy *policy) argument 1575 amd_pstate_epp_resume(struct cpufreq_policy *policy) argument [all...] |
H A D | longrun.c | 29 * longrun_get_policy - get the current LongRun policy 30 * @policy: struct cpufreq_policy where current policy is written into 32 * Reads the current LongRun policy by access to MSR_TMTA_LONGRUN_FLAGS 35 static void longrun_get_policy(struct cpufreq_policy *policy) argument 42 policy->policy = CPUFREQ_POLICY_PERFORMANCE; 44 policy->policy = CPUFREQ_POLICY_POWERSAVE; 53 policy 71 longrun_set_policy(struct cpufreq_policy *policy) argument 125 longrun_verify_policy(struct cpufreq_policy_data *policy) argument 252 longrun_cpu_init(struct cpufreq_policy *policy) argument [all...] |
/linux-master/fs/crypto/ |
H A D | policy.c | 3 * Encryption policy functions for per-file encryption support. 10 * Modified by Eric Biggers, 2019 for v2 policy support. 22 * @policy1: the first policy 23 * @policy2: the second policy 36 int fscrypt_policy_to_key_spec(const union fscrypt_policy *policy, argument 39 switch (policy->version) { 42 memcpy(key_spec->u.descriptor, policy->v1.master_key_descriptor, 47 memcpy(key_spec->u.identifier, policy->v2.master_key_identifier, 120 static bool supported_iv_ino_lblk_policy(const struct fscrypt_policy_v2 *policy, argument 123 const char *type = (policy 181 fscrypt_supported_v1_policy(const struct fscrypt_policy_v1 *policy, const struct inode *inode) argument 215 fscrypt_supported_v2_policy(const struct fscrypt_policy_v2 *policy, const struct inode *inode) argument 333 const struct fscrypt_policy_v1 *policy = &policy_u->v1; local 349 const struct fscrypt_policy_v2 *policy = &policy_u->v2; local 396 struct fscrypt_policy_v1 *policy = &policy_u->v1; local 411 struct fscrypt_policy_v2 *policy = &policy_u->v2; local 433 fscrypt_get_policy(struct inode *inode, union fscrypt_policy *policy) argument 456 set_encryption_policy(struct inode *inode, const union fscrypt_policy *policy) argument 505 union fscrypt_policy policy; local 571 union fscrypt_policy policy; local 591 union fscrypt_policy *policy = (union fscrypt_policy *)&arg.policy; local 598 offsetof(typeof(arg), policy)); local 807 union fscrypt_policy *policy; local 882 const union fscrypt_policy *policy = fscrypt_get_dummy_policy(sb); local [all...] |
/linux-master/arch/powerpc/platforms/cell/ |
H A D | cpufreq_spudemand.c | 25 struct cpufreq_policy *policy; member in struct:spu_gov_info_struct 36 cpu = info->policy->cpu; 43 return info->policy->max * info->busy_spus / FIXED_1; 54 /* after cancel_delayed_work_sync we unset info->policy */ 55 BUG_ON(info->policy == NULL); 58 __cpufreq_driver_target(info->policy, target_freq, CPUFREQ_RELATION_H); 61 schedule_delayed_work_on(info->policy->cpu, &info->work, delay); 68 schedule_delayed_work_on(info->policy->cpu, &info->work, delay); 76 static int spu_gov_start(struct cpufreq_policy *policy) argument 78 unsigned int cpu = policy 107 spu_gov_stop(struct cpufreq_policy *policy) argument [all...] |
/linux-master/tools/perf/trace/beauty/ |
H A D | sched_policy.c | 26 int policy = arg->val, local 27 flags = policy & ~SCHED_POLICY_MASK; 29 policy &= SCHED_POLICY_MASK; 30 if (policy <= SCHED_DEADLINE) 31 printed = scnprintf(bf, size, "%s%s", show_prefix ? prefix : "", policies[policy]); 33 printed = scnprintf(bf, size, "%#x", policy);
|
/linux-master/include/linux/ |
H A D | cpu_cooling.h | 25 * @policy: cpufreq policy. 28 cpufreq_cooling_register(struct cpufreq_policy *policy); 38 * @policy: cpufreq policy. 41 of_cpufreq_cooling_register(struct cpufreq_policy *policy); 45 cpufreq_cooling_register(struct cpufreq_policy *policy) argument 57 of_cpufreq_cooling_register(struct cpufreq_policy *policy) argument
|
H A D | cpufreq.h | 63 unsigned int cpu; /* cpu managing this policy, must be online */ 74 unsigned int policy; /* see above */ member in struct:cpufreq_policy 75 unsigned int last_policy; /* policy before unplug */ 96 * - Any routine that wants to read from the policy structure will 98 * - Any routine that will write to the policy structure and/or may take away 99 * the policy altogether (eg. CPU hotplug), will hold this lock in write 108 * policy and that the change will affect all of the policy CPUs then. 130 * the driver to set the frequency for this policy. To be set by the 144 /* Per policy boos 185 struct cpufreq_policy *policy; member in struct:cpufreq_freqs 210 cpufreq_cpu_put(struct cpufreq_policy *policy) argument 213 policy_is_inactive(struct cpufreq_policy *policy) argument 218 policy_is_shared(struct cpufreq_policy *policy) argument 275 cpufreq_stats_create_table(struct cpufreq_policy *policy) argument 276 cpufreq_stats_free_table(struct cpufreq_policy *policy) argument 277 cpufreq_stats_record_transition(struct cpufreq_policy *policy, unsigned int new_freq) argument 471 cpufreq_verify_within_limits(struct cpufreq_policy_data *policy, unsigned int min, unsigned int max) argument 480 cpufreq_verify_within_cpu_limits(struct cpufreq_policy_data *policy) argument 640 cpufreq_policy_apply_limits(struct cpufreq_policy *policy) argument 783 cpufreq_table_find_index_al(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) argument 805 cpufreq_table_find_index_dl(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) argument 836 cpufreq_table_find_index_l(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) argument 851 cpufreq_table_find_index_ah(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) argument 882 cpufreq_table_find_index_dh(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) argument 904 cpufreq_table_find_index_h(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) argument 919 cpufreq_table_find_index_ac(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) argument 954 cpufreq_table_find_index_dc(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) argument 989 cpufreq_table_find_index_c(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) argument 1003 cpufreq_is_in_limits(struct cpufreq_policy *policy, int idx) argument 1015 cpufreq_frequency_table_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) argument 1057 cpufreq_table_count_valid_entries(const struct cpufreq_policy *policy) argument 1082 cpufreq_table_set_inefficient(struct cpufreq_policy *policy, unsigned int frequency) argument 1167 policy_has_boost_freq(struct cpufreq_policy *policy) argument 1173 cpufreq_table_set_inefficient(struct cpufreq_policy *policy, unsigned int frequency) argument 1209 cpufreq_register_em_with_opp(struct cpufreq_policy *policy) argument [all...] |
/linux-master/include/linux/sched/ |
H A D | rt.h | 23 int policy = tsk->policy; local 25 if (policy == SCHED_FIFO || policy == SCHED_RR) 27 if (policy == SCHED_DEADLINE)
|
/linux-master/kernel/sched/ |
H A D | cpufreq.c | 61 * cpufreq_this_cpu_can_update - Check if cpufreq policy can be updated. 62 * @policy: cpufreq policy to check. 65 * - the local and remote CPUs share @policy, 66 * - dvfs_possible_from_any_cpu is set in @policy and the local CPU is not going 69 bool cpufreq_this_cpu_can_update(struct cpufreq_policy *policy) argument 71 return cpumask_test_cpu(smp_processor_id(), policy->cpus) || 72 (policy->dvfs_possible_from_any_cpu &&
|
/linux-master/security/apparmor/include/ |
H A D | policy_compat.h | 5 * Code to provide backwards compatibility with older policy versions, 6 * by converting/mapping older policy formats into the newer internal 15 #include "policy.h" 29 int aa_compat_map_xmatch(struct aa_policydb *policy); 30 int aa_compat_map_policy(struct aa_policydb *policy, u32 version); 31 int aa_compat_map_file(struct aa_policydb *policy);
|