Home
last modified time | relevance | path

Searched refs:div_shift (Results 1 – 25 of 26) sorted by relevance

12

/linux/drivers/clk/
H A Dclk-loongson2.c39 u8 div_shift; member
52 u8 div_shift; member
66 .div_shift = _dshift, \
80 .div_shift = _dshift, \
92 .div_shift = _dshift, \
219 div = loongson2_rate_part(val, clk->div_shift, clk->div_width); in loongson2_pll_recalc_rate()
235 mult = loongson2_rate_part(val, clk->div_shift, clk->div_width) + 1; in loongson2_freqscale_recalc_rate()
268 clk->div_shift = cld->div_shift; in loongson2_clk_register()
325 p->div_shift, p->div_width, in loongson2_clk_probe()
H A Dclk-en7523.c62 u8 div_shift; member
108 .div_shift = 0,
122 .div_shift = 0,
136 .div_shift = 0,
151 .div_shift = 24,
163 .div_shift = 8,
177 .div_shift = 0,
283 val >>= desc->div_shift; in en7523_get_div()
H A Dclk-sp7021.c52 int div_shift; member
473 u32 fbdiv = ((reg >> clk->div_shift) & ((1 << clk->div_width) - 1)) + 1; in sp_pll_recalc_rate()
498 u32 mask = GENMASK(clk->div_shift + clk->div_width - 1, clk->div_shift); in sp_pll_set_rate()
501 reg |= ((fbdiv - 1) << clk->div_shift) & mask; in sp_pll_set_rate()
576 pll->div_shift = shift; in sp_pll_register()
H A Dclk-bm1880.c120 s8 div_shift; member
152 .div_shift = _div_shift, \
168 .div_shift = -1, \
803 if (clks->div_shift >= 0) { in bm1880_clk_register_composite()
812 div_hws->div.shift = clks->div_shift; in bm1880_clk_register_composite()
H A Dclk-k210.c35 u8 div_shift; member
55 .div_shift = (_shift), \
760 div_val = (reg >> cfg->div_shift) & GENMASK(cfg->div_width - 1, 0); in k210_clk_get_rate()
/linux/drivers/clk/rockchip/
H A Dclk.h548 int div_shift, int div_width,
593 u8 div_shift; member
616 .div_shift = ds, \
638 .div_shift = ds, \
656 .div_shift = ds, \
674 .div_shift = ds, \
714 .div_shift = ds, \
733 .div_shift = ds, \
749 .div_shift = 16, \
766 .div_shift = 16, \
[all …]
H A Dclk-ddr.c21 int div_shift; member
94 int div_shift, int div_width, in rockchip_clk_register_ddrclk() argument
129 ddrclk->div_shift = div_shift; in rockchip_clk_register_ddrclk()
H A Dclk.c43 int div_offset, u8 div_shift, u8 div_width, u8 div_flags, in rockchip_clk_register_branch() argument
97 div->shift = div_shift; in rockchip_clk_register_branch()
493 list->div_shift, list->div_width, in rockchip_clk_register_branches()
500 list->div_shift, list->div_width, in rockchip_clk_register_branches()
517 list->mux_flags, list->div_shift, in rockchip_clk_register_branches()
537 list->div_shift, list->div_width, in rockchip_clk_register_branches()
547 list->div_shift in rockchip_clk_register_branches()
555 list->div_shift, list->div_flags, &ctx->lock); in rockchip_clk_register_branches()
561 list->div_shift, list->div_width, in rockchip_clk_register_branches()
570 list->mux_width, list->div_shift, in rockchip_clk_register_branches()
H A Dclk-half-divider.c163 u8 div_shift, u8 div_width, in rockchip_clk_register_halfdiv() argument
209 div->shift = div_shift; in rockchip_clk_register_halfdiv()
/linux/sound/soc/fsl/
H A Dfsl_mqs.c61 int div_shift; member
101 (div - 1) << mqs_priv->soc->div_shift); in fsl_mqs_hw_params()
317 .div_shift = MQS_CLK_DIV_SHIFT,
330 .div_shift = IMX6SX_GPR2_MQS_CLK_DIV_SHIFT,
343 .div_shift = 8,
356 .div_shift = 8,
369 .div_shift = 9,
/linux/drivers/clk/x86/
H A Dclk-cgu.h182 u8 div_shift; member
232 .div_shift = _shift, \
272 .div_shift = _shift, \
292 .div_shift = _shift, \
H A Dclk-cgu.c30 lgm_set_clk_val(ctx->membase, list->div_off, list->div_shift, in lgm_clk_register_fixed()
199 u8 shift = list->div_shift; in lgm_clk_register_divider()
251 lgm_set_clk_val(ctx->membase, list->div_off, list->div_shift, in lgm_clk_register_fixed_factor()
/linux/drivers/clk/imx/
H A Dclk-pllv3.c53 u32 div_shift; member
115 u32 div = (readl_relaxed(pll->base) >> pll->div_shift) & pll->div_mask; in clk_pllv3_recalc_rate()
143 val &= ~(pll->div_mask << pll->div_shift); in clk_pllv3_set_rate()
144 val |= (div << pll->div_shift); in clk_pllv3_set_rate()
439 pll->div_shift = 1; in imx_clk_hw_pllv3()
/linux/drivers/clk/mediatek/
H A Dclk-mtk.h190 unsigned char div_shift; member
201 .div_shift = _shift, \
H A Dclk-mt8167-apmixedsys.c82 .div_shift = _shift, \
H A Dclk-mt8516.c474 .div_shift = _shift, \
H A Dclk-mt8167.c663 .div_shift = _shift, \
H A Dclk-mt8365.c547 .div_shift = _shift, \
/linux/drivers/clk/at91/
H A Dclk-sam9x60-pll.c351 (div << core->layout->div_shift) | ena_val); in sam9x60_div_pll_set_div()
372 cdiv = (val & core->layout->div_mask) >> core->layout->div_shift; in sam9x60_div_pll_set()
524 cdiv = (val & core->layout->div_mask) >> core->layout->div_shift; in sam9x60_div_pll_set_rate_chg()
580 cdiv = (val & core.layout->div_mask) >> core.layout->div_shift; in sam9x60_div_pll_notifier_fn()
H A Dsam9x7.c162 .div_shift = 0,
170 .div_shift = 0,
179 .div_shift = 12,
H A Dpmc.h65 u8 div_shift; member
H A Dsam9x60.c63 .div_shift = 0,
H A Dsama7g5.c79 .div_shift = 0,
87 .div_shift = 12,
/linux/drivers/mfd/
H A Ddb8500-prcmu.c523 u32 div_shift; member
530 .div_shift = PRCM_DSITVCLK_DIV_DSI0_ESC_CLK_DIV_SHIFT,
535 .div_shift = PRCM_DSITVCLK_DIV_DSI1_ESC_CLK_DIV_SHIFT,
540 .div_shift = PRCM_DSITVCLK_DIV_DSI2_ESC_CLK_DIV_SHIFT,
1534 div = ((div & dsiescclk[n].div_mask) >> (dsiescclk[n].div_shift)); in dsiescclk_rate()
1899 val |= (min(div, (u32)255) << dsiescclk[n].div_shift); in set_dsiescclk_rate()
/linux/drivers/clk/tegra/
H A Dclk-tegra-periph.c832 u8 div_shift; member
843 .div_shift = _div_shift,\
967 data->div_shift, 8, 1, data->lock); in init_pllp()

12