Lines Matching refs:scaled_div
101 divider(struct bcm_clk_div *div, u64 scaled_div) in divider() argument
103 BUG_ON(scaled_div < scaled_div_min(div)); in divider()
104 BUG_ON(scaled_div > scaled_div_max(div)); in divider()
106 return (u32)(scaled_div - ((u64)1 << div->u.s.frac_width)); in divider()
598 if (div->u.s.scaled_div == BAD_SCALED_DIV_VALUE) { in __div_commit()
602 div->u.s.scaled_div = scaled_div_value(div, reg_div); in __div_commit()
608 reg_div = divider(div, div->u.s.scaled_div); in __div_commit()
649 u64 scaled_div) in divider_write() argument
657 previous = div->u.s.scaled_div; in divider_write()
658 if (previous == scaled_div) in divider_write()
661 div->u.s.scaled_div = scaled_div; in divider_write()
672 div->u.s.scaled_div = previous; /* Revert the change */ in divider_write()
690 u64 scaled_div; in clk_recalc_rate() local
713 scaled_div = divider_read_scaled(ccu, pre_div); in clk_recalc_rate()
715 scaled_div); in clk_recalc_rate()
725 scaled_div = divider_read_scaled(ccu, div); in clk_recalc_rate()
726 result = DIV_ROUND_CLOSEST_ULL(scaled_parent_rate, scaled_div); in clk_recalc_rate()
743 u64 *scaled_div) in round_rate() argument
800 if (scaled_div) in round_rate()
801 *scaled_div = best_scaled_div; in round_rate()
1128 u64 scaled_div = 0; in kona_peri_clk_set_rate() local
1154 rate ? rate : 1, parent_rate, &scaled_div); in kona_peri_clk_set_rate()
1161 &data->trig, scaled_div); in kona_peri_clk_set_rate()