Searched refs:cur_diff (Results 1 – 2 of 2) sorted by relevance
343 unsigned long cur_diff; in clk_sam9x5_peripheral_round_rate() local365 cur_diff = rate - cur_rate; in clk_sam9x5_peripheral_round_rate()367 cur_diff = cur_rate - rate; in clk_sam9x5_peripheral_round_rate()369 if (cur_diff < best_diff) { in clk_sam9x5_peripheral_round_rate()370 best_diff = cur_diff; in clk_sam9x5_peripheral_round_rate()
1401 int cur_diff = abs(freq - (clock >> i)); in sunxi_pinctrl_get_debounce_div() local1403 if (cur_diff < best_diff) { in sunxi_pinctrl_get_debounce_div()1404 best_diff = cur_diff; in sunxi_pinctrl_get_debounce_div()