Lines Matching refs:cpudata
232 struct cpudata { struct
269 static struct cpudata **all_cpu_data; argument
292 u64 (*get_val)(struct cpudata*, int pstate);
293 void (*get_vid)(struct cpudata *);
402 struct cpudata *cpu; in intel_pstate_init_acpi_perf_limits()
472 struct cpudata *cpu; in intel_pstate_exit_perf_limits()
505 struct cpudata *cpu; in update_turbo_state()
516 struct cpudata *cpu = all_cpu_data[0]; in min_perf_pct_min()
523 static s16 intel_pstate_get_epb(struct cpudata *cpu_data) in intel_pstate_get_epb()
538 static s16 intel_pstate_get_epp(struct cpudata *cpu_data, u64 hwp_req_data) in intel_pstate_get_epp()
606 static int intel_pstate_get_energy_pref_index(struct cpudata *cpu_data, int *raw_epp) in intel_pstate_get_energy_pref_index()
644 static int intel_pstate_set_epp(struct cpudata *cpu, u32 epp) in intel_pstate_set_epp()
670 static int intel_pstate_set_energy_pref_index(struct cpudata *cpu_data, in intel_pstate_set_energy_pref_index()
725 struct cpudata *cpu = all_cpu_data[policy->cpu]; in store_energy_performance_preference()
791 struct cpudata *cpu_data = all_cpu_data[policy->cpu]; in show_energy_performance_preference()
808 struct cpudata *cpu; in show_base_frequency()
832 static void intel_pstate_get_hwp_max(struct cpudata *cpu, int *phy_max, in intel_pstate_get_hwp_max()
849 struct cpudata *cpu_data = all_cpu_data[cpu]; in intel_pstate_hwp_set()
910 static void intel_pstate_hwp_offline(struct cpudata *cpu) in intel_pstate_hwp_offline()
962 static void intel_pstate_hwp_enable(struct cpudata *cpudata);
964 static void intel_pstate_hwp_reenable(struct cpudata *cpu) in intel_pstate_hwp_reenable()
972 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_pstate_suspend()
983 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_pstate_resume()
1018 struct cpudata *cpudata; in intel_pstate_update_max_freq() local
1023 cpudata = all_cpu_data[cpu]; in intel_pstate_update_max_freq()
1025 cpudata->pstate.max_freq : cpudata->pstate.turbo_freq; in intel_pstate_update_max_freq()
1092 struct cpudata *cpu; in show_turbo_pct()
1118 struct cpudata *cpu; in show_num_pstates()
1189 struct cpudata *cpu = all_cpu_data[0]; in store_no_turbo()
1213 struct cpudata *cpu = all_cpu_data[i]; in update_qos_request()
1462 static void intel_pstate_hwp_enable(struct cpudata *cpudata) in intel_pstate_hwp_enable() argument
1466 wrmsrl_on_cpu(cpudata->cpu, MSR_HWP_INTERRUPT, 0x00); in intel_pstate_hwp_enable()
1468 wrmsrl_on_cpu(cpudata->cpu, MSR_PM_ENABLE, 0x1); in intel_pstate_hwp_enable()
1469 if (cpudata->epp_default == -EINVAL) in intel_pstate_hwp_enable()
1470 cpudata->epp_default = intel_pstate_get_epp(cpudata, 0); in intel_pstate_hwp_enable()
1497 static u64 atom_get_val(struct cpudata *cpudata, int pstate) in atom_get_val() argument
1507 vid_fp = cpudata->vid.min + mul_fp( in atom_get_val()
1508 int_tofp(pstate - cpudata->pstate.min_pstate), in atom_get_val()
1509 cpudata->vid.ratio); in atom_get_val()
1511 vid_fp = clamp_t(int32_t, vid_fp, cpudata->vid.min, cpudata->vid.max); in atom_get_val()
1514 if (pstate > cpudata->pstate.max_pstate) in atom_get_val()
1515 vid = cpudata->vid.turbo; in atom_get_val()
1551 static void atom_get_vid(struct cpudata *cpudata) in atom_get_vid() argument
1556 cpudata->vid.min = int_tofp((value >> 8) & 0x7f); in atom_get_vid()
1557 cpudata->vid.max = int_tofp((value >> 16) & 0x7f); in atom_get_vid()
1558 cpudata->vid.ratio = div_fp( in atom_get_vid()
1559 cpudata->vid.max - cpudata->vid.min, in atom_get_vid()
1560 int_tofp(cpudata->pstate.max_pstate - in atom_get_vid()
1561 cpudata->pstate.min_pstate)); in atom_get_vid()
1564 cpudata->vid.turbo = value & 0x7f; in atom_get_vid()
1669 static u64 core_get_val(struct cpudata *cpudata, int pstate) in core_get_val() argument
1698 static void intel_pstate_set_pstate(struct cpudata *cpu, int pstate) in intel_pstate_set_pstate()
1711 static void intel_pstate_set_min_pstate(struct cpudata *cpu) in intel_pstate_set_min_pstate()
1716 static void intel_pstate_max_within_limits(struct cpudata *cpu) in intel_pstate_max_within_limits()
1724 static void intel_pstate_get_cpu_pstates(struct cpudata *cpu) in intel_pstate_get_cpu_pstates()
1761 static inline void intel_pstate_hwp_boost_up(struct cpudata *cpu) in intel_pstate_hwp_boost_up()
1807 static inline void intel_pstate_hwp_boost_down(struct cpudata *cpu) in intel_pstate_hwp_boost_down()
1823 static inline void intel_pstate_update_util_hwp_local(struct cpudata *cpu, in intel_pstate_update_util_hwp_local()
1855 struct cpudata *cpu = container_of(data, struct cpudata, update_util); in intel_pstate_update_util_hwp()
1863 static inline void intel_pstate_calc_avg_perf(struct cpudata *cpu) in intel_pstate_calc_avg_perf()
1870 static inline bool intel_pstate_sample(struct cpudata *cpu, u64 time) in intel_pstate_sample()
1912 static inline int32_t get_avg_frequency(struct cpudata *cpu) in get_avg_frequency()
1917 static inline int32_t get_avg_pstate(struct cpudata *cpu) in get_avg_pstate()
1923 static inline int32_t get_target_pstate(struct cpudata *cpu) in get_target_pstate()
1958 static int intel_pstate_prepare_request(struct cpudata *cpu, int pstate) in intel_pstate_prepare_request()
1966 static void intel_pstate_update_pstate(struct cpudata *cpu, int pstate) in intel_pstate_update_pstate()
1975 static void intel_pstate_adjust_pstate(struct cpudata *cpu) in intel_pstate_adjust_pstate()
2003 struct cpudata *cpu = container_of(data, struct cpudata, update_util); in intel_pstate_update_util()
2127 struct cpudata *cpu; in intel_pstate_init_cpu()
2172 struct cpudata *cpu = all_cpu_data[cpu_num]; in intel_pstate_set_update_util_hook()
2191 struct cpudata *cpu_data = all_cpu_data[cpu]; in intel_pstate_clear_update_util_hook()
2201 static int intel_pstate_get_max_freq(struct cpudata *cpu) in intel_pstate_get_max_freq()
2207 static void intel_pstate_update_perf_limits(struct cpudata *cpu, in intel_pstate_update_perf_limits()
2273 struct cpudata *cpu; in intel_pstate_set_policy()
2315 static void intel_pstate_adjust_policy_max(struct cpudata *cpu, in intel_pstate_adjust_policy_max()
2327 static void intel_pstate_verify_cpu_policy(struct cpudata *cpu, in intel_pstate_verify_cpu_policy()
2355 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_pstate_cpu_offline()
2380 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_pstate_cpu_online()
2416 struct cpudata *cpu; in __intel_pstate_cpu_init()
2469 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_pstate_cpu_init()
2494 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_cpufreq_verify_policy()
2518 static void intel_cpufreq_trace(struct cpudata *cpu, unsigned int trace_type, int old_pstate) in intel_cpufreq_trace()
2540 static void intel_cpufreq_adjust_hwp(struct cpudata *cpu, u32 target_pstate, in intel_cpufreq_adjust_hwp()
2565 static void intel_cpufreq_adjust_perf_ctl(struct cpudata *cpu, in intel_cpufreq_adjust_perf_ctl()
2579 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_cpufreq_update_pstate()
2602 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_cpufreq_target()
2637 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_cpufreq_fast_switch()
2653 struct cpudata *cpu; in intel_cpufreq_cpu_init()