Lines Matching full:fref
1847 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
1855 /* Fref must be <=13.5MHz */ in fll_factors()
1858 while ((Fref / div) > 13500000) { in fll_factors()
1864 Fref); in fll_factors()
1869 pr_debug("FLL Fref=%u Fout=%u\n", Fref, Fout); in fll_factors()
1872 Fref /= div; in fll_factors()
1891 if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) { in fll_factors()
1898 pr_err("Unable to find FLL_FRATIO for Fref=%uHz\n", Fref); in fll_factors()
1902 fll_div->n = target / (fratio * Fref); in fll_factors()
1904 if (target % Fref == 0) { in fll_factors()
1908 gcd_fll = gcd(target, fratio * Fref); in fll_factors()
1910 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors()
1912 fll_div->lambda = (fratio * Fref) / gcd_fll; in fll_factors()
1925 unsigned int Fref, unsigned int Fout) in wm2200_set_fll() argument
1955 ret = fll_factors(&factors, Fref, Fout); in wm2200_set_fll()
2038 wm2200->fll_fref = Fref; in wm2200_set_fll()
2041 dev_dbg(component->dev, "FLL running %dHz->%dHz\n", Fref, Fout); in wm2200_set_fll()