Home
last modified time | relevance | path

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

/freebsd/sys/arm64/freescale/imx/clk/
H A Dimx_clk_composite.c160 int64_t diff, best_diff; in imx_clk_composite_find_best() local
163 best_diff = INT64_MAX; in imx_clk_composite_find_best()
169 if (diff >= 0 && diff < best_diff) { in imx_clk_composite_find_best()
170 best_diff = diff; in imx_clk_composite_find_best()
176 if (diff <= 0 && abs(diff) < best_diff) { in imx_clk_composite_find_best()
177 best_diff = diff; in imx_clk_composite_find_best()
183 if (abs(diff) < best_diff) { in imx_clk_composite_find_best()
184 best_diff = abs(diff); in imx_clk_composite_find_best()
192 if (best_diff == INT64_MAX) in imx_clk_composite_find_best()
209 int64_t best_diff, diff; in imx_clk_composite_set_freq() local
[all …]
/freebsd/sys/dev/cpufreq/
H A Dcpufreq_dt.c106 uint64_t diff, best_diff; in cpufreq_dt_find_opp() local
112 best_diff = ~0; in cpufreq_dt_find_opp()
117 if (diff < best_diff) { in cpufreq_dt_find_opp()
118 best_diff = diff; in cpufreq_dt_find_opp()