Lines Matching refs:pre_div
109 static u32 ns_to_pre_div(struct pre_div *p, u32 ns)
116 static u32 pre_div_to_ns(struct pre_div *p, u8 pre_div, u32 ns)
124 ns |= pre_div << p->pre_div_shift;
199 struct pre_div *p;
245 ns = pre_div_to_ns(p, f->pre_div - 1, ns);
280 f.pre_div = ns_to_pre_div(&rcg->p[bank], ns) + 1;
293 * pre_div n
296 calc_rate(unsigned long rate, u32 m, u32 n, u32 mode, u32 pre_div)
298 if (pre_div)
299 rate /= pre_div + 1;
315 u32 pre_div, m = 0, n = 0, ns, md, mode = 0;
319 pre_div = ns_to_pre_div(&rcg->p, ns);
333 return calc_rate(parent_rate, m, n, mode, pre_div);
340 u32 m, n, pre_div, ns, md, mode, reg;
350 m = n = pre_div = mode = 0;
364 pre_div = ns_to_pre_div(&rcg->p[bank], ns);
366 return calc_rate(parent_rate, m, n, mode, pre_div);
382 rate = rate * f->pre_div;
459 ns = pre_div_to_ns(&rcg->p, f->pre_div - 1, ns);