Lines Matching refs:postdiv
85 u32 postdiv;
112 int *postdiv, int *mul)
123 *postdiv = k;
128 static void calculate(int base, int target, int *prediv, int *postdiv,
137 *postdiv = tmp_base / tmp_gcd;
140 if ((*postdiv > 0) & (*postdiv <= 32))
144 if (base / *prediv * *mul / *postdiv != target) {
145 approximate(base, target, prediv, postdiv, mul);
146 tmp_freq = base / *prediv * *mul / *postdiv;
152 printk(KERN_DEBUG "Clocks: prediv: %d, postdiv: %d, mul: %d\n",
153 *prediv, *postdiv, *mul);
180 int postdiv = (ctrl & POSTDIV_MASK) + 1;
181 int divisor = prediv * postdiv;
221 int prediv, postdiv, mul;
239 calculate(base_clock, frequency, &prediv, &postdiv, &mul);
241 writel(((prediv - 1) << PREDIV_SHIFT) | (postdiv - 1), &clock->ctrl);
275 int prediv, int postdiv, int postdiv2, int mul, u32 frequency)
279 "postdiv = %d, postdiv2 = %d, mul = %d\n",
280 base, frequency, prediv, postdiv, postdiv2, mul);
289 writel(DIVISOR_ENABLE_MASK | ((postdiv - 1) & 0x1F), &clock->postdiv);