/kernel/linux/linux-5.10/drivers/clk/spear/ |
D | clk-vco-pll.c | 97 for (*index = 0; *index < pll->vco->rtbl_cnt; (*index)++) { in clk_pll_round_rate_index() 100 *prate = pll_calc_rate(pll->vco->rtbl, vco_parent_rate, *index, in clk_pll_round_rate_index() 131 if (pll->vco->lock) in clk_pll_recalc_rate() 132 spin_lock_irqsave(pll->vco->lock, flags); in clk_pll_recalc_rate() 134 p = readl_relaxed(pll->vco->cfg_reg); in clk_pll_recalc_rate() 136 if (pll->vco->lock) in clk_pll_recalc_rate() 137 spin_unlock_irqrestore(pll->vco->lock, flags); in clk_pll_recalc_rate() 148 struct pll_rate_tbl *rtbl = pll->vco->rtbl; in clk_pll_set_rate() 154 if (pll->vco->lock) in clk_pll_set_rate() 155 spin_lock_irqsave(pll->vco->lock, flags); in clk_pll_set_rate() [all …]
|
D | Makefile | 6 obj-y += clk.o clk-aux-synth.o clk-frac-synth.o clk-gpt-synth.o clk-vco-pll.o
|
/kernel/linux/linux-5.10/drivers/clk/versatile/ |
D | clk-icst.c | 62 static int vco_get(struct clk_icst *icst, struct icst_vco *vco) in vco_get() argument 80 vco->v = val & INTEGRATOR_AP_CM_BITS; in vco_get() 81 vco->r = 22; in vco_get() 82 vco->s = 1; in vco_get() 95 vco->v = val & INTEGRATOR_AP_SYS_BITS; in vco_get() 96 vco->r = 46; in vco_get() 97 vco->s = 3; in vco_get() 112 vco->v = divxy ? 17 : 14; in vco_get() 113 vco->r = divxy ? 22 : 14; in vco_get() 114 vco->s = 1; in vco_get() [all …]
|
D | icst.c | 27 unsigned long icst_hz(const struct icst_params *p, struct icst_vco vco) in icst_hz() argument 29 u64 dividend = p->ref * 2 * (u64)(vco.v + 8); in icst_hz() 30 u32 divisor = (vco.r + 2) * p->s2div[vco.s]; in icst_hz() 49 struct icst_vco vco = { .s = 1, .v = p->vd_max, .r = p->rd_max }; in icst_hz_to_vco() local 66 return vco; in icst_hz_to_vco() 68 vco.s = p->idx2s[i]; in icst_hz_to_vco() 91 vco.v = vd - 8; in icst_hz_to_vco() 92 vco.r = rd - 2; in icst_hz_to_vco() 99 return vco; in icst_hz_to_vco()
|
D | icst.h | 30 unsigned long icst_hz(const struct icst_params *p, struct icst_vco vco);
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
D | intel_cdclk.c | 226 unsigned int vco; in intel_hpll_vco() local 246 vco = vco_table[tmp & 0x7]; in intel_hpll_vco() 247 if (vco == 0) in intel_hpll_vco() 251 drm_dbg_kms(&dev_priv->drm, "HPLL VCO %u kHz\n", vco); in intel_hpll_vco() 253 return vco; in intel_hpll_vco() 268 cdclk_config->vco = intel_hpll_vco(dev_priv); in g33_get_cdclk() 277 switch (cdclk_config->vco) { in g33_get_cdclk() 294 cdclk_config->cdclk = DIV_ROUND_CLOSEST(cdclk_config->vco, in g33_get_cdclk() 301 cdclk_config->vco, tmp); in g33_get_cdclk() 350 cdclk_config->vco = intel_hpll_vco(dev_priv); in i965gm_get_cdclk() [all …]
|
/kernel/linux/linux-5.10/drivers/clk/berlin/ |
D | berlin2-avpll.c | 115 struct berlin2_avpll_vco *vco = to_avpll_vco(hw); in berlin2_avpll_vco_is_enabled() local 118 reg = readl_relaxed(vco->base + VCO_CTRL0); in berlin2_avpll_vco_is_enabled() 119 if (vco->flags & BERLIN2_AVPLL_BIT_QUIRK) in berlin2_avpll_vco_is_enabled() 127 struct berlin2_avpll_vco *vco = to_avpll_vco(hw); in berlin2_avpll_vco_enable() local 130 reg = readl_relaxed(vco->base + VCO_CTRL0); in berlin2_avpll_vco_enable() 131 if (vco->flags & BERLIN2_AVPLL_BIT_QUIRK) in berlin2_avpll_vco_enable() 135 writel_relaxed(reg, vco->base + VCO_CTRL0); in berlin2_avpll_vco_enable() 142 struct berlin2_avpll_vco *vco = to_avpll_vco(hw); in berlin2_avpll_vco_disable() local 145 reg = readl_relaxed(vco->base + VCO_CTRL0); in berlin2_avpll_vco_disable() 146 if (vco->flags & BERLIN2_AVPLL_BIT_QUIRK) in berlin2_avpll_vco_disable() [all …]
|
/kernel/linux/linux-5.10/drivers/clk/ |
D | clk-si544.c | 223 u64 vco; in si544_calc_muldiv() local 248 vco = FVCO_MIN + ls_freq - 1; in si544_calc_muldiv() 249 do_div(vco, ls_freq); in si544_calc_muldiv() 250 settings->hs_div = vco; in si544_calc_muldiv() 258 vco = (u64)ls_freq * settings->hs_div; in si544_calc_muldiv() 261 tmp = do_div(vco, FXO); in si544_calc_muldiv() 262 settings->fb_div_int = vco; in si544_calc_muldiv() 265 vco = (u64)tmp << 32; in si544_calc_muldiv() 266 vco += FXO / 2; /* Round to nearest multiple */ in si544_calc_muldiv() 267 do_div(vco, FXO); in si544_calc_muldiv() [all …]
|
/kernel/linux/linux-5.10/drivers/clk/pistachio/ |
D | clk-pll.c | 199 u64 val, vco, old_postdiv1, old_postdiv2; in pll_gf40lp_frac_set_rate() local 210 vco = params->fref; in pll_gf40lp_frac_set_rate() 211 vco *= (params->fbdiv << 24) + params->frac; in pll_gf40lp_frac_set_rate() 212 vco = div64_u64(vco, params->refdiv << 24); in pll_gf40lp_frac_set_rate() 214 if (vco < MIN_VCO_FRAC_FRAC || vco > MAX_VCO_FRAC_FRAC) in pll_gf40lp_frac_set_rate() 215 pr_warn("%s: VCO %llu is out of range %lu..%lu\n", name, vco, in pll_gf40lp_frac_set_rate() 222 if (val > vco / 16) in pll_gf40lp_frac_set_rate() 224 name, val, vco / 16); in pll_gf40lp_frac_set_rate() 356 u32 val, vco, old_postdiv1, old_postdiv2; in pll_gf40lp_laint_set_rate() local 366 vco = div_u64(params->fref * params->fbdiv, params->refdiv); in pll_gf40lp_laint_set_rate() [all …]
|
/kernel/linux/linux-5.10/drivers/clk/analogbits/ |
D | wrpll-cln28hpc.c | 225 u64 target_vco_rate, delta, best_delta, f_pre_div, vco, vco_pre; in wrpll_configure_for_rate() local 279 vco = vco_pre * f; in wrpll_configure_for_rate() 282 if (vco > target_vco_rate) { in wrpll_configure_for_rate() 284 vco = vco_pre * f; in wrpll_configure_for_rate() 285 } else if (vco < MIN_VCO_FREQ) { in wrpll_configure_for_rate() 287 vco = vco_pre * f; in wrpll_configure_for_rate() 290 delta = abs(target_rate - vco); in wrpll_configure_for_rate()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/matrox/ |
D | g450_pll.c | 106 unsigned int *vco, unsigned int fout) in g450_firstpll() argument 114 *vco = vcomax; in g450_firstpll() 116 *vco = fout; in g450_firstpll() 131 *vco = tvco; in g450_firstpll() 133 return g450_nextpll(minfo, pi, vco, 0xFF0000 | p); in g450_firstpll() 437 unsigned int vco; in __g450_setclk() local 440 vco = g450_mnp2vco(minfo, mnp); in __g450_setclk() 441 delta = pll_freq_delta(fout, g450_vco2f(mnp, vco)); in __g450_setclk() 453 && vco != g450_mnp2vco(minfo, mnparray[idx-1]) in __g450_setclk() 454 && vco < (pi->vcomin * 17 / 16)) { in __g450_setclk()
|
/kernel/linux/linux-5.10/drivers/clk/bcm/ |
D | clk-iproc-pll.c | 287 struct iproc_pll_vco_param *vco) in pll_fractional_change_only() argument 303 if (ndiv_int != vco->ndiv_int) in pll_fractional_change_only() 309 if (pdiv != vco->pdiv) in pll_fractional_change_only() 315 static int pll_set_rate(struct iproc_clk *clk, struct iproc_pll_vco_param *vco, in pll_set_rate() argument 321 unsigned long rate = vco->rate; in pll_set_rate() 331 if (vco->pdiv == 0) in pll_set_rate() 334 ref_freq = parent_rate / vco->pdiv; in pll_set_rate() 364 if (pll_fractional_change_only(clk->pll, vco)) { in pll_set_rate() 370 val |= vco->ndiv_frac << ctrl->ndiv_frac.shift; in pll_set_rate() 407 val |= vco->ndiv_int << ctrl->ndiv_int.shift; in pll_set_rate() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/boot/ |
D | 4xx.c | 419 u32 cpu, plb, opb, ebc, vco; in __ibm440eplike_fixup_clocks() local 446 vco = sys_clk * m; in __ibm440eplike_fixup_clocks() 447 clk_a = vco / fwdva; in __ibm440eplike_fixup_clocks() 448 clk_b = vco / fwdvb; in __ibm440eplike_fixup_clocks() 452 vco = 0; in __ibm440eplike_fixup_clocks() 749 u32 cpu, plb, opb, ebc, vco, tb, uart0, uart1; in ibm405ex_fixup_clocks() local 774 vco = (unsigned int)(sys_clk * m); in ibm405ex_fixup_clocks() 778 vco = 0; in ibm405ex_fixup_clocks() 782 cpu = vco / (fwdva * cpudv0); in ibm405ex_fixup_clocks() 784 plb = vco / (fwdva * plb2xdv0 * plbdv0); in ibm405ex_fixup_clocks()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/gma500/ |
D | cdv_intel_display.c | 37 .vco = {.min = 1800000, .max = 3600000}, 49 .vco = {.min = 1800000, .max = 3600000}, 64 .vco = {.min = 1809000, .max = 3564000}, 76 .vco = {.min = 1800000, .max = 3600000}, 88 .vco = {.min = 1809000, .max = 3564000}, 100 .vco = {.min = 1800000, .max = 3600000}, 289 if (clock->vco < 2250000) { in cdv_dpll_set_clock_cdv() 292 } else if (clock->vco < 2750000) { in cdv_dpll_set_clock_cdv() 295 } else if (clock->vco < 3300000) { in cdv_dpll_set_clock_cdv() 396 clock->vco = (refclk * clock->m) / clock->n; in cdv_intel_clock() [all …]
|
D | gma_display.h | 26 int vco; member 41 struct gma_range_t dot, vco, n, m, m1, m2, p, p1; member
|
D | psb_intel_display.c | 27 .vco = {.min = 1400000, .max = 2800000}, 39 .vco = {.min = 1400000, .max = 2800000}, 70 clock->vco = refclk * clock->m / (clock->n + 2); in psb_intel_clock() 71 clock->dot = clock->vco / clock->p; in psb_intel_clock()
|
/kernel/linux/linux-5.10/drivers/clk/mediatek/ |
D | clk-pll.c | 68 u64 vco; in __mtk_pll_recalc_rate() local 76 vco = (u64)fin * pcw; in __mtk_pll_recalc_rate() 78 if (pcwfbits && (vco & GENMASK(pcwfbits - 1, 0))) in __mtk_pll_recalc_rate() 81 vco >>= pcwfbits; in __mtk_pll_recalc_rate() 84 vco++; in __mtk_pll_recalc_rate() 86 return ((unsigned long)vco + postdiv - 1) / postdiv; in __mtk_pll_recalc_rate()
|
/kernel/linux/linux-5.10/drivers/phy/rockchip/ |
D | phy-rockchip-inno-hdmi.c | 571 u64 vco; in inno_hdmi_phy_rk3228_clk_recalc_rate() local 577 vco = parent_rate * nf; in inno_hdmi_phy_rk3228_clk_recalc_rate() 580 do_div(vco, nd * 5); in inno_hdmi_phy_rk3228_clk_recalc_rate() 590 do_div(vco, (nd * (no_a == 1 ? no_b : no_a) * no_d * 2)); in inno_hdmi_phy_rk3228_clk_recalc_rate() 593 inno->pixclock = vco; in inno_hdmi_phy_rk3228_clk_recalc_rate() 597 return vco; in inno_hdmi_phy_rk3228_clk_recalc_rate() 718 u64 vco; in inno_hdmi_phy_rk3328_clk_recalc_rate() local 724 vco = parent_rate * nf; in inno_hdmi_phy_rk3328_clk_recalc_rate() 730 vco += DIV_ROUND_CLOSEST(parent_rate * frac, (1 << 24)); in inno_hdmi_phy_rk3328_clk_recalc_rate() 734 do_div(vco, nd * 5); in inno_hdmi_phy_rk3328_clk_recalc_rate() [all …]
|
/kernel/linux/linux-5.10/drivers/media/i2c/ |
D | mt9t112.c | 278 u32 vco, clk; in mt9t112_clock_info() local 307 vco = 2 * m * ext / (n + 1); in mt9t112_clock_info() 308 enable = ((vco < 384000) || (vco > 768000)) ? "X" : ""; in mt9t112_clock_info() 309 dev_dbg(&client->dev, "VCO : %10u K %s\n", vco, enable); in mt9t112_clock_info() 311 clk = vco / (p1 + 1) / (p2 + 1); in mt9t112_clock_info() 315 clk = vco / (p3 + 1); in mt9t112_clock_info() 319 clk = vco / (p6 + 1); in mt9t112_clock_info() 323 clk = vco / (p5 + 1); in mt9t112_clock_info() 327 clk = vco / (p4 + 1); in mt9t112_clock_info() 331 clk = vco / (p7 + 1); in mt9t112_clock_info()
|
/kernel/linux/linux-5.10/arch/arm/boot/dts/ |
D | integratorap.dts | 95 vco-offset = <0x08>; 104 vco-offset = <0x1c>; 121 vco-offset = <0x04>; 130 vco-offset = <0x04>;
|
D | arm-realview-eb.dtsi | 265 vco-offset = <0x0C>; 272 vco-offset = <0x10>; 279 vco-offset = <0x14>; 286 vco-offset = <0x18>; 293 vco-offset = <0x1c>;
|
D | arm-realview-pb11mp.dts | 374 vco-offset = <0x0C>; 381 vco-offset = <0x10>; 388 vco-offset = <0x14>; 395 vco-offset = <0x18>; 402 vco-offset = <0x1c>; 409 vco-offset = <0xd4>; 416 vco-offset = <0xd8>;
|
D | arm-realview-pbx.dtsi | 287 vco-offset = <0x0C>; 294 vco-offset = <0x10>; 301 vco-offset = <0x14>; 308 vco-offset = <0x18>; 315 vco-offset = <0x1c>;
|
D | integratorcp.dts | 99 vco-offset = <0x08>; 108 vco-offset = <0x08>; 117 vco-offset = <0x1c>;
|
/kernel/linux/linux-5.10/drivers/media/tuners/ |
D | max2165.c | 224 u8 vco, vco_sub_band, adc; in max2165_debug_status() local 236 vco = autotune >> 6; in max2165_debug_status() 246 dprintk("VCO: %d, VCO Sub-band: %d, ADC: %d\n", vco, vco_sub_band, adc); in max2165_debug_status()
|