Lines Matching refs:freq_in
2123 int freq_in, int freq_out) in wm8994_get_fll_config() argument
2128 pr_debug("FLL input=%dHz, output=%dHz\n", freq_in, freq_out); in wm8994_get_fll_config()
2132 while (freq_in > 13500000) { in wm8994_get_fll_config()
2134 freq_in /= 2; in wm8994_get_fll_config()
2139 pr_debug("CLK_REF_DIV=%d, Fref=%dHz\n", fll->clk_ref_div, freq_in); in wm8994_get_fll_config()
2151 if (freq_in > 1000000) { in wm8994_get_fll_config()
2153 } else if (freq_in > 256000) { in wm8994_get_fll_config()
2155 freq_in *= 2; in wm8994_get_fll_config()
2156 } else if (freq_in > 128000) { in wm8994_get_fll_config()
2158 freq_in *= 4; in wm8994_get_fll_config()
2159 } else if (freq_in > 64000) { in wm8994_get_fll_config()
2161 freq_in *= 8; in wm8994_get_fll_config()
2164 freq_in *= 16; in wm8994_get_fll_config()
2166 pr_debug("FLL_FRATIO=%d, Fref=%dHz\n", fll->fll_fratio, freq_in); in wm8994_get_fll_config()
2169 Ndiv = freq_out / freq_in; in wm8994_get_fll_config()
2172 Nmod = freq_out % freq_in; in wm8994_get_fll_config()
2180 do_div(Kpart, freq_in); in wm8994_get_fll_config()
2195 gcd_fll = gcd(freq_out, freq_in); in wm8994_get_fll_config()
2197 fll->k = (freq_out - (freq_in * fll->n)) / gcd_fll; in wm8994_get_fll_config()
2198 fll->lambda = freq_in / gcd_fll; in wm8994_get_fll_config()
2206 unsigned int freq_in, unsigned int freq_out) in _wm8994_set_fll() argument
2248 freq_in = 12000000; in _wm8994_set_fll()
2257 wm8994->fll[id].in == freq_in && wm8994->fll[id].out == freq_out) in _wm8994_set_fll()
2265 ret = wm8994_get_fll_config(control, &fll, freq_in, freq_out); in _wm8994_set_fll()
2313 freq_in == freq_out && freq_out) { in _wm8994_set_fll()
2433 wm8994->fll[id].in = freq_in; in _wm8994_set_fll()
2482 unsigned int freq_in, unsigned int freq_out) in wm8994_set_fll() argument
2484 return _wm8994_set_fll(dai->component, id, src, freq_in, freq_out); in wm8994_set_fll()