• Home
  • Raw
  • Download

Lines Matching refs:int_tofp

41 #define int_tofp(X) ((int64_t)(X) << FRAC_BITS)  macro
156 .max_perf = int_tofp(1),
167 pid->integral = int_tofp(integral); in pid_reset()
168 pid->last_err = int_tofp(setpoint) - int_tofp(busy); in pid_reset()
173 pid->p_gain = div_fp(int_tofp(percent), int_tofp(100)); in pid_p_gain_set()
178 pid->i_gain = div_fp(int_tofp(percent), int_tofp(100)); in pid_i_gain_set()
183 pid->d_gain = div_fp(int_tofp(percent), int_tofp(100)); in pid_d_gain_set()
192 fp_error = int_tofp(pid->setpoint) - busy; in pid_calc()
194 if (abs(fp_error) <= int_tofp(pid->deadband)) in pid_calc()
202 integral_limit = int_tofp(30); in pid_calc()
349 limits.max_perf = div_fp(int_tofp(limits.max_perf_pct), int_tofp(100)); in store_max_perf_pct()
364 limits.min_perf = div_fp(int_tofp(limits.min_perf_pct), int_tofp(100)); in store_min_perf_pct()
435 int_tofp(pstate - cpudata->pstate.min_pstate), in byt_set_pstate()
470 cpudata->vid.min = int_tofp((value >> 8) & 0x7f); in byt_get_vid()
471 cpudata->vid.max = int_tofp((value >> 16) & 0x7f); in byt_get_vid()
474 int_tofp(cpudata->pstate.max_pstate - in byt_get_vid()
572 max_perf_adj = fp_toint(mul_fp(int_tofp(max_perf), limits.max_perf)); in intel_pstate_get_min_max()
576 min_perf = fp_toint(mul_fp(int_tofp(max_perf), limits.min_perf)); in intel_pstate_get_min_max()
617 core_pct = int_tofp(sample->aperf) * int_tofp(100); in intel_pstate_calc_busy()
618 core_pct = div64_u64(core_pct, int_tofp(sample->mperf)); in intel_pstate_calc_busy()
621 mul_fp(int_tofp( in intel_pstate_calc_busy()
666 max_pstate = int_tofp(cpu->pstate.max_pstate); in intel_pstate_get_scaled_busy()
667 current_pstate = int_tofp(cpu->pstate.current_pstate); in intel_pstate_get_scaled_busy()
674 sample_ratio = div_fp(int_tofp(sample_time), in intel_pstate_get_scaled_busy()
675 int_tofp(duration_us)); in intel_pstate_get_scaled_busy()
788 limits.min_perf = int_tofp(1); in intel_pstate_set_policy()
791 limits.max_perf = int_tofp(1); in intel_pstate_set_policy()
797 limits.min_perf = div_fp(int_tofp(limits.min_perf_pct), int_tofp(100)); in intel_pstate_set_policy()
802 limits.max_perf = div_fp(int_tofp(limits.max_perf_pct), int_tofp(100)); in intel_pstate_set_policy()