Lines Matching refs:postdiv
85 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()
180 int postdiv = (ctrl & POSTDIV_MASK) + 1; in tnetd7300_get_clock() local
181 int divisor = prediv * postdiv; in tnetd7300_get_clock()
221 int prediv, postdiv, mul; in tnetd7300_set_clock() local
239 calculate(base_clock, frequency, &prediv, &postdiv, &mul); in tnetd7300_set_clock()
241 writel(((prediv - 1) << PREDIV_SHIFT) | (postdiv - 1), &clock->ctrl); in tnetd7300_set_clock()
275 int prediv, int postdiv, int postdiv2, int mul, u32 frequency) in tnetd7200_set_clock() argument
280 base, frequency, prediv, postdiv, postdiv2, mul); in tnetd7200_set_clock()
289 writel(DIVISOR_ENABLE_MASK | ((postdiv - 1) & 0x1F), &clock->postdiv); in tnetd7200_set_clock()