/kernel/linux/linux-5.10/drivers/clk/samsung/ |
D | clk-pll.c | 110 u64 fvco = parent_rate; in samsung_pll2126_recalc_rate() local 117 fvco *= (mdiv + 8); in samsung_pll2126_recalc_rate() 118 do_div(fvco, (pdiv + 2) << sdiv); in samsung_pll2126_recalc_rate() 120 return (unsigned long)fvco; in samsung_pll2126_recalc_rate() 143 u64 fvco = parent_rate; in samsung_pll3000_recalc_rate() local 150 fvco *= (2 * (mdiv + 8)); in samsung_pll3000_recalc_rate() 151 do_div(fvco, pdiv << sdiv); in samsung_pll3000_recalc_rate() 153 return (unsigned long)fvco; in samsung_pll3000_recalc_rate() 180 u64 fvco = parent_rate; in samsung_pll35xx_recalc_rate() local 187 fvco *= mdiv; in samsung_pll35xx_recalc_rate() [all …]
|
/kernel/linux/linux-5.10/arch/arm/mach-s3c/ |
D | regs-s3c2443-clock.h | 154 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()
|
/kernel/linux/linux-5.10/drivers/clk/sprd/ |
D | pll.c | 156 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()
|
D | pll.h | 59 u64 fvco; member 76 .fvco = _fvco, \
|
/kernel/linux/linux-5.10/drivers/media/tuners/ |
D | fc0011.c | 171 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 …]
|
D | tda18250.c | 436 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()
|
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/ |
D | stv6111.c | 453 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()
|
D | stb6100.c | 301 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()
|
D | stv0910.c | 809 u32 fvco; in set_mclock() local 858 fvco = (quartz * 2 * ndiv) / idf; in set_mclock() 859 state->base->mclk = fvco / (2 * odf) * 1000000; in set_mclock()
|
/kernel/linux/linux-5.10/drivers/clk/imx/ |
D | clk-pll14xx.c | 123 u64 fvco = parent_rate; in clk_pll1416x_recalc_rate() local 130 fvco *= mdiv; in clk_pll1416x_recalc_rate() 131 do_div(fvco, pdiv << sdiv); in clk_pll1416x_recalc_rate() 133 return fvco; in clk_pll1416x_recalc_rate() 142 u64 fvco = parent_rate; in clk_pll1443x_recalc_rate() local 152 fvco *= (mdiv * 65536 + kdiv); in clk_pll1443x_recalc_rate() 155 do_div(fvco, pdiv << sdiv); in clk_pll1443x_recalc_rate() 157 return fvco; in clk_pll1443x_recalc_rate()
|
/kernel/linux/linux-5.10/sound/soc/codecs/ |
D | nau8540.c | 552 u64 fvco, fvco_max; in nau8540_calc_fll_param() local 585 fvco = 256ULL * fs * 2 * mclk_src_scaling[i].param; in nau8540_calc_fll_param() 586 if (fvco > NAU_FVCO_MIN && fvco < NAU_FVCO_MAX && in nau8540_calc_fll_param() 587 fvco_max < fvco) { in nau8540_calc_fll_param() 588 fvco_max = fvco; in nau8540_calc_fll_param() 599 fvco = div_u64(fvco_max << 16, fref * fll_param->ratio); in nau8540_calc_fll_param() 600 fll_param->fll_int = (fvco >> 16) & 0x3FF; in nau8540_calc_fll_param() 601 fll_param->fll_frac = fvco & 0xFFFF; in nau8540_calc_fll_param()
|
D | nau8824.c | 1278 u64 fvco, fvco_max; in nau8824_calc_fll_param() local 1311 fvco = 256ULL * fs * 2 * mclk_src_scaling[i].param; in nau8824_calc_fll_param() 1312 if (fvco > NAU_FVCO_MIN && fvco < NAU_FVCO_MAX && in nau8824_calc_fll_param() 1313 fvco_max < fvco) { in nau8824_calc_fll_param() 1314 fvco_max = fvco; in nau8824_calc_fll_param() 1325 fvco = div_u64(fvco_max << 16, fref * fll_param->ratio); in nau8824_calc_fll_param() 1326 fll_param->fll_int = (fvco >> 16) & 0x3FF; in nau8824_calc_fll_param() 1327 fll_param->fll_frac = fvco & 0xFFFF; in nau8824_calc_fll_param()
|
D | nau8825.c | 1988 u64 fvco, fvco_max; in nau8825_calc_fll_param() local 2021 fvco = 256ULL * fs * 2 * mclk_src_scaling[i].param; in nau8825_calc_fll_param() 2022 if (fvco > NAU_FVCO_MIN && fvco < NAU_FVCO_MAX && in nau8825_calc_fll_param() 2023 fvco_max < fvco) { in nau8825_calc_fll_param() 2024 fvco_max = fvco; in nau8825_calc_fll_param() 2035 fvco = div_u64(fvco_max << 16, fref * fll_param->ratio); in nau8825_calc_fll_param() 2036 fll_param->fll_int = (fvco >> 16) & 0x3FF; in nau8825_calc_fll_param() 2037 fll_param->fll_frac = fvco & 0xFFFF; in nau8825_calc_fll_param()
|
/kernel/linux/linux-5.10/drivers/soc/xilinx/ |
D | xlnx_vcu.c | 297 u32 divisor_mcu, divisor_core, fvco; in xvcu_set_vcu_pll_info() local 346 fvco = cfg->fbdiv * refclk; in xvcu_set_vcu_pll_info() 347 if (fvco >= FVCO_MIN && fvco <= FVCO_MAX) { in xvcu_set_vcu_pll_info() 348 pll_clk = fvco / VCU_PLL_DIV2; in xvcu_set_vcu_pll_info() 349 if (fvco % VCU_PLL_DIV2 != 0) in xvcu_set_vcu_pll_info()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/matrox/ |
D | g450_pll.c | 20 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()
|
D | matroxfb_maven.c | 302 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 …]
|
D | matroxfb_misc.c | 164 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()
|
D | matroxfb_Ti3026.c | 287 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()
|
D | matroxfb_DAC1064.c | 42 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()
|
/kernel/linux/linux-5.10/drivers/phy/st/ |
D | phy-stm32-usbphyc.c | 89 unsigned long long fvco, ndiv, frac; in stm32_usbphyc_get_pll_params() local 101 fvco = (unsigned long long)PLL_FVCO_MHZ * HZ_PER_MHZ; in stm32_usbphyc_get_pll_params() 103 ndiv = fvco; in stm32_usbphyc_get_pll_params() 107 frac = fvco * (1 << 16); in stm32_usbphyc_get_pll_params()
|
/kernel/linux/linux-5.10/drivers/clk/ |
D | clk-xgene.c | 75 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()
|
D | clk-axi-clkgen.c | 113 unsigned long f, dout, best_f, fvco; in axi_clkgen_calc_params() local 140 fvco = fin * m / d; in axi_clkgen_calc_params() 142 dout = DIV_ROUND_CLOSEST(fvco, fout); in axi_clkgen_calc_params() 144 f = fvco / dout; in axi_clkgen_calc_params()
|
/kernel/linux/linux-5.10/drivers/mmc/host/ |
D | sdhci-esdhc-mcf.c | 224 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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/rcar-du/ |
D | rcar_lvds.c | 271 unsigned long fvco; in rcar_lvds_d3_e3_pll_calc() local 282 fvco = fpfd * n; in rcar_lvds_d3_e3_pll_calc() 283 e_min = fvco > 1039500000 ? 1 : 0; in rcar_lvds_d3_e3_pll_calc() 295 fout = fvco / (1 << e) / div7; in rcar_lvds_d3_e3_pll_calc()
|
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/ |
D | 0015_linux_drivers_clk.patch | 2941 u64 fvco = parent_rate; 2963 /* fvco = (m * 65536 + k) * Fin / (p * 65536) */ 2964 fvco *= (mdiv * 65536 + kdiv); 2967 do_div(fvco, pdiv << sdiv); 2969 - return fvco; 2970 + return rate ? (unsigned long) rate : (unsigned long)fvco;
|