Lines Matching defs:div
69 for (clkr = clks->rates; clkr->div; clkr++) {
73 if (clkr->div > max_div) {
74 max_div = clkr->div;
136 for (clkr = clks->rates; clkr->div; clkr++) {
144 if (!clkr->div) {
151 return clkr->div;
157 * @div: integer divisor to search for
164 static u32 _divisor_to_clksel(struct clk *clk, u32 div)
170 WARN_ON(div == 0);
176 for (clkr = clks->rates; clkr->div; clkr++) {
180 if (clkr->div == div)
184 if (!clkr->div) {
186 "%s\n", div, clk->name, clk->parent->name);
249 for (clkr = clks->rates; clkr->div; clkr++) {
254 if (clkr->div <= last_div)
258 last_div = clkr->div;
260 test_rate = clk->parent->rate / clkr->div;
266 if (!clkr->div) {
273 *new_div = clkr->div;
276 (clk->parent->rate / clkr->div));
278 return clk->parent->rate / clkr->div;
308 for (clkr = clks->rates; clkr->div && !found; clkr++) {
345 u32 div = 0;
347 div = _read_divisor(clk);
348 if (div == 0)
351 rate = clk->parent->rate / div;
353 pr_debug("clock: %s: recalc'd rate is %ld (div %d)\n", clk->name,
354 rate, div);