Lines Matching refs:Fref
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()
2198 init_ratio, Fref, refdiv); in arizona_calc_fratio()
2205 if (target % (ratio * Fref)) { in arizona_calc_fratio()
2210 Fref, refdiv, div, ratio); in arizona_calc_fratio()
2218 (fll->vco_mult * ratio) < Fref) { in arizona_calc_fratio()
2223 if (Fref > pseudo_fref_max[ratio - 1]) { in arizona_calc_fratio()
2231 if (target % (ratio * Fref)) { in arizona_calc_fratio()
2236 Fref, refdiv, div, ratio); in arizona_calc_fratio()
2242 Fref /= 2; in arizona_calc_fratio()
2244 init_ratio = arizona_find_fratio(Fref, NULL); in arizona_calc_fratio()
2247 Fref, refdiv, div, init_ratio); in arizona_calc_fratio()
2256 unsigned int Fref, bool sync) in arizona_calc_fll() argument
2261 arizona_fll_dbg(fll, "Fref=%u Fout=%u\n", Fref, fll->fout); in arizona_calc_fll()
2276 ratio = arizona_calc_fratio(fll, cfg, target, Fref, sync); in arizona_calc_fll()
2281 Fref = Fref / (1 << cfg->refdiv); in arizona_calc_fll()
2283 cfg->n = target / (ratio * Fref); in arizona_calc_fll()
2285 if (target % (ratio * Fref)) { in arizona_calc_fll()
2286 gcd_fll = gcd(target, ratio * Fref); in arizona_calc_fll()
2289 cfg->theta = (target - (cfg->n * ratio * Fref)) in arizona_calc_fll()
2291 cfg->lambda = (ratio * Fref) / gcd_fll; in arizona_calc_fll()
2307 if (fll_gains[i].min <= Fref && Fref <= fll_gains[i].max) { in arizona_calc_fll()
2314 Fref); in arizona_calc_fll()
2555 unsigned int Fref, unsigned int Fout) in arizona_set_fll_refclk() argument
2559 if (fll->ref_src == source && fll->ref_freq == Fref) in arizona_set_fll_refclk()
2562 if (fll->fout && Fref > 0) { in arizona_set_fll_refclk()
2563 ret = arizona_validate_fll(fll, Fref, fll->fout); in arizona_set_fll_refclk()
2569 fll->ref_freq = Fref; in arizona_set_fll_refclk()
2571 if (fll->fout && Fref > 0) in arizona_set_fll_refclk()
2579 unsigned int Fref, unsigned int Fout) in arizona_set_fll() argument
2584 fll->sync_freq == Fref && fll->fout == Fout) in arizona_set_fll()
2594 ret = arizona_validate_fll(fll, Fref, Fout); in arizona_set_fll()
2600 fll->sync_freq = Fref; in arizona_set_fll()