Lines Matching defs:div
39 static void __calc_pre_post_dividers(u32 div, u32 *pre, u32 *post)
43 if (div >= 512) {
46 } else if (div >= 64) {
47 min_pre = (div - 1) / 64 + 1;
50 err = div % temp_pre;
61 *post = (div + *pre - 1) / *pre;
62 } else if (div <= 8) {
63 *pre = div;
67 *post = div;
276 u32 div = parent / rate;
279 div++;
281 __calc_pre_post_dividers(div, &pre, &post);
288 u32 reg, div, pre, post, parent = clk_get_rate(clk->parent);
290 div = parent / rate;
292 if ((parent / div) != rate)
295 __calc_pre_post_dividers(div, &pre, &post);
344 u32 div = parent / rate;
347 div++;
349 __calc_pre_post_dividers(div, &pre, &post);
357 u32 reg, div, pre, post, parent = clk_get_rate(clk->parent);
359 div = parent / rate;
361 if ((parent / div) != rate)
364 __calc_pre_post_dividers(div, &pre, &post);