Home
last modified time | relevance | path

Searched refs:vco_rate (Results 1 – 7 of 7) sorted by relevance

/drivers/clk/analogbits/
Dwrpll-cln28hpc.c148 static u8 __wrpll_calc_divq(u32 target_rate, u64 *vco_rate) in __wrpll_calc_divq() argument
153 if (!vco_rate) { in __wrpll_calc_divq()
161 *vco_rate = MAX_VCO_FREQ; in __wrpll_calc_divq()
164 *vco_rate = MIN_VCO_FREQ; in __wrpll_calc_divq()
167 *vco_rate = (u64)target_rate << divq; in __wrpll_calc_divq()
/drivers/gpu/drm/msm/dsi/phy/
Ddsi_phy_28nm.c43 unsigned long vco_rate; member
62 unsigned long vco_rate; member
134 if (rate <= lpfr_lut[i].vco_rate) in dsi_pll_28nm_clk_set_rate()
247 unsigned long vco_rate; in dsi_pll_28nm_clk_recalc_rate() local
263 vco_rate = ref_clk * sdm_byp_div; in dsi_pll_28nm_clk_recalc_rate()
277 vco_rate = (ref_clk * (sdm_dc_off + 1)) + in dsi_pll_28nm_clk_recalc_rate()
279 DBG("vco rate = %lu", vco_rate); in dsi_pll_28nm_clk_recalc_rate()
282 DBG("returning vco rate = %lu", vco_rate); in dsi_pll_28nm_clk_recalc_rate()
284 return vco_rate; in dsi_pll_28nm_clk_recalc_rate()
490 cached_state->vco_rate = clk_hw_get_rate(phy->vco_hw); in dsi_28nm_pll_save_state()
[all …]
Ddsi_phy_28nm_8960.c49 unsigned long vco_rate; member
147 unsigned long vco_rate; in dsi_pll_28nm_clk_recalc_rate() local
166 vco_rate = (parent_rate / ref_divider) * fb_divider * 2; in dsi_pll_28nm_clk_recalc_rate()
168 vco_rate = 0; in dsi_pll_28nm_clk_recalc_rate()
171 DBG("returning vco rate = %lu", vco_rate); in dsi_pll_28nm_clk_recalc_rate()
173 return vco_rate; in dsi_pll_28nm_clk_recalc_rate()
356 cached_state->vco_rate = clk_hw_get_rate(phy->vco_hw); in dsi_28nm_pll_save_state()
367 cached_state->vco_rate, 0); in dsi_28nm_pll_restore_state()
Ddsi_phy_14nm.c66 unsigned long vco_rate; member
497 u64 vco_rate, multiplier = BIT(20); in dsi_pll_14nm_vco_recalc_rate() local
516 vco_rate = ref_clk * dec_start; in dsi_pll_14nm_vco_recalc_rate()
518 vco_rate += ((ref_clk * div_frac_start) / multiplier); in dsi_pll_14nm_vco_recalc_rate()
525 vco_rate = DIV_ROUND_UP_ULL(vco_rate, 1000) * 1000; in dsi_pll_14nm_vco_recalc_rate()
527 DBG("returning vco rate = %lu", (unsigned long)vco_rate); in dsi_pll_14nm_vco_recalc_rate()
529 return (unsigned long)vco_rate; in dsi_pll_14nm_vco_recalc_rate()
704 cached_state->vco_rate = clk_hw_get_rate(phy->vco_hw); in dsi_14nm_pll_save_state()
716 cached_state->vco_rate, 0); in dsi_14nm_pll_restore_state()
Ddsi_phy_10nm.c62 unsigned long vco_rate; member
411 u64 vco_rate = 0x0; in dsi_pll_10nm_vco_recalc_rate() local
435 vco_rate = pll_freq; in dsi_pll_10nm_vco_recalc_rate()
436 pll_10nm->vco_current_rate = vco_rate; in dsi_pll_10nm_vco_recalc_rate()
439 pll_10nm->phy->id, (unsigned long)vco_rate, dec, frac); in dsi_pll_10nm_vco_recalc_rate()
441 return (unsigned long)vco_rate; in dsi_pll_10nm_vco_recalc_rate()
Ddsi_phy_7nm.c61 unsigned long vco_rate; member
439 u64 vco_rate = 0x0; in dsi_pll_7nm_vco_recalc_rate() local
463 vco_rate = pll_freq; in dsi_pll_7nm_vco_recalc_rate()
464 pll_7nm->vco_current_rate = vco_rate; in dsi_pll_7nm_vco_recalc_rate()
467 pll_7nm->phy->id, (unsigned long)vco_rate, dec, frac); in dsi_pll_7nm_vco_recalc_rate()
469 return (unsigned long)vco_rate; in dsi_pll_7nm_vco_recalc_rate()
/drivers/clk/
Dclk-lmk04832.c259 unsigned int vco_rate; member
377 unsigned long vco_rate; in lmk04832_vco_recalc_rate() local
402 vco_rate = (prate << FIELD_GET(LMK04832_BIT_PLL2_MISC_REF_2X_EN, in lmk04832_vco_recalc_rate()
405 return vco_rate; in lmk04832_vco_recalc_rate()
495 long vco_rate; in lmk04832_vco_round_rate() local
502 vco_rate = lmk04832_calc_pll2_params(*prate, rate, &n, &p, &r); in lmk04832_vco_round_rate()
503 if (vco_rate < 0) { in lmk04832_vco_round_rate()
505 return vco_rate; in lmk04832_vco_round_rate()
508 if (rate != vco_rate) in lmk04832_vco_round_rate()
511 return vco_rate; in lmk04832_vco_round_rate()
[all …]