Lines Matching refs:ratio
2057 int ratio;
2143 return fll_fratios[i].ratio;
2155 int init_ratio, ratio;
2198 arizona_fll_dbg(fll, "pseudo: initial ratio=%u fref=%u refdiv=%u\n",
2205 for (ratio = init_ratio; ratio > 0; ratio--) {
2206 if (target % (ratio * Fref)) {
2208 cfg->fratio = ratio - 1;
2210 "pseudo: found fref=%u refdiv=%d(%d) ratio=%d\n",
2211 Fref, refdiv, div, ratio);
2212 return ratio;
2216 for (ratio = init_ratio + 1; ratio <= ARIZONA_FLL_MAX_FRATIO;
2217 ratio++) {
2219 (fll->vco_mult * ratio) < Fref) {
2224 if (Fref > pseudo_fref_max[ratio - 1]) {
2226 "pseudo: exceeded max fref(%u) for ratio=%u\n",
2227 pseudo_fref_max[ratio - 1],
2228 ratio);
2232 if (target % (ratio * Fref)) {
2234 cfg->fratio = ratio - 1;
2236 "pseudo: found fref=%u refdiv=%d(%d) ratio=%d\n",
2237 Fref, refdiv, div, ratio);
2238 return ratio;
2247 "pseudo: change fref=%u refdiv=%d(%d) ratio=%u\n",
2260 int i, ratio;
2277 ratio = arizona_calc_fratio(fll, cfg, target, Fref, sync);
2278 if (ratio < 0)
2279 return ratio;
2284 cfg->n = target / (ratio * Fref);
2286 if (target % (ratio * Fref)) {
2287 gcd_fll = gcd(target, ratio * Fref);
2290 cfg->theta = (target - (cfg->n * ratio * Fref))
2292 cfg->lambda = (ratio * Fref) / gcd_fll;
2322 cfg->fratio, ratio, cfg->outdiv,