Searched refs:cur_diff (Results 1 – 3 of 3) sorted by relevance
104 int cur_diff; in crvml_nearest_index() local107 cur_diff = clock - crvml_clocks[0]; in crvml_nearest_index()108 cur_diff = (cur_diff < 0) ? -cur_diff : cur_diff; in crvml_nearest_index()112 if (diff < cur_diff) { in crvml_nearest_index()114 cur_diff = diff; in crvml_nearest_index()
580 int cur_diff; in vml_nearest_clock() local584 cur_diff = clock - vml_clocks[0]; in vml_nearest_clock()585 cur_diff = (cur_diff < 0) ? -cur_diff : cur_diff; in vml_nearest_clock()589 if (diff < cur_diff) { in vml_nearest_clock()591 cur_diff = diff; in vml_nearest_clock()
260 unsigned long cur_diff; in clk_sam9x5_peripheral_round_rate() local282 cur_diff = rate - cur_rate; in clk_sam9x5_peripheral_round_rate()284 cur_diff = cur_rate - rate; in clk_sam9x5_peripheral_round_rate()286 if (cur_diff < best_diff) { in clk_sam9x5_peripheral_round_rate()287 best_diff = cur_diff; in clk_sam9x5_peripheral_round_rate()