Lines Matching refs:cpudata
100 struct cpudata { struct
115 static struct cpudata **all_cpu_data; argument
130 void (*set)(struct cpudata*, int pstate);
131 void (*get_vid)(struct cpudata *);
229 static inline void intel_pstate_busy_pid_reset(struct cpudata *cpu) in intel_pstate_busy_pid_reset()
251 struct cpudata *cpu; in update_turbo_state()
349 struct cpudata *cpu; in show_turbo_pct()
365 struct cpudata *cpu; in show_num_pstates()
516 static void byt_set_pstate(struct cpudata *cpudata, int pstate) in byt_set_pstate() argument
526 vid_fp = cpudata->vid.min + mul_fp( in byt_set_pstate()
527 int_tofp(pstate - cpudata->pstate.min_pstate), in byt_set_pstate()
528 cpudata->vid.ratio); in byt_set_pstate()
530 vid_fp = clamp_t(int32_t, vid_fp, cpudata->vid.min, cpudata->vid.max); in byt_set_pstate()
533 if (pstate > cpudata->pstate.max_pstate) in byt_set_pstate()
534 vid = cpudata->vid.turbo; in byt_set_pstate()
538 wrmsrl_on_cpu(cpudata->cpu, MSR_IA32_PERF_CTL, val); in byt_set_pstate()
557 static void byt_get_vid(struct cpudata *cpudata) in byt_get_vid() argument
562 cpudata->vid.min = int_tofp((value >> 8) & 0x7f); in byt_get_vid()
563 cpudata->vid.max = int_tofp((value >> 16) & 0x7f); in byt_get_vid()
564 cpudata->vid.ratio = div_fp( in byt_get_vid()
565 cpudata->vid.max - cpudata->vid.min, in byt_get_vid()
566 int_tofp(cpudata->pstate.max_pstate - in byt_get_vid()
567 cpudata->pstate.min_pstate)); in byt_get_vid()
570 cpudata->vid.turbo = value & 0x7f; in byt_get_vid()
607 static void core_set_pstate(struct cpudata *cpudata, int pstate) in core_set_pstate() argument
615 wrmsrl_on_cpu(cpudata->cpu, MSR_IA32_PERF_CTL, val); in core_set_pstate()
686 static void intel_pstate_get_min_max(struct cpudata *cpu, int *min, int *max) in intel_pstate_get_min_max()
708 static void intel_pstate_set_pstate(struct cpudata *cpu, int pstate) in intel_pstate_set_pstate()
728 static void intel_pstate_get_cpu_pstates(struct cpudata *cpu) in intel_pstate_get_cpu_pstates()
740 static inline void intel_pstate_calc_busy(struct cpudata *cpu) in intel_pstate_calc_busy()
756 static inline void intel_pstate_sample(struct cpudata *cpu) in intel_pstate_sample()
784 static inline void intel_hwp_set_sample_time(struct cpudata *cpu) in intel_hwp_set_sample_time()
792 static inline void intel_pstate_set_sample_time(struct cpudata *cpu) in intel_pstate_set_sample_time()
800 static inline int32_t intel_pstate_get_scaled_busy(struct cpudata *cpu) in intel_pstate_get_scaled_busy()
841 static inline void intel_pstate_adjust_busy_pstate(struct cpudata *cpu) in intel_pstate_adjust_busy_pstate()
858 struct cpudata *cpu = (struct cpudata *) __data; in intel_hwp_timer_func()
866 struct cpudata *cpu = (struct cpudata *) __data; in intel_pstate_timer_func()
917 struct cpudata *cpu; in intel_pstate_init_cpu()
920 all_cpu_data[cpunum] = kzalloc(sizeof(struct cpudata), in intel_pstate_init_cpu()
952 struct cpudata *cpu; in intel_pstate_get()
1008 struct cpudata *cpu = all_cpu_data[cpu_num]; in intel_pstate_stop_cpu()
1021 struct cpudata *cpu; in intel_pstate_cpu_init()