Home
last modified time | relevance | path

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

/optee_os/core/drivers/clk/sam/
H A Dat91_pll.c169 unsigned long tmprate = 0; in clk_pll_get_best_div_mul() local
177 tmprate = (parent_rate / tmpdiv) * tmpmul; in clk_pll_get_best_div_mul()
178 if (tmprate > rate) in clk_pll_get_best_div_mul()
179 remainder = tmprate - rate; in clk_pll_get_best_div_mul()
181 remainder = rate - tmprate; in clk_pll_get_best_div_mul()
192 bestrate = tmprate; in clk_pll_get_best_div_mul()
H A Dclk-sam9x60-pll.c189 unsigned long tmprate = 0; in sam9x60_frac_pll_compute_mul_frac() local
203 tmprate = parent_rate * nmul; in sam9x60_frac_pll_compute_mul_frac()
204 remainder = rate - tmprate; in sam9x60_frac_pll_compute_mul_frac()
210 tmprate += UDIV_ROUND_NEAREST((uint64_t)nfrac * parent_rate, in sam9x60_frac_pll_compute_mul_frac()
215 if (tmprate < frac->core.charac->output[0].min || in sam9x60_frac_pll_compute_mul_frac()
216 tmprate > frac->core.charac->output[0].max) in sam9x60_frac_pll_compute_mul_frac()