Lines Matching refs:fll_div
462 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
481 fll_div->fll_clk_ref_div = div / 2; in fll_factors()
500 fll_div->fll_outdiv = div; in fll_factors()
507 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors()
520 fll_div->n = Ndiv; in fll_factors()
535 fll_div->k = K / 10; in fll_factors()
538 fll_div->n, fll_div->k, in fll_factors()
539 fll_div->fll_fratio, fll_div->fll_outdiv, in fll_factors()
540 fll_div->fll_clk_ref_div); in fll_factors()
550 struct _fll_div fll_div; in wm9081_set_fll() local
567 ret = fll_factors(&fll_div, Fref, Fout); in wm9081_set_fll()
597 if (fll_div.k) in wm9081_set_fll()
604 (fll_div.fll_outdiv << WM9081_FLL_OUTDIV_SHIFT) | in wm9081_set_fll()
605 (fll_div.fll_fratio << WM9081_FLL_FRATIO_SHIFT)); in wm9081_set_fll()
606 snd_soc_component_write(component, WM9081_FLL_CONTROL_3, fll_div.k); in wm9081_set_fll()
610 reg4 |= fll_div.n << WM9081_FLL_N_SHIFT; in wm9081_set_fll()
614 reg5 |= fll_div.fll_clk_ref_div << WM9081_FLL_CLK_REF_DIV_SHIFT; in wm9081_set_fll()