Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/clk/mmp/
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()
/kernel/linux/linux-5.10/drivers/clk/imx/
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()
/kernel/linux/linux-5.10/drivers/clk/x86/
Dclk-cgu.h192 unsigned int div_val; member
240 .div_val = _v, \
278 .div_val = _v, \
298 .div_val = _v, \
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()
/kernel/linux/linux-5.10/drivers/media/cec/platform/s5p/
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()