Searched refs:perf_ctrls (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/include/acpi/ |
H A D | cppc_acpi.h | 133 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 D | amd-pstate.c | 201 struct cppc_perf_ctrls perf_ctrls; in amd_pstate_set_epp() local 217 perf_ctrls.energy_perf = epp; in amd_pstate_set_epp() 282 struct cppc_perf_ctrls perf_ctrls; in cppc_enable() local 295 perf_ctrls.desired_perf = 0; in cppc_enable() 391 struct cppc_perf_ctrls perf_ctrls; in cppc_update_perf() local 393 perf_ctrls.max_perf = max_perf; in cppc_update_perf() 394 perf_ctrls.min_perf = min_perf; in cppc_update_perf() 395 perf_ctrls.desired_perf = des_perf; in cppc_update_perf() 1326 perf_ctrls.max_perf = max_perf; in amd_pstate_epp_reenable() 1367 perf_ctrls.desired_perf = 0; in amd_pstate_epp_offline() [all …]
|
H A D | cppc_cpufreq.c | 394 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 D | cppc_acpi.c | 1428 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()
|