Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/clk/at91/
Dclk-smd.c43 unsigned long bestrate; in at91sam9x5_clk_smd_round_rate() local
53 bestrate = *parent_rate / div; in at91sam9x5_clk_smd_round_rate()
55 if (bestrate - rate > rate - tmp) in at91sam9x5_clk_smd_round_rate()
56 bestrate = tmp; in at91sam9x5_clk_smd_round_rate()
58 return bestrate; in at91sam9x5_clk_smd_round_rate()
Dclk-pll.c132 long bestrate = -ERANGE; in clk_pll_get_best_div_mul() local
198 bestrate = tmprate; in clk_pll_get_best_div_mul()
210 if (bestrate < 0) in clk_pll_get_best_div_mul()
211 return bestrate; in clk_pll_get_best_div_mul()
215 if (bestrate >= characteristics->output[i].min && in clk_pll_get_best_div_mul()
216 bestrate <= characteristics->output[i].max) in clk_pll_get_best_div_mul()
230 return bestrate; in clk_pll_get_best_div_mul()
Dclk-usb.c300 unsigned long bestrate = 0; in at91rm9200_clk_usb_round_rate() local
321 bestrate = tmprate; in at91rm9200_clk_usb_round_rate()
330 return bestrate; in at91rm9200_clk_usb_round_rate()