Home
last modified time | relevance | path

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

/drivers/video/fbdev/vermilion/
Dcr_pll.c90 int cur_diff; in crvml_nearest_index() local
93 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()
Dvermilion.c573 int cur_diff; in vml_nearest_clock() local
577 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()
/drivers/clk/at91/
Dclk-peripheral.c339 unsigned long cur_diff; in clk_sam9x5_peripheral_round_rate() local
361 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()
/drivers/pinctrl/sunxi/
Dpinctrl-sunxi.c1399 int cur_diff = abs(freq - (clock >> i)); in sunxi_pinctrl_get_debounce_div() local
1401 if (cur_diff < best_diff) { in sunxi_pinctrl_get_debounce_div()
1402 best_diff = cur_diff; in sunxi_pinctrl_get_debounce_div()