Home
last modified time | relevance | path

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

12

/linux-6.1.9/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 …]
/linux-6.1.9/arch/arm/mach-s3c/
Dregs-s3c2443-clock.h154 uint64_t fvco; in s3c2443_get_mpll() local
164 fvco = (uint64_t)baseclk * (2 * (mdiv + 8)); in s3c2443_get_mpll()
165 do_div(fvco, pdiv << sdiv); in s3c2443_get_mpll()
167 return (unsigned int)fvco; in s3c2443_get_mpll()
174 uint64_t fvco; in s3c2443_get_epll() local
184 fvco = (uint64_t)baseclk * (mdiv + 8); in s3c2443_get_epll()
185 do_div(fvco, (pdiv + 2) << sdiv); in s3c2443_get_epll()
187 return (unsigned int)fvco; in s3c2443_get_epll()
/linux-6.1.9/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, \
/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/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
/linux-6.1.9/drivers/clk/imx/
Dclk-pll14xx.c107 u64 fvco = prate; in pll14xx_calc_rate() local
110 fvco *= (mdiv * 65536 + kdiv); in pll14xx_calc_rate()
113 do_div(fvco, pdiv << sdiv); in pll14xx_calc_rate()
115 return fvco; in pll14xx_calc_rate()
134 long fvco, rate_min, rate_max, dist, best = LONG_MAX; in imx_pll14xx_calc_settings() local
177 fvco = pll14xx_calc_rate(pll, mdiv, pdiv, sdiv, kdiv, prate); in imx_pll14xx_calc_settings()
178 t->rate = (unsigned int)fvco; in imx_pll14xx_calc_settings()
194 fvco = pll14xx_calc_rate(pll, mdiv, pdiv, sdiv, kdiv, prate); in imx_pll14xx_calc_settings()
197 dist = abs((long)rate - (long)fvco); in imx_pll14xx_calc_settings()
200 t->rate = (unsigned int)fvco; in imx_pll14xx_calc_settings()
Dclk-fracn-gppll.c123 u64 fvco = parent_rate; in clk_fracn_gppll_recalc_rate() local
170 fvco = fvco * mfi * mfd + fvco * mfn; in clk_fracn_gppll_recalc_rate()
171 do_div(fvco, mfd * rdiv * odiv); in clk_fracn_gppll_recalc_rate()
173 return (unsigned long)fvco; in clk_fracn_gppll_recalc_rate()
/linux-6.1.9/sound/soc/codecs/
Dnau8540.c570 u64 fvco, fvco_max; in nau8540_calc_fll_param() local
603 fvco = 256ULL * fs * 2 * mclk_src_scaling[i].param; in nau8540_calc_fll_param()
604 if (fvco > NAU_FVCO_MIN && fvco < NAU_FVCO_MAX && in nau8540_calc_fll_param()
605 fvco_max < fvco) { in nau8540_calc_fll_param()
606 fvco_max = fvco; in nau8540_calc_fll_param()
617 fvco = div_u64(fvco_max << 16, fref * fll_param->ratio); in nau8540_calc_fll_param()
618 fll_param->fll_int = (fvco >> 16) & 0x3FF; in nau8540_calc_fll_param()
619 fll_param->fll_frac = fvco & 0xFFFF; in nau8540_calc_fll_param()
Dnau8821.c1144 u64 fvco, fvco_max; in nau8821_calc_fll_param() local
1177 fvco = 256ULL * fs * 2 * mclk_src_scaling[i].param; in nau8821_calc_fll_param()
1178 if (fvco > NAU_FVCO_MIN && fvco < NAU_FVCO_MAX && in nau8821_calc_fll_param()
1179 fvco_max < fvco) { in nau8821_calc_fll_param()
1180 fvco_max = fvco; in nau8821_calc_fll_param()
1191 fvco = div_u64(fvco_max << 24, fref * fll_param->ratio); in nau8821_calc_fll_param()
1192 fll_param->fll_int = (fvco >> 24) & 0x3ff; in nau8821_calc_fll_param()
1193 fll_param->fll_frac = fvco & 0xffffff; in nau8821_calc_fll_param()
Dnau8824.c1266 u64 fvco, fvco_max; in nau8824_calc_fll_param() local
1299 fvco = 256ULL * fs * 2 * mclk_src_scaling[i].param; in nau8824_calc_fll_param()
1300 if (fvco > NAU_FVCO_MIN && fvco < NAU_FVCO_MAX && in nau8824_calc_fll_param()
1301 fvco_max < fvco) { in nau8824_calc_fll_param()
1302 fvco_max = fvco; in nau8824_calc_fll_param()
1313 fvco = div_u64(fvco_max << 16, fref * fll_param->ratio); in nau8824_calc_fll_param()
1314 fll_param->fll_int = (fvco >> 16) & 0x3FF; in nau8824_calc_fll_param()
1315 fll_param->fll_frac = fvco & 0xFFFF; in nau8824_calc_fll_param()
/linux-6.1.9/drivers/video/fbdev/matrox/
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_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 …]
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()
/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/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()

12