Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/clk/at91/
Dclk-sam9x60-pll.c203 unsigned long tmprate; in sam9x60_pll_get_best_div_mul() local
212 tmprate = mult_frac(parent_rate, tmpmul, tmpdiv); in sam9x60_pll_get_best_div_mul()
213 remainder = rate - tmprate; in sam9x60_pll_get_best_div_mul()
219 tmprate += DIV_ROUND_CLOSEST_ULL((u64)tmpfrac * parent_rate, in sam9x60_pll_get_best_div_mul()
222 if (tmprate > rate) in sam9x60_pll_get_best_div_mul()
223 remainder = tmprate - rate; in sam9x60_pll_get_best_div_mul()
225 remainder = rate - tmprate; in sam9x60_pll_get_best_div_mul()
237 bestrate = tmprate; in sam9x60_pll_get_best_div_mul()
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.c297 unsigned long tmprate; in at91rm9200_clk_usb_round_rate() local
309 tmprate = DIV_ROUND_CLOSEST(tmp_parent_rate, usb->divisors[i]); in at91rm9200_clk_usb_round_rate()
310 if (tmprate < rate) in at91rm9200_clk_usb_round_rate()
311 tmpdiff = rate - tmprate; in at91rm9200_clk_usb_round_rate()
313 tmpdiff = tmprate - rate; in at91rm9200_clk_usb_round_rate()
316 bestrate = tmprate; in at91rm9200_clk_usb_round_rate()
/Linux-v5.4/sound/soc/fsl/
Dfsl_ssi.c680 unsigned long clkrate, baudrate, tmprate; in fsl_ssi_set_bclk() local
720 tmprate = freq * factor * (i + 1); in fsl_ssi_set_bclk()
725 clkrate = clk_round_rate(ssi->baudclk, tmprate); in fsl_ssi_set_bclk()
744 baudrate = tmprate; in fsl_ssi_set_bclk()