Searched refs:best_diff (Results 1 – 2 of 2) sorted by relevance
160 int64_t diff, best_diff; in imx_clk_composite_find_best() local163 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 …]
106 uint64_t diff, best_diff; in cpufreq_dt_find_opp() local112 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()