/Linux-v5.4/sound/soc/codecs/ |
D | arizona.c | 2105 unsigned int Fref, in arizona_validate_fll() argument 2116 if (Fref / ARIZONA_FLL_MAX_REFDIV > ARIZONA_FLL_MAX_FREF) { in arizona_validate_fll() 2119 Fref); in arizona_validate_fll() 2133 static int arizona_find_fratio(unsigned int Fref, int *fratio) in arizona_find_fratio() argument 2139 if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) { in arizona_find_fratio() 2152 unsigned int Fref, bool sync) in arizona_calc_fratio() argument 2160 while (Fref > ARIZONA_FLL_MAX_FREF) { in arizona_calc_fratio() 2162 Fref /= 2; in arizona_calc_fratio() 2170 init_ratio = arizona_find_fratio(Fref, &cfg->fratio); in arizona_calc_fratio() 2173 Fref); in arizona_calc_fratio() [all …]
|
D | wm9081.c | 462 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 472 while ((Fref / div) > 13500000) { in fll_factors() 477 Fref); in fll_factors() 483 pr_debug("Fref=%u Fout=%u\n", Fref, Fout); in fll_factors() 486 Fref /= div; in fll_factors() 506 if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) { in fll_factors() 513 pr_err("Unable to find FLL_FRATIO for Fref=%uHz\n", Fref); in fll_factors() 518 Ndiv = target / Fref; in fll_factors() 521 Nmod = target % Fref; in fll_factors() 527 do_div(Kpart, Fref); in fll_factors() [all …]
|
D | wm8993.c | 382 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 393 while ((Fref / div) > 13500000) { in fll_factors() 399 Fref); in fll_factors() 404 pr_debug("Fref=%u Fout=%u\n", Fref, Fout); in fll_factors() 407 Fref /= div; in fll_factors() 427 if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) { in fll_factors() 434 pr_err("Unable to find FLL_FRATIO for Fref=%uHz\n", Fref); in fll_factors() 439 Ndiv = target / Fref; in fll_factors() 442 Nmod = target % Fref; in fll_factors() 448 do_div(Kpart, Fref); in fll_factors() [all …]
|
D | wm2200.c | 1857 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 1868 while ((Fref / div) > 13500000) { in fll_factors() 1874 Fref); in fll_factors() 1879 pr_debug("FLL Fref=%u Fout=%u\n", Fref, Fout); in fll_factors() 1882 Fref /= div; in fll_factors() 1901 if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) { in fll_factors() 1908 pr_err("Unable to find FLL_FRATIO for Fref=%uHz\n", Fref); in fll_factors() 1912 fll_div->n = target / (fratio * Fref); in fll_factors() 1914 if (target % Fref == 0) { in fll_factors() 1918 gcd_fll = gcd(target, fratio * Fref); in fll_factors() [all …]
|
D | wm8904.c | 1605 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 1616 while ((Fref / div) > 13500000) { in fll_factors() 1622 Fref); in fll_factors() 1627 pr_debug("Fref=%u Fout=%u\n", Fref, Fout); in fll_factors() 1630 Fref /= div; in fll_factors() 1649 if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) { in fll_factors() 1656 pr_err("Unable to find FLL_FRATIO for Fref=%uHz\n", Fref); in fll_factors() 1661 Ndiv = target / Fref; in fll_factors() 1664 Nmod = target % Fref; in fll_factors() 1670 do_div(Kpart, Fref); in fll_factors() [all …]
|
D | wm8900.c | 685 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 706 " Fout=%u\n", target, Fref, Fout); in fll_factors() 710 div, Fref, Fout, target); in fll_factors() 716 if (Fref < 48000) in fll_factors() 721 Ndiv = target / Fref; in fll_factors() 723 if (Fref < 1000000) in fll_factors() 729 Nmod = (target / fll_div->fll_ratio) % Fref; in fll_factors() 734 do_div(Kpart, Fref); in fll_factors() 745 WARN_ON(!K && target != Fref * fll_div->fll_ratio * fll_div->n)) in fll_factors()
|
D | wm8996.c | 1914 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 1925 while ((Fref / div) > 13500000) { in fll_factors() 1931 Fref); in fll_factors() 1936 pr_debug("FLL Fref=%u Fout=%u\n", Fref, Fout); in fll_factors() 1939 Fref /= div; in fll_factors() 1941 if (Fref >= 3000000) in fll_factors() 1946 if (Fref >= 48000) in fll_factors() 1968 if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) { in fll_factors() 1975 pr_err("Unable to find FLL_FRATIO for Fref=%uHz\n", Fref); in fll_factors() 1979 fll_div->n = target / (fratio * Fref); in fll_factors() [all …]
|
D | wm8400.c | 865 unsigned int Fref, unsigned int Fout) in fll_factors() argument 884 if (Fref < 48000) in fll_factors() 889 if (Fref < 1000000) in fll_factors() 896 if (Fref < 1000000) in fll_factors() 907 factors->n = target / (Fref * factors->fratio); in fll_factors() 908 Nmod = target % (Fref * factors->fratio); in fll_factors() 914 do_div(Kpart, (Fref * factors->fratio)); in fll_factors() 926 Fref, Fout, in fll_factors()
|
D | wm5100.c | 1677 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 1688 while ((Fref / div) > 13500000) { in fll_factors() 1694 Fref); in fll_factors() 1699 pr_debug("FLL Fref=%u Fout=%u\n", Fref, Fout); in fll_factors() 1702 Fref /= div; in fll_factors() 1721 if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) { in fll_factors() 1728 pr_err("Unable to find FLL_FRATIO for Fref=%uHz\n", Fref); in fll_factors() 1732 fll_div->n = target / (fratio * Fref); in fll_factors() 1734 if (target % Fref == 0) { in fll_factors() 1738 gcd_fll = gcd(target, fratio * Fref); in fll_factors() [all …]
|
D | wm8962.c | 2732 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 2743 while ((Fref / div) > 13500000) { in fll_factors() 2749 Fref); in fll_factors() 2754 pr_debug("FLL Fref=%u Fout=%u\n", Fref, Fout); in fll_factors() 2757 Fref /= div; in fll_factors() 2776 if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) { in fll_factors() 2783 pr_err("Unable to find FLL_FRATIO for Fref=%uHz\n", Fref); in fll_factors() 2787 fll_div->n = target / (fratio * Fref); in fll_factors() 2789 if (target % Fref == 0) { in fll_factors() 2793 gcd_fll = gcd(target, fratio * Fref); in fll_factors() [all …]
|
D | wm8955.c | 144 int Fref, int Fout, struct pll_factors *pll) in wm8955_pll_factors() argument 149 dev_dbg(dev, "Fref=%u Fout=%u\n", Fref, Fout); in wm8955_pll_factors() 168 Ndiv = target / Fref; in wm8955_pll_factors() 171 Nmod = target % Fref; in wm8955_pll_factors() 177 do_div(Kpart, Fref); in wm8955_pll_factors()
|
D | wm8997.c | 927 int source, unsigned int Fref, unsigned int Fout) in wm8997_set_fll() argument 933 return arizona_set_fll(&wm8997->fll[0], source, Fref, Fout); in wm8997_set_fll() 935 return arizona_set_fll(&wm8997->fll[1], source, Fref, Fout); in wm8997_set_fll() 937 return arizona_set_fll_refclk(&wm8997->fll[0], source, Fref, in wm8997_set_fll() 940 return arizona_set_fll_refclk(&wm8997->fll[1], source, Fref, in wm8997_set_fll()
|
D | arizona.h | 306 unsigned int Fref, unsigned int Fout); 308 unsigned int Fref, unsigned int Fout);
|
D | wm8998.c | 1252 int source, unsigned int Fref, unsigned int Fout) in wm8998_set_fll() argument 1258 return arizona_set_fll(&wm8998->fll[0], source, Fref, Fout); in wm8998_set_fll() 1260 return arizona_set_fll(&wm8998->fll[1], source, Fref, Fout); in wm8998_set_fll() 1262 return arizona_set_fll_refclk(&wm8998->fll[0], source, Fref, in wm8998_set_fll() 1265 return arizona_set_fll_refclk(&wm8998->fll[1], source, Fref, in wm8998_set_fll()
|
D | cs47l24.c | 935 int source, unsigned int Fref, unsigned int Fout) in cs47l24_set_fll() argument 941 return arizona_set_fll(&cs47l24->fll[0], source, Fref, Fout); in cs47l24_set_fll() 943 return arizona_set_fll(&cs47l24->fll[1], source, Fref, Fout); in cs47l24_set_fll() 945 return arizona_set_fll_refclk(&cs47l24->fll[0], source, Fref, in cs47l24_set_fll() 948 return arizona_set_fll_refclk(&cs47l24->fll[1], source, Fref, in cs47l24_set_fll()
|
D | wm5102.c | 1740 int source, unsigned int Fref, unsigned int Fout) in wm5102_set_fll() argument 1746 return arizona_set_fll(&wm5102->fll[0], source, Fref, Fout); in wm5102_set_fll() 1748 return arizona_set_fll(&wm5102->fll[1], source, Fref, Fout); in wm5102_set_fll() 1750 return arizona_set_fll_refclk(&wm5102->fll[0], source, Fref, in wm5102_set_fll() 1753 return arizona_set_fll_refclk(&wm5102->fll[1], source, Fref, in wm5102_set_fll()
|
D | wm5110.c | 2047 int source, unsigned int Fref, unsigned int Fout) in wm5110_set_fll() argument 2053 return arizona_set_fll(&wm5110->fll[0], source, Fref, Fout); in wm5110_set_fll() 2055 return arizona_set_fll(&wm5110->fll[1], source, Fref, Fout); in wm5110_set_fll() 2057 return arizona_set_fll_refclk(&wm5110->fll[0], source, Fref, in wm5110_set_fll() 2060 return arizona_set_fll_refclk(&wm5110->fll[1], source, Fref, in wm5110_set_fll()
|
/Linux-v5.4/drivers/video/fbdev/ |
D | asiliantfb.c | 46 static const unsigned Fref = 14318180; variable 132 ratio = Ftarget / Fref; in asiliant_calc_dclk2() 133 remainder = Ftarget % Fref; in asiliant_calc_dclk2() 138 unsigned m = n * ratio + (n * remainder) / Fref; in asiliant_calc_dclk2() 142 unsigned new_error = Ftarget * n >= Fref * m ? in asiliant_calc_dclk2() 143 ((Ftarget * n) - (Fref * m)) : ((Fref * m) - (Ftarget * n)); in asiliant_calc_dclk2() 154 unsigned new_error = Ftarget * n >= Fref * (m & ~3) ? in asiliant_calc_dclk2() 155 ((Ftarget * n) - (Fref * (m & ~3))) : ((Fref * (m & ~3)) - (Ftarget * n)); in asiliant_calc_dclk2()
|
/Linux-v5.4/drivers/media/tuners/ |
D | mxl5005s.c | 2108 u32 Fref = 0 ; in MXL_IFSynthInit() local 2123 Fref = 328000000UL ; in MXL_IFSynthInit() 2128 Fref = 376000000UL ; in MXL_IFSynthInit() 2133 Fref = 324000000UL ; in MXL_IFSynthInit() 2138 Fref = 360000000UL ; in MXL_IFSynthInit() 2143 Fref = 314000000UL ; in MXL_IFSynthInit() 2148 Fref = 317200000UL ; in MXL_IFSynthInit() 2153 Fref = 321200000UL ; in MXL_IFSynthInit() 2158 Fref = 325200000UL ; in MXL_IFSynthInit() 2166 Fref = 342000000UL ; in MXL_IFSynthInit() [all …]
|