Lines Matching refs:div
72 int div, mul; in clk_frac_div_recalc_rate() local
76 div = reg & div_mask(divider); in clk_frac_div_recalc_rate()
79 div += mul; in clk_frac_div_recalc_rate()
82 rate += div - 1; in clk_frac_div_recalc_rate()
83 do_div(rate, div); in clk_frac_div_recalc_rate()
92 int div, mul; in clk_frac_div_round_rate() local
98 div = get_div(divider, rate, output_rate); in clk_frac_div_round_rate()
99 if (div < 0) in clk_frac_div_round_rate()
104 return DIV_ROUND_UP(output_rate * mul, div + mul); in clk_frac_div_round_rate()
111 int div; in clk_frac_div_set_rate() local
115 div = get_div(divider, rate, parent_rate); in clk_frac_div_set_rate()
116 if (div < 0) in clk_frac_div_set_rate()
117 return div; in clk_frac_div_set_rate()
124 val |= div << divider->shift; in clk_frac_div_set_rate()
127 if (div) in clk_frac_div_set_rate()