Lines Matching defs:divider
155 /* best integer divider: */
156 unsigned divider = DIV_ROUND_UP(tclk_hz, speed);
159 if (divider < 16) {
160 /* This is the easy case, divider is less than 16 */
161 spr = divider;
167 * Find the highest bit set in divider. This and the
172 sppr = fls(divider) - 4;
175 * As SPR only has 4 bits, we have to round divider up
179 divider = (divider + two_pow_sppr - 1) & -two_pow_sppr;
182 * recalculate sppr as rounding up divider might have
188 sppr = fls(divider) - 4;
189 spr = divider >> sppr;