Home
last modified time | relevance | path

Searched refs:bestrate (Results 1 – 3 of 3) sorted by relevance

/drivers/clk/at91/
Dclk-smd.c50 unsigned long bestrate; in at91sam9x5_clk_smd_round_rate() local
60 bestrate = *parent_rate / div; in at91sam9x5_clk_smd_round_rate()
62 if (bestrate - rate > rate - tmp) in at91sam9x5_clk_smd_round_rate()
63 bestrate = tmp; in at91sam9x5_clk_smd_round_rate()
65 return bestrate; in at91sam9x5_clk_smd_round_rate()
Dclk-pll.c170 long bestrate = -ERANGE; in clk_pll_get_best_div_mul() local
236 bestrate = tmprate; in clk_pll_get_best_div_mul()
248 if (bestrate < 0) in clk_pll_get_best_div_mul()
249 return bestrate; in clk_pll_get_best_div_mul()
253 if (bestrate >= characteristics->output[i].min && in clk_pll_get_best_div_mul()
254 bestrate <= characteristics->output[i].max) in clk_pll_get_best_div_mul()
268 return bestrate; in clk_pll_get_best_div_mul()
Dclk-usb.c275 unsigned long bestrate = 0; in at91rm9200_clk_usb_round_rate() local
296 bestrate = tmprate; in at91rm9200_clk_usb_round_rate()
305 return bestrate; in at91rm9200_clk_usb_round_rate()