Lines Matching defs:pstate_funcs

272  * struct pstate_funcs - Per CPU model specific callbacks
285 struct pstate_funcs {
296 static struct pstate_funcs pstate_funcs __read_mostly;
1696 pstate_funcs.get_val(cpu, pstate));
1714 cpu->pstate.min_pstate = pstate_funcs.get_min();
1715 cpu->pstate.max_pstate_physical = pstate_funcs.get_max_physical();
1716 cpu->pstate.turbo_pstate = pstate_funcs.get_turbo();
1717 cpu->pstate.scaling = pstate_funcs.get_scaling();
1728 cpu->pstate.max_pstate = pstate_funcs.get_max();
1732 if (pstate_funcs.get_aperf_mperf_shift)
1733 cpu->aperf_mperf_shift = pstate_funcs.get_aperf_mperf_shift();
1735 if (pstate_funcs.get_vid)
1736 pstate_funcs.get_vid(cpu);
1960 wrmsrl(MSR_IA32_PERF_CTL, pstate_funcs.get_val(cpu, pstate));
2026 static struct pstate_funcs core_funcs = {
2035 static const struct pstate_funcs silvermont_funcs = {
2045 static const struct pstate_funcs airmont_funcs = {
2055 static const struct pstate_funcs knl_funcs = {
2558 pstate_funcs.get_val(cpu, target_pstate));
2561 pstate_funcs.get_val(cpu, target_pstate));
2837 if (!pstate_funcs.get_max() ||
2838 !pstate_funcs.get_min() ||
2839 !pstate_funcs.get_turbo())
2845 static void __init copy_cpu_funcs(struct pstate_funcs *funcs)
2847 pstate_funcs.get_max = funcs->get_max;
2848 pstate_funcs.get_max_physical = funcs->get_max_physical;
2849 pstate_funcs.get_min = funcs->get_min;
2850 pstate_funcs.get_turbo = funcs->get_turbo;
2851 pstate_funcs.get_scaling = funcs->get_scaling;
2852 pstate_funcs.get_val = funcs->get_val;
2853 pstate_funcs.get_vid = funcs->get_vid;
2854 pstate_funcs.get_aperf_mperf_shift = funcs->get_aperf_mperf_shift;
3066 copy_cpu_funcs((struct pstate_funcs *)id->driver_data);