Home
last modified time | relevance | path

Searched refs:postdiv (Results 1 – 7 of 7) sorted by relevance

/linux-3.4.99/arch/mips/ar7/
Dclock.c85 u32 postdiv; member
112 int *postdiv, int *mul) in approximate() argument
123 *postdiv = k; in approximate()
128 static void calculate(int base, int target, int *prediv, int *postdiv, in calculate() argument
137 *postdiv = tmp_base / tmp_gcd; in calculate()
140 if ((*postdiv > 0) & (*postdiv <= 32)) in calculate()
144 if (base / *prediv * *mul / *postdiv != target) { in calculate()
145 approximate(base, target, prediv, postdiv, mul); in calculate()
146 tmp_freq = base / *prediv * *mul / *postdiv; in calculate()
153 *prediv, *postdiv, *mul); in calculate()
[all …]
/linux-3.4.99/arch/arm/mach-davinci/
Dclock.c370 u32 ctrl, mult = 1, prediv = 1, postdiv = 1; in clk_pllclk_recalc() local
401 postdiv = __raw_readl(pll->base + POSTDIV); in clk_pllclk_recalc()
402 if (postdiv & PLLDIV_EN) in clk_pllclk_recalc()
403 postdiv = (postdiv & pll->div_ratio_mask) + 1; in clk_pllclk_recalc()
405 postdiv = 1; in clk_pllclk_recalc()
411 rate /= postdiv; in clk_pllclk_recalc()
422 if (postdiv > 1) in clk_pllclk_recalc()
423 pr_debug("/ %d ", postdiv); in clk_pllclk_recalc()
440 unsigned int mult, unsigned int postdiv) in davinci_set_pllrate() argument
460 if (postdiv) in davinci_set_pllrate()
[all …]
Dda850.c814 unsigned int postdiv; member
823 .postdiv = 1,
832 .postdiv = 1,
841 .postdiv = 1,
850 .postdiv = 2,
859 .postdiv = 3,
868 .postdiv = 5,
991 unsigned int prediv, mult, postdiv; in da850_set_pll0rate() local
999 postdiv = opp->postdiv; in da850_set_pll0rate()
1001 ret = davinci_set_pllrate(pll, prediv, mult, postdiv); in da850_set_pll0rate()
Dclock.h125 unsigned int mult, unsigned int postdiv);
Dtnetv107x.c650 unsigned long mult = 0, prediv = 1, postdiv = 1; in clk_sspll_recalc() local
677 postdiv = __raw_readl(&sspll_regs[pll]->post_div) + 1; in clk_sspll_recalc()
694 ret /= (prediv * postdiv); in clk_sspll_recalc()
/linux-3.4.99/arch/c6x/platforms/
Dpll.c271 u32 ctrl, mult = 0, prediv = 0, postdiv = 0; in clk_pllclk_recalc() local
299 postdiv = pll_read(pll, PLLPOST); in clk_pllclk_recalc()
300 if (postdiv & PLLDIV_EN) in clk_pllclk_recalc()
301 postdiv = (postdiv & PLLDIV_RATIO_MASK) + 1; in clk_pllclk_recalc()
303 postdiv = 1; in clk_pllclk_recalc()
311 if (postdiv) in clk_pllclk_recalc()
312 rate /= postdiv; in clk_pllclk_recalc()
317 prediv, mult, postdiv, rate / 1000000); in clk_pllclk_recalc()
/linux-3.4.99/drivers/video/
Dgxt4500.c230 int m, n, pdiv1, pdiv2, postdiv; in calc_pll() local
240 postdiv = pdiv1 * pdiv2; in calc_pll()
241 pll_period = DIV_ROUND_UP(period_ps, postdiv); in calc_pll()
249 n = intf * postdiv / period_ps; in calc_pll()
252 t = par->refclk_ps * m * postdiv / n; in calc_pll()