Lines Matching refs:pstate
105 struct pstate_data pstate; member
130 void (*set)(struct cpudata*, int pstate);
257 cpu->pstate.max_pstate == cpu->pstate.turbo_pstate); in update_turbo_state()
355 total = cpu->pstate.turbo_pstate - cpu->pstate.min_pstate + 1; in show_turbo_pct()
356 no_turbo = cpu->pstate.max_pstate - cpu->pstate.min_pstate + 1; in show_turbo_pct()
369 total = cpu->pstate.turbo_pstate - cpu->pstate.min_pstate + 1; in show_num_pstates()
516 static void byt_set_pstate(struct cpudata *cpudata, int pstate) in byt_set_pstate() argument
522 val = pstate << 8; in byt_set_pstate()
527 int_tofp(pstate - cpudata->pstate.min_pstate), in byt_set_pstate()
533 if (pstate > cpudata->pstate.max_pstate) in byt_set_pstate()
566 int_tofp(cpudata->pstate.max_pstate - in byt_get_vid()
567 cpudata->pstate.min_pstate)); in byt_get_vid()
607 static void core_set_pstate(struct cpudata *cpudata, int pstate) in core_set_pstate() argument
611 val = pstate << 8; in core_set_pstate()
688 int max_perf = cpu->pstate.turbo_pstate; in intel_pstate_get_min_max()
693 max_perf = cpu->pstate.max_pstate; in intel_pstate_get_min_max()
702 cpu->pstate.min_pstate, cpu->pstate.turbo_pstate); in intel_pstate_get_min_max()
705 *min = clamp_t(int, min_perf, cpu->pstate.min_pstate, max_perf); in intel_pstate_get_min_max()
708 static void intel_pstate_set_pstate(struct cpudata *cpu, int pstate) in intel_pstate_set_pstate() argument
716 pstate = clamp_t(int, pstate, min_perf, max_perf); in intel_pstate_set_pstate()
718 if (pstate == cpu->pstate.current_pstate) in intel_pstate_set_pstate()
721 trace_cpu_frequency(pstate * cpu->pstate.scaling, cpu->cpu); in intel_pstate_set_pstate()
723 cpu->pstate.current_pstate = pstate; in intel_pstate_set_pstate()
725 pstate_funcs.set(cpu, pstate); in intel_pstate_set_pstate()
730 cpu->pstate.min_pstate = pstate_funcs.get_min(); in intel_pstate_get_cpu_pstates()
731 cpu->pstate.max_pstate = pstate_funcs.get_max(); in intel_pstate_get_cpu_pstates()
732 cpu->pstate.turbo_pstate = pstate_funcs.get_turbo(); in intel_pstate_get_cpu_pstates()
733 cpu->pstate.scaling = pstate_funcs.get_scaling(); in intel_pstate_get_cpu_pstates()
737 intel_pstate_set_pstate(cpu, cpu->pstate.min_pstate); in intel_pstate_get_cpu_pstates()
750 cpu->pstate.max_pstate * cpu->pstate.scaling / 100), in intel_pstate_calc_busy()
818 max_pstate = int_tofp(cpu->pstate.max_pstate); in intel_pstate_get_scaled_busy()
819 current_pstate = int_tofp(cpu->pstate.current_pstate); in intel_pstate_get_scaled_busy()
853 intel_pstate_set_pstate(cpu, cpu->pstate.current_pstate - ctl); in intel_pstate_adjust_busy_pstate()
877 cpu->pstate.current_pstate, in intel_pstate_timer_func()
1016 intel_pstate_set_pstate(cpu, cpu->pstate.min_pstate); in intel_pstate_stop_cpu()
1035 policy->min = cpu->pstate.min_pstate * cpu->pstate.scaling; in intel_pstate_cpu_init()
1036 policy->max = cpu->pstate.turbo_pstate * cpu->pstate.scaling; in intel_pstate_cpu_init()
1039 policy->cpuinfo.min_freq = cpu->pstate.min_pstate * cpu->pstate.scaling; in intel_pstate_cpu_init()
1042 cpu->pstate.max_pstate : cpu->pstate.turbo_pstate; in intel_pstate_cpu_init()
1043 policy->cpuinfo.max_freq *= cpu->pstate.scaling; in intel_pstate_cpu_init()