Lines Matching refs:scaled_div
108 divider(struct bcm_clk_div *div, u64 scaled_div) in divider() argument
110 BUG_ON(scaled_div < scaled_div_min(div)); in divider()
111 BUG_ON(scaled_div > scaled_div_max(div)); in divider()
113 return (u32)(scaled_div - ((u64)1 << div->u.s.frac_width)); in divider()
605 if (div->u.s.scaled_div == BAD_SCALED_DIV_VALUE) { in __div_commit()
609 div->u.s.scaled_div = scaled_div_value(div, reg_div); in __div_commit()
615 reg_div = divider(div, div->u.s.scaled_div); in __div_commit()
656 u64 scaled_div) in divider_write() argument
664 previous = div->u.s.scaled_div; in divider_write()
665 if (previous == scaled_div) in divider_write()
668 div->u.s.scaled_div = scaled_div; in divider_write()
679 div->u.s.scaled_div = previous; /* Revert the change */ in divider_write()
697 u64 scaled_div; in clk_recalc_rate() local
720 scaled_div = divider_read_scaled(ccu, pre_div); in clk_recalc_rate()
722 scaled_div); in clk_recalc_rate()
732 scaled_div = divider_read_scaled(ccu, div); in clk_recalc_rate()
733 result = DIV_ROUND_CLOSEST_ULL(scaled_parent_rate, scaled_div); in clk_recalc_rate()
750 u64 *scaled_div) in round_rate() argument
807 if (scaled_div) in round_rate()
808 *scaled_div = best_scaled_div; in round_rate()
1135 u64 scaled_div = 0; in kona_peri_clk_set_rate() local
1161 rate ? rate : 1, parent_rate, &scaled_div); in kona_peri_clk_set_rate()
1168 &data->trig, scaled_div); in kona_peri_clk_set_rate()