Lines Matching refs:frac
84 u8 frac; in clk_pfdv2_recalc_rate() local
86 frac = (readl_relaxed(pfd->reg) >> pfd->frac_off) in clk_pfdv2_recalc_rate()
89 if (!frac) { in clk_pfdv2_recalc_rate()
96 do_div(tmp, frac); in clk_pfdv2_recalc_rate()
112 u8 frac; in clk_pfdv2_determine_rate() local
119 frac = tmp; in clk_pfdv2_determine_rate()
121 if (frac < 12) in clk_pfdv2_determine_rate()
122 frac = 12; in clk_pfdv2_determine_rate()
123 else if (frac > 35) in clk_pfdv2_determine_rate()
124 frac = 35; in clk_pfdv2_determine_rate()
128 do_div(tmp, frac); in clk_pfdv2_determine_rate()
159 u8 frac; in clk_pfdv2_set_rate() local
178 frac = tmp; in clk_pfdv2_set_rate()
179 if (frac < 12) in clk_pfdv2_set_rate()
180 frac = 12; in clk_pfdv2_set_rate()
181 else if (frac > 35) in clk_pfdv2_set_rate()
182 frac = 35; in clk_pfdv2_set_rate()
187 val |= frac << pfd->frac_off; in clk_pfdv2_set_rate()