Home
last modified time | relevance | path

Searched refs:Ndiv (Results 1 – 19 of 19) sorted by relevance

/sound/soc/codecs/
Dwm8940.c532 unsigned int K, Ndiv, Nmod; in pll_factors() local
534 Ndiv = target / source; in pll_factors()
536 if (Ndiv > 12) { in pll_factors()
540 Ndiv = target / source; in pll_factors()
541 } else if (Ndiv < 3) { in pll_factors()
545 Ndiv = target / source; in pll_factors()
546 } else if (Ndiv < 6) { in pll_factors()
550 Ndiv = target / source; in pll_factors()
554 if ((Ndiv < 6) || (Ndiv > 12)) in pll_factors()
557 Ndiv); in pll_factors()
[all …]
Dwm8974.c283 unsigned int K, Ndiv, Nmod; in pll_factors() local
288 Ndiv = target / source; in pll_factors()
289 if (Ndiv < 6) { in pll_factors()
292 Ndiv = target / source; in pll_factors()
296 if ((Ndiv < 6) || (Ndiv > 12)) in pll_factors()
299 Ndiv); in pll_factors()
301 pll_div->n = Ndiv; in pll_factors()
Dwm8510.c283 unsigned int K, Ndiv, Nmod; in pll_factors() local
285 Ndiv = target / source; in pll_factors()
286 if (Ndiv < 6) { in pll_factors()
289 Ndiv = target / source; in pll_factors()
293 if ((Ndiv < 6) || (Ndiv > 12)) in pll_factors()
296 Ndiv); in pll_factors()
298 pll_div.n = Ndiv; in pll_factors()
Dwm8804.c325 unsigned long int K, Ndiv, Nmod, tmp; in pll_factors() local
350 Ndiv = target / source; in pll_factors()
351 if (Ndiv < 5) { in pll_factors()
354 Ndiv = target / source; in pll_factors()
357 if (Ndiv < 5 || Ndiv > 13) { in pll_factors()
359 __func__, Ndiv); in pll_factors()
362 pll_div->n = Ndiv; in pll_factors()
Dwm8580.c373 unsigned int K, Ndiv, Nmod; in pll_factors() local
397 Ndiv = target / source; in pll_factors()
399 if (Ndiv < 5) { in pll_factors()
402 Ndiv = target / source; in pll_factors()
406 if ((Ndiv < 5) || (Ndiv > 13)) { in pll_factors()
408 "WM8580 N=%u outside supported range\n", Ndiv); in pll_factors()
412 pll_div->n = Ndiv; in pll_factors()
Dwm8960.c785 unsigned int K, Ndiv, Nmod; in pll_factors() local
792 Ndiv = target / source; in pll_factors()
793 if (Ndiv < 6) { in pll_factors()
796 Ndiv = target / source; in pll_factors()
800 if ((Ndiv < 6) || (Ndiv > 12)) { in pll_factors()
801 pr_err("WM8960 PLL: Unsupported N=%d\n", Ndiv); in pll_factors()
805 pll_div->n = Ndiv; in pll_factors()
Dwm8983.c810 unsigned long int K, Ndiv, Nmod; in pll_factors() local
813 Ndiv = target / source; in pll_factors()
814 if (Ndiv < 6) { in pll_factors()
817 Ndiv = target / source; in pll_factors()
820 if (Ndiv < 6 || Ndiv > 12) { in pll_factors()
822 " the recommended range: %lu\n", __func__, Ndiv); in pll_factors()
825 pll_div->n = Ndiv; in pll_factors()
Dwm8985.c788 unsigned long int K, Ndiv, Nmod; in pll_factors() local
791 Ndiv = target / source; in pll_factors()
792 if (Ndiv < 6) { in pll_factors()
795 Ndiv = target / source; in pll_factors()
798 if (Ndiv < 6 || Ndiv > 12) { in pll_factors()
800 " the recommended range: %lu\n", __func__, Ndiv); in pll_factors()
803 pll_div->n = Ndiv; in pll_factors()
Dwm8991.c916 unsigned int K, Ndiv, Nmod; in pll_factors() local
919 Ndiv = target / source; in pll_factors()
920 if (Ndiv < 6) { in pll_factors()
923 Ndiv = target / source; in pll_factors()
927 if ((Ndiv < 6) || (Ndiv > 12)) in pll_factors()
929 "WM8991 N value outwith recommended range! N = %d\n", Ndiv); in pll_factors()
931 pll_div->n = Ndiv; in pll_factors()
Dwm8990.c903 unsigned int K, Ndiv, Nmod; in pll_factors() local
906 Ndiv = target / source; in pll_factors()
907 if (Ndiv < 6) { in pll_factors()
910 Ndiv = target / source; in pll_factors()
914 if ((Ndiv < 6) || (Ndiv > 12)) in pll_factors()
916 "WM8990 N value outwith recommended range! N = %u\n", Ndiv); in pll_factors()
918 pll_div->n = Ndiv; in pll_factors()
Dwm8753.c716 unsigned int K, Ndiv, Nmod; in pll_factors() local
718 Ndiv = target / source; in pll_factors()
719 if (Ndiv < 6) { in pll_factors()
722 Ndiv = target / source; in pll_factors()
726 if ((Ndiv < 6) || (Ndiv > 12)) in pll_factors()
728 "wm8753: unsupported N = %u\n", Ndiv); in pll_factors()
730 pll_div->n = Ndiv; in pll_factors()
Dwm9713.c695 unsigned int K, Ndiv, Nmod, target; in pll_factors() local
725 Ndiv = target / source; in pll_factors()
726 if ((Ndiv < 5) || (Ndiv > 12)) in pll_factors()
729 Ndiv); in pll_factors()
731 pll_div->n = Ndiv; in pll_factors()
Dwm8955.c150 unsigned int K, Ndiv, Nmod, target; in wm8995_pll_factors() local
171 Ndiv = target / Fref; in wm8995_pll_factors()
173 pll->n = Ndiv; in wm8995_pll_factors()
Dwm8900.c692 unsigned int K, Ndiv, Nmod, target; in fll_factors() local
724 Ndiv = target / Fref; in fll_factors()
731 fll_div->n = Ndiv / fll_div->fll_ratio; in fll_factors()
Dwm9081.c471 unsigned int K, Ndiv, Nmod, target; in fll_factors() local
523 Ndiv = target / Fref; in fll_factors()
525 fll_div->n = Ndiv; in fll_factors()
Dwm8993.c389 unsigned int K, Ndiv, Nmod, target; in fll_factors() local
442 Ndiv = target / Fref; in fll_factors()
444 fll_div->n = Ndiv; in fll_factors()
Dwm8995.c1732 unsigned int K, Ndiv, Nmod; in wm8995_get_fll_config() local
1775 Ndiv = freq_out / freq_in; in wm8995_get_fll_config()
1777 fll->n = Ndiv; in wm8995_get_fll_config()
Dwm8904.c1592 unsigned int K, Ndiv, Nmod, target; in fll_factors() local
1644 Ndiv = target / Fref; in fll_factors()
1646 fll_div->n = Ndiv; in fll_factors()
Dwm8994.c2049 unsigned int K, Ndiv, Nmod, gcd_fll; in wm8994_get_fll_config() local
2092 Ndiv = freq_out / freq_in; in wm8994_get_fll_config()
2094 fll->n = Ndiv; in wm8994_get_fll_config()