Lines Matching refs:clkr
100 const struct clksel_rate *clkr, *max_clkr = NULL; in _get_div_and_fieldval() local
116 for (clkr = clks->rates; clkr->div; clkr++) { in _get_div_and_fieldval()
117 if (!(clkr->flags & cpu_mask)) in _get_div_and_fieldval()
120 if (clkr->div > max_div) { in _get_div_and_fieldval()
121 max_div = clkr->div; in _get_div_and_fieldval()
122 max_clkr = clkr; in _get_div_and_fieldval()
177 const struct clksel_rate *clkr; in _clksel_to_divisor() local
183 for (clkr = clks->rates; clkr->div; clkr++) { in _clksel_to_divisor()
184 if (!(clkr->flags & cpu_mask)) in _clksel_to_divisor()
187 if (clkr->val == field_val) in _clksel_to_divisor()
191 if (!clkr->div) { in _clksel_to_divisor()
198 return clkr->div; in _clksel_to_divisor()
214 const struct clksel_rate *clkr; in _divisor_to_clksel() local
223 for (clkr = clks->rates; clkr->div; clkr++) { in _divisor_to_clksel()
224 if (!(clkr->flags & cpu_mask)) in _divisor_to_clksel()
227 if (clkr->div == div) in _divisor_to_clksel()
231 if (!clkr->div) { in _divisor_to_clksel()
237 return clkr->val; in _divisor_to_clksel()
281 const struct clksel_rate *clkr; in omap2_clksel_round_rate_div() local
296 for (clkr = clks->rates; clkr->div; clkr++) { in omap2_clksel_round_rate_div()
297 if (!(clkr->flags & cpu_mask)) in omap2_clksel_round_rate_div()
301 if (clkr->div <= last_div) in omap2_clksel_round_rate_div()
305 last_div = clkr->div; in omap2_clksel_round_rate_div()
307 test_rate = clk->parent->rate / clkr->div; in omap2_clksel_round_rate_div()
313 if (!clkr->div) { in omap2_clksel_round_rate_div()
320 *new_div = clkr->div; in omap2_clksel_round_rate_div()
323 (clk->parent->rate / clkr->div)); in omap2_clksel_round_rate_div()
325 return clk->parent->rate / clkr->div; in omap2_clksel_round_rate_div()
345 const struct clksel_rate *clkr; in omap2_init_clksel_parent() local
355 for (clkr = clks->rates; clkr->div && !found; clkr++) { in omap2_init_clksel_parent()
356 if (!(clkr->flags & cpu_mask)) in omap2_init_clksel_parent()
359 if (clkr->val == r) { in omap2_init_clksel_parent()