Lines Matching refs:prate
371 unsigned long prate) in lmk04832_vco_recalc_rate() argument
402 vco_rate = (prate << FIELD_GET(LMK04832_BIT_PLL2_MISC_REF_2X_EN, in lmk04832_vco_recalc_rate()
456 static long lmk04832_calc_pll2_params(unsigned long prate, unsigned long rate, in lmk04832_calc_pll2_params() argument
466 div = gcd(rate, prate); in lmk04832_calc_pll2_params()
469 pll2_r = DIV_ROUND_CLOSEST(prate, div); in lmk04832_calc_pll2_params()
487 return DIV_ROUND_CLOSEST(prate * 2 * pll2_p * pll2_n, pll2_r); in lmk04832_calc_pll2_params()
491 unsigned long *prate) in lmk04832_vco_round_rate() argument
502 vco_rate = lmk04832_calc_pll2_params(*prate, rate, &n, &p, &r); in lmk04832_vco_round_rate()
515 unsigned long prate) in lmk04832_vco_set_rate() argument
533 vco_rate = lmk04832_calc_pll2_params(prate, rate, &n, &p, &r); in lmk04832_vco_set_rate()
870 unsigned long prate) in lmk04832_sclk_recalc_rate() argument
884 return DIV_ROUND_CLOSEST(prate, sysref_div); in lmk04832_sclk_recalc_rate()
888 unsigned long *prate) in lmk04832_sclk_round_rate() argument
894 sysref_div = DIV_ROUND_CLOSEST(*prate, rate); in lmk04832_sclk_round_rate()
895 sclk_rate = DIV_ROUND_CLOSEST(*prate, sysref_div); in lmk04832_sclk_round_rate()
909 unsigned long prate) in lmk04832_sclk_set_rate() argument
915 sysref_div = DIV_ROUND_CLOSEST(prate, rate); in lmk04832_sclk_set_rate()
1043 unsigned long prate) in lmk04832_dclk_recalc_rate() argument
1063 rate = DIV_ROUND_CLOSEST(prate, dclk_div); in lmk04832_dclk_recalc_rate()
1069 unsigned long *prate) in lmk04832_dclk_round_rate() argument
1076 dclk_div = DIV_ROUND_CLOSEST(*prate, rate); in lmk04832_dclk_round_rate()
1077 dclk_rate = DIV_ROUND_CLOSEST(*prate, dclk_div); in lmk04832_dclk_round_rate()
1091 unsigned long prate) in lmk04832_dclk_set_rate() argument
1098 dclk_div = DIV_ROUND_CLOSEST(prate, rate); in lmk04832_dclk_set_rate()