Lines Matching refs:n
68 static int _dpll_test_fint(struct clk_hw_omap *clk, unsigned int n) in _dpll_test_fint() argument
77 fint = __clk_get_rate(__clk_get_parent(clk->hw.clk)) / n; in _dpll_test_fint()
94 n); in _dpll_test_fint()
95 dd->max_divider = n; in _dpll_test_fint()
99 n); in _dpll_test_fint()
100 dd->min_divider = n; in _dpll_test_fint()
104 pr_debug("rejecting n=%d due to Fint failure\n", n); in _dpll_test_fint()
112 unsigned int m, unsigned int n) in _dpll_compute_new_rate() argument
117 do_div(num, n); in _dpll_compute_new_rate()
141 static int _dpll_test_mult(int *m, int n, unsigned long *new_rate, in _dpll_test_mult() argument
156 *new_rate = _dpll_compute_new_rate(parent_rate, *m, n); in _dpll_test_mult()
170 *new_rate = _dpll_compute_new_rate(parent_rate, *m, n); in _dpll_test_mult()
287 int m, n, r, scaled_max_m; in omap2_dpll_round_rate() local
312 for (n = dd->min_divider; n <= dd->max_divider; n++) { in omap2_dpll_round_rate()
315 r = _dpll_test_fint(clk, n); in omap2_dpll_round_rate()
322 m = scaled_rt_rp * n; in omap2_dpll_round_rate()
333 r = _dpll_test_mult(&m, n, &new_rate, target_rate, in omap2_dpll_round_rate()
348 min_delta_n = n; in omap2_dpll_round_rate()
352 clk_name, m, n, new_rate); in omap2_dpll_round_rate()