Lines Matching refs:reg_div
50 static inline u64 scaled_div_value(struct bcm_clk_div *div, u32 reg_div) in scaled_div_value() argument
52 return (u64)reg_div + ((u64)1 << div->u.s.frac_width); in scaled_div_value()
86 u32 reg_div; in scaled_div_max() local
91 reg_div = ((u32)1 << div->u.s.width) - 1; in scaled_div_max()
93 return scaled_div_value(div, reg_div); in scaled_div_max()
560 u32 reg_div; in divider_read_scaled() local
570 reg_div = bitfield_extract(reg_val, div->u.s.shift, div->u.s.width); in divider_read_scaled()
573 return scaled_div_value(div, reg_div); in divider_read_scaled()
587 u32 reg_div; in __div_commit() local
600 reg_div = bitfield_extract(reg_val, div->u.s.shift, 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()
620 reg_div); in __div_commit()