Lines Matching refs:best
196 uint64_t best, cur; in rk_clk_composite_find_best() local
200 best = 0; in rk_clk_composite_find_best()
211 if ((freq - cur) < (freq - best)) { in rk_clk_composite_find_best()
212 best = cur; in rk_clk_composite_find_best()
229 uint64_t best, cur; in rk_clk_composite_set_freq() local
236 for (best_div = 0, best = 0, p_idx = 0; in rk_clk_composite_set_freq()
244 if ((*fout - cur) < (*fout - best)) { in rk_clk_composite_set_freq()
245 best = cur; in rk_clk_composite_set_freq()
250 "%ju\n", clknode_get_name(p_clk), p_idx, best); in rk_clk_composite_set_freq()
258 if ((best < *fout) && ((flags & CLK_SET_ROUND_DOWN) == 0)) in rk_clk_composite_set_freq()
261 if ((best > *fout) && ((flags & CLK_SET_ROUND_UP) == 0)) { in rk_clk_composite_set_freq()
266 *fout = best; in rk_clk_composite_set_freq()
288 *fout = best; in rk_clk_composite_set_freq()