Lines Matching refs:reg_div
58 static inline u64 scaled_div_value(struct bcm_clk_div *div, u32 reg_div) in scaled_div_value() argument
60 return (u64)reg_div + ((u64)1 << div->u.s.frac_width); in scaled_div_value()
94 u32 reg_div; in scaled_div_max() local
99 reg_div = ((u32)1 << div->u.s.width) - 1; in scaled_div_max()
101 return scaled_div_value(div, reg_div); in scaled_div_max()
568 u32 reg_div; in divider_read_scaled() local
578 reg_div = bitfield_extract(reg_val, div->u.s.shift, div->u.s.width); in divider_read_scaled()
581 return scaled_div_value(div, reg_div); in divider_read_scaled()
595 u32 reg_div; in __div_commit() local
608 reg_div = bitfield_extract(reg_val, div->u.s.shift, 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()
628 reg_div); in __div_commit()