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()
573 int cur_diff; in vml_nearest_clock() local577 cur_diff = clock - vml_clocks[0]; in vml_nearest_clock()578 cur_diff = (cur_diff < 0) ? -cur_diff : cur_diff; in vml_nearest_clock()582 if (diff < cur_diff) { in vml_nearest_clock()584 cur_diff = diff; in vml_nearest_clock()
339 unsigned long cur_diff; in clk_sam9x5_peripheral_round_rate() local361 cur_diff = rate - cur_rate; in clk_sam9x5_peripheral_round_rate()363 cur_diff = cur_rate - rate; in clk_sam9x5_peripheral_round_rate()365 if (cur_diff < best_diff) { in clk_sam9x5_peripheral_round_rate()366 best_diff = cur_diff; in clk_sam9x5_peripheral_round_rate()
1399 int cur_diff = abs(freq - (clock >> i)); in sunxi_pinctrl_get_debounce_div() local1401 if (cur_diff < best_diff) { in sunxi_pinctrl_get_debounce_div()1402 best_diff = cur_diff; in sunxi_pinctrl_get_debounce_div()