Lines Matching refs:cpudata

233 struct cpudata {  struct
269 static struct cpudata **all_cpu_data; argument
291 u64 (*get_val)(struct cpudata*, int pstate);
292 void (*get_vid)(struct cpudata *);
401 struct cpudata *cpu; in intel_pstate_init_acpi_perf_limits()
471 struct cpudata *cpu; in intel_pstate_exit_perf_limits()
504 struct cpudata *cpu; in update_turbo_state()
515 struct cpudata *cpu = all_cpu_data[0]; in min_perf_pct_min()
522 static s16 intel_pstate_get_epb(struct cpudata *cpu_data) in intel_pstate_get_epb()
537 static s16 intel_pstate_get_epp(struct cpudata *cpu_data, u64 hwp_req_data) in intel_pstate_get_epp()
605 static int intel_pstate_get_energy_pref_index(struct cpudata *cpu_data) in intel_pstate_get_energy_pref_index()
640 static int intel_pstate_set_energy_pref_index(struct cpudata *cpu_data, in intel_pstate_set_energy_pref_index()
695 struct cpudata *cpu_data = all_cpu_data[policy->cpu]; in store_energy_performance_preference()
714 struct cpudata *cpu_data = all_cpu_data[policy->cpu]; in show_energy_performance_preference()
728 struct cpudata *cpu; in show_base_frequency()
769 struct cpudata *cpu_data = all_cpu_data[cpu]; in intel_pstate_hwp_set()
859 struct cpudata *cpu_data = all_cpu_data[policy->cpu]; in intel_pstate_hwp_save_state()
869 static void intel_pstate_hwp_enable(struct cpudata *cpudata);
900 struct cpudata *cpudata; in intel_pstate_update_max_freq() local
905 cpudata = all_cpu_data[cpu]; in intel_pstate_update_max_freq()
907 cpudata->pstate.max_freq : cpudata->pstate.turbo_freq; in intel_pstate_update_max_freq()
973 struct cpudata *cpu; in show_turbo_pct()
999 struct cpudata *cpu; in show_num_pstates()
1070 struct cpudata *cpu = all_cpu_data[0]; in store_no_turbo()
1096 struct cpudata *cpu = all_cpu_data[i]; in update_qos_request()
1278 static void intel_pstate_hwp_enable(struct cpudata *cpudata) in intel_pstate_hwp_enable() argument
1282 wrmsrl_on_cpu(cpudata->cpu, MSR_HWP_INTERRUPT, 0x00); in intel_pstate_hwp_enable()
1284 wrmsrl_on_cpu(cpudata->cpu, MSR_PM_ENABLE, 0x1); in intel_pstate_hwp_enable()
1285 cpudata->epp_policy = 0; in intel_pstate_hwp_enable()
1286 if (cpudata->epp_default == -EINVAL) in intel_pstate_hwp_enable()
1287 cpudata->epp_default = intel_pstate_get_epp(cpudata, 0); in intel_pstate_hwp_enable()
1333 static u64 atom_get_val(struct cpudata *cpudata, int pstate) in atom_get_val() argument
1343 vid_fp = cpudata->vid.min + mul_fp( in atom_get_val()
1344 int_tofp(pstate - cpudata->pstate.min_pstate), in atom_get_val()
1345 cpudata->vid.ratio); in atom_get_val()
1347 vid_fp = clamp_t(int32_t, vid_fp, cpudata->vid.min, cpudata->vid.max); in atom_get_val()
1350 if (pstate > cpudata->pstate.max_pstate) in atom_get_val()
1351 vid = cpudata->vid.turbo; in atom_get_val()
1387 static void atom_get_vid(struct cpudata *cpudata) in atom_get_vid() argument
1392 cpudata->vid.min = int_tofp((value >> 8) & 0x7f); in atom_get_vid()
1393 cpudata->vid.max = int_tofp((value >> 16) & 0x7f); in atom_get_vid()
1394 cpudata->vid.ratio = div_fp( in atom_get_vid()
1395 cpudata->vid.max - cpudata->vid.min, in atom_get_vid()
1396 int_tofp(cpudata->pstate.max_pstate - in atom_get_vid()
1397 cpudata->pstate.min_pstate)); in atom_get_vid()
1400 cpudata->vid.turbo = value & 0x7f; in atom_get_vid()
1505 static u64 core_get_val(struct cpudata *cpudata, int pstate) in core_get_val() argument
1534 static void intel_pstate_set_pstate(struct cpudata *cpu, int pstate) in intel_pstate_set_pstate()
1547 static void intel_pstate_set_min_pstate(struct cpudata *cpu) in intel_pstate_set_min_pstate()
1552 static void intel_pstate_max_within_limits(struct cpudata *cpu) in intel_pstate_max_within_limits()
1560 static void intel_pstate_get_cpu_pstates(struct cpudata *cpu) in intel_pstate_get_cpu_pstates()
1595 static inline void intel_pstate_hwp_boost_up(struct cpudata *cpu) in intel_pstate_hwp_boost_up()
1641 static inline void intel_pstate_hwp_boost_down(struct cpudata *cpu) in intel_pstate_hwp_boost_down()
1657 static inline void intel_pstate_update_util_hwp_local(struct cpudata *cpu, in intel_pstate_update_util_hwp_local()
1689 struct cpudata *cpu = container_of(data, struct cpudata, update_util); in intel_pstate_update_util_hwp()
1697 static inline void intel_pstate_calc_avg_perf(struct cpudata *cpu) in intel_pstate_calc_avg_perf()
1704 static inline bool intel_pstate_sample(struct cpudata *cpu, u64 time) in intel_pstate_sample()
1746 static inline int32_t get_avg_frequency(struct cpudata *cpu) in get_avg_frequency()
1751 static inline int32_t get_avg_pstate(struct cpudata *cpu) in get_avg_pstate()
1757 static inline int32_t get_target_pstate(struct cpudata *cpu) in get_target_pstate()
1792 static int intel_pstate_prepare_request(struct cpudata *cpu, int pstate) in intel_pstate_prepare_request()
1800 static void intel_pstate_update_pstate(struct cpudata *cpu, int pstate) in intel_pstate_update_pstate()
1809 static void intel_pstate_adjust_pstate(struct cpudata *cpu) in intel_pstate_adjust_pstate()
1837 struct cpudata *cpu = container_of(data, struct cpudata, update_util); in intel_pstate_update_util()
1961 struct cpudata *cpu; in intel_pstate_init_cpu()
2004 struct cpudata *cpu = all_cpu_data[cpu_num]; in intel_pstate_set_update_util_hook()
2023 struct cpudata *cpu_data = all_cpu_data[cpu]; in intel_pstate_clear_update_util_hook()
2033 static int intel_pstate_get_max_freq(struct cpudata *cpu) in intel_pstate_get_max_freq()
2040 struct cpudata *cpu) in intel_pstate_update_perf_limits()
2104 struct cpudata *cpu; in intel_pstate_set_policy()
2147 struct cpudata *cpu) in intel_pstate_adjust_policy_max()
2160 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_pstate_verify_policy()
2204 struct cpudata *cpu; in __intel_pstate_cpu_init()
2273 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_cpufreq_verify_policy()
2302 static void intel_cpufreq_trace(struct cpudata *cpu, unsigned int trace_type, int old_pstate) in intel_cpufreq_trace()
2328 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_cpufreq_target()
2366 struct cpudata *cpu = all_cpu_data[policy->cpu]; in intel_cpufreq_fast_switch()
2383 struct cpudata *cpu; in intel_cpufreq_cpu_init()