Home
last modified time | relevance | path

Searched refs:policy (Results 26 - 50 of 1069) sorted by relevance

12345678910>>...43

/kernel/linux/linux-6.6/drivers/cpufreq/
H A Dlongrun.c29 * 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) 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 in longrun_get_policy()
71 longrun_set_policy(struct cpufreq_policy *policy) longrun_set_policy() argument
125 longrun_verify_policy(struct cpufreq_policy_data *policy) longrun_verify_policy() argument
252 longrun_cpu_init(struct cpufreq_policy *policy) longrun_cpu_init() argument
[all...]
H A 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 in cbe_cpufreq_cpu_init()
116 cbe_cpufreq_cpu_exit(struct cpufreq_policy *policy) cbe_cpufreq_cpu_exit() argument
122 cbe_cpufreq_target(struct cpufreq_policy *policy, unsigned int cbe_pmode_new) cbe_cpufreq_target() argument
[all...]
H A 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 in amd_powersave_bias_target()
[all...]
H A 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 in apple_soc_cpufreq_fast_switch()
170 apple_soc_cpufreq_find_cluster(struct cpufreq_policy *policy, void __iomem **reg_base, const struct apple_soc_cpufreq_info **info) apple_soc_cpufreq_find_cluster() argument
204 apple_soc_cpufreq_init(struct cpufreq_policy *policy) apple_soc_cpufreq_init() argument
308 apple_soc_cpufreq_exit(struct cpufreq_policy *policy) apple_soc_cpufreq_exit() argument
[all...]
H A 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 in dbs_freq_increase()
136 od_update(struct cpufreq_policy *policy) od_update() argument
172 od_dbs_update(struct cpufreq_policy *policy) od_dbs_update() argument
391 od_start(struct cpufreq_policy *policy) od_start() argument
429 struct cpufreq_policy *policy; od_set_powersave_bias() local
[all...]
H A Dscpi-cpufreq.c32 struct cpufreq_policy *policy = cpufreq_cpu_get_raw(cpu); in scpi_cpufreq_get_rate() local
33 struct scpi_data *priv = policy->driver_data; in scpi_cpufreq_get_rate()
40 scpi_cpufreq_set_target(struct cpufreq_policy *policy, unsigned int index) in scpi_cpufreq_set_target() argument
42 u64 rate = policy->freq_table[index].frequency * 1000; in scpi_cpufreq_set_target()
43 struct scpi_data *priv = policy->driver_data; in scpi_cpufreq_set_target()
83 static int scpi_cpufreq_init(struct cpufreq_policy *policy) in scpi_cpufreq_init() argument
91 cpu_dev = get_cpu_device(policy->cpu); in scpi_cpufreq_init()
93 pr_err("failed to get cpu%d device\n", policy->cpu); in scpi_cpufreq_init()
103 ret = scpi_get_sharing_cpus(cpu_dev, policy->cpus); in scpi_cpufreq_init()
109 ret = dev_pm_opp_set_sharing_cpus(cpu_dev, policy in scpi_cpufreq_init()
170 scpi_cpufreq_exit(struct cpufreq_policy *policy) scpi_cpufreq_exit() argument
[all...]
H A Dcpufreq_conservative.c38 struct cpufreq_policy *policy) in get_freq_step()
40 unsigned int freq_step = (cs_tuners->freq_step * policy->max) / 100; in get_freq_step()
58 static unsigned int cs_dbs_update(struct cpufreq_policy *policy) in cs_dbs_update() argument
60 struct policy_dbs_info *policy_dbs = policy->governor_data; in cs_dbs_update()
65 unsigned int load = dbs_update(policy); in cs_dbs_update()
80 if (requested_freq > policy->max || requested_freq < policy->min) { in cs_dbs_update()
81 requested_freq = policy->cur; in cs_dbs_update()
85 freq_step = get_freq_step(cs_tuners, policy); in cs_dbs_update()
94 if (requested_freq > policy in cs_dbs_update()
37 get_freq_step(struct cs_dbs_tuners *cs_tuners, struct cpufreq_policy *policy) get_freq_step() argument
309 cs_start(struct cpufreq_policy *policy) cs_start() argument
[all...]
/kernel/linux/linux-6.6/kernel/sched/
H A Dcpufreq_schedutil.c19 struct cpufreq_policy *policy; member
87 if (!cpufreq_this_cpu_can_update(sg_policy->policy)) in sugov_should_update_freq()
124 * get_next_freq - Compute a new frequency for a given cpufreq policy.
125 * @sg_policy: schedutil policy object to compute the new frequency for.
142 * next_freq (as calculated above) is returned, subject to policy min/max and
148 struct cpufreq_policy *policy = sg_policy->policy; in get_next_freq() local
150 policy->cpuinfo.max_freq : policy->cur; in get_next_freq()
159 return cpufreq_driver_resolve_freq(policy, fre in get_next_freq()
445 struct cpufreq_policy *policy = sg_policy->policy; sugov_next_freq_shared() local
609 sugov_policy_alloc(struct cpufreq_policy *policy) global() argument
644 struct cpufreq_policy *policy = sg_policy->policy; global() local
708 sugov_init(struct cpufreq_policy *policy) global() argument
784 sugov_exit(struct cpufreq_policy *policy) global() argument
804 sugov_start(struct cpufreq_policy *policy) global() argument
842 sugov_stop(struct cpufreq_policy *policy) global() argument
858 sugov_limits(struct cpufreq_policy *policy) global() argument
902 sched_cpufreq_governor_change(struct cpufreq_policy *policy, struct cpufreq_governor *old_gov) global() argument
[all...]
/kernel/linux/linux-5.10/drivers/hwtracing/stm/
H A Dpolicy.c3 * System Trace Module (STM) master/channel allocation policy management
6 * A master/channel allocation policy allows mapping string identifiers to
21 * STP Master/Channel allocation policy configfs layout.
31 struct stp_policy *policy; member
115 stm = policy_node->policy->stm; in stp_policy_node_masters_store()
162 stm = policy_node->policy->stm; in stp_policy_node_channels_store()
233 struct stp_policy *policy; in stp_policy_node_make() local
236 policy = container_of(group, struct stp_policy, group); in stp_policy_node_make()
240 policy = parent_node->policy; in stp_policy_node_make()
296 struct stp_policy *policy = to_stp_policy(item); stp_policy_device_show() local
312 struct stp_policy *policy = to_stp_policy(item); stp_policy_protocol_show() local
331 stp_policy_unbind(struct stp_policy *policy) stp_policy_unbind() argument
358 struct stp_policy *policy = to_stp_policy(item); stp_policy_release() local
496 __stp_policy_node_lookup(struct stp_policy *policy, char *s) __stp_policy_node_lookup() argument
[all...]
/kernel/linux/linux-6.6/drivers/hwtracing/stm/
H A Dpolicy.c3 * System Trace Module (STM) master/channel allocation policy management
6 * A master/channel allocation policy allows mapping string identifiers to
21 * STP Master/Channel allocation policy configfs layout.
31 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()
291 struct stp_policy *policy = to_stp_policy(item); stp_policy_device_show() local
307 struct stp_policy *policy = to_stp_policy(item); stp_policy_protocol_show() local
326 stp_policy_unbind(struct stp_policy *policy) stp_policy_unbind() argument
353 struct stp_policy *policy = to_stp_policy(item); stp_policy_release() local
491 __stp_policy_node_lookup(struct stp_policy *policy, char *s) __stp_policy_node_lookup() argument
[all...]
/kernel/linux/linux-5.10/net/netlink/
H A Dpolicy.c22 const struct nla_policy *policy; member
28 const struct nla_policy *policy, in add_policy()
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()
27 add_policy(struct netlink_policy_dump_state **statep, const struct nla_policy *policy, unsigned int maxtype) add_policy() argument
81 netlink_policy_dump_get_policy_idx(struct netlink_policy_dump_state *state, const struct nla_policy *policy, unsigned int maxtype) netlink_policy_dump_get_policy_idx() argument
126 netlink_policy_dump_add_policy(struct netlink_policy_dump_state **pstate, const struct nla_policy *policy, unsigned int maxtype) netlink_policy_dump_add_policy() argument
152 const struct nla_policy *policy; netlink_policy_dump_add_policy() local
425 struct nlattr *policy; netlink_policy_dump_write() local
[all...]
/kernel/linux/linux-6.6/net/netlink/
H A Dpolicy.c22 const struct nla_policy *policy; member
28 const struct nla_policy *policy, in add_policy()
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()
27 add_policy(struct netlink_policy_dump_state **statep, const struct nla_policy *policy, unsigned int maxtype) add_policy() argument
81 netlink_policy_dump_get_policy_idx(struct netlink_policy_dump_state *state, const struct nla_policy *policy, unsigned int maxtype) netlink_policy_dump_get_policy_idx() argument
126 netlink_policy_dump_add_policy(struct netlink_policy_dump_state **pstate, const struct nla_policy *policy, unsigned int maxtype) netlink_policy_dump_add_policy() argument
152 const struct nla_policy *policy; netlink_policy_dump_add_policy() local
425 struct nlattr *policy; netlink_policy_dump_write() local
[all...]
/kernel/linux/linux-5.10/kernel/sched/
H A Dcpufreq_schedutil.c25 struct cpufreq_policy *policy; member
93 if (!cpufreq_this_cpu_can_update(sg_policy->policy)) in sugov_should_update_freq()
127 cpufreq_driver_fast_switch(sg_policy->policy, next_freq); in sugov_fast_switch()
143 * get_next_freq - Compute a new frequency for a given cpufreq policy.
144 * @sg_policy: schedutil policy object to compute the new frequency for.
161 * next_freq (as calculated above) is returned, subject to policy min/max and
167 struct cpufreq_policy *policy = sg_policy->policy; in get_next_freq() local
169 policy->cpuinfo.max_freq : policy in get_next_freq()
512 struct cpufreq_policy *policy = sg_policy->policy; sugov_next_freq_shared() local
677 sugov_policy_alloc(struct cpufreq_policy *policy) global() argument
712 struct cpufreq_policy *policy = sg_policy->policy; global() local
776 sugov_init(struct cpufreq_policy *policy) global() argument
852 sugov_exit(struct cpufreq_policy *policy) global() argument
872 sugov_start(struct cpufreq_policy *policy) global() argument
905 sugov_stop(struct cpufreq_policy *policy) global() argument
921 sugov_limits(struct cpufreq_policy *policy) global() argument
972 sched_cpufreq_governor_change(struct cpufreq_policy *policy, struct cpufreq_governor *old_gov) global() argument
[all...]
/kernel/linux/linux-5.10/drivers/thermal/
H A Dcpufreq_cooling.c63 * @policy: cpufreq policy.
77 struct cpufreq_policy *policy; member
211 struct cpufreq_policy *policy = cpufreq_cdev->policy; in cpufreq_get_requested_power() local
214 freq = cpufreq_quick_get(policy->cpu); in cpufreq_get_requested_power()
217 u32 ncpus = cpumask_weight(policy->related_cpus); in cpufreq_get_requested_power()
222 for_each_cpu(cpu, policy->related_cpus) { in cpufreq_get_requested_power()
242 trace_thermal_power_cpu_get_power(policy->related_cpus, freq, in cpufreq_get_requested_power()
275 num_cpus = cpumask_weight(cpufreq_cdev->policy in cpufreq_state2power()
309 struct cpufreq_policy *policy = cpufreq_cdev->policy; cpufreq_power2state() local
323 struct cpufreq_policy *policy; em_is_sane() local
352 struct cpufreq_policy *policy; get_state_freq() local
481 __cpufreq_cooling_register(struct device_node *np, struct cpufreq_policy *policy, struct em_perf_domain *em) __cpufreq_cooling_register() argument
600 cpufreq_cooling_register(struct cpufreq_policy *policy) cpufreq_cooling_register() argument
626 of_cpufreq_cooling_register(struct cpufreq_policy *policy) of_cpufreq_cooling_register() argument
[all...]
/kernel/linux/linux-5.10/drivers/cpufreq/
H A 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 in amd_powersave_bias_target()
[all...]
H A Dppc_cbe_cpufreq.c55 static int cbe_cpufreq_cpu_init(struct cpufreq_policy *policy) in cbe_cpufreq_cpu_init() argument
63 cpu = of_get_cpu_node(policy->cpu, NULL); in cbe_cpufreq_cpu_init()
68 pr_debug("init cpufreq on CPU %d\n", policy->cpu); in cbe_cpufreq_cpu_init()
73 if (!cbe_get_cpu_pmd_regs(policy->cpu) || in cbe_cpufreq_cpu_init()
74 !cbe_get_cpu_mic_tm_regs(policy->cpu)) { in cbe_cpufreq_cpu_init()
101 policy->cpuinfo.transition_latency = 25000; in cbe_cpufreq_cpu_init()
103 cur_pmode = cbe_cpufreq_get_pmode(policy->cpu); in cbe_cpufreq_cpu_init()
106 policy->cur = cbe_freqs[cur_pmode].frequency; in cbe_cpufreq_cpu_init()
109 cpumask_copy(policy->cpus, cpu_sibling_mask(policy in cbe_cpufreq_cpu_init()
117 cbe_cpufreq_cpu_exit(struct cpufreq_policy *policy) cbe_cpufreq_cpu_exit() argument
123 cbe_cpufreq_target(struct cpufreq_policy *policy, unsigned int cbe_pmode_new) cbe_cpufreq_target() argument
[all...]
H A Dscpi-cpufreq.c40 struct cpufreq_policy *policy = cpufreq_cpu_get_raw(cpu); in scpi_cpufreq_get_rate() local
41 struct scpi_data *priv = policy->driver_data; in scpi_cpufreq_get_rate()
48 scpi_cpufreq_set_target(struct cpufreq_policy *policy, unsigned int index) in scpi_cpufreq_set_target() argument
50 u64 rate = policy->freq_table[index].frequency * 1000; in scpi_cpufreq_set_target()
51 struct scpi_data *priv = policy->driver_data; in scpi_cpufreq_set_target()
91 static int scpi_cpufreq_init(struct cpufreq_policy *policy) in scpi_cpufreq_init() argument
99 cpu_dev = get_cpu_device(policy->cpu); in scpi_cpufreq_init()
101 pr_err("failed to get cpu%d device\n", policy->cpu); in scpi_cpufreq_init()
111 ret = scpi_get_sharing_cpus(cpu_dev, policy->cpus); in scpi_cpufreq_init()
117 ret = dev_pm_opp_set_sharing_cpus(cpu_dev, policy in scpi_cpufreq_init()
180 scpi_cpufreq_exit(struct cpufreq_policy *policy) scpi_cpufreq_exit() argument
[all...]
H A 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()
88 index = cpufreq_table_find_index_l(policy, freq_avg); in generic_powersave_bias_target()
106 static void ondemand_powersave_bias_init(struct cpufreq_policy *policy) in ondemand_powersave_bias_init() argument
108 struct od_policy_dbs_info *dbs_info = to_dbs_info(policy->governor_data); in ondemand_powersave_bias_init()
113 static void dbs_freq_increase(struct cpufreq_policy *policy, unsigned int freq) in dbs_freq_increase() argument
115 struct policy_dbs_info *policy_dbs = policy in dbs_freq_increase()
134 od_update(struct cpufreq_policy *policy) od_update() argument
170 od_dbs_update(struct cpufreq_policy *policy) od_dbs_update() argument
388 od_start(struct cpufreq_policy *policy) od_start() argument
423 struct cpufreq_policy *policy; od_set_powersave_bias() local
[all...]
H A Dscmi-cpufreq.c32 struct cpufreq_policy *policy = cpufreq_cpu_get_raw(cpu); in scmi_cpufreq_get_rate() local
34 struct scmi_data *priv = policy->driver_data; in scmi_cpufreq_get_rate()
50 scmi_cpufreq_set_target(struct cpufreq_policy *policy, unsigned int index) in scmi_cpufreq_set_target() argument
52 struct scmi_data *priv = policy->driver_data; in scmi_cpufreq_set_target()
54 u64 freq = policy->freq_table[index].frequency; in scmi_cpufreq_set_target()
59 static unsigned int scmi_cpufreq_fast_switch(struct cpufreq_policy *policy, in scmi_cpufreq_fast_switch() argument
62 struct scmi_data *priv = policy->driver_data; in scmi_cpufreq_fast_switch()
121 static int scmi_cpufreq_init(struct cpufreq_policy *policy) in scmi_cpufreq_init() argument
130 cpu_dev = get_cpu_device(policy->cpu); in scmi_cpufreq_init()
132 pr_err("failed to get cpu%d device\n", policy in scmi_cpufreq_init()
204 scmi_cpufreq_exit(struct cpufreq_policy *policy) scmi_cpufreq_exit() argument
[all...]
H A Dcpufreq_conservative.c38 struct cpufreq_policy *policy) in get_freq_step()
40 unsigned int freq_step = (cs_tuners->freq_step * policy->max) / 100; in get_freq_step()
58 static unsigned int cs_dbs_update(struct cpufreq_policy *policy) in cs_dbs_update() argument
60 struct policy_dbs_info *policy_dbs = policy->governor_data; in cs_dbs_update()
65 unsigned int load = dbs_update(policy); in cs_dbs_update()
80 if (requested_freq > policy->max || requested_freq < policy->min) { in cs_dbs_update()
81 requested_freq = policy->cur; in cs_dbs_update()
85 freq_step = get_freq_step(cs_tuners, policy); in cs_dbs_update()
94 if (requested_freq > policy in cs_dbs_update()
37 get_freq_step(struct cs_dbs_tuners *cs_tuners, struct cpufreq_policy *policy) get_freq_step() argument
306 cs_start(struct cpufreq_policy *policy) cs_start() argument
[all...]
H A Ds3c64xx-cpufreq.c51 static int s3c64xx_cpufreq_set_target(struct cpufreq_policy *policy, in s3c64xx_cpufreq_set_target() argument
58 old_freq = clk_get_rate(policy->clk) / 1000; in s3c64xx_cpufreq_set_target()
75 ret = clk_set_rate(policy->clk, new_freq * 1000); in s3c64xx_cpufreq_set_target()
90 if (clk_set_rate(policy->clk, old_freq * 1000) < 0) in s3c64xx_cpufreq_set_target()
99 clk_get_rate(policy->clk) / 1000); in s3c64xx_cpufreq_set_target()
143 static int s3c64xx_cpufreq_driver_init(struct cpufreq_policy *policy) in s3c64xx_cpufreq_driver_init() argument
147 if (policy->cpu != 0) in s3c64xx_cpufreq_driver_init()
150 policy->clk = clk_get(NULL, "armclk"); in s3c64xx_cpufreq_driver_init()
151 if (IS_ERR(policy->clk)) { in s3c64xx_cpufreq_driver_init()
153 PTR_ERR(policy in s3c64xx_cpufreq_driver_init()
[all...]
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/
H A 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()
54 /* after cancel_delayed_work_sync we unset info->policy */ in spu_gov_work()
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 in spu_gov_start()
107 spu_gov_stop(struct cpufreq_policy *policy) spu_gov_stop() argument
[all...]
/kernel/linux/linux-6.6/arch/powerpc/platforms/cell/
H A 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()
54 /* after cancel_delayed_work_sync we unset info->policy */ in spu_gov_work()
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 in spu_gov_start()
107 spu_gov_stop(struct cpufreq_policy *policy) spu_gov_stop() argument
[all...]
/kernel/linux/linux-6.6/drivers/thermal/
H A Dcpufreq_cooling.c62 * @policy: cpufreq policy.
75 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 in cpufreq_power2state() local
316 struct cpufreq_policy *policy; em_is_sane() local
375 struct cpufreq_policy *policy; get_state_freq() local
492 __cpufreq_cooling_register(struct device_node *np, struct cpufreq_policy *policy, struct em_perf_domain *em) __cpufreq_cooling_register() argument
602 cpufreq_cooling_register(struct cpufreq_policy *policy) cpufreq_cooling_register() argument
625 of_cpufreq_cooling_register(struct cpufreq_policy *policy) of_cpufreq_cooling_register() argument
[all...]
/kernel/linux/linux-6.6/security/selinux/ss/
H A Dservices.c15 * Added conditional policy language extensions
20 * Added support for the policy capability bitmap
32 * Added support for runtime switching of the policy type
129 pr_info("SELinux: Class %s not defined in policy.\n", in selinux_set_mapping()
148 pr_info("SELinux: Permission %s in class %s not defined in policy.\n", in selinux_set_mapping()
173 * Get real, policy values from mapped values
185 * Get kernel value for class from its policy value
241 struct selinux_policy *policy; in security_mls_enabled() local
247 policy = rcu_dereference(selinux_state.policy); in security_mls_enabled()
716 security_validtrans_handle_fail(struct selinux_policy *policy, struct sidtab_entry *oentry, struct sidtab_entry *nentry, struct sidtab_entry *tentry, u16 tclass) security_validtrans_handle_fail() argument
750 struct selinux_policy *policy; security_compute_validatetrans() local
854 struct selinux_policy *policy; security_bounded_transition() local
934 avd_init(struct selinux_policy *policy, struct av_decision *avd) avd_init() argument
1006 struct selinux_policy *policy; security_compute_xperms_decision() local
1101 struct selinux_policy *policy; security_compute_av() local
1158 struct selinux_policy *policy; security_compute_av_user() local
1284 struct selinux_policy *policy; security_sidtab_hash_stats() local
1312 struct selinux_policy *policy; security_sid_to_context_core() local
1497 struct selinux_policy *policy; security_context_to_sid_core() local
1626 compute_sid_handle_invalid_context( struct selinux_policy *policy, struct sidtab_entry *sentry, struct sidtab_entry *tentry, u16 tclass, struct context *newcontext) compute_sid_handle_invalid_context() argument
1702 struct selinux_policy *policy; security_compute_sid() local
2103 security_load_policycaps(struct selinux_policy *policy) security_load_policycaps() argument
2130 selinux_policy_free(struct selinux_policy *policy) selinux_policy_free() argument
2142 selinux_policy_cond_free(struct selinux_policy *policy) selinux_policy_cond_free() argument
2381 struct selinux_policy *policy; security_port_sid() local
2433 struct selinux_policy *policy; security_ib_pkey_sid() local
2485 struct selinux_policy *policy; security_ib_endport_sid() local
2537 struct selinux_policy *policy; security_netif_sid() local
2603 struct selinux_policy *policy; security_node_sid() local
2697 struct selinux_policy *policy; security_get_user_sids() local
2816 __security_genfs_sid(struct selinux_policy *policy, const char *fstype, const char *path, u16 orig_sclass, u32 *sid) __security_genfs_sid() argument
2872 struct selinux_policy *policy; security_genfs_sid() local
2890 selinux_policy_genfs_sid(struct selinux_policy *policy, const char *fstype, const char *path, u16 orig_sclass, u32 *sid) selinux_policy_genfs_sid() argument
2906 struct selinux_policy *policy; security_fs_use() local
2962 security_get_bools(struct selinux_policy *policy, u32 *len, char ***names, int **values) security_get_bools() argument
3089 struct selinux_policy *policy; security_get_bool_value() local
3147 struct selinux_policy *policy; security_sid_mls_copy() local
3258 struct selinux_policy *policy; security_net_peersid_resolve() local
3342 security_get_classes(struct selinux_policy *policy, char ***classes, u32 *nclasses) security_get_classes() argument
3383 security_get_permissions(struct selinux_policy *policy, const char *class, char ***perms, u32 *nperms) security_get_permissions() argument
3431 struct selinux_policy *policy; security_get_reject_unknown() local
3446 struct selinux_policy *policy; security_get_allow_unknown() local
3471 struct selinux_policy *policy; security_policycap_supported() local
3503 struct selinux_policy *policy; selinux_audit_rule_init() local
3628 struct selinux_policy *policy; selinux_audit_rule_match() local
3808 struct selinux_policy *policy; security_netlbl_secattr_to_sid() local
3883 struct selinux_policy *policy; security_netlbl_sid_to_secattr() local
3923 __security_read_policy(struct selinux_policy *policy, void *data, size_t *len) __security_read_policy() argument
3949 struct selinux_policy *policy; security_read_policy() local
3979 struct selinux_policy *policy; security_read_state_kernel() local
[all...]

Completed in 14 milliseconds

12345678910>>...43