Lines Matching refs:postdiv
74 u32 postdiv;
101 int *postdiv, int *mul)
112 *postdiv = k;
117 static void calculate(int base, int target, int *prediv, int *postdiv,
126 *postdiv = tmp_base / tmp_gcd;
129 if ((*postdiv > 0) & (*postdiv <= 32))
133 if (base / *prediv * *mul / *postdiv != target) {
134 approximate(base, target, prediv, postdiv, mul);
135 tmp_freq = base / *prediv * *mul / *postdiv;
141 printk(KERN_DEBUG "Clocks: prediv: %d, postdiv: %d, mul: %d\n",
142 *prediv, *postdiv, *mul);
169 int postdiv = (ctrl & POSTDIV_MASK) + 1;
170 int divisor = prediv * postdiv;
210 int prediv, postdiv, mul;
228 calculate(base_clock, frequency, &prediv, &postdiv, &mul);
230 writel(((prediv - 1) << PREDIV_SHIFT) | (postdiv - 1), &clock->ctrl);
272 int prediv, int postdiv, int postdiv2, int mul, u32 frequency)
276 "postdiv = %d, postdiv2 = %d, mul = %d\n",
277 base, frequency, prediv, postdiv, postdiv2, mul);
286 writel(DIVISOR_ENABLE_MASK | ((postdiv - 1) & 0x1F), &clock->postdiv);