Lines Matching refs:kdiv

105 			      int sdiv, int kdiv, unsigned long prate)  in pll14xx_calc_rate()  argument
110 fout *= (mdiv * 65536 + kdiv); in pll14xx_calc_rate()
121 long kdiv; in pll1443x_calc_kdiv() local
124 kdiv = ((rate * ((pdiv * 65536) << sdiv) + prate / 2) / prate) - (mdiv * 65536); in pll1443x_calc_kdiv()
126 return clamp_t(short, kdiv, KDIV_MIN, KDIV_MAX); in pll1443x_calc_kdiv()
133 int mdiv, pdiv, sdiv, kdiv; in imx_pll14xx_calc_settings() local
158 t->kdiv = tt->kdiv; in imx_pll14xx_calc_settings()
173 kdiv = pll1443x_calc_kdiv(mdiv, pdiv, sdiv, rate, prate); in imx_pll14xx_calc_settings()
176 FIELD_GET(KDIV_MASK, pll_div_ctl1), kdiv); in imx_pll14xx_calc_settings()
177 fout = pll14xx_calc_rate(pll, mdiv, pdiv, sdiv, kdiv, prate); in imx_pll14xx_calc_settings()
182 t->kdiv = kdiv; in imx_pll14xx_calc_settings()
193 kdiv = pll1443x_calc_kdiv(mdiv, pdiv, sdiv, rate, prate); in imx_pll14xx_calc_settings()
194 fout = pll14xx_calc_rate(pll, mdiv, pdiv, sdiv, kdiv, prate); in imx_pll14xx_calc_settings()
204 t->kdiv = kdiv; in imx_pll14xx_calc_settings()
214 t->mdiv, t->kdiv); in imx_pll14xx_calc_settings()
248 u32 mdiv, pdiv, sdiv, kdiv, pll_div_ctl0, pll_div_ctl1; in clk_pll14xx_recalc_rate() local
257 kdiv = (s16)FIELD_GET(KDIV_MASK, pll_div_ctl1); in clk_pll14xx_recalc_rate()
259 kdiv = 0; in clk_pll14xx_recalc_rate()
262 return pll14xx_calc_rate(pll, mdiv, pdiv, sdiv, kdiv, parent_rate); in clk_pll14xx_recalc_rate()
368 writel_relaxed(FIELD_PREP(KDIV_MASK, rate.kdiv), in clk_pll1443x_set_rate()
388 writel_relaxed(FIELD_PREP(KDIV_MASK, rate.kdiv), pll->base + DIV_CTL1); in clk_pll1443x_set_rate()