Searched refs:cur_diff (Results 1 – 4 of 4) sorted by relevance
90 int cur_diff; in crvml_nearest_index() local93 cur_diff = clock - crvml_clocks[0]; in crvml_nearest_index()94 cur_diff = (cur_diff < 0) ? -cur_diff : cur_diff; in crvml_nearest_index()98 if (diff < cur_diff) { in crvml_nearest_index()100 cur_diff = diff; in crvml_nearest_index()
566 int cur_diff; in vml_nearest_clock() local570 cur_diff = clock - vml_clocks[0]; in vml_nearest_clock()571 cur_diff = (cur_diff < 0) ? -cur_diff : cur_diff; in vml_nearest_clock()575 if (diff < cur_diff) { in vml_nearest_clock()577 cur_diff = diff; in vml_nearest_clock()
249 unsigned long cur_diff; in clk_sam9x5_peripheral_round_rate() local271 cur_diff = rate - cur_rate; in clk_sam9x5_peripheral_round_rate()273 cur_diff = cur_rate - rate; in clk_sam9x5_peripheral_round_rate()275 if (cur_diff < best_diff) { in clk_sam9x5_peripheral_round_rate()276 best_diff = cur_diff; in clk_sam9x5_peripheral_round_rate()
1305 int cur_diff = abs(freq - (clock >> i)); in sunxi_pinctrl_get_debounce_div() local1307 if (cur_diff < best_diff) { in sunxi_pinctrl_get_debounce_div()1308 best_diff = cur_diff; in sunxi_pinctrl_get_debounce_div()