Lines Matching refs:pstate_funcs

279 struct pstate_funcs {  struct
291 static struct pstate_funcs pstate_funcs __read_mostly; argument
521 int perf_ctl_turbo = pstate_funcs.get_turbo(); in intel_pstate_hybrid_hwp_adjust()
526 pr_debug("CPU%d: perf_ctl_max = %d\n", cpu->cpu, pstate_funcs.get_max()); in intel_pstate_hybrid_hwp_adjust()
1808 pstate_funcs.get_cpu_scaling = hybrid_get_cpu_scaling; in intel_pstate_cppc_set_cpu_scaling()
1827 pstate_funcs.get_val(cpu, pstate)); in intel_pstate_set_pstate()
1845 int perf_ctl_max_phys = pstate_funcs.get_max_physical(); in intel_pstate_get_cpu_pstates()
1846 int perf_ctl_scaling = pstate_funcs.get_scaling(); in intel_pstate_get_cpu_pstates()
1848 cpu->pstate.min_pstate = pstate_funcs.get_min(); in intel_pstate_get_cpu_pstates()
1855 if (pstate_funcs.get_cpu_scaling) { in intel_pstate_get_cpu_pstates()
1856 cpu->pstate.scaling = pstate_funcs.get_cpu_scaling(cpu->cpu); in intel_pstate_get_cpu_pstates()
1864 cpu->pstate.max_pstate = pstate_funcs.get_max(); in intel_pstate_get_cpu_pstates()
1865 cpu->pstate.turbo_pstate = pstate_funcs.get_turbo(); in intel_pstate_get_cpu_pstates()
1874 if (pstate_funcs.get_aperf_mperf_shift) in intel_pstate_get_cpu_pstates()
1875 cpu->aperf_mperf_shift = pstate_funcs.get_aperf_mperf_shift(); in intel_pstate_get_cpu_pstates()
1877 if (pstate_funcs.get_vid) in intel_pstate_get_cpu_pstates()
1878 pstate_funcs.get_vid(cpu); in intel_pstate_get_cpu_pstates()
2103 wrmsrl(MSR_IA32_PERF_CTL, pstate_funcs.get_val(cpu, pstate)); in intel_pstate_update_pstate()
2169 static struct pstate_funcs core_funcs = {
2178 static const struct pstate_funcs silvermont_funcs = {
2188 static const struct pstate_funcs airmont_funcs = {
2198 static const struct pstate_funcs knl_funcs = {
2694 pstate_funcs.get_val(cpu, target_pstate)); in intel_cpufreq_perf_ctl_update()
2697 pstate_funcs.get_val(cpu, target_pstate)); in intel_cpufreq_perf_ctl_update()
3019 if (!pstate_funcs.get_max() || in intel_pstate_msrs_not_valid()
3020 !pstate_funcs.get_min() || in intel_pstate_msrs_not_valid()
3021 !pstate_funcs.get_turbo()) in intel_pstate_msrs_not_valid()
3027 static void __init copy_cpu_funcs(struct pstate_funcs *funcs) in copy_cpu_funcs()
3029 pstate_funcs.get_max = funcs->get_max; in copy_cpu_funcs()
3030 pstate_funcs.get_max_physical = funcs->get_max_physical; in copy_cpu_funcs()
3031 pstate_funcs.get_min = funcs->get_min; in copy_cpu_funcs()
3032 pstate_funcs.get_turbo = funcs->get_turbo; in copy_cpu_funcs()
3033 pstate_funcs.get_scaling = funcs->get_scaling; in copy_cpu_funcs()
3034 pstate_funcs.get_val = funcs->get_val; in copy_cpu_funcs()
3035 pstate_funcs.get_vid = funcs->get_vid; in copy_cpu_funcs()
3036 pstate_funcs.get_aperf_mperf_shift = funcs->get_aperf_mperf_shift; in copy_cpu_funcs()
3252 copy_cpu_funcs((struct pstate_funcs *)id->driver_data); in intel_pstate_init()