Searched refs:fratio (Results 1 - 6 of 6) sorted by relevance

/linux-4.4.14/sound/soc/codecs/
H A Dwm8400.c863 u16 fratio; member in struct:fll_factors
895 factors->fratio = 9; fll_factors()
897 factors->fratio = 0; fll_factors()
902 factors->fratio--; fll_factors()
904 factors->fratio++; fll_factors()
906 if (factors->fratio < 1 || factors->fratio > 8) { fll_factors()
912 factors->n = target / (Fref * factors->fratio); fll_factors()
913 Nmod = target % (Fref * factors->fratio); fll_factors()
919 do_div(Kpart, (Fref * factors->fratio)); fll_factors()
932 factors->n, factors->k, factors->fratio, factors->outdiv); fll_factors()
977 reg |= WM8400_FLL_FRAC | factors.fratio; wm8400_set_dai_pll()
H A Darizona.c1800 u16 fratio; member in struct:__anon15448
1826 int fratio; member in struct:arizona_fll_cfg
1859 static int arizona_find_fratio(unsigned int Fref, int *fratio) arizona_find_fratio() argument
1866 if (fratio) arizona_find_fratio()
1867 *fratio = fll_fratios[i].fratio; arizona_find_fratio()
1896 init_ratio = arizona_find_fratio(Fref, &cfg->fratio); arizona_calc_fratio()
1918 cfg->fratio = init_ratio - 1; arizona_calc_fratio()
1932 cfg->fratio = ratio - 1; arizona_calc_fratio()
1940 cfg->fratio = ratio - 1; arizona_calc_fratio()
1952 return cfg->fratio + 1; arizona_calc_fratio()
2022 cfg->fratio, cfg->fratio, cfg->outdiv, cfg->refdiv); arizona_calc_fll()
2039 cfg->fratio << ARIZONA_FLL1_FRATIO_SHIFT); arizona_apply_fll()
H A Dwm2200.c1865 unsigned int fratio, gcd_fll; fll_factors() local
1906 fratio = fll_fratios[i].ratio; fll_factors()
1915 fll_div->n = target / (fratio * Fref); fll_factors()
1921 gcd_fll = gcd(target, fratio * Fref); fll_factors()
1923 fll_div->theta = (target - (fll_div->n * fratio * Fref)) fll_factors()
1925 fll_div->lambda = (fratio * Fref) / gcd_fll; fll_factors()
1931 fll_div->fll_fratio, fratio, fll_div->fll_outdiv, fll_factors()
H A Dwm5100.c1685 unsigned int fratio, gcd_fll; fll_factors() local
1726 fratio = fll_fratios[i].ratio; fll_factors()
1735 fll_div->n = target / (fratio * Fref); fll_factors()
1741 gcd_fll = gcd(target, fratio * Fref); fll_factors()
1743 fll_div->theta = (target - (fll_div->n * fratio * Fref)) fll_factors()
1745 fll_div->lambda = (fratio * Fref) / gcd_fll; fll_factors()
1751 fll_div->fll_fratio, fratio, fll_div->fll_outdiv, fll_factors()
H A Dwm8962.c2741 unsigned int fratio, gcd_fll; fll_factors() local
2782 fratio = fll_fratios[i].ratio; fll_factors()
2791 fll_div->n = target / (fratio * Fref); fll_factors()
2797 gcd_fll = gcd(target, fratio * Fref); fll_factors()
2799 fll_div->theta = (target - (fll_div->n * fratio * Fref)) fll_factors()
2801 fll_div->lambda = (fratio * Fref) / gcd_fll; fll_factors()
H A Dwm8996.c1922 unsigned int fratio, gcd_fll; fll_factors() local
1973 fratio = fll_fratios[i].ratio; fll_factors()
1982 fll_div->n = target / (fratio * Fref); fll_factors()
1988 gcd_fll = gcd(target, fratio * Fref); fll_factors()
1990 fll_div->theta = (target - (fll_div->n * fratio * Fref)) fll_factors()
1992 fll_div->lambda = (fratio * Fref) / gcd_fll; fll_factors()

Completed in 221 milliseconds