Lines Matching refs:div
72 static const int div[] = {2, 3, 4, 6, 8, 12}; in rl6231_calc_dmic_clk() local
75 if (rate < 1000000 * div[0]) { in rl6231_calc_dmic_clk()
80 for (i = 0; i < ARRAY_SIZE(div); i++) { in rl6231_calc_dmic_clk()
81 if ((div[i] % 3) == 0) in rl6231_calc_dmic_clk()
84 if (1536000 * div[i] >= rate) in rl6231_calc_dmic_clk()
112 unsigned int max, unsigned int div) in find_best_div() argument
123 while (div % d != 0) in find_best_div()
146 unsigned int red, pll_out, in_t, out_t, div, div_t; in rl6231_pll_calc() local
175 div = find_best_div(freq_in, f_max, div_t); in rl6231_pll_calc()
176 f_in = freq_in / div; in rl6231_pll_calc()
177 f_out = freq_out / div; in rl6231_pll_calc()