Lines Matching refs:n
70 static int _dpll_test_fint(struct clk_hw_omap *clk, unsigned int n) in _dpll_test_fint() argument
79 fint = clk_hw_get_rate(clk_hw_get_parent(&clk->hw)) / n; in _dpll_test_fint()
96 n); in _dpll_test_fint()
97 dd->max_divider = n; in _dpll_test_fint()
101 n); in _dpll_test_fint()
102 dd->min_divider = n; in _dpll_test_fint()
106 pr_debug("rejecting n=%d due to Fint failure\n", n); in _dpll_test_fint()
114 unsigned int m, unsigned int n) in _dpll_compute_new_rate() argument
119 do_div(num, n); in _dpll_compute_new_rate()
143 static int _dpll_test_mult(int *m, int n, unsigned long *new_rate, in _dpll_test_mult() argument
158 *new_rate = _dpll_compute_new_rate(parent_rate, *m, n); in _dpll_test_mult()
172 *new_rate = _dpll_compute_new_rate(parent_rate, *m, n); in _dpll_test_mult()
289 int m, n, r, scaled_max_m; in omap2_dpll_round_rate() local
314 for (n = dd->min_divider; n <= dd->max_divider; n++) { in omap2_dpll_round_rate()
316 r = _dpll_test_fint(clk, n); in omap2_dpll_round_rate()
323 m = scaled_rt_rp * n; in omap2_dpll_round_rate()
334 r = _dpll_test_mult(&m, n, &new_rate, target_rate, in omap2_dpll_round_rate()
349 min_delta_n = n; in omap2_dpll_round_rate()
353 clk_name, m, n, new_rate); in omap2_dpll_round_rate()