Lines Matching refs:min_perf

236 static void pstate_update_perf(struct amd_cpudata *cpudata, u32 min_perf,  in pstate_update_perf()  argument
249 u32 min_perf, u32 des_perf, in amd_pstate_update_perf() argument
252 static_call(amd_pstate_update_perf)(cpudata, min_perf, des_perf, in amd_pstate_update_perf()
431 u32 min_perf, u32 des_perf, in cppc_update_perf() argument
437 perf_ctrls.min_perf = min_perf; in cppc_update_perf()
476 static void amd_pstate_update(struct amd_cpudata *cpudata, u32 min_perf, in amd_pstate_update() argument
485 min_perf = clamp_t(unsigned long, min_perf, cpudata->min_limit_perf, in amd_pstate_update()
489 des_perf = clamp_t(unsigned long, des_perf, min_perf, max_perf); in amd_pstate_update()
495 min_perf = des_perf; in amd_pstate_update()
500 value |= AMD_CPPC_MIN_PERF(min_perf); in amd_pstate_update()
513 trace_amd_pstate_perf(min_perf, des_perf, max_perf, cpudata->freq, in amd_pstate_update()
523 amd_pstate_update_perf(cpudata, min_perf, des_perf, in amd_pstate_update()
570 unsigned long max_perf, min_perf, des_perf, cap_perf; in amd_pstate_update_freq() local
579 min_perf = READ_ONCE(cpudata->lowest_perf); in amd_pstate_update_freq()
597 amd_pstate_update(cpudata, min_perf, des_perf, in amd_pstate_update_freq()
626 unsigned long max_perf, min_perf, des_perf, in amd_pstate_adjust_perf() local
647 min_perf = READ_ONCE(cpudata->lowest_perf); in amd_pstate_adjust_perf()
649 min_perf = DIV_ROUND_UP(cap_perf * _min_perf, capacity); in amd_pstate_adjust_perf()
651 if (min_perf < lowest_nonlinear_perf) in amd_pstate_adjust_perf()
652 min_perf = lowest_nonlinear_perf; in amd_pstate_adjust_perf()
655 if (max_perf < min_perf) in amd_pstate_adjust_perf()
656 max_perf = min_perf; in amd_pstate_adjust_perf()
658 des_perf = clamp_t(unsigned long, des_perf, min_perf, max_perf); in amd_pstate_adjust_perf()
660 amd_pstate_update(cpudata, min_perf, des_perf, max_perf, true, in amd_pstate_adjust_perf()
1510 u32 max_perf, min_perf, min_limit_perf, max_limit_perf; in amd_pstate_epp_update_limit() local
1518 min_perf = READ_ONCE(cpudata->lowest_perf); in amd_pstate_epp_update_limit()
1522 if (min_limit_perf < min_perf) in amd_pstate_epp_update_limit()
1523 min_limit_perf = min_perf; in amd_pstate_epp_update_limit()
1533 min_perf = clamp_t(unsigned long, min_perf, cpudata->min_limit_perf, in amd_pstate_epp_update_limit()
1538 min_perf = max_perf; in amd_pstate_epp_update_limit()
1542 value |= AMD_CPPC_MIN_PERF(min_perf); in amd_pstate_epp_update_limit()
1642 int min_perf; in amd_pstate_epp_offline() local
1645 min_perf = READ_ONCE(cpudata->lowest_perf); in amd_pstate_epp_offline()
1654 value |= AMD_CPPC_MAX_PERF(min_perf); in amd_pstate_epp_offline()
1656 value |= AMD_CPPC_MIN_PERF(min_perf); in amd_pstate_epp_offline()
1660 perf_ctrls.max_perf = min_perf; in amd_pstate_epp_offline()