Lines Matching refs:pdiv

153 	u32 pll_con, mdiv, pdiv, sdiv;  in samsung_pll2126_recalc_rate()  local
158 pdiv = (pll_con >> PLL2126_PDIV_SHIFT) & PLL2126_PDIV_MASK; in samsung_pll2126_recalc_rate()
162 do_div(fvco, (pdiv + 2) << sdiv); in samsung_pll2126_recalc_rate()
186 u32 pll_con, mdiv, pdiv, sdiv; in samsung_pll3000_recalc_rate() local
191 pdiv = (pll_con >> PLL3000_PDIV_SHIFT) & PLL3000_PDIV_MASK; in samsung_pll3000_recalc_rate()
195 do_div(fvco, pdiv << sdiv); in samsung_pll3000_recalc_rate()
223 u32 mdiv, pdiv, sdiv, pll_con; in samsung_pll35xx_recalc_rate() local
228 pdiv = (pll_con >> PLL35XX_PDIV_SHIFT) & PLL35XX_PDIV_MASK; in samsung_pll35xx_recalc_rate()
232 do_div(fvco, (pdiv << sdiv)); in samsung_pll35xx_recalc_rate()
245 return (rate->mdiv != old_mdiv || rate->pdiv != old_pdiv); in samsung_pll35xx_mp_change()
275 writel_relaxed(rate->pdiv * PLL35XX_LOCK_FACTOR, in samsung_pll35xx_set_rate()
283 (rate->pdiv << PLL35XX_PDIV_SHIFT) | in samsung_pll35xx_set_rate()
327 u32 mdiv, pdiv, sdiv, pll_con0, pll_con1; in samsung_pll36xx_recalc_rate() local
334 pdiv = (pll_con0 >> PLL36XX_PDIV_SHIFT) & PLL36XX_PDIV_MASK; in samsung_pll36xx_recalc_rate()
339 do_div(fvco, (pdiv << sdiv)); in samsung_pll36xx_recalc_rate()
354 return (rate->mdiv != old_mdiv || rate->pdiv != old_pdiv || in samsung_pll36xx_mpk_change()
385 writel_relaxed(rate->pdiv * PLL36XX_LOCK_FACTOR, pll->lock_reg); in samsung_pll36xx_set_rate()
392 (rate->pdiv << PLL36XX_PDIV_SHIFT) | in samsung_pll36xx_set_rate()
437 u32 mdiv, pdiv, sdiv, pll_con3; in samsung_pll0822x_recalc_rate() local
442 pdiv = (pll_con3 >> PLL0822X_PDIV_SHIFT) & PLL0822X_PDIV_MASK; in samsung_pll0822x_recalc_rate()
446 do_div(fvco, (pdiv << sdiv)); in samsung_pll0822x_recalc_rate()
472 (rate->pdiv << PLL0822X_PDIV_SHIFT) | in samsung_pll0822x_set_rate()
476 writel_relaxed(rate->pdiv * PLL0822X_LOCK_FACTOR, in samsung_pll0822x_set_rate()
522 u32 mdiv, pdiv, sdiv, pll_con3, pll_con5; in samsung_pll0831x_recalc_rate() local
529 pdiv = (pll_con3 >> PLL0831X_PDIV_SHIFT) & PLL0831X_PDIV_MASK; in samsung_pll0831x_recalc_rate()
534 do_div(fvco, (pdiv << sdiv)); in samsung_pll0831x_recalc_rate()
563 (rate->pdiv << PLL0831X_PDIV_SHIFT) | in samsung_pll0831x_set_rate()
573 writel_relaxed(rate->pdiv * PLL0831X_LOCK_FACTOR, pll->lock_reg); in samsung_pll0831x_set_rate()
620 u32 mdiv, pdiv, sdiv, pll_con; in samsung_pll45xx_recalc_rate() local
625 pdiv = (pll_con >> PLL45XX_PDIV_SHIFT) & PLL45XX_PDIV_MASK; in samsung_pll45xx_recalc_rate()
632 do_div(fvco, (pdiv << sdiv)); in samsung_pll45xx_recalc_rate()
646 return (old_mdiv != rate->mdiv || old_pdiv != rate->pdiv in samsung_pll45xx_mp_change()
682 (rate->pdiv << PLL45XX_PDIV_SHIFT) | in samsung_pll45xx_set_rate()
693 writel_relaxed(rate->pdiv * PLL4502_LOCK_FACTOR, pll->lock_reg); in samsung_pll45xx_set_rate()
696 writel_relaxed(rate->pdiv * PLL4508_LOCK_FACTOR, pll->lock_reg); in samsung_pll45xx_set_rate()
753 u32 mdiv, pdiv, sdiv, kdiv, pll_con0, pll_con1, shift; in samsung_pll46xx_recalc_rate() local
760 pdiv = (pll_con0 >> PLL46XX_PDIV_SHIFT) & PLL46XX_PDIV_MASK; in samsung_pll46xx_recalc_rate()
768 do_div(fvco, (pdiv << sdiv)); in samsung_pll46xx_recalc_rate()
783 return (old_mdiv != rate->mdiv || old_pdiv != rate->pdiv in samsung_pll46xx_mpk_change()
815 lock = rate->pdiv * PLL46XX_LOCK_FACTOR; in samsung_pll46xx_set_rate()
834 (rate->pdiv << PLL46XX_PDIV_SHIFT) | in samsung_pll46xx_set_rate()
882 u32 mdiv, pdiv, sdiv, pll_con; in samsung_pll6552_recalc_rate() local
888 pdiv = (pll_con >> PLL6552_PDIV_SHIFT_2416) & PLL6552_PDIV_MASK; in samsung_pll6552_recalc_rate()
891 pdiv = (pll_con >> PLL6552_PDIV_SHIFT) & PLL6552_PDIV_MASK; in samsung_pll6552_recalc_rate()
896 do_div(fvco, (pdiv << sdiv)); in samsung_pll6552_recalc_rate()
922 u32 mdiv, pdiv, sdiv, kdiv, pll_con0, pll_con1; in samsung_pll6553_recalc_rate() local
928 pdiv = (pll_con0 >> PLL6553_PDIV_SHIFT) & PLL6553_PDIV_MASK; in samsung_pll6553_recalc_rate()
933 do_div(fvco, (pdiv << sdiv)); in samsung_pll6553_recalc_rate()
960 u32 pll_con, mdiv, pdiv, sdiv; in samsung_s3c2410_pll_recalc_rate() local
965 pdiv = (pll_con >> PLLS3C2410_PDIV_SHIFT) & PLLS3C2410_PDIV_MASK; in samsung_s3c2410_pll_recalc_rate()
969 do_div(fvco, (pdiv + 2) << sdiv); in samsung_s3c2410_pll_recalc_rate()
978 u32 pll_con, mdiv, pdiv, sdiv; in samsung_s3c2440_mpll_recalc_rate() local
983 pdiv = (pll_con >> PLLS3C2410_PDIV_SHIFT) & PLLS3C2410_PDIV_MASK; in samsung_s3c2440_mpll_recalc_rate()
987 do_div(fvco, (pdiv + 2) << sdiv); in samsung_s3c2440_mpll_recalc_rate()
1014 (rate->pdiv << PLLS3C2410_PDIV_SHIFT) | in samsung_s3c2410_pll_set_rate()
1164 u32 mdiv, pdiv, sdiv, pll_con; in samsung_pll2550xx_recalc_rate() local
1169 pdiv = (pll_con >> PLL2550XX_P_SHIFT) & PLL2550XX_P_MASK; in samsung_pll2550xx_recalc_rate()
1173 do_div(fvco, (pdiv << sdiv)); in samsung_pll2550xx_recalc_rate()
1178 static inline bool samsung_pll2550xx_mp_change(u32 mdiv, u32 pdiv, u32 pll_con) in samsung_pll2550xx_mp_change() argument
1185 return mdiv != old_mdiv || pdiv != old_pdiv; in samsung_pll2550xx_mp_change()
1205 if (!(samsung_pll2550xx_mp_change(rate->mdiv, rate->pdiv, tmp))) { in samsung_pll2550xx_set_rate()
1215 writel_relaxed(rate->pdiv * PLL2550XX_LOCK_FACTOR, pll->lock_reg); in samsung_pll2550xx_set_rate()
1222 (rate->pdiv << PLL2550XX_P_SHIFT) | in samsung_pll2550xx_set_rate()
1265 u32 mdiv, pdiv, sdiv, pll_con0, pll_con1; in samsung_pll2650x_recalc_rate() local
1270 pdiv = (pll_con0 >> PLL2650X_P_SHIFT) & PLL2650X_P_MASK; in samsung_pll2650x_recalc_rate()
1277 do_div(fout, (pdiv << sdiv)); in samsung_pll2650x_recalc_rate()
1302 writel_relaxed(rate->pdiv * PLL2650X_LOCK_FACTOR, pll->lock_reg); in samsung_pll2650x_set_rate()
1309 (rate->pdiv << PLL2650X_P_SHIFT) | in samsung_pll2650x_set_rate()
1356 u32 mdiv, pdiv, sdiv, pll_con0, pll_con2; in samsung_pll2650xx_recalc_rate() local
1363 pdiv = (pll_con0 >> PLL2650XX_PDIV_SHIFT) & PLL2650XX_PDIV_MASK; in samsung_pll2650xx_recalc_rate()
1368 do_div(fvco, (pdiv << sdiv)); in samsung_pll2650xx_recalc_rate()
1396 pll_con0 |= rate->pdiv << PLL2650XX_PDIV_SHIFT; in samsung_pll2650xx_set_rate()
1406 writel_relaxed(PLL2650XX_LOCK_FACTOR * rate->pdiv, pll->lock_reg); in samsung_pll2650xx_set_rate()