Lines Matching refs:rodiv
295 u32 rodiv, u32 rotrim) in roclk_calc_rate() argument
305 rodiv = (rodiv << 9) + rotrim; in roclk_calc_rate()
308 do_div(rate64, rodiv); in roclk_calc_rate()
309 } else if (rodiv) { in roclk_calc_rate()
310 rate64 = parent_rate / (rodiv << 1); in roclk_calc_rate()
321 u32 div, rotrim, rodiv; in roclk_calc_div_trim() local
338 rodiv = 0; in roclk_calc_div_trim()
347 rodiv = (div > REFO_DIV_MASK) ? REFO_DIV_MASK : div; in roclk_calc_div_trim()
352 *rodiv_p = rodiv; in roclk_calc_div_trim()
362 u32 v, rodiv, rotrim; in roclk_recalc_rate() local
366 rodiv = (v >> REFO_DIV_SHIFT) & REFO_DIV_MASK; in roclk_recalc_rate()
372 return roclk_calc_rate(parent_rate, rodiv, rotrim); in roclk_recalc_rate()
378 u32 rotrim, rodiv; in roclk_round_rate() local
381 roclk_calc_div_trim(rate, *parent_rate, &rodiv, &rotrim); in roclk_round_rate()
384 return roclk_calc_rate(*parent_rate, rodiv, rotrim); in roclk_round_rate()
482 u32 trim, rodiv, v; in roclk_set_rate_and_parent() local
486 roclk_calc_div_trim(rate, parent_rate, &rodiv, &trim); in roclk_set_rate_and_parent()
489 parent_rate, rate, rodiv, trim); in roclk_set_rate_and_parent()
514 v |= rodiv << REFO_DIV_SHIFT; in roclk_set_rate_and_parent()