Lines Matching refs:pll_ref
527 u32 pll_ref; in r820t_set_pll() local
539 pll_ref = priv->cfg->xtal / 1000; in r820t_set_pll()
548 pll_ref /= 2; in r820t_set_pll()
554 pll_ref /= 2; in r820t_set_pll()
613 nint = vco_freq / (2 * pll_ref); in r820t_set_pll()
614 vco_fra = vco_freq - 2 * pll_ref * nint; in r820t_set_pll()
617 if (vco_fra < pll_ref / 64) { in r820t_set_pll()
619 } else if (vco_fra > pll_ref * 127 / 64) { in r820t_set_pll()
622 } else if ((vco_fra > pll_ref * 127 / 128) && (vco_fra < pll_ref)) { in r820t_set_pll()
623 vco_fra = pll_ref * 127 / 128; in r820t_set_pll()
624 } else if ((vco_fra > pll_ref) && (vco_fra < pll_ref * 129 / 128)) { in r820t_set_pll()
625 vco_fra = pll_ref * 129 / 128; in r820t_set_pll()
647 if (vco_fra > (2 * pll_ref / n_sdm)) { in r820t_set_pll()
649 vco_fra = vco_fra - 2 * pll_ref / n_sdm; in r820t_set_pll()
657 freq, pll_ref, refdiv2 ? " / 2" : "", sdm); in r820t_set_pll()