Lines Matching refs:scaled_div
109 divider(struct bcm_clk_div *div, u64 scaled_div) in divider() argument
111 BUG_ON(scaled_div < scaled_div_min(div)); in divider()
112 BUG_ON(scaled_div > scaled_div_max(div)); in divider()
114 return (u32)(scaled_div - ((u64)1 << div->u.s.frac_width)); in divider()
606 if (div->u.s.scaled_div == BAD_SCALED_DIV_VALUE) { in __div_commit()
610 div->u.s.scaled_div = scaled_div_value(div, reg_div); in __div_commit()
616 reg_div = divider(div, div->u.s.scaled_div); in __div_commit()
657 u64 scaled_div) in divider_write() argument
665 previous = div->u.s.scaled_div; in divider_write()
666 if (previous == scaled_div) in divider_write()
669 div->u.s.scaled_div = scaled_div; in divider_write()
680 div->u.s.scaled_div = previous; /* Revert the change */ in divider_write()
698 u64 scaled_div; in clk_recalc_rate() local
721 scaled_div = divider_read_scaled(ccu, pre_div); in clk_recalc_rate()
723 scaled_div); in clk_recalc_rate()
733 scaled_div = divider_read_scaled(ccu, div); in clk_recalc_rate()
734 result = DIV_ROUND_CLOSEST_ULL(scaled_parent_rate, scaled_div); in clk_recalc_rate()
751 u64 *scaled_div) in round_rate() argument
808 if (scaled_div) in round_rate()
809 *scaled_div = best_scaled_div; in round_rate()
1136 u64 scaled_div = 0; in kona_peri_clk_set_rate() local
1162 rate ? rate : 1, parent_rate, &scaled_div); in kona_peri_clk_set_rate()
1169 &data->trig, scaled_div); in kona_peri_clk_set_rate()