Lines Matching defs:n2
430 unsigned p, n2, r2;
508 unsigned r2, unsigned n2, unsigned p,
516 best->n2 = n2;
526 * abs(freq2k - (LC_FREQ_2K * n2/(p * r2))) /
537 diff = ABS_DIFF((freq2k * p * r2), (LC_FREQ_2K * n2));
539 (LC_FREQ_2K * best->n2));
547 best->n2 = n2;
553 best->n2 = n2;
556 /* Both are below the limit, so pick the higher n2/(r2*r2) */
557 if (n2 * best->r2 * best->r2 > best->n2 * r2 * r2) {
559 best->n2 = n2;
571 unsigned p, n2, r2;
610 * VCO_MAX * r2 > n2 * LC_FREQ and
611 * VCO_MIN * r2 < n2 * LC_FREQ)
613 * Which means the desired boundaries for n2 are:
614 * VCO_MIN * r2 / LC_FREQ < n2 < VCO_MAX * r2 / LC_FREQ
616 for (n2 = VCO_MIN * r2 / LC_FREQ + 1;
617 n2 <= VCO_MAX * r2 / LC_FREQ;
618 n2++) {
622 r2, n2, p, &best);
626 *n2_out = best.n2;
630 DRM_DEBUG_KMS("WRPLL: %dHz refresh rate with p=%d, n2=%d r2=%d\n",
673 unsigned p, n2, r2;
695 intel_ddi_calculate_wrpll(clock * 1000, &r2, &n2, &p);
698 WRPLL_DIVIDER_REFERENCE(r2) | WRPLL_DIVIDER_FEEDBACK(n2) |