/kernel/linux/linux-6.6/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) in get_governor_parent_kobj() argument 123 return &policy->kobj; in get_governor_parent_kobj() 172 * - policy 174 cpufreq_generic_init(struct cpufreq_policy *policy, struct cpufreq_frequency_table *table, unsigned int transition_latency) cpufreq_generic_init() argument 191 struct cpufreq_policy *policy = per_cpu(cpufreq_cpu_data, cpu); cpufreq_cpu_get_raw() local 199 struct cpufreq_policy *policy = cpufreq_cpu_get_raw(cpu); cpufreq_generic_get() local 224 struct cpufreq_policy *policy = NULL; cpufreq_cpu_get() local 250 cpufreq_cpu_put(struct cpufreq_policy *policy) cpufreq_cpu_put() argument 260 cpufreq_cpu_release(struct cpufreq_policy *policy) cpufreq_cpu_release() argument 286 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); cpufreq_cpu_acquire() local 349 cpufreq_notify_transition(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, unsigned int state) cpufreq_notify_transition() argument 401 cpufreq_notify_post_transition(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, int transition_failed) cpufreq_notify_post_transition() argument 413 cpufreq_freq_transition_begin(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs) cpufreq_freq_transition_begin() argument 447 cpufreq_freq_transition_end(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, int transition_failed) cpufreq_freq_transition_end() argument 500 cpufreq_enable_fast_switch(struct cpufreq_policy *policy) cpufreq_enable_fast_switch() argument 524 cpufreq_disable_fast_switch(struct cpufreq_policy *policy) cpufreq_disable_fast_switch() argument 536 __resolve_freq(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) __resolve_freq() argument 563 cpufreq_driver_resolve_freq(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_driver_resolve_freq() argument 570 cpufreq_policy_transition_delay_us(struct cpufreq_policy *policy) cpufreq_policy_transition_delay_us() argument 627 show_local_boost(struct cpufreq_policy *policy, char *buf) show_local_boost() argument 632 store_local_boost(struct cpufreq_policy *policy, const char *buf, size_t count) store_local_boost() argument 747 show_scaling_cur_freq(struct cpufreq_policy *policy, char *buf) show_scaling_cur_freq() argument 786 show_cpuinfo_cur_freq(struct cpufreq_policy *policy, char *buf) show_cpuinfo_cur_freq() argument 800 show_scaling_governor(struct cpufreq_policy *policy, char *buf) show_scaling_governor() argument 815 store_scaling_governor(struct cpufreq_policy *policy, const char *buf, size_t count) store_scaling_governor() argument 852 show_scaling_driver(struct cpufreq_policy *policy, char *buf) show_scaling_driver() argument 860 show_scaling_available_governors(struct cpufreq_policy *policy, char *buf) show_scaling_available_governors() argument 907 show_related_cpus(struct cpufreq_policy *policy, char *buf) show_related_cpus() argument 915 show_affected_cpus(struct cpufreq_policy *policy, char *buf) show_affected_cpus() argument 920 store_scaling_setspeed(struct cpufreq_policy *policy, const char *buf, size_t count) store_scaling_setspeed() argument 938 show_scaling_setspeed(struct cpufreq_policy *policy, char *buf) show_scaling_setspeed() argument 949 show_bios_limit(struct cpufreq_policy *policy, char *buf) show_bios_limit() argument 995 struct cpufreq_policy *policy = to_policy(kobj); show() local 1013 struct cpufreq_policy *policy = to_policy(kobj); store() local 1030 struct cpufreq_policy *policy = to_policy(kobj); cpufreq_sysfs_release() local 1046 add_cpu_dev_symlink(struct cpufreq_policy *policy, unsigned int cpu, struct device *dev) add_cpu_dev_symlink() argument 1060 remove_cpu_dev_symlink(struct cpufreq_policy *policy, int cpu, struct device *dev) remove_cpu_dev_symlink() argument 1068 cpufreq_add_dev_interface(struct cpufreq_policy *policy) cpufreq_add_dev_interface() argument 1106 cpufreq_init_policy(struct cpufreq_policy *policy) cpufreq_init_policy() argument 1154 cpufreq_add_policy_cpu(struct cpufreq_policy *policy, unsigned int cpu) cpufreq_add_policy_cpu() argument 1177 refresh_frequency_limits(struct cpufreq_policy *policy) refresh_frequency_limits() argument 1189 struct cpufreq_policy *policy = handle_update() local 1201 struct cpufreq_policy *policy = container_of(nb, struct cpufreq_policy, nb_min); cpufreq_notifier_min() local 1210 struct cpufreq_policy *policy = container_of(nb, struct cpufreq_policy, nb_max); cpufreq_notifier_max() local 1216 cpufreq_policy_put_kobj(struct cpufreq_policy *policy) cpufreq_policy_put_kobj() argument 1240 struct cpufreq_policy *policy; cpufreq_policy_alloc() local 1321 cpufreq_policy_free(struct cpufreq_policy *policy) cpufreq_policy_free() argument 1372 struct cpufreq_policy *policy; cpufreq_online() local 1613 struct cpufreq_policy *policy; cpufreq_add_dev() local 1633 __cpufreq_offline(unsigned int cpu, struct cpufreq_policy *policy) __cpufreq_offline() argument 1685 struct cpufreq_policy *policy; cpufreq_offline() local 1711 struct cpufreq_policy *policy = per_cpu(cpufreq_cpu_data, cpu); cpufreq_remove_dev() local 1745 cpufreq_out_of_sync(struct cpufreq_policy *policy, unsigned int new_freq) cpufreq_out_of_sync() argument 1760 cpufreq_verify_current_freq(struct cpufreq_policy *policy, bool update) cpufreq_verify_current_freq() argument 1803 struct cpufreq_policy *policy; cpufreq_quick_get() local 1835 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); cpufreq_quick_get_max() local 1855 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); cpufreq_get_hw_max_freq() local 1867 __cpufreq_get(struct cpufreq_policy *policy) __cpufreq_get() argument 1883 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); cpufreq_get() local 1910 cpufreq_generic_suspend(struct cpufreq_policy *policy) cpufreq_generic_suspend() argument 1942 struct cpufreq_policy *policy; cpufreq_suspend() local 1976 struct cpufreq_policy *policy; cpufreq_resume() local 2168 cpufreq_driver_fast_switch(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_driver_fast_switch() argument 2235 __target_intermediate(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, int index) __target_intermediate() argument 2260 __target_index(struct cpufreq_policy *policy, int index) __target_index() argument 2320 __cpufreq_driver_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) __cpufreq_driver_target() argument 2362 cpufreq_driver_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) cpufreq_driver_target() argument 2383 cpufreq_init_governor(struct cpufreq_policy *policy) cpufreq_init_governor() argument 2429 cpufreq_exit_governor(struct cpufreq_policy *policy) cpufreq_exit_governor() argument 2442 cpufreq_start_governor(struct cpufreq_policy *policy) cpufreq_start_governor() argument 2469 cpufreq_stop_governor(struct cpufreq_policy *policy) cpufreq_stop_governor() argument 2480 cpufreq_governor_limits(struct cpufreq_policy *policy) cpufreq_governor_limits() argument 2516 struct cpufreq_policy *policy; cpufreq_unregister_governor() local 2554 cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu) cpufreq_get_policy() argument 2586 cpufreq_set_policy(struct cpufreq_policy *policy, struct cpufreq_governor *new_gov, unsigned int new_pol) cpufreq_set_policy() argument 2690 struct cpufreq_policy *policy = cpufreq_cpu_acquire(cpu); cpufreq_update_policy() local 2729 cpufreq_boost_set_sw(struct cpufreq_policy *policy, int state) cpufreq_boost_set_sw() argument 2751 struct cpufreq_policy *policy; cpufreq_boost_trigger_state() local [all...] |
H A D | cpufreq_userspace.c | 23 * @policy: pointer to policy struct where freq is being set 28 static int cpufreq_set(struct cpufreq_policy *policy, unsigned int freq) in cpufreq_set() argument 31 unsigned int *setspeed = policy->governor_data; in cpufreq_set() 33 pr_debug("cpufreq_set for cpu %u, freq %u kHz\n", policy->cpu, freq); in cpufreq_set() 36 if (!per_cpu(cpu_is_managed, policy->cpu)) in cpufreq_set() 41 ret = __cpufreq_driver_target(policy, freq, CPUFREQ_RELATION_L); in cpufreq_set() 47 static ssize_t show_speed(struct cpufreq_policy *policy, char *buf) in show_speed() argument 49 return sprintf(buf, "%u\n", policy->cur); in show_speed() 52 static int cpufreq_userspace_policy_init(struct cpufreq_policy *policy) in cpufreq_userspace_policy_init() argument 64 cpufreq_userspace_policy_exit(struct cpufreq_policy *policy) cpufreq_userspace_policy_exit() argument 72 cpufreq_userspace_policy_start(struct cpufreq_policy *policy) cpufreq_userspace_policy_start() argument 86 cpufreq_userspace_policy_stop(struct cpufreq_policy *policy) cpufreq_userspace_policy_stop() argument 98 cpufreq_userspace_policy_limits(struct cpufreq_policy *policy) cpufreq_userspace_policy_limits() argument [all...] |
H A D | freq_table.c | 17 bool policy_has_boost_freq(struct cpufreq_policy *policy) in policy_has_boost_freq() argument 19 struct cpufreq_frequency_table *pos, *table = policy->freq_table; in policy_has_boost_freq() 32 int cpufreq_frequency_table_cpuinfo(struct cpufreq_policy *policy, in cpufreq_frequency_table_cpuinfo() argument 43 if ((!cpufreq_boost_enabled() || !policy->boost_enabled) in cpufreq_frequency_table_cpuinfo() 54 policy->min = policy->cpuinfo.min_freq = min_freq; in cpufreq_frequency_table_cpuinfo() 55 policy->max = max_freq; in cpufreq_frequency_table_cpuinfo() 60 if (policy->cpuinfo.max_freq < max_freq) in cpufreq_frequency_table_cpuinfo() 61 policy->max = policy in cpufreq_frequency_table_cpuinfo() 69 cpufreq_frequency_table_verify(struct cpufreq_policy_data *policy, struct cpufreq_frequency_table *table) cpufreq_frequency_table_verify() argument 109 cpufreq_generic_frequency_table_verify(struct cpufreq_policy_data *policy) cpufreq_generic_frequency_table_verify() argument 118 cpufreq_table_index_unsorted(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) cpufreq_table_index_unsorted() argument 211 cpufreq_frequency_table_get_index(struct cpufreq_policy *policy, unsigned int freq) cpufreq_frequency_table_get_index() argument 233 show_available_freqs(struct cpufreq_policy *policy, char *buf, bool show_boost) show_available_freqs() argument 273 scaling_available_frequencies_show(struct cpufreq_policy *policy, char *buf) scaling_available_frequencies_show() argument 285 scaling_boost_frequencies_show(struct cpufreq_policy *policy, char *buf) scaling_boost_frequencies_show() argument 299 set_freq_table_sorted(struct cpufreq_policy *policy) set_freq_table_sorted() argument 354 cpufreq_table_validate_and_sort(struct cpufreq_policy *policy) cpufreq_table_validate_and_sort() argument [all...] |
H A D | sh-cpufreq.c | 33 struct cpufreq_policy *policy; member 45 struct cpufreq_policy *policy = target->policy; in __sh_cpufreq_target() local 46 int cpu = policy->cpu; in __sh_cpufreq_target() 60 if (freq < (policy->min * 1000) || freq > (policy->max * 1000)) in __sh_cpufreq_target() 69 cpufreq_freq_transition_begin(target->policy, &freqs); in __sh_cpufreq_target() 71 cpufreq_freq_transition_end(target->policy, &freqs, 0); in __sh_cpufreq_target() 80 static int sh_cpufreq_target(struct cpufreq_policy *policy, in sh_cpufreq_target() argument 84 struct cpufreq_target data = { .policy in sh_cpufreq_target() 89 sh_cpufreq_verify(struct cpufreq_policy_data *policy) sh_cpufreq_verify() argument 107 sh_cpufreq_cpu_init(struct cpufreq_policy *policy) sh_cpufreq_cpu_init() argument 138 sh_cpufreq_cpu_exit(struct cpufreq_policy *policy) sh_cpufreq_cpu_exit() argument [all...] |
H A D | amd-pstate.c | 220 if (epp > 0 && cpudata->policy == CPUFREQ_POLICY_PERFORMANCE) { in amd_pstate_set_energy_pref_index() 221 pr_debug("EPP cannot be set under performance policy\n"); in amd_pstate_set_energy_pref_index() 471 static int amd_pstate_verify(struct cpufreq_policy_data *policy) in amd_pstate_verify() argument 473 cpufreq_verify_within_cpu_limits(policy); in amd_pstate_verify() 478 static int amd_pstate_update_min_max_limit(struct cpufreq_policy *policy) in amd_pstate_update_min_max_limit() argument 481 struct amd_cpudata *cpudata = policy->driver_data; in amd_pstate_update_min_max_limit() 483 max_limit_perf = div_u64(policy->max * cpudata->highest_perf, cpudata->max_freq); in amd_pstate_update_min_max_limit() 484 min_limit_perf = div_u64(policy->min * cpudata->highest_perf, cpudata->max_freq); in amd_pstate_update_min_max_limit() 488 WRITE_ONCE(cpudata->max_limit_freq, policy->max); in amd_pstate_update_min_max_limit() 489 WRITE_ONCE(cpudata->min_limit_freq, policy in amd_pstate_update_min_max_limit() 494 amd_pstate_update_freq(struct cpufreq_policy *policy, unsigned int target_freq, bool fast_switch) amd_pstate_update_freq() argument 535 amd_pstate_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) amd_pstate_target() argument 542 amd_pstate_fast_switch(struct cpufreq_policy *policy, unsigned int target_freq) amd_pstate_fast_switch() argument 557 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); amd_pstate_adjust_perf() local 665 amd_pstate_set_boost(struct cpufreq_policy *policy, int state) amd_pstate_set_boost() argument 709 amd_pstate_cpu_init(struct cpufreq_policy *policy) amd_pstate_cpu_init() argument 798 amd_pstate_cpu_exit(struct cpufreq_policy *policy) amd_pstate_cpu_exit() argument 810 amd_pstate_cpu_resume(struct cpufreq_policy *policy) amd_pstate_cpu_resume() argument 821 amd_pstate_cpu_suspend(struct cpufreq_policy *policy) amd_pstate_cpu_suspend() argument 839 show_amd_pstate_max_freq(struct cpufreq_policy *policy, char *buf) show_amd_pstate_max_freq() argument 852 show_amd_pstate_lowest_nonlinear_freq(struct cpufreq_policy *policy, char *buf) show_amd_pstate_lowest_nonlinear_freq() argument 869 show_amd_pstate_highest_perf(struct cpufreq_policy *policy, char *buf) show_amd_pstate_highest_perf() argument 880 show_energy_performance_available_preferences( struct cpufreq_policy *policy, char *buf) show_energy_performance_available_preferences() argument 899 store_energy_performance_preference( struct cpufreq_policy *policy, const char *buf, size_t count) store_energy_performance_preference() argument 921 show_energy_performance_preference( struct cpufreq_policy *policy, char *buf) show_energy_performance_preference() argument 1131 amd_pstate_epp_cpu_init(struct cpufreq_policy *policy) amd_pstate_epp_cpu_init() argument 1217 amd_pstate_epp_cpu_exit(struct cpufreq_policy *policy) amd_pstate_epp_cpu_exit() argument 1223 amd_pstate_epp_update_limit(struct cpufreq_policy *policy) amd_pstate_epp_update_limit() argument 1283 amd_pstate_epp_set_policy(struct cpufreq_policy *policy) amd_pstate_epp_set_policy() argument 1322 amd_pstate_epp_cpu_online(struct cpufreq_policy *policy) amd_pstate_epp_cpu_online() argument 1336 amd_pstate_epp_offline(struct cpufreq_policy *policy) amd_pstate_epp_offline() argument 1365 amd_pstate_epp_cpu_offline(struct cpufreq_policy *policy) amd_pstate_epp_cpu_offline() argument 1380 amd_pstate_epp_verify_policy(struct cpufreq_policy_data *policy) amd_pstate_epp_verify_policy() argument 1387 amd_pstate_epp_suspend(struct cpufreq_policy *policy) amd_pstate_epp_suspend() argument 1407 amd_pstate_epp_resume(struct cpufreq_policy *policy) amd_pstate_epp_resume() 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) in gx_set_cpuspeed() argument 264 cpufreq_freq_transition_begin(policy, &freqs); in gx_set_cpuspeed() 313 cpufreq_freq_transition_end(policy, &freqs, 0); in gx_set_cpuspeed() 331 static int cpufreq_gx_verify(struct cpufreq_policy_data *policy) in cpufreq_gx_verify() argument 336 if (!stock_freq || !policy) in cpufreq_gx_verify() 339 policy->cpu = 0; in cpufreq_gx_verify() 340 cpufreq_verify_within_limits(policy, (stock_freq / max_duration), in cpufreq_gx_verify() 344 * within policy->min and policy in cpufreq_gx_verify() 371 cpufreq_gx_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) cpufreq_gx_target() argument 398 cpufreq_gx_cpu_init(struct cpufreq_policy *policy) cpufreq_gx_cpu_init() argument [all...] |
/kernel/linux/linux-5.10/drivers/cpufreq/ |
H A D | cpufreq.c | 79 static unsigned int __cpufreq_get(struct cpufreq_policy *policy); 80 static int cpufreq_init_governor(struct cpufreq_policy *policy); 81 static void cpufreq_exit_governor(struct cpufreq_policy *policy); 82 static void cpufreq_governor_limits(struct cpufreq_policy *policy); 83 static int cpufreq_set_policy(struct cpufreq_policy *policy, 88 * Two notifier lists: the "policy" list is involved in the 89 * validation process for a new CPU frequency policy; the 116 struct kobject *get_governor_parent_kobj(struct cpufreq_policy *policy) in get_governor_parent_kobj() argument 119 return &policy->kobj; in get_governor_parent_kobj() 168 * - policy 170 cpufreq_generic_init(struct cpufreq_policy *policy, struct cpufreq_frequency_table *table, unsigned int transition_latency) cpufreq_generic_init() argument 187 struct cpufreq_policy *policy = per_cpu(cpufreq_cpu_data, cpu); cpufreq_cpu_get_raw() local 195 struct cpufreq_policy *policy = cpufreq_cpu_get_raw(cpu); cpufreq_generic_get() local 220 struct cpufreq_policy *policy = NULL; cpufreq_cpu_get() local 246 cpufreq_cpu_put(struct cpufreq_policy *policy) cpufreq_cpu_put() argument 256 cpufreq_cpu_release(struct cpufreq_policy *policy) cpufreq_cpu_release() argument 282 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); cpufreq_cpu_acquire() local 343 cpufreq_notify_transition(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, unsigned int state) cpufreq_notify_transition() argument 395 cpufreq_notify_post_transition(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, int transition_failed) cpufreq_notify_post_transition() argument 407 cpufreq_freq_transition_begin(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs) cpufreq_freq_transition_begin() argument 441 cpufreq_freq_transition_end(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, int transition_failed) cpufreq_freq_transition_end() argument 494 cpufreq_enable_fast_switch(struct cpufreq_policy *policy) cpufreq_enable_fast_switch() argument 518 cpufreq_disable_fast_switch(struct cpufreq_policy *policy) cpufreq_disable_fast_switch() argument 541 cpufreq_driver_resolve_freq(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_driver_resolve_freq() argument 563 cpufreq_policy_transition_delay_us(struct cpufreq_policy *policy) cpufreq_policy_transition_delay_us() argument 704 show_scaling_cur_freq(struct cpufreq_policy *policy, char *buf) show_scaling_cur_freq() argument 743 show_cpuinfo_cur_freq(struct cpufreq_policy *policy, char *buf) show_cpuinfo_cur_freq() argument 757 show_scaling_governor(struct cpufreq_policy *policy, char *buf) show_scaling_governor() argument 772 store_scaling_governor(struct cpufreq_policy *policy, const char *buf, size_t count) store_scaling_governor() argument 809 show_scaling_driver(struct cpufreq_policy *policy, char *buf) show_scaling_driver() argument 817 show_scaling_available_governors(struct cpufreq_policy *policy, char *buf) show_scaling_available_governors() argument 862 show_related_cpus(struct cpufreq_policy *policy, char *buf) show_related_cpus() argument 870 show_affected_cpus(struct cpufreq_policy *policy, char *buf) show_affected_cpus() argument 875 store_scaling_setspeed(struct cpufreq_policy *policy, const char *buf, size_t count) store_scaling_setspeed() argument 893 show_scaling_setspeed(struct cpufreq_policy *policy, char *buf) show_scaling_setspeed() argument 904 show_bios_limit(struct cpufreq_policy *policy, char *buf) show_bios_limit() argument 949 struct cpufreq_policy *policy = to_policy(kobj); show() local 966 struct cpufreq_policy *policy = to_policy(kobj); store() local 993 struct cpufreq_policy *policy = to_policy(kobj); cpufreq_sysfs_release() local 1009 add_cpu_dev_symlink(struct cpufreq_policy *policy, unsigned int cpu, struct device *dev) add_cpu_dev_symlink() argument 1023 remove_cpu_dev_symlink(struct cpufreq_policy *policy, struct device *dev) remove_cpu_dev_symlink() argument 1030 cpufreq_add_dev_interface(struct cpufreq_policy *policy) cpufreq_add_dev_interface() argument 1062 cpufreq_init_policy(struct cpufreq_policy *policy) cpufreq_init_policy() argument 1110 cpufreq_add_policy_cpu(struct cpufreq_policy *policy, unsigned int cpu) cpufreq_add_policy_cpu() argument 1133 refresh_frequency_limits(struct cpufreq_policy *policy) refresh_frequency_limits() argument 1145 struct cpufreq_policy *policy = handle_update() local 1157 struct cpufreq_policy *policy = container_of(nb, struct cpufreq_policy, nb_min); cpufreq_notifier_min() local 1166 struct cpufreq_policy *policy = container_of(nb, struct cpufreq_policy, nb_max); cpufreq_notifier_max() local 1172 cpufreq_policy_put_kobj(struct cpufreq_policy *policy) cpufreq_policy_put_kobj() argument 1196 struct cpufreq_policy *policy; cpufreq_policy_alloc() local 1277 cpufreq_policy_free(struct cpufreq_policy *policy) cpufreq_policy_free() argument 1320 struct cpufreq_policy *policy; cpufreq_online() local 1542 struct cpufreq_policy *policy; cpufreq_add_dev() local 1562 __cpufreq_offline(unsigned int cpu, struct cpufreq_policy *policy) __cpufreq_offline() argument 1620 struct cpufreq_policy *policy; cpufreq_offline() local 1646 struct cpufreq_policy *policy = per_cpu(cpufreq_cpu_data, cpu); cpufreq_remove_dev() local 1682 cpufreq_out_of_sync(struct cpufreq_policy *policy, unsigned int new_freq) cpufreq_out_of_sync() argument 1697 cpufreq_verify_current_freq(struct cpufreq_policy *policy, bool update) cpufreq_verify_current_freq() argument 1730 struct cpufreq_policy *policy; cpufreq_quick_get() local 1762 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); cpufreq_quick_get_max() local 1782 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); cpufreq_get_hw_max_freq() local 1794 __cpufreq_get(struct cpufreq_policy *policy) __cpufreq_get() argument 1810 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); cpufreq_get() local 1837 cpufreq_generic_suspend(struct cpufreq_policy *policy) cpufreq_generic_suspend() argument 1869 struct cpufreq_policy *policy; cpufreq_suspend() local 1903 struct cpufreq_policy *policy; cpufreq_resume() local 2096 cpufreq_driver_fast_switch(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_driver_fast_switch() argument 2123 __target_intermediate(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, int index) __target_intermediate() argument 2148 __target_index(struct cpufreq_policy *policy, int index) __target_index() argument 2205 __cpufreq_driver_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) __cpufreq_driver_target() argument 2246 cpufreq_driver_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) cpufreq_driver_target() argument 2267 cpufreq_init_governor(struct cpufreq_policy *policy) cpufreq_init_governor() argument 2313 cpufreq_exit_governor(struct cpufreq_policy *policy) cpufreq_exit_governor() argument 2326 cpufreq_start_governor(struct cpufreq_policy *policy) cpufreq_start_governor() argument 2353 cpufreq_stop_governor(struct cpufreq_policy *policy) cpufreq_stop_governor() argument 2364 cpufreq_governor_limits(struct cpufreq_policy *policy) cpufreq_governor_limits() argument 2400 struct cpufreq_policy *policy; cpufreq_unregister_governor() local 2438 cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu) cpufreq_get_policy() argument 2470 cpufreq_set_policy(struct cpufreq_policy *policy, struct cpufreq_governor *new_gov, unsigned int new_pol) cpufreq_set_policy() argument 2567 struct cpufreq_policy *policy = cpufreq_cpu_acquire(cpu); cpufreq_update_policy() local 2606 cpufreq_boost_set_sw(struct cpufreq_policy *policy, int state) cpufreq_boost_set_sw() argument 2628 struct cpufreq_policy *policy; cpufreq_boost_trigger_state() local [all...] |
H A D | freq_table.c | 17 bool policy_has_boost_freq(struct cpufreq_policy *policy) in policy_has_boost_freq() argument 19 struct cpufreq_frequency_table *pos, *table = policy->freq_table; in policy_has_boost_freq() 32 int cpufreq_frequency_table_cpuinfo(struct cpufreq_policy *policy, in cpufreq_frequency_table_cpuinfo() argument 54 policy->min = policy->cpuinfo.min_freq = min_freq; in cpufreq_frequency_table_cpuinfo() 55 policy->max = max_freq; in cpufreq_frequency_table_cpuinfo() 60 if (policy->cpuinfo.max_freq < max_freq) in cpufreq_frequency_table_cpuinfo() 61 policy->max = policy->cpuinfo.max_freq = max_freq; in cpufreq_frequency_table_cpuinfo() 63 if (policy in cpufreq_frequency_table_cpuinfo() 69 cpufreq_frequency_table_verify(struct cpufreq_policy_data *policy, struct cpufreq_frequency_table *table) cpufreq_frequency_table_verify() argument 109 cpufreq_generic_frequency_table_verify(struct cpufreq_policy_data *policy) cpufreq_generic_frequency_table_verify() argument 118 cpufreq_table_index_unsorted(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) cpufreq_table_index_unsorted() argument 211 cpufreq_frequency_table_get_index(struct cpufreq_policy *policy, unsigned int freq) cpufreq_frequency_table_get_index() argument 233 show_available_freqs(struct cpufreq_policy *policy, char *buf, bool show_boost) show_available_freqs() argument 273 scaling_available_frequencies_show(struct cpufreq_policy *policy, char *buf) scaling_available_frequencies_show() argument 285 scaling_boost_frequencies_show(struct cpufreq_policy *policy, char *buf) scaling_boost_frequencies_show() argument 299 set_freq_table_sorted(struct cpufreq_policy *policy) set_freq_table_sorted() argument 354 cpufreq_table_validate_and_sort(struct cpufreq_policy *policy) cpufreq_table_validate_and_sort() argument [all...] |
H A D | cpufreq_userspace.c | 23 * @policy: pointer to policy struct where freq is being set 28 static int cpufreq_set(struct cpufreq_policy *policy, unsigned int freq) in cpufreq_set() argument 31 unsigned int *setspeed = policy->governor_data; in cpufreq_set() 33 pr_debug("cpufreq_set for cpu %u, freq %u kHz\n", policy->cpu, freq); in cpufreq_set() 36 if (!per_cpu(cpu_is_managed, policy->cpu)) in cpufreq_set() 41 ret = __cpufreq_driver_target(policy, freq, CPUFREQ_RELATION_L); in cpufreq_set() 47 static ssize_t show_speed(struct cpufreq_policy *policy, char *buf) in show_speed() argument 49 return sprintf(buf, "%u\n", policy->cur); in show_speed() 52 static int cpufreq_userspace_policy_init(struct cpufreq_policy *policy) in cpufreq_userspace_policy_init() argument 64 cpufreq_userspace_policy_exit(struct cpufreq_policy *policy) cpufreq_userspace_policy_exit() argument 72 cpufreq_userspace_policy_start(struct cpufreq_policy *policy) cpufreq_userspace_policy_start() argument 86 cpufreq_userspace_policy_stop(struct cpufreq_policy *policy) cpufreq_userspace_policy_stop() argument 98 cpufreq_userspace_policy_limits(struct cpufreq_policy *policy) cpufreq_userspace_policy_limits() argument [all...] |
H A D | sh-cpufreq.c | 34 struct cpufreq_policy *policy; member 46 struct cpufreq_policy *policy = target->policy; in __sh_cpufreq_target() local 47 int cpu = policy->cpu; in __sh_cpufreq_target() 61 if (freq < (policy->min * 1000) || freq > (policy->max * 1000)) in __sh_cpufreq_target() 70 cpufreq_freq_transition_begin(target->policy, &freqs); in __sh_cpufreq_target() 72 cpufreq_freq_transition_end(target->policy, &freqs, 0); in __sh_cpufreq_target() 81 static int sh_cpufreq_target(struct cpufreq_policy *policy, in sh_cpufreq_target() argument 85 struct cpufreq_target data = { .policy in sh_cpufreq_target() 90 sh_cpufreq_verify(struct cpufreq_policy_data *policy) sh_cpufreq_verify() argument 108 sh_cpufreq_cpu_init(struct cpufreq_policy *policy) sh_cpufreq_cpu_init() argument 139 sh_cpufreq_cpu_exit(struct cpufreq_policy *policy) sh_cpufreq_cpu_exit() argument 149 sh_cpufreq_cpu_ready(struct cpufreq_policy *policy) sh_cpufreq_cpu_ready() 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) in gx_set_cpuspeed() argument 264 cpufreq_freq_transition_begin(policy, &freqs); in gx_set_cpuspeed() 313 cpufreq_freq_transition_end(policy, &freqs, 0); in gx_set_cpuspeed() 331 static int cpufreq_gx_verify(struct cpufreq_policy_data *policy) in cpufreq_gx_verify() argument 336 if (!stock_freq || !policy) in cpufreq_gx_verify() 339 policy->cpu = 0; in cpufreq_gx_verify() 340 cpufreq_verify_within_limits(policy, (stock_freq / max_duration), in cpufreq_gx_verify() 344 * within policy->min and policy in cpufreq_gx_verify() 371 cpufreq_gx_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) cpufreq_gx_target() argument 398 cpufreq_gx_cpu_init(struct cpufreq_policy *policy) cpufreq_gx_cpu_init() argument [all...] |
/foundation/window/window_manager/window_scene/test/dms_unittest/ |
H A D | single_display_pocket_fold_policy_test.cpp | 69 SingleDisplayPocketFoldPolicy policy(displayInfoMutex, screenPowerTaskScheduler); in HWTEST_F() 72 policy.ChangeScreenDisplayMode(displayMode); in HWTEST_F() 73 EXPECT_FALSE(policy.onBootAnimation_); in HWTEST_F() 76 policy.ChangeScreenDisplayMode(displayMode); in HWTEST_F() 77 EXPECT_FALSE(policy.onBootAnimation_); in HWTEST_F() 80 policy.ChangeScreenDisplayMode(displayMode); in HWTEST_F() 81 EXPECT_FALSE(policy.onBootAnimation_); in HWTEST_F() 84 policy.ChangeScreenDisplayMode(displayMode); in HWTEST_F() 85 EXPECT_FALSE(policy.onBootAnimation_); in HWTEST_F() 97 SingleDisplayPocketFoldPolicy policy(displayInfoMute in HWTEST_F() [all...] |
H A D | single_display_fold_policy_test.cpp | 64 SingleDisplayFoldPolicy policy(displayInfoMutex, screenPowerTaskScheduler); in HWTEST_F() 67 policy.ChangeScreenDisplayMode(displayMode); in HWTEST_F() 68 EXPECT_FALSE(policy.onBootAnimation_); in HWTEST_F() 71 policy.ChangeScreenDisplayMode(displayMode); in HWTEST_F() 72 EXPECT_FALSE(policy.onBootAnimation_); in HWTEST_F() 75 policy.ChangeScreenDisplayMode(displayMode); in HWTEST_F() 76 EXPECT_FALSE(policy.onBootAnimation_); in HWTEST_F() 79 policy.ChangeScreenDisplayMode(displayMode); in HWTEST_F() 80 EXPECT_FALSE(policy.onBootAnimation_); in HWTEST_F() 92 SingleDisplayFoldPolicy policy(displayInfoMute in HWTEST_F() [all...] |
/third_party/ltp/testcases/kernel/security/tomoyo/ |
H A D | tomoyo_new_file_test.c | 26 static const char *policy = ""; variable 31 printf("%s : ", policy); in show_result() 126 policy = "allow_read /proc/sys/net/ipv4/ip_local_port_range"; in stage_file_test() 127 write_domain_policy(policy, 0); in stage_file_test() 129 write_domain_policy(policy, 1); in stage_file_test() 132 policy = "allow_write /proc/sys/net/ipv4/ip_local_port_range"; in stage_file_test() 133 write_domain_policy(policy, 0); in stage_file_test() 135 write_domain_policy(policy, 1); in stage_file_test() 138 policy = "allow_read/write /proc/sys/net/ipv4/ip_local_port_range"; in stage_file_test() 139 write_domain_policy(policy, in stage_file_test() [all...] |
/kernel/linux/linux-5.10/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. 21 * @policy1: the first policy 22 * @policy2: the second policy 80 static bool supported_iv_ino_lblk_policy(const struct fscrypt_policy_v2 *policy, in supported_iv_ino_lblk_policy() argument 95 if (policy->contents_encryption_mode != FSCRYPT_MODE_AES_256_XTS) { in supported_iv_ino_lblk_policy() 97 "Can't use %s policy with contents mode other than AES-256-XTS", in supported_iv_ino_lblk_policy() 109 "Can't use %s policy on filesystem '%s' because it doesn't have stable inode numbers", in supported_iv_ino_lblk_policy() 117 "Can't use %s policy on filesystem '%s' because its inode numbers are too long", in supported_iv_ino_lblk_policy() 123 "Can't use %s policy o in supported_iv_ino_lblk_policy() 130 fscrypt_supported_v1_policy(const struct fscrypt_policy_v1 *policy, const struct inode *inode) fscrypt_supported_v1_policy() argument 164 fscrypt_supported_v2_policy(const struct fscrypt_policy_v2 *policy, const struct inode *inode) fscrypt_supported_v2_policy() argument 268 const struct fscrypt_policy_v1 *policy = &policy_u->v1; fscrypt_new_context() local 284 const struct fscrypt_policy_v2 *policy = &policy_u->v2; fscrypt_new_context() local 330 struct fscrypt_policy_v1 *policy = &policy_u->v1; fscrypt_policy_from_context() local 345 struct fscrypt_policy_v2 *policy = &policy_u->v2; fscrypt_policy_from_context() local 366 fscrypt_get_policy(struct inode *inode, union fscrypt_policy *policy) fscrypt_get_policy() argument 389 set_encryption_policy(struct inode *inode, const union fscrypt_policy *policy) set_encryption_policy() argument 438 union fscrypt_policy policy; fscrypt_ioctl_set_policy() local 504 union fscrypt_policy policy; fscrypt_ioctl_get_policy() local 524 union fscrypt_policy *policy = (union fscrypt_policy *)&arg.policy; fscrypt_ioctl_get_policy_ex() local 531 offsetof(typeof(arg), policy)); fscrypt_ioctl_get_policy_ex() local 718 union fscrypt_policy *policy = NULL; fscrypt_set_test_dummy_encryption() local 796 const union fscrypt_policy *policy = fscrypt_get_dummy_policy(sb); fscrypt_show_test_dummy_encryption() local [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | cpufreq.h | 59 unsigned int cpu; /* cpu managing this policy, must be online */ 68 unsigned int restore_freq; /* = policy->cur before transition */ 71 unsigned int policy; /* see above */ member 72 unsigned int last_policy; /* policy before unplug */ 93 * - Any routine that wants to read from the policy structure will 95 * - Any routine that will write to the policy structure and/or may take away 96 * the policy altogether (eg. CPU hotplug), will hold this lock in write 105 * policy and that the change will affect all of the policy CPUs then. 120 * the driver to set the frequency for this policy 172 struct cpufreq_policy *policy; global() member 197 cpufreq_cpu_put(struct cpufreq_policy *policy) cpufreq_cpu_put() argument 200 policy_is_inactive(struct cpufreq_policy *policy) policy_is_inactive() argument 205 policy_is_shared(struct cpufreq_policy *policy) policy_is_shared() argument 260 cpufreq_stats_create_table(struct cpufreq_policy *policy) cpufreq_stats_create_table() argument 261 cpufreq_stats_free_table(struct cpufreq_policy *policy) cpufreq_stats_free_table() argument 262 cpufreq_stats_record_transition(struct cpufreq_policy *policy, unsigned int new_freq) cpufreq_stats_record_transition() argument 452 cpufreq_verify_within_limits(struct cpufreq_policy_data *policy, unsigned int min, unsigned int max) cpufreq_verify_within_limits() argument 470 cpufreq_verify_within_cpu_limits(struct cpufreq_policy_data *policy) cpufreq_verify_within_cpu_limits() argument 627 cpufreq_policy_apply_limits(struct cpufreq_policy *policy) cpufreq_policy_apply_limits() argument 766 cpufreq_table_find_index_al(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_table_find_index_al() argument 787 cpufreq_table_find_index_dl(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_table_find_index_dl() argument 817 cpufreq_table_find_index_l(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_table_find_index_l() argument 829 cpufreq_table_find_index_ah(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_table_find_index_ah() argument 859 cpufreq_table_find_index_dh(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_table_find_index_dh() argument 880 cpufreq_table_find_index_h(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_table_find_index_h() argument 892 cpufreq_table_find_index_ac(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_table_find_index_ac() argument 926 cpufreq_table_find_index_dc(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_table_find_index_dc() argument 960 cpufreq_table_find_index_c(struct cpufreq_policy *policy, unsigned int target_freq) cpufreq_table_find_index_c() argument 971 cpufreq_frequency_table_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) cpufreq_frequency_table_target() argument 992 cpufreq_table_count_valid_entries(const struct cpufreq_policy *policy) cpufreq_table_count_valid_entries() argument 1020 policy_has_boost_freq(struct cpufreq_policy *policy) policy_has_boost_freq() argument 1030 sched_cpufreq_governor_change(struct cpufreq_policy *policy, struct cpufreq_governor *old_gov) sched_cpufreq_governor_change() argument [all...] |
/kernel/linux/linux-6.6/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, in fscrypt_policy_to_key_spec() argument 39 switch (policy->version) { in fscrypt_policy_to_key_spec() 42 memcpy(key_spec->u.descriptor, policy->v1.master_key_descriptor, in fscrypt_policy_to_key_spec() 47 memcpy(key_spec->u.identifier, policy->v2.master_key_identifier, in fscrypt_policy_to_key_spec() 120 static bool supported_iv_ino_lblk_policy(const struct fscrypt_policy_v2 *policy, in supported_iv_ino_lblk_policy() argument 135 if (policy in supported_iv_ino_lblk_policy() 170 fscrypt_supported_v1_policy(const struct fscrypt_policy_v1 *policy, const struct inode *inode) fscrypt_supported_v1_policy() argument 204 fscrypt_supported_v2_policy(const struct fscrypt_policy_v2 *policy, const struct inode *inode) fscrypt_supported_v2_policy() argument 308 const struct fscrypt_policy_v1 *policy = &policy_u->v1; fscrypt_new_context() local 324 const struct fscrypt_policy_v2 *policy = &policy_u->v2; fscrypt_new_context() local 370 struct fscrypt_policy_v1 *policy = &policy_u->v1; fscrypt_policy_from_context() local 385 struct fscrypt_policy_v2 *policy = &policy_u->v2; fscrypt_policy_from_context() local 406 fscrypt_get_policy(struct inode *inode, union fscrypt_policy *policy) fscrypt_get_policy() argument 429 set_encryption_policy(struct inode *inode, const union fscrypt_policy *policy) set_encryption_policy() argument 478 union fscrypt_policy policy; fscrypt_ioctl_set_policy() local 544 union fscrypt_policy policy; fscrypt_ioctl_get_policy() local 564 union fscrypt_policy *policy = (union fscrypt_policy *)&arg.policy; fscrypt_ioctl_get_policy_ex() local 571 offsetof(typeof(arg), policy)); fscrypt_ioctl_get_policy_ex() local 780 union fscrypt_policy *policy; fscrypt_parse_test_dummy_encryption() local 855 const union fscrypt_policy *policy = fscrypt_get_dummy_policy(sb); fscrypt_show_test_dummy_encryption() local [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/cpufreq/ |
H A D | cpufreq_userspace.c | 23 * @policy: pointer to policy struct where freq is being set 28 static int cpufreq_set(struct cpufreq_policy *policy, unsigned int freq) in cpufreq_set() argument 31 unsigned int *setspeed = policy->governor_data; in cpufreq_set() 33 pr_debug("cpufreq_set for cpu %u, freq %u kHz\n", policy->cpu, freq); in cpufreq_set() 36 if (!per_cpu(cpu_is_managed, policy->cpu)) { in cpufreq_set() 42 ret = __cpufreq_driver_target(policy, freq, CPUFREQ_RELATION_L); in cpufreq_set() 48 static ssize_t show_speed(struct cpufreq_policy *policy, char *buf) in show_speed() argument 50 return sprintf(buf, "%u\n", policy->cur); in show_speed() 53 static int cpufreq_userspace_policy_init(struct cpufreq_policy *policy) in cpufreq_userspace_policy_init() argument 66 cpufreq_userspace_policy_exit(struct cpufreq_policy *policy) cpufreq_userspace_policy_exit() argument 74 cpufreq_userspace_policy_start(struct cpufreq_policy *policy) cpufreq_userspace_policy_start() argument 90 cpufreq_userspace_policy_stop(struct cpufreq_policy *policy) cpufreq_userspace_policy_stop() argument 99 cpufreq_userspace_policy_limits(struct cpufreq_policy *policy) cpufreq_userspace_policy_limits() argument [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | cpufreq.h | 63 unsigned int cpu; /* cpu managing this policy, must be online */ 74 unsigned int policy; /* see above */ member 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; global() member 210 cpufreq_cpu_put(struct cpufreq_policy *policy) cpufreq_cpu_put() argument 213 policy_is_inactive(struct cpufreq_policy *policy) policy_is_inactive() argument 218 policy_is_shared(struct cpufreq_policy *policy) policy_is_shared() argument 274 cpufreq_stats_create_table(struct cpufreq_policy *policy) cpufreq_stats_create_table() argument 275 cpufreq_stats_free_table(struct cpufreq_policy *policy) cpufreq_stats_free_table() argument 276 cpufreq_stats_record_transition(struct cpufreq_policy *policy, unsigned int new_freq) cpufreq_stats_record_transition() argument 470 cpufreq_verify_within_limits(struct cpufreq_policy_data *policy, unsigned int min, unsigned int max) cpufreq_verify_within_limits() argument 479 cpufreq_verify_within_cpu_limits(struct cpufreq_policy_data *policy) cpufreq_verify_within_cpu_limits() argument 641 cpufreq_policy_apply_limits(struct cpufreq_policy *policy) cpufreq_policy_apply_limits() argument 804 cpufreq_table_find_index_al(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) cpufreq_table_find_index_al() argument 826 cpufreq_table_find_index_dl(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) cpufreq_table_find_index_dl() argument 857 cpufreq_table_find_index_l(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) cpufreq_table_find_index_l() argument 872 cpufreq_table_find_index_ah(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) cpufreq_table_find_index_ah() argument 903 cpufreq_table_find_index_dh(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) cpufreq_table_find_index_dh() argument 925 cpufreq_table_find_index_h(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) cpufreq_table_find_index_h() argument 940 cpufreq_table_find_index_ac(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) cpufreq_table_find_index_ac() argument 975 cpufreq_table_find_index_dc(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) cpufreq_table_find_index_dc() argument 1010 cpufreq_table_find_index_c(struct cpufreq_policy *policy, unsigned int target_freq, bool efficiencies) cpufreq_table_find_index_c() argument 1024 cpufreq_is_in_limits(struct cpufreq_policy *policy, int idx) cpufreq_is_in_limits() argument 1036 cpufreq_frequency_table_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) cpufreq_frequency_table_target() argument 1078 cpufreq_table_count_valid_entries(const struct cpufreq_policy *policy) cpufreq_table_count_valid_entries() argument 1103 cpufreq_table_set_inefficient(struct cpufreq_policy *policy, unsigned int frequency) cpufreq_table_set_inefficient() argument 1189 policy_has_boost_freq(struct cpufreq_policy *policy) policy_has_boost_freq() argument 1195 cpufreq_table_set_inefficient(struct cpufreq_policy *policy, unsigned int frequency) cpufreq_table_set_inefficient() argument 1213 sched_cpufreq_governor_change(struct cpufreq_policy *policy, struct cpufreq_governor *old_gov) sched_cpufreq_governor_change() argument 1238 cpufreq_register_em_with_opp(struct cpufreq_policy *policy) cpufreq_register_em_with_opp() argument [all...] |
/third_party/python/Lib/test/test_email/ |
H A D | test_policy.py | 6 import email.policy namespace 30 # These default values are the ones set on email.policy.default. 36 'header_factory': email.policy.EmailPolicy.header_factory, 38 'content_manager': email.policy.EmailPolicy.content_manager, 43 # For each policy under test, we give here what we expect the defaults to 44 # be for that policy. The second argument to make defaults is the 45 # difference between the base defaults and that for the particular policy. 46 new_policy = email.policy.EmailPolicy() 48 email.policy.compat32: make_defaults(compat32_defaults, {}), 49 email.policy [all...] |
H A D | test_generator.py | 8 from email import policy namespace 15 policy = policy.default variable in TestGeneratorBase 17 def msgmaker(self, msg, policy=None): 18 policy = self.policy if policy is None else policy 19 return self.msgfunc(msg, policy=policy) [all...] |
/third_party/node/deps/openssl/openssl/crypto/x509/ |
H A D | v3_pci.c | 78 if (pci->proxyPolicy->policy && pci->proxyPolicy->policy->data) in i2r_pci() 80 pci->proxyPolicy->policy->length, in i2r_pci() 81 pci->proxyPolicy->policy->data); in i2r_pci() 87 ASN1_OCTET_STRING **policy) in process_pci_value() 114 } else if (strcmp(val->name, "policy") == 0) { in process_pci_value() 118 if (*policy == NULL) { in process_pci_value() 119 *policy = ASN1_OCTET_STRING_new(); in process_pci_value() 120 if (*policy == NULL) { in process_pci_value() 136 tmp_data = OPENSSL_realloc((*policy) in process_pci_value() 85 process_pci_value(CONF_VALUE *val, ASN1_OBJECT **language, ASN1_INTEGER **pathlen, ASN1_OCTET_STRING **policy) process_pci_value() argument 246 ASN1_OCTET_STRING *policy = NULL; r2i_pci() local [all...] |
/third_party/openssl/crypto/x509/ |
H A D | v3_pci.c | 78 if (pci->proxyPolicy->policy && pci->proxyPolicy->policy->data) in i2r_pci() 80 pci->proxyPolicy->policy->length, in i2r_pci() 81 pci->proxyPolicy->policy->data); in i2r_pci() 87 ASN1_OCTET_STRING **policy) in process_pci_value() 114 } else if (strcmp(val->name, "policy") == 0) { in process_pci_value() 118 if (*policy == NULL) { in process_pci_value() 119 *policy = ASN1_OCTET_STRING_new(); in process_pci_value() 120 if (*policy == NULL) { in process_pci_value() 136 tmp_data = OPENSSL_realloc((*policy) in process_pci_value() 85 process_pci_value(CONF_VALUE *val, ASN1_OBJECT **language, ASN1_INTEGER **pathlen, ASN1_OCTET_STRING **policy) process_pci_value() argument 246 ASN1_OCTET_STRING *policy = NULL; r2i_pci() local [all...] |
/foundation/communication/netmanager_ext/services/netfirewallmanager/src/ |
H A D | netfirewall_policy_manager.cpp | 45 int32_t NetFirewallPolicyManager::SetNetFirewallPolicy(const int32_t userId, const sptr<NetFirewallPolicy> &policy) in SetNetFirewallPolicy() argument 47 if (policy == nullptr) { in SetNetFirewallPolicy() 48 NETMGR_EXT_LOG_E("SetNetFirewallPolicy failed, policy is nullptr."); in SetNetFirewallPolicy() 57 preferencesHelper_->SaveBool(NET_FIREWALL_IS_OPEN, policy->isOpen); in SetNetFirewallPolicy() 58 preferencesHelper_->SaveInt(NET_FIREWALL_IN_ACTION, static_cast<int>(policy->inAction)); in SetNetFirewallPolicy() 59 preferencesHelper_->SaveInt(NET_FIREWALL_OUT_ACTION, static_cast<int>(policy->outAction)); in SetNetFirewallPolicy() 64 int32_t NetFirewallPolicyManager::GetNetFirewallPolicy(const int32_t userId, sptr<NetFirewallPolicy> &policy) in GetNetFirewallPolicy() argument 66 if (policy == nullptr) { in GetNetFirewallPolicy() 67 NETMGR_EXT_LOG_E("GetNetFirewallPolicy failed, policy is nullptr."); in GetNetFirewallPolicy() 72 policy in GetNetFirewallPolicy() 82 IsFirewallStatusChange(const sptr<NetFirewallPolicy> &policy) IsFirewallStatusChange() argument 89 IsFirewallActionChange(const sptr<NetFirewallPolicy> &policy) IsFirewallActionChange() argument 97 SetCurrentUserFirewallPolicy(const sptr<NetFirewallPolicy> &policy) SetCurrentUserFirewallPolicy() argument 110 GetCurrentNetFirewallPolicy(sptr<NetFirewallPolicy> &policy) GetCurrentNetFirewallPolicy() argument 210 LoadPolicyFormPreference(const int32_t userId, sptr<NetFirewallPolicy> &policy) LoadPolicyFormPreference() argument [all...] |
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/framework/process_group/src/ |
H A D | cgroup_action.cpp | 67 void CgroupAction::AddSchedPolicyDeclaration(const SchedPolicy policy, in AddSchedPolicyDeclaration() argument 73 __func__, policy, fullName.c_str(), abbrName.c_str()); in AddSchedPolicyDeclaration() 76 if (policy >= SP_UPPER_LIMIT) { in AddSchedPolicyDeclaration() 78 __func__, policy, fullName.c_str(), abbrName.c_str()); in AddSchedPolicyDeclaration() 84 if (fullNames_.find(policy) != fullNames_.end()) { in AddSchedPolicyDeclaration() 91 PGCGS_LOGI("%{public}s add sched policy: %{public}u, %{public}s, %{public}s", in AddSchedPolicyDeclaration() 92 __func__, policy, fullName.c_str(), abbrName.c_str()); in AddSchedPolicyDeclaration() 93 fullNames_[policy] = fullName; in AddSchedPolicyDeclaration() 94 abbrNames_[policy] = abbrName; in AddSchedPolicyDeclaration() 106 bool CgroupAction::IsSchedPolicyValid(SchedPolicy policy) in IsSchedPolicyValid() argument 112 GetSchedPolicyFullName(SchedPolicy policy) GetSchedPolicyFullName() argument 121 GetSchedPolicyAbbrName(SchedPolicy policy) GetSchedPolicyAbbrName() argument 130 SetThreadSchedPolicy(int tid, SchedPolicy policy) SetThreadSchedPolicy() argument 141 SetThreadGroupSchedPolicy(int tid, SchedPolicy policy) SetThreadGroupSchedPolicy() argument 152 SetSchedPolicyByExecutor(int tid, int policy, uint32_t resType) SetSchedPolicyByExecutor() argument 190 GetSchedPolicy(int tid, SchedPolicy* policy) GetSchedPolicy() argument 222 GetSchedPolicyByName(const std::string& name, SchedPolicy* policy) GetSchedPolicyByName() argument [all...] |