Lines Matching full:refin
72 const unsigned long refin[4] = { 2, 4, 13, 26 }; in pll_get_refin() local
83 return refin[refin_id]; in pll_get_refin()
104 u64 refin; in _sprd_pll_recalc_rate() local
114 refin = pll_get_refin(pll); in _sprd_pll_recalc_rate()
117 refin = refin * 2; in _sprd_pll_recalc_rate()
122 refin = refin / 2; in _sprd_pll_recalc_rate()
125 rate = refin * pinternal_val(pll, cfg, PLL_N) * CLK_PLL_10M; in _sprd_pll_recalc_rate()
135 rate = DIV_ROUND_CLOSEST_ULL(refin * kint * k1, in _sprd_pll_recalc_rate()
137 k2 + refin * nint * CLK_PLL_1M; in _sprd_pll_recalc_rate()
156 u64 tmp, refin, fvco = rate; in _sprd_pll_set_rate() local
162 refin = pll_get_refin(pll); in _sprd_pll_set_rate()
168 refin = refin * 2; in _sprd_pll_set_rate()
191 nint = do_div(fvco, refin * CLK_PLL_1M); in _sprd_pll_set_rate()
202 tmp = fvco - refin * nint * CLK_PLL_1M; in _sprd_pll_set_rate()
204 kint = DIV_ROUND_CLOSEST_ULL(tmp, refin * 100); in _sprd_pll_set_rate()