Home
last modified time | relevance | path

Searched refs:fvco (Results 1 – 10 of 10) sorted by relevance

/linux-4.19.296/drivers/clk/samsung/
Dclk-pll.c112 u64 fvco = parent_rate; in samsung_pll2126_recalc_rate() local
119 fvco *= (mdiv + 8); in samsung_pll2126_recalc_rate()
120 do_div(fvco, (pdiv + 2) << sdiv); in samsung_pll2126_recalc_rate()
122 return (unsigned long)fvco; in samsung_pll2126_recalc_rate()
145 u64 fvco = parent_rate; in samsung_pll3000_recalc_rate() local
152 fvco *= (2 * (mdiv + 8)); in samsung_pll3000_recalc_rate()
153 do_div(fvco, pdiv << sdiv); in samsung_pll3000_recalc_rate()
155 return (unsigned long)fvco; in samsung_pll3000_recalc_rate()
182 u64 fvco = parent_rate; in samsung_pll35xx_recalc_rate() local
189 fvco *= mdiv; in samsung_pll35xx_recalc_rate()
[all …]
/linux-4.19.296/drivers/clk/sprd/
Dpll.c155 u64 tmp, refin, fvco = rate; in _sprd_pll_set_rate() local
173 if (width && ((pll->fflag == 1 && fvco <= pll->fvco) || in _sprd_pll_set_rate()
174 (pll->fflag == 0 && fvco > pll->fvco))) in _sprd_pll_set_rate()
177 if (width && fvco <= pll->fvco) in _sprd_pll_set_rate()
178 fvco = fvco * 2; in _sprd_pll_set_rate()
190 nint = do_div(fvco, refin * CLK_PLL_1M); in _sprd_pll_set_rate()
201 tmp = fvco - refin * nint * CLK_PLL_1M; in _sprd_pll_set_rate()
207 ibias_val = pll_get_ibias(fvco, pll->itable); in _sprd_pll_set_rate()
Dpll.h59 u64 fvco; member
75 .fvco = _fvco, \
/linux-4.19.296/drivers/media/tuners/
Dfc0011.c180 u32 fvco, xin, frac, xdiv, xdivr; in fc0011_set_params() local
199 fvco = freq * 64; in fc0011_set_params()
202 fvco = freq * 32; in fc0011_set_params()
205 fvco = freq * 16; in fc0011_set_params()
208 fvco = freq * 8; in fc0011_set_params()
211 fvco = freq * 4; in fc0011_set_params()
216 xdiv = fvco / 18000; in fc0011_set_params()
218 frac = fvco - xdiv * 18000; in fc0011_set_params()
231 if (fvco - xdiv * 18000 >= 9000) in fc0011_set_params()
269 if (fvco < 2320000) { in fc0011_set_params()
[all …]
Dtda18250.c446 unsigned long fvco; in tda18250_pll_calc() local
457 fvco = lopd * scale * ((c->frequency / 1000) + dev->if_frequency); in tda18250_pll_calc()
463 *icp = (fvco < 6622000) ? 0x05 : 0x02; in tda18250_pll_calc()
469 *icp = (fvco < 6622000) ? 0x05 : 0x02; in tda18250_pll_calc()
472 if (fvco < 6643000) { in tda18250_pll_calc()
476 } else if (fvco < 6811000) { in tda18250_pll_calc()
489 *icp = (fvco < 6811000) ? 0x05 : 0x02; in tda18250_pll_calc()
497 lopd, scale, fvco, *rdiv, *ndiv, *icp); in tda18250_pll_calc()
/linux-4.19.296/drivers/media/dvb-frontends/
Dstv6111.c453 u32 p = 1, psel = 0, fvco, div, frac; in set_lof() local
468 fvco = frequency * p; in set_lof()
469 div = fvco / state->ref_freq; in set_lof()
470 frac = fvco % state->ref_freq; in set_lof()
474 if (fvco < 2700000) in set_lof()
476 else if (fvco < 2950000) in set_lof()
478 else if (fvco < 3300000) in set_lof()
480 else if (fvco < 3700000) in set_lof()
482 else if (fvco < 4200000) in set_lof()
484 else if (fvco < 4800000) in set_lof()
Dstb6100.c313 u32 nint, nfrac, fvco; in stb6100_get_frequency() local
326 fvco = (nfrac * state->reference >> (9 - psd2)) + (nint * state->reference << psd2); in stb6100_get_frequency()
327 *frequency = state->frequency = fvco >> (odiv + 1); in stb6100_get_frequency()
331 state->frequency, odiv, psd2, state->reference, fvco, nint, nfrac); in stb6100_get_frequency()
343 u32 srate = 0, fvco, nint, nfrac; in stb6100_set_frequency() local
396 fvco = frequency << (1 + odiv); in stb6100_set_frequency()
398 nint = fvco / (state->reference << psd2); in stb6100_set_frequency()
400 nfrac = DIV_ROUND_CLOSEST((fvco - (nint * state->reference << psd2)) in stb6100_set_frequency()
449 ptr->reg, fvco, nint, nfrac); in stb6100_set_frequency()
Dstv0910.c808 u32 fvco; in set_mclock() local
857 fvco = (quartz * 2 * ndiv) / idf; in set_mclock()
858 state->base->mclk = fvco / (2 * odf) * 1000000; in set_mclock()
/linux-4.19.296/drivers/clk/
Dclk-axi-clkgen.c111 unsigned long f, dout, best_f, fvco; in axi_clkgen_calc_params() local
132 fvco = fin * m / d; in axi_clkgen_calc_params()
134 dout = DIV_ROUND_CLOSEST(fvco, fout); in axi_clkgen_calc_params()
136 f = fvco / dout; in axi_clkgen_calc_params()
Dclk-xgene.c90 unsigned long fvco; in xgene_clk_pll_recalc_rate() local
105 fvco = parent_rate * (N_DIV_RD(pll) + 4); in xgene_clk_pll_recalc_rate()
116 fvco = fref * nfb; in xgene_clk_pll_recalc_rate()
124 fvco = parent_rate * SC_N_DIV_RD(pll); in xgene_clk_pll_recalc_rate()
127 clk_hw_get_name(hw), fvco / nout, parent_rate, in xgene_clk_pll_recalc_rate()
130 return fvco / nout; in xgene_clk_pll_recalc_rate()