Lines Matching refs:clkctrl_frac
87 u32 reg_frac, clkctrl_frac;
90 clkctrl_frac = (clk->parent->rate * 18 + rate - 1) / rate;
92 if (clkctrl_frac < 18 || clkctrl_frac > 35) {
99 __raw_writel(reg_frac | (clkctrl_frac << clk->scale_shift),
318 u32 clkctrl_frac = 1;
326 s1 = pll_clk.rate*18/clkctrl_frac/clkctrl_cpu - rate;
331 clkctrl_frac = f;
336 pr_debug("%s: clkctrl_cpu %d, clkctrl_frac %d\n", __func__,
337 clkctrl_cpu, clkctrl_frac);
339 int d = pll_clk.rate*18/clkctrl_frac/clkctrl_cpu -
342 clkctrl_frac < 18 || clkctrl_frac > 35)
349 val |= clkctrl_frac;
397 u32 clkctrl_frac;
399 clkctrl_frac =
401 if (clkctrl_frac > 35)
403 if (pll_clk.rate*18 / clkctrl_frac / clkctrl_cpu/10 ==
409 pr_debug("%s: clkctrl_cpu %d, clkctrl_frac %d\n", __func__,
410 clkctrl_cpu, clkctrl_frac);
411 if (clkctrl_frac < 18)
412 clkctrl_frac = 18;
413 if (clkctrl_frac > 35)
414 clkctrl_frac = 35;
417 r /= clkctrl_frac;