Home
last modified time | relevance | path

Searched refs:perf_ctrls (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/include/acpi/
H A Dcppc_acpi.h133 struct cppc_perf_ctrls perf_ctrls; member
143 extern int cppc_set_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls);
156 extern int cppc_set_epp_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls, bool enable);
172 static inline int cppc_set_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls) in cppc_set_perf() argument
212 static inline int cppc_set_epp_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls, bool enable) in cppc_set_epp_perf() argument
/openbmc/linux/drivers/cpufreq/
H A Damd-pstate.c181 struct cppc_perf_ctrls perf_ctrls; in amd_pstate_set_epp() local
194 perf_ctrls.energy_perf = epp; in amd_pstate_set_epp()
259 struct cppc_perf_ctrls perf_ctrls; in cppc_enable() local
272 perf_ctrls.desired_perf = 0; in cppc_enable()
378 struct cppc_perf_ctrls perf_ctrls; in cppc_update_perf() local
380 perf_ctrls.max_perf = max_perf; in cppc_update_perf()
381 perf_ctrls.min_perf = min_perf; in cppc_update_perf()
382 perf_ctrls.desired_perf = des_perf; in cppc_update_perf()
1323 perf_ctrls.max_perf = max_perf; in amd_pstate_epp_reenable()
1364 perf_ctrls.desired_perf = 0; in amd_pstate_epp_offline()
[all …]
H A Dcppc_cpufreq.c394 if (desired_perf == cpu_data->perf_ctrls.desired_perf) in cppc_cpufreq_set_target()
397 cpu_data->perf_ctrls.desired_perf = desired_perf; in cppc_cpufreq_set_target()
402 ret = cppc_set_perf(cpu, &cpu_data->perf_ctrls); in cppc_cpufreq_set_target()
421 cpu_data->perf_ctrls.desired_perf = desired_perf; in cppc_cpufreq_fast_switch()
422 ret = cppc_set_perf(cpu, &cpu_data->perf_ctrls); in cppc_cpufreq_fast_switch()
777 cpu_data->perf_ctrls.desired_perf = caps->highest_perf; in cppc_cpufreq_cpu_init()
779 ret = cppc_set_perf(cpu, &cpu_data->perf_ctrls); in cppc_cpufreq_cpu_init()
803 cpu_data->perf_ctrls.desired_perf = caps->lowest_perf; in cppc_cpufreq_cpu_exit()
805 ret = cppc_set_perf(cpu, &cpu_data->perf_ctrls); in cppc_cpufreq_cpu_exit()
838 return cpu_data->perf_ctrls.desired_perf; in cppc_perf_from_fbctrs()
/openbmc/linux/drivers/acpi/
H A Dcppc_acpi.c1428 int cppc_set_epp_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls, bool enable) in cppc_set_epp_perf() argument
1458 ret = cpc_write(cpu, epp_set_reg, perf_ctrls->energy_perf); in cppc_set_epp_perf()
1626 int cppc_set_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls) in cppc_set_perf() argument
1673 cpc_write(cpu, desired_reg, perf_ctrls->desired_perf); in cppc_set_perf()
1680 if (perf_ctrls->min_perf) in cppc_set_perf()
1681 cpc_write(cpu, min_perf_reg, perf_ctrls->min_perf); in cppc_set_perf()
1682 if (perf_ctrls->max_perf) in cppc_set_perf()
1683 cpc_write(cpu, max_perf_reg, perf_ctrls->max_perf); in cppc_set_perf()