Home
last modified time | relevance | path

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

/linux-4.1.27/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.c351 unsigned long int K, Ndiv, Nmod, tmp; in pll_factors() local
376 Ndiv = target / source; in pll_factors()
377 if (Ndiv < 5) { in pll_factors()
380 Ndiv = target / source; in pll_factors()
383 if (Ndiv < 5 || Ndiv > 13) { in pll_factors()
385 __func__, Ndiv); in pll_factors()
388 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.c825 unsigned int K, Ndiv, Nmod; in pll_factors() local
832 Ndiv = target / source; in pll_factors()
833 if (Ndiv < 6) { in pll_factors()
836 Ndiv = target / source; in pll_factors()
840 if ((Ndiv < 6) || (Ndiv > 12)) { in pll_factors()
841 pr_err("WM8960 PLL: Unsupported N=%d\n", Ndiv); in pll_factors()
845 pll_div->n = Ndiv; in pll_factors()
Dwm8990.c904 unsigned int K, Ndiv, Nmod; in pll_factors() local
907 Ndiv = target / source; in pll_factors()
908 if (Ndiv < 6) { in pll_factors()
911 Ndiv = target / source; in pll_factors()
915 if ((Ndiv < 6) || (Ndiv > 12)) in pll_factors()
917 "WM8990 N value outwith recommended range! N = %u\n", Ndiv); in pll_factors()
919 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.c917 unsigned int K, Ndiv, Nmod; in pll_factors() local
920 Ndiv = target / source; in pll_factors()
921 if (Ndiv < 6) { in pll_factors()
924 Ndiv = target / source; in pll_factors()
928 if ((Ndiv < 6) || (Ndiv > 12)) in pll_factors()
930 "WM8991 N value outwith recommended range! N = %d\n", Ndiv); in pll_factors()
932 pll_div->n = Ndiv; in pll_factors()
Dwm8753.c717 unsigned int K, Ndiv, Nmod; in pll_factors() local
719 Ndiv = target / source; in pll_factors()
720 if (Ndiv < 6) { in pll_factors()
723 Ndiv = target / source; in pll_factors()
727 if ((Ndiv < 6) || (Ndiv > 12)) in pll_factors()
729 "wm8753: unsupported N = %u\n", Ndiv); in pll_factors()
731 pll_div->n = Ndiv; in pll_factors()
Dwm9713.c726 unsigned int K, Ndiv, Nmod, target; in pll_factors() local
756 Ndiv = target / source; in pll_factors()
757 if ((Ndiv < 5) || (Ndiv > 12)) in pll_factors()
760 Ndiv); in pll_factors()
762 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.c1728 unsigned int K, Ndiv, Nmod; in wm8995_get_fll_config() local
1771 Ndiv = freq_out / freq_in; in wm8995_get_fll_config()
1773 fll->n = Ndiv; in wm8995_get_fll_config()
Dwm8904.c1599 unsigned int K, Ndiv, Nmod, target; in fll_factors() local
1651 Ndiv = target / Fref; in fll_factors()
1653 fll_div->n = Ndiv; in fll_factors()
Dwm8994.c2050 unsigned int K, Ndiv, Nmod, gcd_fll; in wm8994_get_fll_config() local
2093 Ndiv = freq_out / freq_in; in wm8994_get_fll_config()
2095 fll->n = Ndiv; in wm8994_get_fll_config()