Home
last modified time | relevance | path

Searched refs:fratio (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.10/sound/soc/codecs/
Dwm8400.c846 u16 fratio; member
878 factors->fratio = 9; in fll_factors()
880 factors->fratio = 0; in fll_factors()
885 factors->fratio--; in fll_factors()
887 factors->fratio++; in fll_factors()
889 if (factors->fratio < 1 || factors->fratio > 8) { in fll_factors()
895 factors->n = target / (Fref * factors->fratio); in fll_factors()
896 Nmod = target % (Fref * factors->fratio); in fll_factors()
902 do_div(Kpart, (Fref * factors->fratio)); in fll_factors()
915 factors->n, factors->k, factors->fratio, factors->outdiv); in fll_factors()
[all …]
Dmadera.c3386 u16 fratio; member
3437 static int madera_find_sync_fratio(unsigned int fref, int *fratio) in madera_find_sync_fratio() argument
3444 if (fratio) in madera_find_sync_fratio()
3445 *fratio = fll_sync_fratios[i].fratio; in madera_find_sync_fratio()
3455 int *fratio) in madera_find_main_fratio() argument
3462 if (fratio) in madera_find_main_fratio()
3463 *fratio = ratio - 1; in madera_find_main_fratio()
3469 bool sync, int *fratio) in madera_find_fratio() argument
3476 return madera_find_sync_fratio(fref, fratio); in madera_find_fratio()
3479 return madera_find_sync_fratio(fref, fratio); in madera_find_fratio()
[all …]
Darizona.c2055 u16 fratio; member
2100 int fratio; member
2133 static int arizona_find_fratio(unsigned int Fref, int *fratio) in arizona_find_fratio() argument
2140 if (fratio) in arizona_find_fratio()
2141 *fratio = fll_fratios[i].fratio; in arizona_find_fratio()
2170 init_ratio = arizona_find_fratio(Fref, &cfg->fratio); in arizona_calc_fratio()
2192 cfg->fratio = init_ratio - 1; in arizona_calc_fratio()
2207 cfg->fratio = ratio - 1; in arizona_calc_fratio()
2233 cfg->fratio = ratio - 1; in arizona_calc_fratio()
2251 return cfg->fratio + 1; in arizona_calc_fratio()
[all …]
Dwm2200.c1862 unsigned int fratio, gcd_fll; in fll_factors() local
1903 fratio = fll_fratios[i].ratio; in fll_factors()
1912 fll_div->n = target / (fratio * Fref); in fll_factors()
1918 gcd_fll = gcd(target, fratio * Fref); in fll_factors()
1920 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors()
1922 fll_div->lambda = (fratio * Fref) / gcd_fll; in fll_factors()
1928 fll_div->fll_fratio, fratio, fll_div->fll_outdiv, in fll_factors()
Dwm5100.c1682 unsigned int fratio, gcd_fll; in fll_factors() local
1723 fratio = fll_fratios[i].ratio; in fll_factors()
1732 fll_div->n = target / (fratio * Fref); in fll_factors()
1738 gcd_fll = gcd(target, fratio * Fref); in fll_factors()
1740 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors()
1742 fll_div->lambda = (fratio * Fref) / gcd_fll; in fll_factors()
1748 fll_div->fll_fratio, fratio, fll_div->fll_outdiv, in fll_factors()
Dwm8996.c1919 unsigned int fratio, gcd_fll; in fll_factors() local
1970 fratio = fll_fratios[i].ratio; in fll_factors()
1979 fll_div->n = target / (fratio * Fref); in fll_factors()
1985 gcd_fll = gcd(target, fratio * Fref); 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()
Dwm8962.c2738 unsigned int fratio, gcd_fll; in fll_factors() local
2779 fratio = fll_fratios[i].ratio; in fll_factors()
2788 fll_div->n = target / (fratio * Fref); in fll_factors()
2794 gcd_fll = gcd(target, fratio * Fref); in fll_factors()
2796 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors()
2798 fll_div->lambda = (fratio * Fref) / gcd_fll; in fll_factors()
Dmadera.h153 int fratio; member
/Linux-v5.10/arch/x86/kernel/
Dsmpboot.c1891 int fratio, delta_fratio, found; in knl_set_max_freq_ratio() local
1905 fratio = (msr >> 8) & 0xFF; in knl_set_max_freq_ratio()
1910 *turbo_freq = fratio; in knl_set_max_freq_ratio()
1918 fratio -= delta_fratio; in knl_set_max_freq_ratio()