Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/clk/imx/
Dclk-pll14xx.c105 int sdiv, int kdiv, unsigned long prate) in pll14xx_calc_rate() argument
110 fvco *= (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 fvco = pll14xx_calc_rate(pll, mdiv, pdiv, sdiv, kdiv, prate); in imx_pll14xx_calc_settings()
[all …]
Dclk.h62 unsigned int kdiv; member
273 .kdiv = (_k), \
/linux-6.1.9/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()
523 s16 kdiv; in samsung_pll0831x_recalc_rate() local
531 kdiv = (s16)((pll_con5 >> PLL0831X_KDIV_SHIFT) & PLL0831X_KDIV_MASK); in samsung_pll0831x_recalc_rate()
533 fvco *= (mdiv << 16) + kdiv; in samsung_pll0831x_recalc_rate()
570 pll_con5 |= ((u16)rate->kdiv << PLL0831X_KDIV_SHIFT); in samsung_pll0831x_set_rate()
753 u32 mdiv, pdiv, sdiv, kdiv, pll_con0, pll_con1, shift; in samsung_pll46xx_recalc_rate() local
[all …]
Dclk-pll.h84 .kdiv = (_k), \
104 .kdiv = (_k), \
115 .kdiv = (_k), \
128 unsigned int kdiv; member
/linux-6.1.9/drivers/gpu/drm/i915/display/
Dintel_dpll_mgr.c1481 u32 kdiv; member
1524 params->kdiv = 0; in skl_wrpll_params_populate()
1527 params->kdiv = 1; in skl_wrpll_params_populate()
1530 params->kdiv = 2; in skl_wrpll_params_populate()
1533 params->kdiv = 3; in skl_wrpll_params_populate()
1723 DPLL_CFGCR2_KDIV(wrpll_params.kdiv) | in skl_ddi_hdmi_pll_dividers()
2392 int *qdiv, int *kdiv) in icl_wrpll_get_multipliers() argument
2399 *kdiv = 1; in icl_wrpll_get_multipliers()
2403 *kdiv = 2; in icl_wrpll_get_multipliers()
2407 *kdiv = 2; in icl_wrpll_get_multipliers()
[all …]