Lines Matching refs:epp
526 s16 epp;
534 epp = rdmsrl_on_cpu(cpu_data->cpu, MSR_HWP_REQUEST,
536 if (epp)
537 return epp;
539 epp = (hwp_req_data >> 24) & 0xff;
542 epp = intel_pstate_get_epb(cpu_data);
545 return epp;
594 s16 epp;
598 epp = intel_pstate_get_epp(cpu_data, 0);
599 if (epp < 0)
600 return epp;
603 if (epp == HWP_EPP_PERFORMANCE)
605 if (epp == HWP_EPP_BALANCE_PERFORMANCE)
607 if (epp == HWP_EPP_BALANCE_POWERSAVE)
609 if (epp == HWP_EPP_POWERSAVE)
611 *raw_epp = epp;
624 index = (epp >> 2) + 1;
630 static int intel_pstate_set_epp(struct cpudata *cpu, u32 epp)
642 value |= (u64)epp << 24;
651 cpu->epp_cached = epp;
660 int epp = -EINVAL;
664 epp = cpu_data->epp_default;
668 epp = raw_epp;
669 else if (epp == -EINVAL)
670 epp = epp_values[pref_index - 1];
677 if (epp > 0 && cpu_data->policy == CPUFREQ_POLICY_PERFORMANCE)
680 ret = intel_pstate_set_epp(cpu_data, epp);
682 if (epp == -EINVAL)
683 epp = (pref_index - 1) << 2;
684 ret = intel_pstate_set_epb(cpu_data->cpu, epp);
715 u32 epp = 0;
726 ret = kstrtouint(buf, 10, &epp);
730 if (epp > 255)
747 ret = intel_pstate_set_energy_pref_index(cpu, ret, raw, epp);
756 epp = ret ? epp_values[ret - 1] : cpu->epp_default;
758 if (cpu->epp_cached != epp) {
762 ret = intel_pstate_set_epp(cpu, epp);
840 s16 epp;
862 epp = intel_pstate_get_epp(cpu_data, value);
863 cpu_data->epp_powersave = epp;
865 if (epp < 0)
868 epp = 0;
881 epp = intel_pstate_get_epp(cpu_data, value);
882 if (epp)
885 epp = cpu_data->epp_powersave;
889 value |= (u64)epp << 24;
891 intel_pstate_set_epb(cpu, epp);