Lines Matching refs:fll_div

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