Home
last modified time | relevance | path

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

/Linux-v6.6/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.c3392 u16 fratio; member
3443 static int madera_find_sync_fratio(unsigned int fref, int *fratio) in madera_find_sync_fratio() argument
3450 if (fratio) in madera_find_sync_fratio()
3451 *fratio = fll_sync_fratios[i].fratio; in madera_find_sync_fratio()
3461 int *fratio) in madera_find_main_fratio() argument
3468 if (fratio) in madera_find_main_fratio()
3469 *fratio = ratio - 1; in madera_find_main_fratio()
3475 bool sync, int *fratio) in madera_find_fratio() argument
3482 return madera_find_sync_fratio(fref, fratio); in madera_find_fratio()
3485 return madera_find_sync_fratio(fref, fratio); in madera_find_fratio()
[all …]
Darizona.c2056 u16 fratio; member
2101 int fratio; member
2134 static int arizona_find_fratio(unsigned int Fref, int *fratio) in arizona_find_fratio() argument
2141 if (fratio) in arizona_find_fratio()
2142 *fratio = fll_fratios[i].fratio; in arizona_find_fratio()
2171 init_ratio = arizona_find_fratio(Fref, &cfg->fratio); in arizona_calc_fratio()
2193 cfg->fratio = init_ratio - 1; in arizona_calc_fratio()
2208 cfg->fratio = ratio - 1; in arizona_calc_fratio()
2234 cfg->fratio = ratio - 1; in arizona_calc_fratio()
2252 return cfg->fratio + 1; in arizona_calc_fratio()
[all …]
Dwm2200.c1849 unsigned int fratio, gcd_fll; in fll_factors() local
1890 fratio = fll_fratios[i].ratio; in fll_factors()
1899 fll_div->n = target / (fratio * Fref); in fll_factors()
1905 gcd_fll = gcd(target, fratio * Fref); in fll_factors()
1907 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors()
1909 fll_div->lambda = (fratio * Fref) / gcd_fll; in fll_factors()
1915 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.c2807 unsigned int fratio, gcd_fll; in fll_factors() local
2848 fratio = fll_fratios[i].ratio; in fll_factors()
2857 fll_div->n = target / (fratio * Fref); in fll_factors()
2863 gcd_fll = gcd(target, fratio * Fref); in fll_factors()
2865 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors()
2867 fll_div->lambda = (fratio * Fref) / gcd_fll; in fll_factors()
Dmadera.h153 int fratio; member
/Linux-v6.6/arch/x86/kernel/cpu/
Daperfmperf.c152 int fratio, delta_fratio, found; in knl_set_max_freq_ratio() local
166 fratio = (msr >> 8) & 0xFF; in knl_set_max_freq_ratio()
171 *turbo_freq = fratio; in knl_set_max_freq_ratio()
179 fratio -= delta_fratio; in knl_set_max_freq_ratio()