Lines Matching refs:cpudata
232 struct cpudata { struct
268 static struct cpudata **all_cpu_data; argument
290 u64 (*get_val)(struct cpudata*, int pstate);
291 void (*get_vid)(struct cpudata *);
384 struct cpudata *cpu; in intel_pstate_init_acpi_perf_limits()
454 struct cpudata *cpu; in intel_pstate_exit_perf_limits()
480 struct cpudata *cpu; in update_turbo_state()
491 struct cpudata *cpu = all_cpu_data[0]; in min_perf_pct_min()
498 static s16 intel_pstate_get_epb(struct cpudata *cpu_data) in intel_pstate_get_epb()
513 static s16 intel_pstate_get_epp(struct cpudata *cpu_data, u64 hwp_req_data) in intel_pstate_get_epp()
581 static int intel_pstate_get_energy_pref_index(struct cpudata *cpu_data) in intel_pstate_get_energy_pref_index()
616 static int intel_pstate_set_energy_pref_index(struct cpudata *cpu_data, in intel_pstate_set_energy_pref_index()
671 struct cpudata *cpu_data = all_cpu_data[policy->cpu]; in store_energy_performance_preference()
690 struct cpudata *cpu_data = all_cpu_data[policy->cpu]; in show_energy_performance_preference()
725 struct cpudata *cpu_data = all_cpu_data[cpu]; in intel_pstate_hwp_set()
795 struct cpudata *cpu_data = all_cpu_data[policy->cpu]; in intel_pstate_hwp_save_state()
805 static void intel_pstate_hwp_enable(struct cpudata *cpudata);
872 struct cpudata *cpu; in show_turbo_pct()
898 struct cpudata *cpu; in show_num_pstates()
969 struct cpudata *cpu = all_cpu_data[0]; in store_no_turbo()
1129 static void intel_pstate_hwp_enable(struct cpudata *cpudata) in intel_pstate_hwp_enable() argument
1133 wrmsrl_on_cpu(cpudata->cpu, MSR_HWP_INTERRUPT, 0x00); in intel_pstate_hwp_enable()
1135 wrmsrl_on_cpu(cpudata->cpu, MSR_PM_ENABLE, 0x1); in intel_pstate_hwp_enable()
1136 cpudata->epp_policy = 0; in intel_pstate_hwp_enable()
1137 if (cpudata->epp_default == -EINVAL) in intel_pstate_hwp_enable()
1138 cpudata->epp_default = intel_pstate_get_epp(cpudata, 0); in intel_pstate_hwp_enable()
1184 static u64 atom_get_val(struct cpudata *cpudata, int pstate) in atom_get_val() argument
1194 vid_fp = cpudata->vid.min + mul_fp( in atom_get_val()
1195 int_tofp(pstate - cpudata->pstate.min_pstate), in atom_get_val()
1196 cpudata->vid.ratio); in atom_get_val()
1198 vid_fp = clamp_t(int32_t, vid_fp, cpudata->vid.min, cpudata->vid.max); in atom_get_val()
1201 if (pstate > cpudata->pstate.max_pstate) in atom_get_val()
1202 vid = cpudata->vid.turbo; in atom_get_val()
1238 static void atom_get_vid(struct cpudata *cpudata) in atom_get_vid() argument
1243 cpudata->vid.min = int_tofp((value >> 8) & 0x7f); in atom_get_vid()
1244 cpudata->vid.max = int_tofp((value >> 16) & 0x7f); in atom_get_vid()
1245 cpudata->vid.ratio = div_fp( in atom_get_vid()
1246 cpudata->vid.max - cpudata->vid.min, in atom_get_vid()
1247 int_tofp(cpudata->pstate.max_pstate - in atom_get_vid()
1248 cpudata->pstate.min_pstate)); in atom_get_vid()
1251 cpudata->vid.turbo = value & 0x7f; in atom_get_vid()
1356 static u64 core_get_val(struct cpudata *cpudata, int pstate) in core_get_val() argument
1385 static int intel_pstate_get_base_pstate(struct cpudata *cpu) in intel_pstate_get_base_pstate()
1391 static void intel_pstate_set_pstate(struct cpudata *cpu, int pstate) in intel_pstate_set_pstate()
1404 static void intel_pstate_set_min_pstate(struct cpudata *cpu) in intel_pstate_set_min_pstate()
1409 static void intel_pstate_max_within_limits(struct cpudata *cpu) in intel_pstate_max_within_limits()
1419 static void intel_pstate_get_cpu_pstates(struct cpudata *cpu) in intel_pstate_get_cpu_pstates()
1454 static inline void intel_pstate_hwp_boost_up(struct cpudata *cpu) in intel_pstate_hwp_boost_up()
1500 static inline void intel_pstate_hwp_boost_down(struct cpudata *cpu) in intel_pstate_hwp_boost_down()
1516 static inline void intel_pstate_update_util_hwp_local(struct cpudata *cpu, in intel_pstate_update_util_hwp_local()
1548 struct cpudata *cpu = container_of(data, struct cpudata, update_util); in intel_pstate_update_util_hwp()
1556 static inline void intel_pstate_calc_avg_perf(struct cpudata *cpu) in intel_pstate_calc_avg_perf()
1563 static inline bool intel_pstate_sample(struct cpudata *cpu, u64 time) in intel_pstate_sample()
1605 static inline int32_t get_avg_frequency(struct cpudata *cpu) in get_avg_frequency()
1610 static inline int32_t get_avg_pstate(struct cpudata *cpu) in get_avg_pstate()
1616 static inline int32_t get_target_pstate(struct cpudata *cpu) in get_target_pstate()
1654 static int intel_pstate_prepare_request(struct cpudata *cpu, int pstate) in intel_pstate_prepare_request()
1664 static void intel_pstate_update_pstate(struct cpudata *cpu, int pstate) in intel_pstate_update_pstate()
1673 static void intel_pstate_adjust_pstate(struct cpudata *cpu) in intel_pstate_adjust_pstate()
1701 struct cpudata *cpu = container_of(data, struct cpudata, update_util); in intel_pstate_update_util()
1824 struct cpudata *cpu; in intel_pstate_init_cpu()
1867 struct cpudata *cpu = all_cpu_data[cpu_num]; in intel_pstate_set_update_util_hook()
1886 struct cpudata *cpu_data = all_cpu_data[cpu]; in intel_pstate_clear_update_util_hook()
1896 static int intel_pstate_get_max_freq(struct cpudata *cpu) in intel_pstate_get_max_freq()
1903 struct cpudata *cpu) in intel_pstate_update_perf_limits()
1966 struct cpudata *cpu; in intel_pstate_set_policy()
2009 struct cpudata *cpu) in intel_pstate_adjust_policy_max()
2022 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_pstate_verify_policy()
2064 struct cpudata *cpu; in __intel_pstate_cpu_init()
2131 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_cpufreq_verify_policy()
2160 static void intel_cpufreq_trace(struct cpudata *cpu, unsigned int trace_type, int old_pstate) in intel_cpufreq_trace()
2186 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_cpufreq_target()
2224 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_cpufreq_fast_switch()