Lines Matching refs:parent_rate
159 unsigned long parent_rate; \
164 parent_rate = clk_get_rate(clk->parent); \
166 return SH_DIV((parent_rate >> PARENT_RATE_SHIFT) * 18, \
295 unsigned long diff, parent_rate, calc_rate; \
302 parent_rate = clk_get_rate(clk->parent); \
303 div = DIV_ROUND_UP(parent_rate, rate); \
316 parent_rate = clk_get_rate(clk->parent->parent); \
318 parent_rate >>= PARENT_RATE_SHIFT; \
319 diff = parent_rate; \
327 f = parent_rate * 18 / d / rate; \
328 if ((parent_rate * 18 / d) % rate) \
333 calc_rate = parent_rate * 18 / f / d; \
347 if (diff == parent_rate) \
394 unsigned long parent_rate; \
397 parent_rate = clk_get_rate(clk->parent); \
400 div = DIV_ROUND_UP(parent_rate, rate); \
434 unsigned long parent_rate; \
437 parent_rate = clk_get_rate(clk->parent); \
438 if (rate > parent_rate) \
442 do_div(lrate, parent_rate); \