Lines Matching refs:mdiv
109 u32 pll_con, mdiv, pdiv, sdiv; in samsung_pll2126_recalc_rate() local
113 mdiv = (pll_con >> PLL2126_MDIV_SHIFT) & PLL2126_MDIV_MASK; in samsung_pll2126_recalc_rate()
117 fvco *= (mdiv + 8); in samsung_pll2126_recalc_rate()
142 u32 pll_con, mdiv, pdiv, sdiv; in samsung_pll3000_recalc_rate() local
146 mdiv = (pll_con >> PLL3000_MDIV_SHIFT) & PLL3000_MDIV_MASK; in samsung_pll3000_recalc_rate()
150 fvco *= (2 * (mdiv + 8)); in samsung_pll3000_recalc_rate()
179 u32 mdiv, pdiv, sdiv, pll_con; in samsung_pll35xx_recalc_rate() local
183 mdiv = (pll_con >> PLL35XX_MDIV_SHIFT) & PLL35XX_MDIV_MASK; in samsung_pll35xx_recalc_rate()
187 fvco *= mdiv; in samsung_pll35xx_recalc_rate()
201 return (rate->mdiv != old_mdiv || rate->pdiv != old_pdiv); in samsung_pll35xx_mp_change()
238 tmp |= (rate->mdiv << PLL35XX_MDIV_SHIFT) | in samsung_pll35xx_set_rate()
286 u32 mdiv, pdiv, sdiv, pll_con0, pll_con1; in samsung_pll36xx_recalc_rate() local
292 mdiv = (pll_con0 >> PLL36XX_MDIV_SHIFT) & PLL36XX_MDIV_MASK; in samsung_pll36xx_recalc_rate()
297 fvco *= (mdiv << 16) + kdiv; in samsung_pll36xx_recalc_rate()
313 return (rate->mdiv != old_mdiv || rate->pdiv != old_pdiv || in samsung_pll36xx_mpk_change()
350 pll_con0 |= (rate->mdiv << PLL36XX_MDIV_SHIFT) | in samsung_pll36xx_set_rate()
404 u32 mdiv, pdiv, sdiv, pll_con; in samsung_pll45xx_recalc_rate() local
408 mdiv = (pll_con >> PLL45XX_MDIV_SHIFT) & PLL45XX_MDIV_MASK; in samsung_pll45xx_recalc_rate()
415 fvco *= mdiv; in samsung_pll45xx_recalc_rate()
430 return (old_mdiv != rate->mdiv || old_pdiv != rate->pdiv in samsung_pll45xx_mp_change()
466 con0 |= (rate->mdiv << PLL45XX_MDIV_SHIFT) | in samsung_pll45xx_set_rate()
551 u32 mdiv, pdiv, sdiv, kdiv, pll_con0, pll_con1, shift; in samsung_pll46xx_recalc_rate() local
556 mdiv = (pll_con0 >> PLL46XX_MDIV_SHIFT) & ((pll->type == pll_1460x) ? in samsung_pll46xx_recalc_rate()
565 fvco *= (mdiv << shift) + kdiv; in samsung_pll46xx_recalc_rate()
581 return (old_mdiv != rate->mdiv || old_pdiv != rate->pdiv in samsung_pll46xx_mpk_change()
632 con0 |= (rate->mdiv << PLL46XX_MDIV_SHIFT) | in samsung_pll46xx_set_rate()
694 u32 mdiv, pdiv, sdiv, pll_con; in samsung_pll6552_recalc_rate() local
699 mdiv = (pll_con >> PLL6552_MDIV_SHIFT_2416) & PLL6552_MDIV_MASK; in samsung_pll6552_recalc_rate()
702 mdiv = (pll_con >> PLL6552_MDIV_SHIFT) & PLL6552_MDIV_MASK; in samsung_pll6552_recalc_rate()
707 fvco *= mdiv; in samsung_pll6552_recalc_rate()
734 u32 mdiv, pdiv, sdiv, kdiv, pll_con0, pll_con1; in samsung_pll6553_recalc_rate() local
739 mdiv = (pll_con0 >> PLL6553_MDIV_SHIFT) & PLL6553_MDIV_MASK; in samsung_pll6553_recalc_rate()
744 fvco *= (mdiv << 16) + kdiv; in samsung_pll6553_recalc_rate()
772 u32 pll_con, mdiv, pdiv, sdiv; in samsung_s3c2410_pll_recalc_rate() local
776 mdiv = (pll_con >> PLLS3C2410_MDIV_SHIFT) & PLLS3C2410_MDIV_MASK; in samsung_s3c2410_pll_recalc_rate()
780 fvco *= (mdiv + 8); in samsung_s3c2410_pll_recalc_rate()
790 u32 pll_con, mdiv, pdiv, sdiv; in samsung_s3c2440_mpll_recalc_rate() local
794 mdiv = (pll_con >> PLLS3C2410_MDIV_SHIFT) & PLLS3C2410_MDIV_MASK; in samsung_s3c2440_mpll_recalc_rate()
798 fvco *= (2 * (mdiv + 8)); in samsung_s3c2440_mpll_recalc_rate()
825 tmp |= (rate->mdiv << PLLS3C2410_MDIV_SHIFT) | in samsung_s3c2410_pll_set_rate()
976 u32 mdiv, pdiv, sdiv, pll_con; in samsung_pll2550xx_recalc_rate() local
980 mdiv = (pll_con >> PLL2550XX_M_SHIFT) & PLL2550XX_M_MASK; in samsung_pll2550xx_recalc_rate()
984 fvco *= mdiv; in samsung_pll2550xx_recalc_rate()
990 static inline bool samsung_pll2550xx_mp_change(u32 mdiv, u32 pdiv, u32 pll_con) in samsung_pll2550xx_mp_change() argument
997 return mdiv != old_mdiv || pdiv != old_pdiv; in samsung_pll2550xx_mp_change()
1017 if (!(samsung_pll2550xx_mp_change(rate->mdiv, rate->pdiv, tmp))) { in samsung_pll2550xx_set_rate()
1033 tmp |= (rate->mdiv << PLL2550XX_M_SHIFT) | in samsung_pll2550xx_set_rate()
1082 u32 mdiv, pdiv, sdiv, pll_con0, pll_con1; in samsung_pll2650x_recalc_rate() local
1086 mdiv = (pll_con0 >> PLL2650X_M_SHIFT) & PLL2650X_M_MASK; in samsung_pll2650x_recalc_rate()
1093 fout *= (mdiv << 16) + kdiv; in samsung_pll2650x_recalc_rate()
1125 con0 |= (rate->mdiv << PLL2650X_M_SHIFT) | in samsung_pll2650x_set_rate()
1177 u32 mdiv, pdiv, sdiv, pll_con0, pll_con2; in samsung_pll2650xx_recalc_rate() local
1183 mdiv = (pll_con0 >> PLL2650XX_MDIV_SHIFT) & PLL2650XX_MDIV_MASK; in samsung_pll2650xx_recalc_rate()
1188 fvco *= (mdiv << 16) + kdiv; in samsung_pll2650xx_recalc_rate()
1216 pll_con0 |= rate->mdiv << PLL2650XX_MDIV_SHIFT; in samsung_pll2650xx_set_rate()