Searched refs:postdiv (Results 1 – 6 of 6) sorted by relevance
/drivers/clk/mediatek/ |
D | clk-pll.c | 67 u32 pcw, int postdiv) in __mtk_pll_recalc_rate() argument 87 return ((unsigned long)vco + postdiv - 1) / postdiv; in __mtk_pll_recalc_rate() 91 int postdiv) in mtk_pll_set_rate_regs() argument 101 val |= (ffs(postdiv) - 1) << pll->data->pd_shift; in mtk_pll_set_rate_regs() 137 static void mtk_pll_calc_values(struct mtk_clk_pll *pll, u32 *pcw, u32 *postdiv, in mtk_pll_calc_values() argument 156 *postdiv = 1 << val; in mtk_pll_calc_values() 159 *postdiv = 1 << val; in mtk_pll_calc_values() 160 if ((u64)freq * *postdiv >= fmin) in mtk_pll_calc_values() 177 u32 postdiv; in mtk_pll_set_rate() local 179 mtk_pll_calc_values(pll, &pcw, &postdiv, rate, parent_rate); in mtk_pll_set_rate() [all …]
|
/drivers/clk/keystone/ |
D | pll.c | 64 u32 postdiv; member 85 u32 mult = 0, prediv, postdiv, val; in clk_pllclk_recalc() local 104 postdiv = ((val & pll_data->clkod_mask) >> in clk_pllclk_recalc() 107 postdiv = readl(pll_data->pllod); in clk_pllclk_recalc() 108 postdiv = ((postdiv & pll_data->clkod_mask) >> in clk_pllclk_recalc() 111 postdiv = pll_data->postdiv; in clk_pllclk_recalc() 115 rate /= postdiv; in clk_pllclk_recalc() 176 if (of_property_read_u32(node, "fixed-postdiv", &pll_data->postdiv)) { in _of_pll_clk_init()
|
/drivers/video/fbdev/ |
D | gxt4500.c | 237 int m, n, pdiv1, pdiv2, postdiv; in calc_pll() local 247 postdiv = pdiv1 * pdiv2; in calc_pll() 248 pll_period = DIV_ROUND_UP(period_ps, postdiv); in calc_pll() 256 n = intf * postdiv / period_ps; in calc_pll() 259 t = par->refclk_ps * m * postdiv / n; in calc_pll()
|
/drivers/clk/ |
D | clk-axm5516.c | 55 unsigned long rate, fbdiv, refdiv, postdiv; in axxia_pllclk_recalc() local 59 postdiv = ((control >> 0) & 0xf) + 1; in axxia_pllclk_recalc() 62 rate = (parent_rate / (refdiv * postdiv)) * fbdiv; in axxia_pllclk_recalc()
|
/drivers/media/i2c/ |
D | ov2659.c | 916 u32 prediv, postdiv, mult; in ov2659_pll_calc_params() local 922 postdiv = ctrl1[i].div; in ov2659_pll_calc_params() 929 actual /= postdiv; in ov2659_pll_calc_params()
|
/drivers/gpu/drm/radeon/ |
D | rv770_dpm.c | 343 static int rv770_encode_yclk_post_div(u32 postdiv, u32 *encoded_postdiv) in rv770_encode_yclk_post_div() argument 347 switch (postdiv) { in rv770_encode_yclk_post_div()
|