Lines Matching refs:fll_div
2807 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref,
2817 fll_div->fll_refclk_div = 0;
2820 fll_div->fll_refclk_div++;
2845 fll_div->fll_outdiv = div - 1;
2852 fll_div->fll_fratio = fll_fratios[i].fll_fratio;
2862 fll_div->n = target / (fratio * Fref);
2865 fll_div->theta = 0;
2866 fll_div->lambda = 1;
2870 fll_div->theta = (target - (fll_div->n * fratio * Fref))
2872 fll_div->lambda = (fratio * Fref) / gcd_fll;
2876 fll_div->n, fll_div->theta, fll_div->lambda);
2878 fll_div->fll_fratio, fll_div->fll_outdiv,
2879 fll_div->fll_refclk_div);
2888 struct _fll_div fll_div;
2912 ret = fll_factors(&fll_div, Fref, Fout);
2940 if (fll_div.theta)
2949 (fll_div.fll_outdiv << WM8962_FLL_OUTDIV_SHIFT) |
2950 (fll_div.fll_refclk_div));
2953 WM8962_FLL_FRATIO_MASK, fll_div.fll_fratio);
2955 snd_soc_component_write(component, WM8962_FLL_CONTROL_6, fll_div.theta);
2956 snd_soc_component_write(component, WM8962_FLL_CONTROL_7, fll_div.lambda);
2957 snd_soc_component_write(component, WM8962_FLL_CONTROL_8, fll_div.n);