Lines Matching refs:fll_div
1914 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref,
1924 fll_div->fll_refclk_div = 0;
1927 fll_div->fll_refclk_div++;
1942 fll_div->fll_loop_gain = 5;
1944 fll_div->fll_loop_gain = 0;
1947 fll_div->fll_ref_freq = 0;
1949 fll_div->fll_ref_freq = 1;
1962 fll_div->fll_outdiv = div - 1;
1969 fll_div->fll_fratio = fll_fratios[i].fll_fratio;
1979 fll_div->n = target / (fratio * Fref);
1982 fll_div->theta = 0;
1983 fll_div->lambda = 0;
1987 fll_div->theta = (target - (fll_div->n * fratio * Fref))
1989 fll_div->lambda = (fratio * Fref) / gcd_fll;
1993 fll_div->n, fll_div->theta, fll_div->lambda);
1995 fll_div->fll_fratio, fll_div->fll_outdiv,
1996 fll_div->fll_refclk_div);
2006 struct _fll_div fll_div;
2029 ret = fll_factors(&fll_div, Fref, Fout);
2051 reg |= fll_div.fll_refclk_div << WM8996_FLL_REFCLK_DIV_SHIFT;
2052 reg |= fll_div.fll_ref_freq << WM8996_FLL_REF_FREQ_SHIFT;
2059 if (fll_div.theta || fll_div.lambda)
2068 (fll_div.fll_outdiv << WM8996_FLL_OUTDIV_SHIFT) |
2069 (fll_div.fll_fratio));
2071 snd_soc_component_write(component, WM8996_FLL_CONTROL_3, fll_div.theta);
2075 (fll_div.n << WM8996_FLL_N_SHIFT) |
2076 fll_div.fll_loop_gain);
2078 snd_soc_component_write(component, WM8996_FLL_EFS_1, fll_div.lambda);