Lines Matching refs:int_tofp

43 #define int_tofp(X) ((int64_t)(X) << FRAC_BITS)  macro
164 .max_perf = int_tofp(1),
166 .min_perf = int_tofp(1),
177 .max_perf = int_tofp(1),
196 pid->integral = int_tofp(integral); in pid_reset()
197 pid->last_err = int_tofp(setpoint) - int_tofp(busy); in pid_reset()
202 pid->p_gain = div_fp(int_tofp(percent), int_tofp(100)); in pid_p_gain_set()
207 pid->i_gain = div_fp(int_tofp(percent), int_tofp(100)); in pid_i_gain_set()
212 pid->d_gain = div_fp(int_tofp(percent), int_tofp(100)); in pid_d_gain_set()
221 fp_error = int_tofp(pid->setpoint) - busy; in pid_calc()
223 if (abs(fp_error) <= int_tofp(pid->deadband)) in pid_calc()
238 integral_limit = int_tofp(30); in pid_calc()
387 turbo_fp = div_fp(int_tofp(no_turbo), int_tofp(total)); in show_turbo_pct()
388 turbo_pct = 100 - fp_toint(mul_fp(turbo_fp, int_tofp(100))); in show_turbo_pct()
458 limits->max_perf = div_fp(int_tofp(limits->max_perf_pct), in store_max_perf_pct()
459 int_tofp(100)); in store_max_perf_pct()
483 limits->min_perf = div_fp(int_tofp(limits->min_perf_pct), in store_min_perf_pct()
484 int_tofp(100)); in store_min_perf_pct()
566 int_tofp(pstate - cpudata->pstate.min_pstate), in atom_set_pstate()
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()
620 int_tofp(cpudata->pstate.max_pstate - in atom_get_vid()
822 max_perf_adj = fp_toint(mul_fp(int_tofp(max_perf), limits->max_perf)); in intel_pstate_get_min_max()
826 min_perf = fp_toint(mul_fp(int_tofp(max_perf), limits->min_perf)); in intel_pstate_get_min_max()
869 core_pct = int_tofp(sample->aperf) * int_tofp(100); in intel_pstate_calc_busy()
870 core_pct = div64_u64(core_pct, int_tofp(sample->mperf)); in intel_pstate_calc_busy()
873 mul_fp(int_tofp( in intel_pstate_calc_busy()
948 max_pstate = int_tofp(cpu->pstate.max_pstate_physical); in intel_pstate_get_scaled_busy()
949 current_pstate = int_tofp(cpu->pstate.current_pstate); in intel_pstate_get_scaled_busy()
963 sample_ratio = div_fp(int_tofp(sample_time), in intel_pstate_get_scaled_busy()
964 int_tofp(duration_us)); in intel_pstate_get_scaled_busy()
1136 limits->min_perf = div_fp(int_tofp(limits->min_perf_pct), in intel_pstate_set_policy()
1137 int_tofp(100)); in intel_pstate_set_policy()
1138 limits->max_perf = div_fp(int_tofp(limits->max_perf_pct), in intel_pstate_set_policy()
1139 int_tofp(100)); in intel_pstate_set_policy()