Lines Matching refs:fll_div
972 static inline int fll_factors(struct _fll_div *fll_div, unsigned int input, in fll_factors() argument
979 fll_div->div = 0x4; in fll_factors()
981 fll_div->div = 0x3; in fll_factors()
983 fll_div->div = 0x2; in fll_factors()
985 fll_div->div = 0x1; in fll_factors()
992 fll_div->ratio = 1; in fll_factors()
994 fll_div->ratio = 8; in fll_factors()
996 t1 = output * (1 << (fll_div->div + 1)); in fll_factors()
997 t2 = input * fll_div->ratio; in fll_factors()
999 fll_div->n = t1 / t2; in fll_factors()
1013 fll_div->k = K; in fll_factors()
1015 fll_div->k = 0; in fll_factors()
1027 struct _fll_div fll_div; in wm8350_set_fll() local
1041 ret = fll_factors(&fll_div, freq_in, freq_out); in wm8350_set_fll()
1046 freq_in, freq_out, fll_div.n, fll_div.k, fll_div.div, in wm8350_set_fll()
1047 fll_div.ratio); in wm8350_set_fll()
1053 fll_1 | (fll_div.div << 8) | 0x50); in wm8350_set_fll()
1055 (fll_div.ratio << 11) | (fll_div. in wm8350_set_fll()
1057 snd_soc_component_write(component, WM8350_FLL_CONTROL_3, fll_div.k); in wm8350_set_fll()
1061 fll_4 | (fll_div.k ? WM8350_FLL_FRAC : 0) | in wm8350_set_fll()
1062 (fll_div.ratio == 8 ? WM8350_FLL_SLOW_LOCK_REF : 0)); in wm8350_set_fll()