Lines Matching refs:rate
142 static long pll_round_rate(struct clk_hw *hw, unsigned long rate, in pll_round_rate() argument
150 pll->rates[i].fout <= rate) in pll_round_rate()
193 static int pll_gf40lp_frac_set_rate(struct clk_hw *hw, unsigned long rate, in pll_gf40lp_frac_set_rate() argument
202 if (rate < MIN_OUTPUT_FRAC || rate > MAX_OUTPUT_FRAC) in pll_gf40lp_frac_set_rate()
205 params = pll_get_params(pll, parent_rate, rate); in pll_gf40lp_frac_set_rate()
273 u64 val, prediv, fbdiv, frac, postdiv1, postdiv2, rate; in pll_gf40lp_frac_recalc_rate() local
287 rate = parent_rate; in pll_gf40lp_frac_recalc_rate()
289 rate *= (fbdiv << 24) + frac; in pll_gf40lp_frac_recalc_rate()
291 rate *= (fbdiv << 24); in pll_gf40lp_frac_recalc_rate()
293 rate = do_div_round_closest(rate, (prediv * postdiv1 * postdiv2) << 24); in pll_gf40lp_frac_recalc_rate()
295 return rate; in pll_gf40lp_frac_recalc_rate()
350 static int pll_gf40lp_laint_set_rate(struct clk_hw *hw, unsigned long rate, in pll_gf40lp_laint_set_rate() argument
359 if (rate < MIN_OUTPUT_LA || rate > MAX_OUTPUT_LA) in pll_gf40lp_laint_set_rate()
362 params = pll_get_params(pll, parent_rate, rate); in pll_gf40lp_laint_set_rate()
414 u64 rate = parent_rate; in pll_gf40lp_laint_recalc_rate() local
424 rate *= fbdiv; in pll_gf40lp_laint_recalc_rate()
425 rate = do_div_round_closest(rate, prediv * postdiv1 * postdiv2); in pll_gf40lp_laint_recalc_rate()
427 return rate; in pll_gf40lp_laint_recalc_rate()