Lines Matching full:pll_ref
547 u32 pll_ref; in r820t_set_pll() local
559 pll_ref = priv->cfg->xtal / 1000; in r820t_set_pll()
568 pll_ref /= 2; in r820t_set_pll()
574 pll_ref /= 2; in r820t_set_pll()
633 nint = vco_freq / (2 * pll_ref); in r820t_set_pll()
634 vco_fra = vco_freq - 2 * pll_ref * nint; in r820t_set_pll()
637 if (vco_fra < pll_ref / 64) { in r820t_set_pll()
639 } else if (vco_fra > pll_ref * 127 / 64) { in r820t_set_pll()
642 } else if ((vco_fra > pll_ref * 127 / 128) && (vco_fra < pll_ref)) { in r820t_set_pll()
643 vco_fra = pll_ref * 127 / 128; in r820t_set_pll()
644 } else if ((vco_fra > pll_ref) && (vco_fra < pll_ref * 129 / 128)) { in r820t_set_pll()
645 vco_fra = pll_ref * 129 / 128; in r820t_set_pll()
667 if (vco_fra > (2 * pll_ref / n_sdm)) { in r820t_set_pll()
669 vco_fra = vco_fra - 2 * pll_ref / n_sdm; in r820t_set_pll()
677 freq, pll_ref, refdiv2 ? " / 2" : "", sdm); in r820t_set_pll()