Home
last modified time | relevance | path

Searched refs:policy (Results 1 – 25 of 714) sorted by relevance

12345678910>>...29

/linux-6.6.21/drivers/cpufreq/
Dcpufreq.c82 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,
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()
174 void cpufreq_generic_init(struct cpufreq_policy *policy, in cpufreq_generic_init() argument
178 policy->freq_table = table; in cpufreq_generic_init()
179 policy->cpuinfo.transition_latency = transition_latency; in cpufreq_generic_init()
[all …]
Dcpufreq_userspace.c28 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
60 policy->governor_data = setspeed; in cpufreq_userspace_policy_init()
64 static void cpufreq_userspace_policy_exit(struct cpufreq_policy *policy) in cpufreq_userspace_policy_exit() argument
[all …]
Dfreq_table.c17 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->min == ~0) in cpufreq_frequency_table_cpuinfo()
69 int cpufreq_frequency_table_verify(struct cpufreq_policy_data *policy, in cpufreq_frequency_table_verify() argument
77 policy->min, policy->max, policy->cpu); in cpufreq_frequency_table_verify()
[all …]
Dsh-cpufreq.c33 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 = policy, .freq = target_freq }; in sh_cpufreq_target()
86 return work_on_cpu(policy->cpu, __sh_cpufreq_target, &data); in sh_cpufreq_target()
89 static int sh_cpufreq_verify(struct cpufreq_policy_data *policy) in sh_cpufreq_verify() argument
[all …]
Damd-pstate.c220 if (epp > 0 && cpudata->policy == CPUFREQ_POLICY_PERFORMANCE) { 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->min); in amd_pstate_update_min_max_limit()
494 static int amd_pstate_update_freq(struct cpufreq_policy *policy, in amd_pstate_update_freq() argument
[all …]
Dacpi-cpufreq.c136 static int set_boost(struct cpufreq_policy *policy, int val) in set_boost() argument
138 on_each_cpu_mask(policy->cpus, boost_set_msr_each, in set_boost()
141 cpumask_pr_args(policy->cpus), str_enabled_disabled(val)); in set_boost()
146 static ssize_t show_freqdomain_cpus(struct cpufreq_policy *policy, char *buf) in show_freqdomain_cpus() argument
148 struct acpi_cpufreq_data *data = policy->driver_data; in show_freqdomain_cpus()
159 static ssize_t store_cpb(struct cpufreq_policy *policy, const char *buf, in store_cpb() argument
173 set_boost(policy, val); in store_cpb()
179 static ssize_t show_cpb(struct cpufreq_policy *policy, char *buf) in show_cpb() argument
201 static unsigned extract_io(struct cpufreq_policy *policy, u32 value) in extract_io() argument
203 struct acpi_cpufreq_data *data = policy->driver_data; in extract_io()
[all …]
Dgx-suspmod.c250 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()
349 tmp_freq = gx_validate_speed(policy->min, &tmp1, &tmp2); in cpufreq_gx_verify()
350 if (tmp_freq < policy->min) in cpufreq_gx_verify()
352 policy->min = tmp_freq; in cpufreq_gx_verify()
[all …]
Dcppc_cpufreq.c164 static void cppc_cpufreq_cpu_fie_init(struct cpufreq_policy *policy) in cppc_cpufreq_cpu_fie_init() argument
172 for_each_cpu(cpu, policy->cpus) { in cppc_cpufreq_cpu_fie_init()
175 cppc_fi->cpu_data = policy->driver_data; in cppc_cpufreq_cpu_fie_init()
194 topology_set_scale_freq_source(&cppc_sftd, policy->cpus); in cppc_cpufreq_cpu_fie_init()
205 static void cppc_cpufreq_cpu_fie_exit(struct cpufreq_policy *policy) in cppc_cpufreq_cpu_fie_exit() argument
214 topology_clear_scale_freq_source(SCALE_FREQ_SOURCE_CPPC, policy->related_cpus); in cppc_cpufreq_cpu_fie_exit()
216 for_each_cpu(cpu, policy->related_cpus) { in cppc_cpufreq_cpu_fie_exit()
277 static inline void cppc_cpufreq_cpu_fie_init(struct cpufreq_policy *policy) in cppc_cpufreq_cpu_fie_init() argument
281 static inline void cppc_cpufreq_cpu_fie_exit(struct cpufreq_policy *policy) in cppc_cpufreq_cpu_fie_exit() argument
381 static int cppc_cpufreq_set_target(struct cpufreq_policy *policy, in cppc_cpufreq_set_target() argument
[all …]
Dcpufreq_governor.c102 for_each_cpu(j, policy_dbs->policy->cpus) { in gov_update_cpu_data()
114 unsigned int dbs_update(struct cpufreq_policy *policy) in dbs_update() argument
116 struct policy_dbs_info *policy_dbs = policy->governor_data; in dbs_update()
137 for_each_cpu(j, policy->cpus) { in dbs_update()
235 struct cpufreq_policy *policy; in dbs_work_handler() local
239 policy = policy_dbs->policy; in dbs_work_handler()
240 gov = dbs_governor_of(policy); in dbs_work_handler()
247 gov_update_sample_delay(policy_dbs, gov->gov_dbs_update(policy)); in dbs_work_handler()
276 if (!cpufreq_this_cpu_can_update(policy_dbs->policy)) in dbs_update_util_handler()
325 struct cpufreq_policy *policy = policy_dbs->policy; in gov_set_update_util() local
[all …]
Dlongrun.c35 static void longrun_get_policy(struct cpufreq_policy *policy) in longrun_get_policy() argument
42 policy->policy = CPUFREQ_POLICY_PERFORMANCE; in longrun_get_policy()
44 policy->policy = CPUFREQ_POLICY_POWERSAVE; in longrun_get_policy()
53 policy->min = policy->max = longrun_high_freq; in longrun_get_policy()
55 policy->min = longrun_low_freq + msr_lo * in longrun_get_policy()
57 policy->max = longrun_low_freq + msr_hi * in longrun_get_policy()
60 policy->cpu = 0; in longrun_get_policy()
71 static int longrun_set_policy(struct cpufreq_policy *policy) in longrun_set_policy() argument
76 if (!policy) in longrun_set_policy()
83 pctg_lo = (policy->min - longrun_low_freq) / in longrun_set_policy()
[all …]
Dqcom-cpufreq-hw.c57 struct cpufreq_policy *policy; member
71 static int qcom_cpufreq_set_bw(struct cpufreq_policy *policy, in qcom_cpufreq_set_bw() argument
79 dev = get_cpu_device(policy->cpu); in qcom_cpufreq_set_bw()
112 static int qcom_cpufreq_hw_target_index(struct cpufreq_policy *policy, in qcom_cpufreq_hw_target_index() argument
115 struct qcom_cpufreq_data *data = policy->driver_data; in qcom_cpufreq_hw_target_index()
117 unsigned long freq = policy->freq_table[index].frequency; in qcom_cpufreq_hw_target_index()
123 for (i = 1; i < cpumask_weight(policy->related_cpus); i++) in qcom_cpufreq_hw_target_index()
127 qcom_cpufreq_set_bw(policy, freq); in qcom_cpufreq_hw_target_index()
149 struct cpufreq_policy *policy; in qcom_cpufreq_get_freq() local
152 policy = cpufreq_cpu_get_raw(cpu); in qcom_cpufreq_get_freq()
[all …]
Dppc_cbe_cpufreq.c54 static int cbe_cpufreq_cpu_init(struct cpufreq_policy *policy) in cbe_cpufreq_cpu_init() argument
62 cpu = of_get_cpu_node(policy->cpu, NULL); in cbe_cpufreq_cpu_init()
67 pr_debug("init cpufreq on CPU %d\n", policy->cpu); in cbe_cpufreq_cpu_init()
72 if (!cbe_get_cpu_pmd_regs(policy->cpu) || in cbe_cpufreq_cpu_init()
73 !cbe_get_cpu_mic_tm_regs(policy->cpu)) { in cbe_cpufreq_cpu_init()
100 policy->cpuinfo.transition_latency = 25000; in cbe_cpufreq_cpu_init()
102 cur_pmode = cbe_cpufreq_get_pmode(policy->cpu); in cbe_cpufreq_cpu_init()
105 policy->cur = cbe_freqs[cur_pmode].frequency; in cbe_cpufreq_cpu_init()
108 cpumask_copy(policy->cpus, cpu_sibling_mask(policy->cpu)); in cbe_cpufreq_cpu_init()
111 policy->freq_table = cbe_freqs; in cbe_cpufreq_cpu_init()
[all …]
Dmediatek-cpufreq-hw.c59 struct cpufreq_policy *policy; in mtk_cpufreq_get_cpu_power() local
62 policy = cpufreq_cpu_get_raw(cpu_dev->id); in mtk_cpufreq_get_cpu_power()
63 if (!policy) in mtk_cpufreq_get_cpu_power()
66 data = policy->driver_data; in mtk_cpufreq_get_cpu_power()
82 static int mtk_cpufreq_hw_target_index(struct cpufreq_policy *policy, in mtk_cpufreq_hw_target_index() argument
85 struct mtk_cpufreq_data *data = policy->driver_data; in mtk_cpufreq_hw_target_index()
95 struct cpufreq_policy *policy; in mtk_cpufreq_hw_get() local
98 policy = cpufreq_cpu_get_raw(cpu); in mtk_cpufreq_hw_get()
99 if (!policy) in mtk_cpufreq_hw_get()
102 data = policy->driver_data; in mtk_cpufreq_hw_get()
[all …]
Dcpufreq_ondemand.c61 static unsigned int generic_powersave_bias_target(struct cpufreq_policy *policy, in generic_powersave_bias_target() argument
68 struct policy_dbs_info *policy_dbs = policy->governor_data; in generic_powersave_bias_target()
72 struct cpufreq_frequency_table *freq_table = policy->freq_table; in generic_powersave_bias_target()
80 index = cpufreq_frequency_table_target(policy, freq_next, relation); in generic_powersave_bias_target()
86 index = cpufreq_table_find_index_h(policy, freq_avg, in generic_powersave_bias_target()
89 index = cpufreq_table_find_index_l(policy, freq_avg, in generic_powersave_bias_target()
108 static void ondemand_powersave_bias_init(struct cpufreq_policy *policy) in ondemand_powersave_bias_init() argument
110 struct od_policy_dbs_info *dbs_info = to_dbs_info(policy->governor_data); in ondemand_powersave_bias_init()
115 static void dbs_freq_increase(struct cpufreq_policy *policy, unsigned int freq) in dbs_freq_increase() argument
117 struct policy_dbs_info *policy_dbs = policy->governor_data; in dbs_freq_increase()
[all …]
Dapple-soc-cpufreq.c106 struct cpufreq_policy *policy = cpufreq_cpu_get_raw(cpu); in apple_soc_cpufreq_get_rate() local
107 struct apple_cpu_priv *priv = policy->driver_data; in apple_soc_cpufreq_get_rate()
125 cpufreq_for_each_valid_entry(p, policy->freq_table) in apple_soc_cpufreq_get_rate()
134 static int apple_soc_cpufreq_set_target(struct cpufreq_policy *policy, in apple_soc_cpufreq_set_target() argument
137 struct apple_cpu_priv *priv = policy->driver_data; in apple_soc_cpufreq_set_target()
138 unsigned int pstate = policy->freq_table[index].driver_data; in apple_soc_cpufreq_set_target()
161 static unsigned int apple_soc_cpufreq_fast_switch(struct cpufreq_policy *policy, in apple_soc_cpufreq_fast_switch() argument
164 if (apple_soc_cpufreq_set_target(policy, policy->cached_resolved_idx) < 0) in apple_soc_cpufreq_fast_switch()
167 return policy->freq_table[policy->cached_resolved_idx].frequency; in apple_soc_cpufreq_fast_switch()
170 static int apple_soc_cpufreq_find_cluster(struct cpufreq_policy *policy, in apple_soc_cpufreq_find_cluster() argument
[all …]
Damd_freq_sensitivity.c39 static unsigned int amd_powersave_bias_target(struct cpufreq_policy *policy, in amd_powersave_bias_target() argument
46 struct cpu_data_t *data = &per_cpu(cpu_data, policy->cpu); in amd_powersave_bias_target()
47 struct policy_dbs_info *policy_dbs = policy->governor_data; in amd_powersave_bias_target()
51 if (!policy->freq_table) in amd_powersave_bias_target()
54 rdmsr_on_cpu(policy->cpu, MSR_AMD64_FREQ_SENSITIVITY_ACTUAL, in amd_powersave_bias_target()
56 rdmsr_on_cpu(policy->cpu, MSR_AMD64_FREQ_SENSITIVITY_REFERENCE, in amd_powersave_bias_target()
63 freq_next = policy->cur; in amd_powersave_bias_target()
72 freq_next = policy->cur; in amd_powersave_bias_target()
83 if (data->freq_prev == policy->cur) in amd_powersave_bias_target()
84 freq_next = policy->cur; in amd_powersave_bias_target()
[all …]
/linux-6.6.21/fs/crypto/
Dpolicy.c36 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->contents_encryption_mode != FSCRYPT_MODE_AES_256_XTS) { in supported_iv_ino_lblk_policy()
170 static bool fscrypt_supported_v1_policy(const struct fscrypt_policy_v1 *policy, in fscrypt_supported_v1_policy() argument
173 if (!fscrypt_valid_enc_modes_v1(policy->contents_encryption_mode, in fscrypt_supported_v1_policy()
174 policy->filenames_encryption_mode)) { in fscrypt_supported_v1_policy()
177 policy->contents_encryption_mode, in fscrypt_supported_v1_policy()
[all …]
/linux-6.6.21/include/linux/
Dcpufreq.h74 unsigned int policy; /* see above */ member
185 struct cpufreq_policy *policy; member
200 void cpufreq_cpu_put(struct cpufreq_policy *policy);
210 static inline void cpufreq_cpu_put(struct cpufreq_policy *policy) { } in cpufreq_cpu_put() argument
213 static inline bool policy_is_inactive(struct cpufreq_policy *policy) in policy_is_inactive() argument
215 return cpumask_empty(policy->cpus); in policy_is_inactive()
218 static inline bool policy_is_shared(struct cpufreq_policy *policy) in policy_is_shared() argument
220 return cpumask_weight(policy->cpus) > 1; in policy_is_shared()
233 void cpufreq_cpu_release(struct cpufreq_policy *policy);
234 int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu);
[all …]
/linux-6.6.21/Documentation/translations/zh_CN/cpu-freq/
Dcpu-drivers.rst58 .init - 一个指向per-policy初始化函数的指针。
78 .exit - 一个指向per-policy清理函数的指针,该函数在CPU热插拔过程的CPU_POST_DEAD
81 .suspend - 一个指向per-policy暂停函数的指针,该函数在关中断且在该策略的调节器停止
84 .resume - 一个指向per-policy恢复函数的指针,该函数在关中断且在调节器再一次启动前被
87 .ready - 一个指向per-policy准备函数的指针,该函数在策略完全初始化之后被调用。
94 .set_boost - 一个指向per-policy函数的指针,该函数用来开启/关闭提升(boost)频率功能。
101 略不存在,则会调用per-policy的初始化函数cpufreq_driver.init。请注意,.init()和.exit()例程
103 *policy`` 作为参数。现在该怎么做呢?
110 |policy->cpuinfo.min_freq和 | 该CPU支持的最低和最高频率(kHz) |
111 |policy->cpuinfo.max_freq | |
[all …]
/linux-6.6.21/Documentation/translations/zh_TW/cpu-freq/
Dcpu-drivers.rst55 .init - 一個指向per-policy初始化函數的指針。
75 .exit - 一個指向per-policy清理函數的指針,該函數在cpu熱插拔過程的CPU_POST_DEAD
78 .suspend - 一個指向per-policy暫停函數的指針,該函數在關中斷且在該策略的調節器停止
81 .resume - 一個指向per-policy恢復函數的指針,該函數在關中斷且在調節器再一次開始前被
84 .ready - 一個指向per-policy準備函數的指針,該函數在策略完全初始化之後被調用。
91 .set_boost - 一個指向per-policy函數的指針,該函數用來開啓/關閉提升(boost)頻率功能。
98 略不存在,則會調用per-policy的初始化函數cpufreq_driver.init。請注意,.init()和.exit()程序
100 *policy`` 作爲參數。現在該怎麼做呢?
107 |policy->cpuinfo.min_freq 和 | |
108 |policy->cpuinfo.max_freq | 該CPU支持的最低和最高頻率(kHz) |
[all …]
/linux-6.6.21/drivers/hwtracing/stm/
Dpolicy.c31 struct stp_policy *policy; member
110 stm = policy_node->policy->stm; in stp_policy_node_masters_store()
157 stm = policy_node->policy->stm; in stp_policy_node_channels_store()
228 struct stp_policy *policy; in stp_policy_node_make() local
231 policy = container_of(group, struct stp_policy, group); in stp_policy_node_make()
235 policy = parent_node->policy; in stp_policy_node_make()
238 if (!policy->stm) in stp_policy_node_make()
241 pdrv = policy->stm->pdrv; in stp_policy_node_make()
251 if (policy->stm->pdrv_node_type) in stp_policy_node_make()
252 type = policy->stm->pdrv_node_type; in stp_policy_node_make()
[all …]
/linux-6.6.21/drivers/thermal/
Dcpufreq_cooling.c75 struct cpufreq_policy *policy; member
225 struct cpufreq_policy *policy = cpufreq_cdev->policy; in cpufreq_get_requested_power() local
227 freq = cpufreq_quick_get(policy->cpu); in cpufreq_get_requested_power()
229 for_each_cpu(cpu, policy->related_cpus) { in cpufreq_get_requested_power()
244 trace_thermal_power_cpu_get_power_simple(policy->cpu, *power); in cpufreq_get_requested_power()
272 num_cpus = cpumask_weight(cpufreq_cdev->policy->cpus); in cpufreq_state2power()
302 struct cpufreq_policy *policy = cpufreq_cdev->policy; in cpufreq_power2state() local
309 trace_thermal_power_cpu_limit(policy->related_cpus, target_freq, *state, in cpufreq_power2state()
316 struct cpufreq_policy *policy; in em_is_sane() local
322 policy = cpufreq_cdev->policy; in em_is_sane()
[all …]
/linux-6.6.21/kernel/sched/
Dcpufreq_schedutil.c17 struct cpufreq_policy *policy; member
81 if (!cpufreq_this_cpu_can_update(sg_policy->policy)) in sugov_should_update_freq()
142 struct cpufreq_policy *policy = sg_policy->policy; in get_next_freq() local
144 policy->cpuinfo.max_freq : policy->cur; in get_next_freq()
153 return cpufreq_driver_resolve_freq(policy, freq); in get_next_freq()
369 if (sg_policy->policy->fast_switch_enabled) { in sugov_update_single_freq()
370 cpufreq_driver_fast_switch(sg_policy->policy, next_f); in sugov_update_single_freq()
419 struct cpufreq_policy *policy = sg_policy->policy; in sugov_next_freq_shared() local
425 for_each_cpu(j, policy->cpus) { in sugov_next_freq_shared()
457 if (sg_policy->policy->fast_switch_enabled) in sugov_update_shared()
[all …]
/linux-6.6.21/arch/powerpc/platforms/cell/
Dcpufreq_spudemand.c25 struct cpufreq_policy *policy; member
36 cpu = info->policy->cpu; in calc_freq()
43 return info->policy->max * info->busy_spus / FIXED_1; in calc_freq()
55 BUG_ON(info->policy == NULL); in spu_gov_work()
58 __cpufreq_driver_target(info->policy, target_freq, CPUFREQ_RELATION_H); in spu_gov_work()
61 schedule_delayed_work_on(info->policy->cpu, &info->work, delay); in spu_gov_work()
68 schedule_delayed_work_on(info->policy->cpu, &info->work, delay); in spu_gov_init_work()
76 static int spu_gov_start(struct cpufreq_policy *policy) in spu_gov_start() argument
78 unsigned int cpu = policy->cpu; in spu_gov_start()
88 if (!policy->cur) { in spu_gov_start()
[all …]
/linux-6.6.21/net/netlink/
Dpolicy.c22 const struct nla_policy *policy; member
28 const struct nla_policy *policy, in add_policy() argument
34 if (!policy || !maxtype) in add_policy()
38 if (state->policies[i].policy == policy && in add_policy()
42 if (!state->policies[i].policy) { in add_policy()
43 state->policies[i].policy = policy; in add_policy()
58 state->policies[state->n_alloc].policy = policy; in add_policy()
82 const struct nla_policy *policy, in netlink_policy_dump_get_policy_idx() argument
87 if (WARN_ON(!policy || !maxtype)) in netlink_policy_dump_get_policy_idx()
91 if (state->policies[i].policy == policy && in netlink_policy_dump_get_policy_idx()
[all …]

12345678910>>...29