Home
last modified time | relevance | path

Searched refs:kdiv (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/drivers/clk/imx/
Dclk-pll14xx.c105 int sdiv, int kdiv, unsigned long prate) in pll14xx_calc_rate() argument
110 fout *= (mdiv * 65536 + kdiv); in pll14xx_calc_rate()
121 long kdiv; in pll1443x_calc_kdiv() local
124 kdiv = ((rate * ((pdiv * 65536) << sdiv) + prate / 2) / prate) - (mdiv * 65536); in pll1443x_calc_kdiv()
126 return clamp_t(short, kdiv, KDIV_MIN, KDIV_MAX); in pll1443x_calc_kdiv()
133 int mdiv, pdiv, sdiv, kdiv; in imx_pll14xx_calc_settings() local
158 t->kdiv = tt->kdiv; in imx_pll14xx_calc_settings()
173 kdiv = pll1443x_calc_kdiv(mdiv, pdiv, sdiv, rate, prate); in imx_pll14xx_calc_settings()
176 FIELD_GET(KDIV_MASK, pll_div_ctl1), kdiv); in imx_pll14xx_calc_settings()
177 fout = pll14xx_calc_rate(pll, mdiv, pdiv, sdiv, kdiv, prate); in imx_pll14xx_calc_settings()
[all …]
Dclk.h62 unsigned int kdiv; member
277 .kdiv = (_k), \
/linux-6.12.1/drivers/clk/samsung/
Dclk-pll.c328 s16 kdiv; in samsung_pll36xx_recalc_rate() local
336 kdiv = (s16)(pll_con1 & PLL36XX_KDIV_MASK); in samsung_pll36xx_recalc_rate()
338 fvco *= (mdiv << 16) + kdiv; in samsung_pll36xx_recalc_rate()
355 rate->kdiv != old_kdiv); in samsung_pll36xx_mpk_change()
397 pll_con1 |= rate->kdiv << PLL36XX_KDIV_SHIFT; in samsung_pll36xx_set_rate()
537 s16 kdiv; in samsung_pll0831x_recalc_rate() local
545 kdiv = (s16)((pll_con5 >> PLL0831X_KDIV_SHIFT) & PLL0831X_KDIV_MASK); in samsung_pll0831x_recalc_rate()
547 fvco *= (mdiv << 16) + kdiv; in samsung_pll0831x_recalc_rate()
584 pll_con5 |= ((u16)rate->kdiv << PLL0831X_KDIV_SHIFT); in samsung_pll0831x_set_rate()
767 u32 mdiv, pdiv, sdiv, kdiv, pll_con0, pll_con1, shift; in samsung_pll46xx_recalc_rate() local
[all …]
Dclk-pll.h69 .kdiv = (_k), \
89 .kdiv = (_k), \
100 .kdiv = (_k), \
113 unsigned int kdiv; member
/linux-6.12.1/drivers/gpu/drm/i915/display/
Dintel_dpll_mgr.c1587 u32 kdiv; member
1630 params->kdiv = 0; in skl_wrpll_params_populate()
1633 params->kdiv = 1; in skl_wrpll_params_populate()
1636 params->kdiv = 2; in skl_wrpll_params_populate()
1639 params->kdiv = 3; in skl_wrpll_params_populate()
1832 DPLL_CFGCR2_KDIV(wrpll_params.kdiv) | in skl_ddi_hdmi_pll_dividers()
2508 int *qdiv, int *kdiv) in icl_wrpll_get_multipliers() argument
2515 *kdiv = 1; in icl_wrpll_get_multipliers()
2519 *kdiv = 2; in icl_wrpll_get_multipliers()
2523 *kdiv = 2; in icl_wrpll_get_multipliers()
[all …]