Lines Matching refs:cpudata
102 struct cpudata { struct
118 static struct cpudata **all_cpu_data; argument
134 void (*set)(struct cpudata*, int pstate);
135 void (*get_vid)(struct cpudata *);
252 static inline void intel_pstate_busy_pid_reset(struct cpudata *cpu) in intel_pstate_busy_pid_reset()
274 struct cpudata *cpu; in update_turbo_state()
379 struct cpudata *cpu; in show_turbo_pct()
395 struct cpudata *cpu; in show_num_pstates()
526 static void intel_pstate_hwp_enable(struct cpudata *cpudata) in intel_pstate_hwp_enable() argument
528 wrmsrl_on_cpu(cpudata->cpu, MSR_PM_ENABLE, 0x1); in intel_pstate_hwp_enable()
555 static void atom_set_pstate(struct cpudata *cpudata, int pstate) in atom_set_pstate() argument
565 vid_fp = cpudata->vid.min + mul_fp( in atom_set_pstate()
566 int_tofp(pstate - cpudata->pstate.min_pstate), in atom_set_pstate()
567 cpudata->vid.ratio); in atom_set_pstate()
569 vid_fp = clamp_t(int32_t, vid_fp, cpudata->vid.min, cpudata->vid.max); in atom_set_pstate()
572 if (pstate > cpudata->pstate.max_pstate) in atom_set_pstate()
573 vid = cpudata->vid.turbo; in atom_set_pstate()
577 wrmsrl_on_cpu(cpudata->cpu, MSR_IA32_PERF_CTL, val); in atom_set_pstate()
611 static void atom_get_vid(struct cpudata *cpudata) in atom_get_vid() argument
616 cpudata->vid.min = int_tofp((value >> 8) & 0x7f); in atom_get_vid()
617 cpudata->vid.max = int_tofp((value >> 16) & 0x7f); in atom_get_vid()
618 cpudata->vid.ratio = div_fp( in atom_get_vid()
619 cpudata->vid.max - cpudata->vid.min, in atom_get_vid()
620 int_tofp(cpudata->pstate.max_pstate - in atom_get_vid()
621 cpudata->pstate.min_pstate)); in atom_get_vid()
624 cpudata->vid.turbo = value & 0x7f; in atom_get_vid()
706 static void core_set_pstate(struct cpudata *cpudata, int pstate) in core_set_pstate() argument
714 wrmsrl_on_cpu(cpudata->cpu, MSR_IA32_PERF_CTL, val); in core_set_pstate()
808 static void intel_pstate_get_min_max(struct cpudata *cpu, int *min, int *max) 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()
851 static void intel_pstate_get_cpu_pstates(struct cpudata *cpu) in intel_pstate_get_cpu_pstates()
864 static inline void intel_pstate_calc_busy(struct cpudata *cpu) in intel_pstate_calc_busy()
881 static inline void intel_pstate_sample(struct cpudata *cpu) in intel_pstate_sample()
914 static inline void intel_hwp_set_sample_time(struct cpudata *cpu) in intel_hwp_set_sample_time()
922 static inline void intel_pstate_set_sample_time(struct cpudata *cpu) in intel_pstate_set_sample_time()
930 static inline int32_t intel_pstate_get_scaled_busy(struct cpudata *cpu) in intel_pstate_get_scaled_busy()
971 static inline void intel_pstate_adjust_busy_pstate(struct cpudata *cpu) in intel_pstate_adjust_busy_pstate()
1002 struct cpudata *cpu = (struct cpudata *) __data; in intel_hwp_timer_func()
1010 struct cpudata *cpu = (struct cpudata *) __data; in intel_pstate_timer_func()
1052 struct cpudata *cpu; in intel_pstate_init_cpu()
1055 all_cpu_data[cpunum] = kzalloc(sizeof(struct cpudata), in intel_pstate_init_cpu()
1091 struct cpudata *cpu; in intel_pstate_get()
1161 struct cpudata *cpu = all_cpu_data[cpu_num]; in intel_pstate_stop_cpu()
1174 struct cpudata *cpu; in intel_pstate_cpu_init()