Lines Matching refs:div
24 int div; in get_div() local
26 div = div_frac_get(rate, parent_rate, divider->width, in get_div()
29 if (div < 0) in get_div()
32 return div; in get_div()
40 int div, mul; in clk_frac_div_recalc_rate() local
49 div = (reg >> divider->shift) & div_mask(divider); in clk_frac_div_recalc_rate()
52 div += mul; in clk_frac_div_recalc_rate()
55 rate += div - 1; in clk_frac_div_recalc_rate()
56 do_div(rate, div); in clk_frac_div_recalc_rate()
65 int div, mul; in clk_frac_div_round_rate() local
71 div = get_div(divider, rate, output_rate); in clk_frac_div_round_rate()
72 if (div < 0) in clk_frac_div_round_rate()
77 return DIV_ROUND_UP(output_rate * mul, div + mul); in clk_frac_div_round_rate()
84 int div; in clk_frac_div_set_rate() local
88 div = get_div(divider, rate, parent_rate); in clk_frac_div_set_rate()
89 if (div < 0) in clk_frac_div_set_rate()
90 return div; in clk_frac_div_set_rate()
97 val |= div << divider->shift; in clk_frac_div_set_rate()
100 if (div) in clk_frac_div_set_rate()
174 { .val = 0, .div = 2 },
175 { .val = 1, .div = 1 },
176 { .val = 0, .div = 0 },