Home
last modified time | relevance | path

Searched refs:cur_diff (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/clk/at91/
Dclk-peripheral.c343 unsigned long cur_diff; in clk_sam9x5_peripheral_round_rate() local
365 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()
/linux-6.12.1/drivers/pinctrl/sunxi/
Dpinctrl-sunxi.c1401 int cur_diff = abs(freq - (clock >> i)); in sunxi_pinctrl_get_debounce_div() local
1403 if (cur_diff < best_diff) { in sunxi_pinctrl_get_debounce_div()
1404 best_diff = cur_diff; in sunxi_pinctrl_get_debounce_div()