Lines Matching refs:int_tofp
42 #define int_tofp(X) ((int64_t)(X) << FRAC_BITS) macro
160 .max_perf = int_tofp(1),
173 pid->integral = int_tofp(integral); in pid_reset()
174 pid->last_err = int_tofp(setpoint) - int_tofp(busy); in pid_reset()
179 pid->p_gain = div_fp(int_tofp(percent), int_tofp(100)); in pid_p_gain_set()
184 pid->i_gain = div_fp(int_tofp(percent), int_tofp(100)); in pid_i_gain_set()
189 pid->d_gain = div_fp(int_tofp(percent), int_tofp(100)); in pid_d_gain_set()
198 fp_error = int_tofp(pid->setpoint) - busy; in pid_calc()
200 if (abs(fp_error) <= int_tofp(pid->deadband)) in pid_calc()
215 integral_limit = int_tofp(30); in pid_calc()
357 turbo_fp = div_fp(int_tofp(no_turbo), int_tofp(total)); in show_turbo_pct()
358 turbo_pct = 100 - fp_toint(mul_fp(turbo_fp, int_tofp(100))); in show_turbo_pct()
423 limits.max_perf = div_fp(int_tofp(limits.max_perf_pct), int_tofp(100)); in store_max_perf_pct()
442 limits.min_perf = div_fp(int_tofp(limits.min_perf_pct), int_tofp(100)); in store_min_perf_pct()
527 int_tofp(pstate - cpudata->pstate.min_pstate), in byt_set_pstate()
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()
566 int_tofp(cpudata->pstate.max_pstate - in byt_get_vid()
700 max_perf_adj = fp_toint(mul_fp(int_tofp(max_perf), limits.max_perf)); in intel_pstate_get_min_max()
704 min_perf = fp_toint(mul_fp(int_tofp(max_perf), limits.min_perf)); in intel_pstate_get_min_max()
745 core_pct = int_tofp(sample->aperf) * int_tofp(100); in intel_pstate_calc_busy()
746 core_pct = div64_u64(core_pct, int_tofp(sample->mperf)); in intel_pstate_calc_busy()
749 mul_fp(int_tofp( in intel_pstate_calc_busy()
818 max_pstate = int_tofp(cpu->pstate.max_pstate); in intel_pstate_get_scaled_busy()
819 current_pstate = int_tofp(cpu->pstate.current_pstate); in intel_pstate_get_scaled_busy()
833 sample_ratio = div_fp(int_tofp(sample_time), in intel_pstate_get_scaled_busy()
834 int_tofp(duration_us)); in intel_pstate_get_scaled_busy()
970 limits.min_perf = int_tofp(1); in intel_pstate_set_policy()
973 limits.max_perf = int_tofp(1); in intel_pstate_set_policy()
981 limits.min_perf = div_fp(int_tofp(limits.min_perf_pct), int_tofp(100)); in intel_pstate_set_policy()
986 limits.max_perf = div_fp(int_tofp(limits.max_perf_pct), int_tofp(100)); in intel_pstate_set_policy()