/sound/soc/codecs/ |
D | wm8940.c | 532 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 …]
|
D | wm8974.c | 283 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()
|
D | wm8510.c | 283 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()
|
D | wm8804.c | 325 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()
|
D | wm8580.c | 373 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()
|
D | wm8960.c | 785 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()
|
D | wm8983.c | 810 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()
|
D | wm8985.c | 788 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()
|
D | wm8991.c | 916 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()
|
D | wm8990.c | 903 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()
|
D | wm8753.c | 716 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()
|
D | wm9713.c | 695 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()
|
D | wm8955.c | 150 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()
|
D | wm8900.c | 692 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()
|
D | wm9081.c | 471 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()
|
D | wm8993.c | 389 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()
|
D | wm8995.c | 1732 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()
|
D | wm8904.c | 1592 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()
|
D | wm8994.c | 2049 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()
|