Lines Matching refs:fll_div
2786 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref,
2796 fll_div->fll_refclk_div = 0;
2799 fll_div->fll_refclk_div++;
2824 fll_div->fll_outdiv = div - 1;
2831 fll_div->fll_fratio = fll_fratios[i].fll_fratio;
2841 fll_div->n = target / (fratio * Fref);
2844 fll_div->theta = 0;
2845 fll_div->lambda = 1;
2849 fll_div->theta = (target - (fll_div->n * fratio * Fref))
2851 fll_div->lambda = (fratio * Fref) / gcd_fll;
2855 fll_div->n, fll_div->theta, fll_div->lambda);
2857 fll_div->fll_fratio, fll_div->fll_outdiv,
2858 fll_div->fll_refclk_div);
2867 struct _fll_div fll_div;
2891 ret = fll_factors(&fll_div, Fref, Fout);
2915 if (fll_div.theta)
2924 (fll_div.fll_outdiv << WM8962_FLL_OUTDIV_SHIFT) |
2925 (fll_div.fll_refclk_div));
2928 WM8962_FLL_FRATIO_MASK, fll_div.fll_fratio);
2930 snd_soc_component_write(component, WM8962_FLL_CONTROL_6, fll_div.theta);
2931 snd_soc_component_write(component, WM8962_FLL_CONTROL_7, fll_div.lambda);
2932 snd_soc_component_write(component, WM8962_FLL_CONTROL_8, fll_div.n);