Lines Matching refs:fll_div
382 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
392 fll_div->fll_clk_ref_div = 0; in fll_factors()
395 fll_div->fll_clk_ref_div++; in fll_factors()
421 fll_div->fll_outdiv = div; in fll_factors()
428 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors()
441 fll_div->n = Ndiv; in fll_factors()
456 fll_div->k = K / 10; in fll_factors()
459 fll_div->n, fll_div->k, in fll_factors()
460 fll_div->fll_fratio, fll_div->fll_outdiv, in fll_factors()
461 fll_div->fll_clk_ref_div); in fll_factors()
472 struct _fll_div fll_div; in _wm8993_set_fll() local
493 ret = fll_factors(&fll_div, Fref, Fout); in _wm8993_set_fll()
524 if (fll_div.k) in _wm8993_set_fll()
531 (fll_div.fll_outdiv << WM8993_FLL_OUTDIV_SHIFT) | in _wm8993_set_fll()
532 (fll_div.fll_fratio << WM8993_FLL_FRATIO_SHIFT)); in _wm8993_set_fll()
533 snd_soc_component_write(component, WM8993_FLL_CONTROL_3, fll_div.k); in _wm8993_set_fll()
537 reg4 |= fll_div.n << WM8993_FLL_N_SHIFT; in _wm8993_set_fll()
541 reg5 |= fll_div.fll_clk_ref_div << WM8993_FLL_CLK_REF_DIV_SHIFT; in _wm8993_set_fll()