Lines Matching refs:pstate_funcs
282 struct pstate_funcs { struct
294 static struct pstate_funcs pstate_funcs __read_mostly; argument
571 int perf_ctl_turbo = pstate_funcs.get_turbo(cpu->cpu); in intel_pstate_hybrid_hwp_adjust()
2246 pstate_funcs.get_val(cpu, pstate)); in intel_pstate_set_pstate()
2256 int perf_ctl_max_phys = pstate_funcs.get_max_physical(cpu->cpu); in intel_pstate_get_cpu_pstates()
2257 int perf_ctl_scaling = pstate_funcs.get_scaling(); in intel_pstate_get_cpu_pstates()
2259 cpu->pstate.min_pstate = pstate_funcs.get_min(cpu->cpu); in intel_pstate_get_cpu_pstates()
2266 if (pstate_funcs.get_cpu_scaling) { in intel_pstate_get_cpu_pstates()
2267 cpu->pstate.scaling = pstate_funcs.get_cpu_scaling(cpu->cpu); in intel_pstate_get_cpu_pstates()
2282 cpu->pstate.max_pstate = pstate_funcs.get_max(cpu->cpu); in intel_pstate_get_cpu_pstates()
2283 cpu->pstate.turbo_pstate = pstate_funcs.get_turbo(cpu->cpu); in intel_pstate_get_cpu_pstates()
2292 if (pstate_funcs.get_aperf_mperf_shift) in intel_pstate_get_cpu_pstates()
2293 cpu->aperf_mperf_shift = pstate_funcs.get_aperf_mperf_shift(); in intel_pstate_get_cpu_pstates()
2295 if (pstate_funcs.get_vid) in intel_pstate_get_cpu_pstates()
2296 pstate_funcs.get_vid(cpu); in intel_pstate_get_cpu_pstates()
2521 wrmsrl(MSR_IA32_PERF_CTL, pstate_funcs.get_val(cpu, pstate)); in intel_pstate_update_pstate()
2585 static struct pstate_funcs core_funcs = {
2594 static const struct pstate_funcs silvermont_funcs = {
2604 static const struct pstate_funcs airmont_funcs = {
2614 static const struct pstate_funcs knl_funcs = {
3111 pstate_funcs.get_val(cpu, target_pstate)); in intel_cpufreq_perf_ctl_update()
3114 pstate_funcs.get_val(cpu, target_pstate)); in intel_cpufreq_perf_ctl_update()
3454 if (!pstate_funcs.get_max(0) || in intel_pstate_msrs_not_valid()
3455 !pstate_funcs.get_min(0) || in intel_pstate_msrs_not_valid()
3456 !pstate_funcs.get_turbo(0)) in intel_pstate_msrs_not_valid()
3462 static void __init copy_cpu_funcs(struct pstate_funcs *funcs) in copy_cpu_funcs()
3464 pstate_funcs.get_max = funcs->get_max; in copy_cpu_funcs()
3465 pstate_funcs.get_max_physical = funcs->get_max_physical; in copy_cpu_funcs()
3466 pstate_funcs.get_min = funcs->get_min; in copy_cpu_funcs()
3467 pstate_funcs.get_turbo = funcs->get_turbo; in copy_cpu_funcs()
3468 pstate_funcs.get_scaling = funcs->get_scaling; in copy_cpu_funcs()
3469 pstate_funcs.get_val = funcs->get_val; in copy_cpu_funcs()
3470 pstate_funcs.get_vid = funcs->get_vid; in copy_cpu_funcs()
3471 pstate_funcs.get_aperf_mperf_shift = funcs->get_aperf_mperf_shift; in copy_cpu_funcs()
3709 pstate_funcs.get_cpu_scaling = hwp_get_cpu_scaling; in intel_pstate_init()
3724 copy_cpu_funcs((struct pstate_funcs *)id->driver_data); in intel_pstate_init()