Home
last modified time | relevance | path

Searched refs:int_to_frac (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/thermal/
H A Dgov_power_allocator.c23 #define int_to_frac(x) ((x) << FRAC_BITS) macro
152 tz->tzp->k_po = int_to_frac(sustainable_power) / in estimate_pid_constants()
156 tz->tzp->k_pu = int_to_frac(2 * sustainable_power) / in estimate_pid_constants()
160 tz->tzp->k_i = int_to_frac(10) / 1000; in estimate_pid_constants()
194 max_power_frac = int_to_frac(max_allocatable_power); in pid_controller()
206 err = int_to_frac(err); in pid_controller()
219 if (err < int_to_frac(tz->tzp->integral_cutoff)) { in pid_controller()
/OK3568_Linux_fs/kernel/drivers/soc/rockchip/
H A Drockchip_opp_select.c80 #define int_to_frac(x) ((x) << FRAC_BITS) macro
519 temp = mul_frac((int_to_frac(temp) / 63 * 20 + int_to_frac(20)), in rockchip_adjust_leakage()
520 int_to_frac(10)); in rockchip_adjust_leakage()