/kernel/linux/linux-5.10/sound/soc/codecs/ |
H A D | arizona.c | 2105 unsigned int Fref, in arizona_validate_fll() 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() 2157 /* Fref must be <=13.5MHz, find initial refdiv */ in arizona_calc_fratio() 2160 while (Fref > ARIZONA_FLL_MAX_FREF) { in arizona_calc_fratio() 2162 Fref / in arizona_calc_fratio() 2104 arizona_validate_fll(struct arizona_fll *fll, unsigned int Fref, unsigned int Fout) arizona_validate_fll() argument 2149 arizona_calc_fratio(struct arizona_fll *fll, struct arizona_fll_cfg *cfg, unsigned int target, unsigned int Fref, bool sync) arizona_calc_fratio() argument 2254 arizona_calc_fll(struct arizona_fll *fll, struct arizona_fll_cfg *cfg, unsigned int Fref, bool sync) arizona_calc_fll() argument 2554 arizona_set_fll_refclk(struct arizona_fll *fll, int source, unsigned int Fref, unsigned int Fout) arizona_set_fll_refclk() argument 2578 arizona_set_fll(struct arizona_fll *fll, int source, unsigned int Fref, unsigned int Fout) arizona_set_fll() argument [all...] |
H A D | wm9081.c | 462 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 470 /* Fref must be <=13.5MHz */ in fll_factors() 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 in fll_factors() 545 wm9081_set_fll(struct snd_soc_component *component, int fll_id, unsigned int Fref, unsigned int Fout) wm9081_set_fll() argument [all...] |
H A D | wm8993.c | 382 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 390 /* Fref must be <=13.5MHz */ in fll_factors() 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 in fll_factors() 466 _wm8993_set_fll(struct snd_soc_component *component, int fll_id, int source, unsigned int Fref, unsigned int Fout) _wm8993_set_fll() argument 570 wm8993_set_fll(struct snd_soc_dai *dai, int fll_id, int source, unsigned int Fref, unsigned int Fout) wm8993_set_fll() argument [all...] |
H A D | wm8900.c | 679 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 699 printk(KERN_WARNING "wm8900: FLL rate %u out of range, Fref=%u" in fll_factors() 700 " Fout=%u\n", target, Fref, Fout); in fll_factors() 703 "Fref=%u, Fout=%u, target=%u\n", in fll_factors() 704 div, Fref, Fout, target); in fll_factors() 710 if (Fref < 48000) in fll_factors() 715 Ndiv = target / Fref; in fll_factors() 717 if (Fref < 1000000) in fll_factors() 723 Nmod = (target / fll_div->fll_ratio) % Fref; in fll_factors() 728 do_div(Kpart, Fref); in fll_factors() [all...] |
H A D | wm2200.c | 1857 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 1865 /* Fref must be <=13.5MHz */ in fll_factors() 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 in fll_factors() 1934 wm2200_set_fll(struct snd_soc_component *component, int fll_id, int source, unsigned int Fref, unsigned int Fout) wm2200_set_fll() argument [all...] |
H A D | wm8904.c | 1584 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 1592 /* Fref must be <=13.5MHz */ in fll_factors() 1595 while ((Fref / div) > 13500000) { in fll_factors() 1601 Fref); in fll_factors() 1606 pr_debug("Fref=%u Fout=%u\n", Fref, Fout); in fll_factors() 1609 Fref /= div; in fll_factors() 1628 if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) { in fll_factors() 1635 pr_err("Unable to find FLL_FRATIO for Fref in fll_factors() 1667 wm8904_set_fll(struct snd_soc_dai *dai, int fll_id, int source, unsigned int Fref, unsigned int Fout) wm8904_set_fll() argument [all...] |
H A D | wm5100.c | 1677 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 1685 /* Fref must be <=13.5MHz */ in fll_factors() 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 in fll_factors() 1754 wm5100_set_fll(struct snd_soc_component *component, int fll_id, int source, unsigned int Fref, unsigned int Fout) wm5100_set_fll() argument [all...] |
H A D | wm8400.c | 853 unsigned int Fref, unsigned int Fout) in fll_factors() 872 if (Fref < 48000) in fll_factors() 877 if (Fref < 1000000) in fll_factors() 884 if (Fref < 1000000) 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() 913 "FLL: Fref=%u Fout=%u N=%x K=%x, FRATIO=%x OUTDIV=%x\n", in fll_factors() 914 Fref, Fout, in fll_factors() 852 fll_factors(struct wm8400_priv *wm8400, struct fll_factors *factors, unsigned int Fref, unsigned int Fout) fll_factors() argument
|
H A D | wm8996.c | 1914 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 1922 /* Fref must be <=13.5MHz */ in fll_factors() 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 in fll_factors() 2001 wm8996_set_fll(struct snd_soc_component *component, int fll_id, int source, unsigned int Fref, unsigned int Fout) wm8996_set_fll() argument [all...] |
H A D | wm8962.c | 2786 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 2794 /* Fref must be <=13.5MHz */ in fll_factors() 2797 while ((Fref / div) > 13500000) { in fll_factors() 2803 Fref); in fll_factors() 2808 pr_debug("FLL Fref=%u Fout=%u\n", Fref, Fout); in fll_factors() 2811 Fref /= div; in fll_factors() 2830 if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) { in fll_factors() 2837 pr_err("Unable to find FLL_FRATIO for Fref in fll_factors() 2863 wm8962_set_fll(struct snd_soc_component *component, int fll_id, int source, unsigned int Fref, unsigned int Fout) wm8962_set_fll() argument [all...] |
H A D | wm8955.c | 144 int Fref, int Fout, struct pll_factors *pll) in wm8955_pll_factors() 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() 143 wm8955_pll_factors(struct device *dev, int Fref, int Fout, struct pll_factors *pll) wm8955_pll_factors() argument
|
/kernel/linux/linux-6.6/sound/soc/codecs/ |
H A D | arizona.c | 2106 unsigned int Fref, in arizona_validate_fll() 2117 if (Fref / ARIZONA_FLL_MAX_REFDIV > ARIZONA_FLL_MAX_FREF) { in arizona_validate_fll() 2120 Fref); in arizona_validate_fll() 2134 static int arizona_find_fratio(unsigned int Fref, int *fratio) in arizona_find_fratio() argument 2140 if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) { in arizona_find_fratio() 2153 unsigned int Fref, bool sync) in arizona_calc_fratio() 2158 /* Fref must be <=13.5MHz, find initial refdiv */ in arizona_calc_fratio() 2161 while (Fref > ARIZONA_FLL_MAX_FREF) { in arizona_calc_fratio() 2163 Fref / in arizona_calc_fratio() 2105 arizona_validate_fll(struct arizona_fll *fll, unsigned int Fref, unsigned int Fout) arizona_validate_fll() argument 2150 arizona_calc_fratio(struct arizona_fll *fll, struct arizona_fll_cfg *cfg, unsigned int target, unsigned int Fref, bool sync) arizona_calc_fratio() argument 2255 arizona_calc_fll(struct arizona_fll *fll, struct arizona_fll_cfg *cfg, unsigned int Fref, bool sync) arizona_calc_fll() argument 2555 arizona_set_fll_refclk(struct arizona_fll *fll, int source, unsigned int Fref, unsigned int Fout) arizona_set_fll_refclk() argument 2579 arizona_set_fll(struct arizona_fll *fll, int source, unsigned int Fref, unsigned int Fout) arizona_set_fll() argument [all...] |
H A D | wm9081.c | 462 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 470 /* Fref must be <=13.5MHz */ in fll_factors() 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 in fll_factors() 545 wm9081_set_fll(struct snd_soc_component *component, int fll_id, unsigned int Fref, unsigned int Fout) wm9081_set_fll() argument [all...] |
H A D | wm8993.c | 382 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 390 /* Fref must be <=13.5MHz */ in fll_factors() 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 in fll_factors() 466 _wm8993_set_fll(struct snd_soc_component *component, int fll_id, int source, unsigned int Fref, unsigned int Fout) _wm8993_set_fll() argument 570 wm8993_set_fll(struct snd_soc_dai *dai, int fll_id, int source, unsigned int Fref, unsigned int Fout) wm8993_set_fll() argument [all...] |
H A D | wm8900.c | 679 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 699 printk(KERN_WARNING "wm8900: FLL rate %u out of range, Fref=%u" in fll_factors() 700 " Fout=%u\n", target, Fref, Fout); in fll_factors() 703 "Fref=%u, Fout=%u, target=%u\n", in fll_factors() 704 div, Fref, Fout, target); in fll_factors() 710 if (Fref < 48000) in fll_factors() 715 Ndiv = target / Fref; in fll_factors() 717 if (Fref < 1000000) in fll_factors() 723 Nmod = (target / fll_div->fll_ratio) % Fref; in fll_factors() 728 do_div(Kpart, Fref); in fll_factors() [all...] |
H A D | wm2200.c | 1844 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 1852 /* Fref must be <=13.5MHz */ in fll_factors() 1855 while ((Fref / div) > 13500000) { in fll_factors() 1861 Fref); in fll_factors() 1866 pr_debug("FLL Fref=%u Fout=%u\n", Fref, Fout); in fll_factors() 1869 Fref /= div; in fll_factors() 1888 if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) { in fll_factors() 1895 pr_err("Unable to find FLL_FRATIO for Fref in fll_factors() 1921 wm2200_set_fll(struct snd_soc_component *component, int fll_id, int source, unsigned int Fref, unsigned int Fout) wm2200_set_fll() argument [all...] |
H A D | wm5100.c | 1677 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 1685 /* Fref must be <=13.5MHz */ in fll_factors() 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 in fll_factors() 1754 wm5100_set_fll(struct snd_soc_component *component, int fll_id, int source, unsigned int Fref, unsigned int Fout) wm5100_set_fll() argument [all...] |
H A D | wm8904.c | 1584 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 1592 /* Fref must be <=13.5MHz */ in fll_factors() 1595 while ((Fref / div) > 13500000) { in fll_factors() 1601 Fref); in fll_factors() 1606 pr_debug("Fref=%u Fout=%u\n", Fref, Fout); in fll_factors() 1609 Fref /= div; in fll_factors() 1628 if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) { in fll_factors() 1635 pr_err("Unable to find FLL_FRATIO for Fref in fll_factors() 1667 wm8904_set_fll(struct snd_soc_dai *dai, int fll_id, int source, unsigned int Fref, unsigned int Fout) wm8904_set_fll() argument [all...] |
H A D | wm8400.c | 853 unsigned int Fref, unsigned int Fout) in fll_factors() 872 if (Fref < 48000) in fll_factors() 877 if (Fref < 1000000) in fll_factors() 884 if (Fref < 1000000) 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() 913 "FLL: Fref=%u Fout=%u N=%x K=%x, FRATIO=%x OUTDIV=%x\n", in fll_factors() 914 Fref, Fout, in fll_factors() 852 fll_factors(struct wm8400_priv *wm8400, struct fll_factors *factors, unsigned int Fref, unsigned int Fout) fll_factors() argument
|
H A D | wm8996.c | 1914 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 1922 /* Fref must be <=13.5MHz */ in fll_factors() 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 in fll_factors() 2001 wm8996_set_fll(struct snd_soc_component *component, int fll_id, int source, unsigned int Fref, unsigned int Fout) wm8996_set_fll() argument [all...] |
H A D | wm8962.c | 2807 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 2815 /* Fref must be <=13.5MHz */ in fll_factors() 2818 while ((Fref / div) > 13500000) { in fll_factors() 2824 Fref); in fll_factors() 2829 pr_debug("FLL Fref=%u Fout=%u\n", Fref, Fout); in fll_factors() 2832 Fref /= div; in fll_factors() 2851 if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) { in fll_factors() 2858 pr_err("Unable to find FLL_FRATIO for Fref in fll_factors() 2884 wm8962_set_fll(struct snd_soc_component *component, int fll_id, int source, unsigned int Fref, unsigned int Fout) wm8962_set_fll() argument [all...] |
/kernel/linux/linux-5.10/drivers/video/fbdev/ |
H A 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() 135 /* This expresses the constraint that 150kHz <= Fref/n <= 5Mhz, 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 * ( in asiliant_calc_dclk2() [all...] |
/kernel/linux/linux-6.6/drivers/video/fbdev/ |
H A D | asiliantfb.c | 47 static const unsigned Fref = 14318180; variable 131 ratio = Ftarget / Fref; in asiliant_calc_dclk2() 132 remainder = Ftarget % Fref; in asiliant_calc_dclk2() 134 /* This expresses the constraint that 150kHz <= Fref/n <= 5Mhz, in asiliant_calc_dclk2() 137 unsigned m = n * ratio + (n * remainder) / Fref; in asiliant_calc_dclk2() 141 unsigned new_error = Ftarget * n >= Fref * m ? in asiliant_calc_dclk2() 142 ((Ftarget * n) - (Fref * m)) : ((Fref * m) - (Ftarget * n)); in asiliant_calc_dclk2() 153 unsigned new_error = Ftarget * n >= Fref * (m & ~3) ? in asiliant_calc_dclk2() 154 ((Ftarget * n) - (Fref * ( in asiliant_calc_dclk2() [all...] |
/kernel/linux/linux-5.10/drivers/media/tuners/ |
H A 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 in MXL_IFSynthInit() [all...] |
/kernel/linux/linux-6.6/drivers/media/tuners/ |
H A 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 in MXL_IFSynthInit() [all...] |