Lines Matching refs:pstate_funcs
287 struct pstate_funcs { struct
299 static struct pstate_funcs pstate_funcs __read_mostly; argument
574 int perf_ctl_turbo = pstate_funcs.get_turbo(cpu->cpu); in intel_pstate_hybrid_hwp_adjust()
2308 pstate_funcs.get_val(cpu, pstate)); in intel_pstate_set_pstate()
2318 int perf_ctl_scaling = pstate_funcs.get_scaling(); in intel_pstate_get_cpu_pstates()
2320 cpu->pstate.max_pstate_physical = pstate_funcs.get_max_physical(cpu->cpu); in intel_pstate_get_cpu_pstates()
2321 cpu->pstate.min_pstate = pstate_funcs.get_min(cpu->cpu); in intel_pstate_get_cpu_pstates()
2327 if (pstate_funcs.get_cpu_scaling) { in intel_pstate_get_cpu_pstates()
2328 cpu->pstate.scaling = pstate_funcs.get_cpu_scaling(cpu->cpu); in intel_pstate_get_cpu_pstates()
2340 cpu->pstate.max_pstate = pstate_funcs.get_max(cpu->cpu); in intel_pstate_get_cpu_pstates()
2341 cpu->pstate.turbo_pstate = pstate_funcs.get_turbo(cpu->cpu); in intel_pstate_get_cpu_pstates()
2350 if (pstate_funcs.get_aperf_mperf_shift) in intel_pstate_get_cpu_pstates()
2351 cpu->aperf_mperf_shift = pstate_funcs.get_aperf_mperf_shift(); in intel_pstate_get_cpu_pstates()
2353 if (pstate_funcs.get_vid) in intel_pstate_get_cpu_pstates()
2354 pstate_funcs.get_vid(cpu); in intel_pstate_get_cpu_pstates()
2579 wrmsrq(MSR_IA32_PERF_CTL, pstate_funcs.get_val(cpu, pstate)); in intel_pstate_update_pstate()
2643 static struct pstate_funcs core_funcs = {
2652 static const struct pstate_funcs silvermont_funcs = {
2662 static const struct pstate_funcs airmont_funcs = {
2672 static const struct pstate_funcs knl_funcs = {
3173 pstate_funcs.get_val(cpu, target_pstate)); in intel_cpufreq_perf_ctl_update()
3176 pstate_funcs.get_val(cpu, target_pstate)); in intel_cpufreq_perf_ctl_update()
3516 if (!pstate_funcs.get_max(0) || in intel_pstate_msrs_not_valid()
3517 !pstate_funcs.get_min(0) || in intel_pstate_msrs_not_valid()
3518 !pstate_funcs.get_turbo(0)) in intel_pstate_msrs_not_valid()
3524 static void __init copy_cpu_funcs(struct pstate_funcs *funcs) in copy_cpu_funcs()
3526 pstate_funcs.get_max = funcs->get_max; in copy_cpu_funcs()
3527 pstate_funcs.get_max_physical = funcs->get_max_physical; in copy_cpu_funcs()
3528 pstate_funcs.get_min = funcs->get_min; in copy_cpu_funcs()
3529 pstate_funcs.get_turbo = funcs->get_turbo; in copy_cpu_funcs()
3530 pstate_funcs.get_scaling = funcs->get_scaling; in copy_cpu_funcs()
3531 pstate_funcs.get_val = funcs->get_val; in copy_cpu_funcs()
3532 pstate_funcs.get_vid = funcs->get_vid; in copy_cpu_funcs()
3533 pstate_funcs.get_aperf_mperf_shift = funcs->get_aperf_mperf_shift; in copy_cpu_funcs()
3815 pstate_funcs.get_cpu_scaling = hwp_get_cpu_scaling; in intel_pstate_init()
3830 copy_cpu_funcs((struct pstate_funcs *)id->driver_data); in intel_pstate_init()