Lines Matching refs:pstate

107 	struct pstate_data pstate;  member
134 void (*set)(struct cpudata*, int pstate);
280 cpu->pstate.max_pstate == cpu->pstate.turbo_pstate); in update_turbo_state()
385 total = cpu->pstate.turbo_pstate - cpu->pstate.min_pstate + 1; in show_turbo_pct()
386 no_turbo = cpu->pstate.max_pstate - cpu->pstate.min_pstate + 1; in show_turbo_pct()
399 total = cpu->pstate.turbo_pstate - cpu->pstate.min_pstate + 1; in show_num_pstates()
555 static void atom_set_pstate(struct cpudata *cpudata, int pstate) in atom_set_pstate() argument
561 val = (u64)pstate << 8; in atom_set_pstate()
566 int_tofp(pstate - cpudata->pstate.min_pstate), in atom_set_pstate()
572 if (pstate > cpudata->pstate.max_pstate) in atom_set_pstate()
620 int_tofp(cpudata->pstate.max_pstate - in atom_get_vid()
621 cpudata->pstate.min_pstate)); in atom_get_vid()
706 static void core_set_pstate(struct cpudata *cpudata, int pstate) in core_set_pstate() argument
710 val = (u64)pstate << 8; in core_set_pstate()
810 int max_perf = cpu->pstate.turbo_pstate; in intel_pstate_get_min_max()
815 max_perf = cpu->pstate.max_pstate; in intel_pstate_get_min_max()
824 cpu->pstate.min_pstate, cpu->pstate.turbo_pstate); in intel_pstate_get_min_max()
827 *min = clamp_t(int, min_perf, cpu->pstate.min_pstate, max_perf); in intel_pstate_get_min_max()
830 static void intel_pstate_set_pstate(struct cpudata *cpu, int pstate, bool force) in intel_pstate_set_pstate() argument
839 pstate = clamp_t(int, pstate, min_perf, max_perf); in intel_pstate_set_pstate()
841 if (pstate == cpu->pstate.current_pstate) in intel_pstate_set_pstate()
844 trace_cpu_frequency(pstate * cpu->pstate.scaling, cpu->cpu); in intel_pstate_set_pstate()
846 cpu->pstate.current_pstate = pstate; in intel_pstate_set_pstate()
848 pstate_funcs.set(cpu, pstate); in intel_pstate_set_pstate()
853 cpu->pstate.min_pstate = pstate_funcs.get_min(); in intel_pstate_get_cpu_pstates()
854 cpu->pstate.max_pstate = pstate_funcs.get_max(); in intel_pstate_get_cpu_pstates()
855 cpu->pstate.max_pstate_physical = pstate_funcs.get_max_physical(); in intel_pstate_get_cpu_pstates()
856 cpu->pstate.turbo_pstate = pstate_funcs.get_turbo(); in intel_pstate_get_cpu_pstates()
857 cpu->pstate.scaling = pstate_funcs.get_scaling(); in intel_pstate_get_cpu_pstates()
861 intel_pstate_set_pstate(cpu, cpu->pstate.min_pstate, false); in intel_pstate_get_cpu_pstates()
874 cpu->pstate.max_pstate_physical * in intel_pstate_calc_busy()
875 cpu->pstate.scaling / 100), in intel_pstate_calc_busy()
948 max_pstate = int_tofp(cpu->pstate.max_pstate_physical); in intel_pstate_get_scaled_busy()
949 current_pstate = int_tofp(cpu->pstate.current_pstate); in intel_pstate_get_scaled_busy()
979 from = cpu->pstate.current_pstate; in intel_pstate_adjust_busy_pstate()
987 intel_pstate_set_pstate(cpu, cpu->pstate.current_pstate - ctl, true); in intel_pstate_adjust_busy_pstate()
993 cpu->pstate.current_pstate, in intel_pstate_adjust_busy_pstate()
1169 intel_pstate_set_pstate(cpu, cpu->pstate.min_pstate, false); in intel_pstate_stop_cpu()
1188 policy->min = cpu->pstate.min_pstate * cpu->pstate.scaling; in intel_pstate_cpu_init()
1189 policy->max = cpu->pstate.turbo_pstate * cpu->pstate.scaling; in intel_pstate_cpu_init()
1192 policy->cpuinfo.min_freq = cpu->pstate.min_pstate * cpu->pstate.scaling; in intel_pstate_cpu_init()
1194 cpu->pstate.turbo_pstate * cpu->pstate.scaling; in intel_pstate_cpu_init()