Lines Matching refs:divider
78 unsigned long divider) in ccu_div_var_update_clkdiv() argument
85 nd = ccu_div_lock_delay_ns(parent_rate, divider); in ccu_div_var_update_clkdiv()
211 unsigned long divider; in ccu_div_var_recalc_rate() local
215 divider = ccu_div_get(div->mask, val); in ccu_div_var_recalc_rate()
217 return ccu_div_calc_freq(parent_rate, divider); in ccu_div_var_recalc_rate()
224 unsigned long divider; in ccu_div_var_calc_divider() local
226 divider = parent_rate / rate; in ccu_div_var_calc_divider()
227 return clamp_t(unsigned long, divider, CCU_DIV_CLKDIV_MIN, in ccu_div_var_calc_divider()
235 unsigned long divider; in ccu_div_var_round_rate() local
237 divider = ccu_div_var_calc_divider(rate, *parent_rate, div->mask); in ccu_div_var_round_rate()
239 return ccu_div_calc_freq(*parent_rate, divider); in ccu_div_var_round_rate()
251 unsigned long flags, divider; in ccu_div_var_set_rate_slow() local
255 divider = ccu_div_var_calc_divider(rate, parent_rate, div->mask); in ccu_div_var_set_rate_slow()
256 if (divider == 1 && div->features & CCU_DIV_SKIP_ONE) { in ccu_div_var_set_rate_slow()
257 divider = 0; in ccu_div_var_set_rate_slow()
259 if (divider == 1 || divider == 2) in ccu_div_var_set_rate_slow()
260 divider = 0; in ccu_div_var_set_rate_slow()
261 else if (divider == 3) in ccu_div_var_set_rate_slow()
262 divider = 4; in ccu_div_var_set_rate_slow()
265 val = ccu_div_prep(div->mask, divider); in ccu_div_var_set_rate_slow()
269 ret = ccu_div_var_update_clkdiv(div, parent_rate, divider); in ccu_div_var_set_rate_slow()
285 unsigned long flags, divider; in ccu_div_var_set_rate_fast() local
288 divider = ccu_div_var_calc_divider(rate, parent_rate, div->mask); in ccu_div_var_set_rate_fast()
289 val = ccu_div_prep(div->mask, divider); in ccu_div_var_set_rate_fast()
308 return ccu_div_calc_freq(parent_rate, div->divider); in ccu_div_fixed_recalc_rate()
316 return ccu_div_calc_freq(*parent_rate, div->divider); in ccu_div_fixed_round_rate()
428 *val = div->divider; in ccu_div_dbgfs_fixed_clkdiv_get()
611 div->divider = div_init->divider; in ccu_div_hw_register()
616 div->divider = div_init->divider; in ccu_div_hw_register()