Searched refs:perf_ctrls (Results 1 - 7 of 7) sorted by relevance
/kernel/linux/linux-6.6/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
|
/kernel/linux/linux-6.6/drivers/cpufreq/ |
H A D | amd-pstate.c | 181 struct cppc_perf_ctrls perf_ctrls; in amd_pstate_set_epp() local 194 perf_ctrls.energy_perf = epp; in amd_pstate_set_epp() 195 ret = cppc_set_epp_perf(cpudata->cpu, &perf_ctrls, 1); 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() 273 ret = cppc_set_perf(cpu, &perf_ctrls); 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 in cppc_update_perf() 1302 struct cppc_perf_ctrls perf_ctrls; amd_pstate_epp_reenable() local 1339 struct cppc_perf_ctrls perf_ctrls; amd_pstate_epp_offline() local [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 in cppc_perf_from_fbctrs() [all...] |
/kernel/linux/linux-5.10/drivers/cpufreq/ |
H A D | cppc_cpufreq.c | 161 if (desired_perf == cpu->perf_ctrls.desired_perf) in cppc_cpufreq_set_target() 164 cpu->perf_ctrls.desired_perf = desired_perf; in cppc_cpufreq_set_target() 169 ret = cppc_set_perf(cpu->cpu, &cpu->perf_ctrls); in cppc_cpufreq_set_target() 191 cpu->perf_ctrls.desired_perf = cpu->perf_caps.lowest_perf; in cppc_cpufreq_stop_cpu() 193 ret = cppc_set_perf(cpu_num, &cpu->perf_ctrls); in cppc_cpufreq_stop_cpu() 311 cpu->perf_ctrls.desired_perf = cpu->perf_caps.highest_perf; in cppc_cpufreq_cpu_init() 313 ret = cppc_set_perf(cpu_num, &cpu->perf_ctrls); in cppc_cpufreq_cpu_init() 348 delivered_perf = cpu->perf_ctrls.desired_perf; in cppc_get_rate_from_fbctrs()
|
/kernel/linux/linux-5.10/include/acpi/ |
H A D | cppc_acpi.h | 129 struct cppc_perf_ctrls perf_ctrls; member 138 extern int cppc_set_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls);
|
/kernel/linux/linux-6.6/drivers/acpi/ |
H A D | cppc_acpi.c | 1386 int cppc_set_epp_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls, bool enable) in cppc_set_epp_perf() argument 1416 ret = cpc_write(cpu, epp_set_reg, perf_ctrls->energy_perf); in cppc_set_epp_perf() 1580 * @perf_ctrls: ptr to cppc_perf_ctrls. See cppc_acpi.h 1584 int cppc_set_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls) in cppc_set_perf() argument 1631 cpc_write(cpu, desired_reg, perf_ctrls->desired_perf); in cppc_set_perf() 1638 if (perf_ctrls->min_perf) in cppc_set_perf() 1639 cpc_write(cpu, min_perf_reg, perf_ctrls->min_perf); in cppc_set_perf() 1640 if (perf_ctrls->max_perf) in cppc_set_perf() 1641 cpc_write(cpu, max_perf_reg, perf_ctrls->max_perf); in cppc_set_perf()
|
/kernel/linux/linux-5.10/drivers/acpi/ |
H A D | cppc_acpi.c | 1239 * @perf_ctrls: ptr to cppc_perf_ctrls. See cppc_acpi.h 1243 int cppc_set_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls) in cppc_set_perf() argument 1292 cpc_write(cpu, desired_reg, perf_ctrls->desired_perf); in cppc_set_perf()
|
Completed in 9 milliseconds