Home
last modified time | relevance | path

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

/drivers/clk/samsung/
Dclk-pll.c154 u64 fvco = parent_rate; in samsung_pll2126_recalc_rate() local
161 fvco *= (mdiv + 8); in samsung_pll2126_recalc_rate()
162 do_div(fvco, (pdiv + 2) << sdiv); in samsung_pll2126_recalc_rate()
164 return (unsigned long)fvco; in samsung_pll2126_recalc_rate()
187 u64 fvco = parent_rate; in samsung_pll3000_recalc_rate() local
194 fvco *= (2 * (mdiv + 8)); in samsung_pll3000_recalc_rate()
195 do_div(fvco, pdiv << sdiv); in samsung_pll3000_recalc_rate()
197 return (unsigned long)fvco; in samsung_pll3000_recalc_rate()
224 u64 fvco = parent_rate; in samsung_pll35xx_recalc_rate() local
231 fvco *= mdiv; in samsung_pll35xx_recalc_rate()
[all …]
/drivers/clk/sprd/
Dpll.c156 u64 tmp, refin, fvco = rate; in _sprd_pll_set_rate() local
174 if (width && ((pll->fflag == 1 && fvco <= pll->fvco) || in _sprd_pll_set_rate()
175 (pll->fflag == 0 && fvco > pll->fvco))) in _sprd_pll_set_rate()
178 if (width && fvco <= pll->fvco) in _sprd_pll_set_rate()
179 fvco = fvco * 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()
208 ibias_val = pll_get_ibias(fvco, pll->itable); in _sprd_pll_set_rate()
Dpll.h59 u64 fvco; member
76 .fvco = _fvco, \
/drivers/media/tuners/
Dfc0011.c171 u32 fvco, xin, frac, xdiv, xdivr; in fc0011_set_params() local
190 fvco = freq * 64; in fc0011_set_params()
193 fvco = freq * 32; in fc0011_set_params()
196 fvco = freq * 16; in fc0011_set_params()
199 fvco = freq * 8; in fc0011_set_params()
202 fvco = freq * 4; in fc0011_set_params()
207 xdiv = fvco / 18000; in fc0011_set_params()
209 frac = fvco - xdiv * 18000; in fc0011_set_params()
222 if (fvco - xdiv * 18000 >= 9000) in fc0011_set_params()
260 if (fvco < 2320000) { in fc0011_set_params()
[all …]
Dtda18250.c436 unsigned long fvco; in tda18250_pll_calc() local
447 fvco = lopd * scale * ((c->frequency / 1000) + dev->if_frequency); in tda18250_pll_calc()
453 *icp = (fvco < 6622000) ? 0x05 : 0x02; in tda18250_pll_calc()
459 *icp = (fvco < 6622000) ? 0x05 : 0x02; in tda18250_pll_calc()
462 if (fvco < 6643000) { in tda18250_pll_calc()
466 } else if (fvco < 6811000) { in tda18250_pll_calc()
479 *icp = (fvco < 6811000) ? 0x05 : 0x02; in tda18250_pll_calc()
487 lopd, scale, fvco, *rdiv, *ndiv, *icp); in tda18250_pll_calc()
/drivers/media/dvb-frontends/
Dstv6111.c444 u32 p = 1, psel = 0, fvco, div, frac; in set_lof() local
459 fvco = frequency * p; in set_lof()
460 div = fvco / state->ref_freq; in set_lof()
461 frac = fvco % state->ref_freq; in set_lof()
465 if (fvco < 2700000) in set_lof()
467 else if (fvco < 2950000) in set_lof()
469 else if (fvco < 3300000) in set_lof()
471 else if (fvco < 3700000) in set_lof()
473 else if (fvco < 4200000) in set_lof()
475 else if (fvco < 4800000) in set_lof()
Dstb6100.c301 u32 nint, nfrac, fvco; in stb6100_get_frequency() local
314 fvco = (nfrac * state->reference >> (9 - psd2)) + (nint * state->reference << psd2); in stb6100_get_frequency()
315 *frequency = state->frequency = fvco >> (odiv + 1); in stb6100_get_frequency()
319 state->frequency, odiv, psd2, state->reference, fvco, nint, nfrac); in stb6100_get_frequency()
331 u32 srate = 0, fvco, nint, nfrac; in stb6100_set_frequency() local
384 fvco = frequency << (1 + odiv); in stb6100_set_frequency()
386 nint = fvco / (state->reference << psd2); in stb6100_set_frequency()
388 nfrac = DIV_ROUND_CLOSEST((fvco - (nint * state->reference << psd2)) in stb6100_set_frequency()
437 ptr->reg, fvco, nint, nfrac); in stb6100_set_frequency()
Dstv0910.c800 u32 fvco; in set_mclock() local
849 fvco = (quartz * 2 * ndiv) / idf; in set_mclock()
850 state->base->mclk = fvco / (2 * odf) * 1000000; in set_mclock()
/drivers/gpu/drm/sprd/
Dmegacores_pll.c44 pll->fvco = pll->potential_fvco; in dphy_calc_pll_param()
50 if (pll->fvco == 0) in dphy_calc_pll_param()
53 if (pll->fvco >= VCO_BAND_LOW && pll->fvco <= VCO_BAND_MID) { in dphy_calc_pll_param()
58 } else if (pll->fvco > VCO_BAND_MID && pll->fvco <= VCO_BAND_HIGH) { in dphy_calc_pll_param()
65 pll->nint = pll->fvco / pll->ref_clk; in dphy_calc_pll_param()
66 tmp = pll->fvco * factor * mhz; in dphy_calc_pll_param()
Dsprd_dsi.h76 u32 fvco; member
/drivers/clk/imx/
Dclk-pll14xx.c105 u64 fvco = prate; in pll14xx_calc_rate() local
108 fvco *= (mdiv * 65536 + kdiv); in pll14xx_calc_rate()
111 do_div(fvco, pdiv << sdiv); in pll14xx_calc_rate()
113 return fvco; in pll14xx_calc_rate()
132 long fvco, rate_min, rate_max, dist, best = LONG_MAX; in imx_pll14xx_calc_settings() local
174 fvco = pll14xx_calc_rate(pll, mdiv, pdiv, sdiv, kdiv, prate); in imx_pll14xx_calc_settings()
175 t->rate = (unsigned int)fvco; in imx_pll14xx_calc_settings()
191 fvco = pll14xx_calc_rate(pll, mdiv, pdiv, sdiv, kdiv, prate); in imx_pll14xx_calc_settings()
194 dist = abs((long)rate - (long)fvco); in imx_pll14xx_calc_settings()
197 t->rate = (unsigned int)fvco; in imx_pll14xx_calc_settings()
Dclk-fracn-gppll.c126 u64 fvco = parent_rate; in clk_fracn_gppll_recalc_rate() local
173 fvco = fvco * mfi * mfd + fvco * mfn; in clk_fracn_gppll_recalc_rate()
174 do_div(fvco, mfd * rdiv * odiv); in clk_fracn_gppll_recalc_rate()
176 return (unsigned long)fvco; in clk_fracn_gppll_recalc_rate()
/drivers/video/fbdev/matrox/
Dmatroxfb_maven.c302 unsigned int fvco; in matroxfb_mavenclock() local
305 fvco = matroxfb_PLL_mavenclock(&maven1000_pll, ctl, htotal, vtotal, in, feed, &p, htotal2); in matroxfb_mavenclock()
306 if (!fvco) in matroxfb_mavenclock()
309 if (fvco <= 100000000) in matroxfb_mavenclock()
311 else if (fvco <= 140000000) in matroxfb_mavenclock()
313 else if (fvco <= 180000000) in matroxfb_mavenclock()
323 unsigned int fvco; in DAC1064_calcclock() local
326 fvco = matroxfb_PLL_calcclock(&maven_pll, freq, fmax, in, feed, &p); in DAC1064_calcclock()
328 if (fvco <= 100000) in DAC1064_calcclock()
330 else if (fvco <= 140000) in DAC1064_calcclock()
[all …]
Dg450_pll.c20 static inline unsigned int g450_vco2f(unsigned char p, unsigned int fvco) { in g450_vco2f() argument
21 return (p & 0x40) ? fvco : fvco >> ((p & 3) + 1); in g450_vco2f()
57 unsigned int *fvco, unsigned int mnp) in g450_nextpll() argument
60 unsigned int tvco = *fvco; in g450_nextpll()
80 *fvco = tvco; in g450_nextpll()
Dmatroxfb_misc.c164 unsigned int diff, fvco; in matroxfb_PLL_calcclock() local
172 fvco = (fxtal * (n + 1)) / (m + 1); in matroxfb_PLL_calcclock()
173 if (fvco < fwant) in matroxfb_PLL_calcclock()
174 diff = fwant - fvco; in matroxfb_PLL_calcclock()
176 diff = fvco - fwant; in matroxfb_PLL_calcclock()
182 bestvco = fvco; in matroxfb_PLL_calcclock()
Dmatroxfb_Ti3026.c287 unsigned int fvco; in Ti3026_calcclock() local
292 fvco = PLL_calcclock(minfo, freq, fmax, &lin, &lfeed, &lpost); in Ti3026_calcclock()
293 fvco >>= (*post = lpost); in Ti3026_calcclock()
296 return fvco; in Ti3026_calcclock()
Dmatroxfb_DAC1064.c42 unsigned int fvco; in DAC1064_calcclock() local
49 fvco = PLL_calcclock(minfo, freq, fmax, in, feed, &p); in DAC1064_calcclock()
52 if (fvco <= 100000) in DAC1064_calcclock()
54 else if (fvco <= 140000) in DAC1064_calcclock()
56 else if (fvco <= 180000) in DAC1064_calcclock()
/drivers/clk/
Dclk-xgene.c75 unsigned long fvco; in xgene_clk_pll_recalc_rate() local
90 fvco = parent_rate * (N_DIV_RD(pll) + 4); in xgene_clk_pll_recalc_rate()
101 fvco = fref * nfb; in xgene_clk_pll_recalc_rate()
109 fvco = parent_rate * SC_N_DIV_RD(pll); in xgene_clk_pll_recalc_rate()
112 clk_hw_get_name(hw), fvco / nout, parent_rate, in xgene_clk_pll_recalc_rate()
115 return fvco / nout; in xgene_clk_pll_recalc_rate()
Dclk-axi-clkgen.c131 unsigned long f, dout, best_f, fvco; in axi_clkgen_calc_params() local
158 fvco = fin * m / d; in axi_clkgen_calc_params()
160 dout = DIV_ROUND_CLOSEST(fvco, fout); in axi_clkgen_calc_params()
162 f = fvco / dout; in axi_clkgen_calc_params()
/drivers/phy/freescale/
Dphy-fsl-imx8-mipi-dphy.c387 unsigned long fvco; in mixel_dphy_configure_lvds_phy() local
418 fvco = data_rate * co; in mixel_dphy_configure_lvds_phy()
420 if (fvco >= MIN_VCO_FREQ) in mixel_dphy_configure_lvds_phy()
424 if (fvco < MIN_VCO_FREQ || fvco > MAX_VCO_FREQ) { in mixel_dphy_configure_lvds_phy()
425 dev_err(&phy->dev, "VCO frequency %lu is out of range\n", fvco); in mixel_dphy_configure_lvds_phy()
/drivers/mmc/host/
Dsdhci-esdhc-mcf.c224 u32 fvco, fsys, fesdhc, temp; in esdhc_mcf_pltfm_set_clock() local
250 fvco = fsys * ((temp & 0x1f) + 1); in esdhc_mcf_pltfm_set_clock()
251 fesdhc = fvco / (((temp >> 10) & 0x1f) + 1); in esdhc_mcf_pltfm_set_clock()
/drivers/gpu/drm/rcar-du/
Drcar_lvds.c209 unsigned long fvco; in rcar_lvds_d3_e3_pll_calc() local
220 fvco = fpfd * n; in rcar_lvds_d3_e3_pll_calc()
221 e_min = fvco > 1039500000 ? 1 : 0; in rcar_lvds_d3_e3_pll_calc()
233 fout = fvco / (1 << e) / div7; in rcar_lvds_d3_e3_pll_calc()
/drivers/phy/st/
Dphy-stm32-usbphyc.c206 unsigned long long fvco, ndiv, frac; in stm32_usbphyc_get_pll_params() local
218 fvco = (unsigned long long)PLL_FVCO_MHZ * HZ_PER_MHZ; in stm32_usbphyc_get_pll_params()
220 ndiv = fvco; in stm32_usbphyc_get_pll_params()
224 frac = fvco * (1 << 16); in stm32_usbphyc_get_pll_params()