Home
last modified time | relevance | path

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

/drivers/clk/at91/
Dclk-pll.c175 unsigned long tmprate; in clk_pll_get_best_div_mul() local
183 tmprate = (parent_rate / tmpdiv) * tmpmul; in clk_pll_get_best_div_mul()
184 if (tmprate > rate) in clk_pll_get_best_div_mul()
185 remainder = tmprate - rate; in clk_pll_get_best_div_mul()
187 remainder = rate - tmprate; in clk_pll_get_best_div_mul()
198 bestrate = tmprate; in clk_pll_get_best_div_mul()
Dclk-usb.c302 unsigned long tmprate; in at91rm9200_clk_usb_round_rate() local
314 tmprate = DIV_ROUND_CLOSEST(tmp_parent_rate, usb->divisors[i]); in at91rm9200_clk_usb_round_rate()
315 if (tmprate < rate) in at91rm9200_clk_usb_round_rate()
316 tmpdiff = rate - tmprate; in at91rm9200_clk_usb_round_rate()
318 tmpdiff = tmprate - rate; in at91rm9200_clk_usb_round_rate()
321 bestrate = tmprate; in at91rm9200_clk_usb_round_rate()
Dclk-sam9x60-pll.c181 unsigned long tmprate, remainder; in sam9x60_frac_pll_compute_mul_frac() local
193 tmprate = mult_frac(parent_rate, nmul, 1); in sam9x60_frac_pll_compute_mul_frac()
194 remainder = rate - tmprate; in sam9x60_frac_pll_compute_mul_frac()
200 tmprate += DIV_ROUND_CLOSEST_ULL((u64)nfrac * parent_rate, in sam9x60_frac_pll_compute_mul_frac()
205 if (tmprate < FCORE_MIN || tmprate > FCORE_MAX) in sam9x60_frac_pll_compute_mul_frac()
213 return tmprate; in sam9x60_frac_pll_compute_mul_frac()