Lines Matching refs:i
75 int i; in rl6231_calc_dmic_clk() local
82 for (i = 0; i < ARRAY_SIZE(div); i++) { in rl6231_calc_dmic_clk()
83 if ((div[i] % 3) == 0) in rl6231_calc_dmic_clk()
86 if (3072000 * div[i] >= rate) in rl6231_calc_dmic_clk()
87 return i; in rl6231_calc_dmic_clk()
122 int i, k, red, n_t, pll_out, in_t, out_t; in rl6231_pll_calc() local
130 for (i = 0; i < ARRAY_SIZE(pll_preset_table); i++) { in rl6231_pll_calc()
131 if (freq_in == pll_preset_table[i].pll_in && in rl6231_pll_calc()
132 freq_out == pll_preset_table[i].pll_out) { in rl6231_pll_calc()
133 k = pll_preset_table[i].k; in rl6231_pll_calc()
134 m = pll_preset_table[i].m; in rl6231_pll_calc()
135 n = pll_preset_table[i].n; in rl6231_pll_calc()
136 bypass = pll_preset_table[i].m_bp; in rl6231_pll_calc()
191 int i, pd[] = {1, 2, 3, 4, 6, 8, 12, 16}; in rl6231_get_clk_info() local
197 for (i = 0; i < ARRAY_SIZE(pd); i++) in rl6231_get_clk_info()
198 if (sclk == rate * pd[i]) in rl6231_get_clk_info()
199 return i; in rl6231_get_clk_info()