Home
last modified time | relevance | path

Searched refs:div_val (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/clk/mmp/
A Dclk-mix.c134 static int _set_rate(struct mmp_clk_mix *mix, u32 mux_val, u32 div_val, in _set_rate() argument
159 mux_div |= MMP_CLK_BITS_SET_VAL(div_val, width, shift); in _set_rate()
280 u32 div_val, mux_val; in mmp_clk_mix_set_rate_and_parent() local
283 div_val = _get_div_val(mix, div); in mmp_clk_mix_set_rate_and_parent()
286 return _set_rate(mix, mux_val, div_val, 1, 1); in mmp_clk_mix_set_rate_and_parent()
353 u32 div_val, mux_val; in mmp_clk_set_parent() local
364 div_val = _get_div_val(mix, item->divisor); in mmp_clk_set_parent()
370 div_val = 0; in mmp_clk_set_parent()
373 return _set_rate(mix, mux_val, div_val, 1, div_val ? 1 : 0); in mmp_clk_set_parent()
/linux/drivers/clk/imx/
A Dclk-pll14xx.c184 u32 tmp, div_val; in clk_pll1416x_set_rate() local
217 div_val = (rate->mdiv << MDIV_SHIFT) | (rate->pdiv << PDIV_SHIFT) | in clk_pll1416x_set_rate()
219 writel_relaxed(div_val, pll->base + 0x4); in clk_pll1416x_set_rate()
250 u32 tmp, div_val; in clk_pll1443x_set_rate() local
282 div_val = (rate->mdiv << MDIV_SHIFT) | (rate->pdiv << PDIV_SHIFT) | in clk_pll1443x_set_rate()
284 writel_relaxed(div_val, pll->base + 0x4); in clk_pll1443x_set_rate()
/linux/drivers/clk/x86/
A Dclk-cgu.h192 unsigned int div_val; member
240 .div_val = _v, \
278 .div_val = _v, \
298 .div_val = _v, \
A Dclk-cgu.c32 list->div_width, list->div_val); in lgm_clk_register_fixed()
256 lgm_set_clk_val(div->membase, reg, shift, width, list->div_val); in lgm_clk_register_divider()
279 list->div_width, list->div_val); in lgm_clk_register_fixed_factor()
/linux/drivers/media/cec/platform/s5p/
A Dexynos_hdmi_cecctrl.c25 u32 div_ratio, div_val; in s5p_cec_set_divider() local
42 div_val = CEC_DIV_RATIO * 0.00005 - 1; in s5p_cec_set_divider()
47 writeb(div_val, cec->reg + S5P_CEC_DIVISOR_0); in s5p_cec_set_divider()
/linux/drivers/clk/
A Dclk-k210.c753 u32 reg, div_val; in k210_clk_get_rate() local
759 div_val = (reg >> cfg->div_shift) & GENMASK(cfg->div_width - 1, 0); in k210_clk_get_rate()
763 return parent_rate / (div_val + 1); in k210_clk_get_rate()
765 return parent_rate / ((div_val + 1) * 2); in k210_clk_get_rate()
767 return parent_rate / (2UL << div_val); in k210_clk_get_rate()

Completed in 17 milliseconds