Lines Matching refs:pstate_funcs

283 struct pstate_funcs {  struct
295 static struct pstate_funcs pstate_funcs __read_mostly; argument
544 int perf_ctl_turbo = pstate_funcs.get_turbo(cpu->cpu); in intel_pstate_hybrid_hwp_adjust()
2002 pstate_funcs.get_val(cpu, pstate)); in intel_pstate_set_pstate()
2020 int perf_ctl_max_phys = pstate_funcs.get_max_physical(cpu->cpu); in intel_pstate_get_cpu_pstates()
2021 int perf_ctl_scaling = pstate_funcs.get_scaling(); in intel_pstate_get_cpu_pstates()
2023 cpu->pstate.min_pstate = pstate_funcs.get_min(cpu->cpu); in intel_pstate_get_cpu_pstates()
2030 if (pstate_funcs.get_cpu_scaling) { in intel_pstate_get_cpu_pstates()
2031 cpu->pstate.scaling = pstate_funcs.get_cpu_scaling(cpu->cpu); in intel_pstate_get_cpu_pstates()
2039 cpu->pstate.max_pstate = pstate_funcs.get_max(cpu->cpu); in intel_pstate_get_cpu_pstates()
2040 cpu->pstate.turbo_pstate = pstate_funcs.get_turbo(cpu->cpu); in intel_pstate_get_cpu_pstates()
2049 if (pstate_funcs.get_aperf_mperf_shift) in intel_pstate_get_cpu_pstates()
2050 cpu->aperf_mperf_shift = pstate_funcs.get_aperf_mperf_shift(); in intel_pstate_get_cpu_pstates()
2052 if (pstate_funcs.get_vid) in intel_pstate_get_cpu_pstates()
2053 pstate_funcs.get_vid(cpu); in intel_pstate_get_cpu_pstates()
2278 wrmsrl(MSR_IA32_PERF_CTL, pstate_funcs.get_val(cpu, pstate)); in intel_pstate_update_pstate()
2344 static struct pstate_funcs core_funcs = {
2353 static const struct pstate_funcs silvermont_funcs = {
2363 static const struct pstate_funcs airmont_funcs = {
2373 static const struct pstate_funcs knl_funcs = {
2865 pstate_funcs.get_val(cpu, target_pstate)); in intel_cpufreq_perf_ctl_update()
2868 pstate_funcs.get_val(cpu, target_pstate)); in intel_cpufreq_perf_ctl_update()
3213 if (!pstate_funcs.get_max(0) || in intel_pstate_msrs_not_valid()
3214 !pstate_funcs.get_min(0) || in intel_pstate_msrs_not_valid()
3215 !pstate_funcs.get_turbo(0)) in intel_pstate_msrs_not_valid()
3221 static void __init copy_cpu_funcs(struct pstate_funcs *funcs) in copy_cpu_funcs()
3223 pstate_funcs.get_max = funcs->get_max; in copy_cpu_funcs()
3224 pstate_funcs.get_max_physical = funcs->get_max_physical; in copy_cpu_funcs()
3225 pstate_funcs.get_min = funcs->get_min; in copy_cpu_funcs()
3226 pstate_funcs.get_turbo = funcs->get_turbo; in copy_cpu_funcs()
3227 pstate_funcs.get_scaling = funcs->get_scaling; in copy_cpu_funcs()
3228 pstate_funcs.get_val = funcs->get_val; in copy_cpu_funcs()
3229 pstate_funcs.get_vid = funcs->get_vid; in copy_cpu_funcs()
3230 pstate_funcs.get_aperf_mperf_shift = funcs->get_aperf_mperf_shift; in copy_cpu_funcs()
3442 pstate_funcs.get_cpu_scaling = hwp_get_cpu_scaling; in intel_pstate_init()
3457 copy_cpu_funcs((struct pstate_funcs *)id->driver_data); in intel_pstate_init()