Home
last modified time | relevance | path

Searched refs:mux_hw (Results 1 – 17 of 17) sorted by relevance

/linux/drivers/clk/actions/
H A Dowl-mux.c17 const struct owl_mux_hw *mux_hw) in owl_mux_helper_get_parent() argument
22 regmap_read(common->regmap, mux_hw->reg, &reg); in owl_mux_helper_get_parent()
23 parent = reg >> mux_hw->shift; in owl_mux_helper_get_parent()
24 parent &= BIT(mux_hw->width) - 1; in owl_mux_helper_get_parent()
33 return owl_mux_helper_get_parent(&mux->common, &mux->mux_hw); in owl_mux_get_parent()
37 struct owl_mux_hw *mux_hw, u8 index) in owl_mux_helper_set_parent() argument
41 regmap_read(common->regmap, mux_hw->reg, &reg); in owl_mux_helper_set_parent()
42 reg &= ~GENMASK(mux_hw->width + mux_hw->shift - 1, mux_hw->shift); in owl_mux_helper_set_parent()
43 regmap_write(common->regmap, mux_hw->reg, in owl_mux_helper_set_parent()
44 reg | (index << mux_hw->shift)); in owl_mux_helper_set_parent()
[all …]
H A Dowl-mux.h23 struct owl_mux_hw mux_hw; member
37 .mux_hw = OWL_MUX_HW(_reg, _shift, _width), \
55 const struct owl_mux_hw *mux_hw);
57 struct owl_mux_hw *mux_hw, u8 index);
H A Dowl-composite.h28 struct owl_mux_hw mux_hw; member
40 .mux_hw = _mux, \
69 .mux_hw = _mux, \
100 .mux_hw = _mux, \
/linux/drivers/clk/
H A Dclk-composite.c15 struct clk_hw *mux_hw = composite->mux_hw; in clk_composite_get_parent() local
17 __clk_hw_set_clk(mux_hw, hw); in clk_composite_get_parent()
19 return mux_ops->get_parent(mux_hw); in clk_composite_get_parent()
26 struct clk_hw *mux_hw = composite->mux_hw; in clk_composite_set_parent() local
28 __clk_hw_set_clk(mux_hw, hw); in clk_composite_set_parent()
30 return mux_ops->set_parent(mux_hw, index); in clk_composite_set_parent()
75 struct clk_hw *mux_hw = composite->mux_hw; in clk_composite_determine_rate() local
84 mux_hw && mux_ops && mux_ops->set_parent) { in clk_composite_determine_rate()
90 parent = clk_hw_get_parent(mux_hw); in clk_composite_determine_rate()
107 for (i = 0; i < clk_hw_get_num_parents(mux_hw); i++) { in clk_composite_determine_rate()
[all …]
H A Dclk-stm32h7.c350 struct clk_hw *mux_hw; member
367 struct clk_hw *mux_hw; in get_cfg_composite_div() local
372 mux_hw = div_hw = gate_hw = NULL; in get_cfg_composite_div()
381 mux_hw = &mux->hw; in get_cfg_composite_div()
412 composite->mux_hw = mux_hw; in get_cfg_composite_div()
1324 c_cfg.mux_hw, c_cfg.mux_ops, in stm32h7_rcc_init()
1347 c_cfg.mux_hw, c_cfg.mux_ops, in stm32h7_rcc_init()
1362 c_cfg.mux_hw, c_cfg.mux_ops, in stm32h7_rcc_init()
1376 c_cfg.mux_hw, c_cfg.mux_ops, in stm32h7_rcc_init()
H A Dclk-bm1880.c759 struct clk_hw *mux_hw = NULL, *gate_hw = NULL, *div_hw = NULL; in bm1880_clk_register_composite() local
774 mux_hw = &mux->hw; in bm1880_clk_register_composite()
823 num_parents, mux_hw, mux_ops, div_hw, in bm1880_clk_register_composite()
H A Dclk-stm32f4.c1775 struct clk_hw *mux_hw = NULL, *gate_hw = NULL; in stm32_register_aux_clk() local
1804 mux_hw = &mux->hw; in stm32_register_aux_clk()
1808 if (mux_hw == NULL && gate_hw == NULL) { in stm32_register_aux_clk()
1814 mux_hw, mux_ops, in stm32_register_aux_clk()
/linux/drivers/clk/tegra/
H A Dclk-periph.c18 struct clk_hw *mux_hw = &periph->mux.hw; in clk_periph_get_parent() local
20 __clk_hw_set_clk(mux_hw, hw); in clk_periph_get_parent()
22 return mux_ops->get_parent(mux_hw); in clk_periph_get_parent()
29 struct clk_hw *mux_hw = &periph->mux.hw; in clk_periph_set_parent() local
31 __clk_hw_set_clk(mux_hw, hw); in clk_periph_set_parent()
33 return mux_ops->set_parent(mux_hw, index); in clk_periph_set_parent()
/linux/drivers/clk/mvebu/
H A Darmada-37xx-periph.c97 struct clk_hw *mux_hw; member
204 .mux_hw = &mux_##_name.hw, \
214 .mux_hw = &mux_##_name.hw, \
248 .mux_hw = &mux_##_name.hw, \
625 struct clk_hw *mux_hw = NULL, *gate_hw = NULL, *rate_hw = NULL; in armada_3700_add_composite_clk() local
627 if (data->mux_hw) { in armada_3700_add_composite_clk()
630 mux_hw = data->mux_hw; in armada_3700_add_composite_clk()
631 mux = to_clk_mux(mux_hw); in armada_3700_add_composite_clk()
633 mux_ops = mux_hw->init->ops; in armada_3700_add_composite_clk()
679 mux_hw = muxrate_hw; in armada_3700_add_composite_clk()
[all …]
/linux/drivers/clk/imx/
H A Dclk-composite-93.c188 struct clk_hw *hw = ERR_PTR(-ENOMEM), *mux_hw; in imx93_clk_composite_flags() local
200 mux_hw = &mux->hw; in imx93_clk_composite_flags()
223 mux_hw, &clk_mux_ro_ops, div_hw, in imx93_clk_composite_flags()
237 mux_hw, &imx93_clk_composite_mux_ops, div_hw, in imx93_clk_composite_flags()
H A Dclk-composite-7ulp.c88 struct clk_hw *mux_hw = NULL, *fd_hw = NULL, *gate_hw = NULL; in imx_ulp_clk_hw_composite() local
105 mux_hw = &mux->hw; in imx_ulp_clk_hw_composite()
157 mux_hw, &clk_mux_ops, fd_hw, in imx_ulp_clk_hw_composite()
H A Dclk-composite-8m.c225 struct clk_hw *hw = ERR_PTR(-ENOMEM), *mux_hw; in __imx8m_clk_hw_composite() local
238 mux_hw = &mux->hw; in __imx8m_clk_hw_composite()
287 mux_hw, mux_ops, div_hw, in __imx8m_clk_hw_composite()
/linux/drivers/clk/st/
H A Dclk-flexgen.c99 struct clk_hw *mux_hw = &flexgen->mux.hw; in flexgen_get_parent() local
101 __clk_hw_set_clk(mux_hw, hw); in flexgen_get_parent()
103 return clk_mux_ops.get_parent(mux_hw); in flexgen_get_parent()
109 struct clk_hw *mux_hw = &flexgen->mux.hw; in flexgen_set_parent() local
111 __clk_hw_set_clk(mux_hw, hw); in flexgen_set_parent()
113 return clk_mux_ops.set_parent(mux_hw, index); in flexgen_set_parent()
/linux/drivers/clk/sunxi/
H A Dclk-factors.c186 struct clk_hw *mux_hw = NULL; in __sunxi_factors_register() local
242 mux_hw = &mux->hw; in __sunxi_factors_register()
247 mux_hw, &clk_mux_ops, in __sunxi_factors_register()
/linux/drivers/clk/mediatek/
H A Dclk-mtk.c225 struct clk_hw *mux_hw = NULL, *gate_hw = NULL, *div_hw = NULL; in mtk_clk_register_composite() local
242 mux_hw = &mux->hw; in mtk_clk_register_composite()
286 mux_hw, mux_ops, in mtk_clk_register_composite()
316 if (composite->mux_hw) in mtk_clk_unregister_composite()
317 mux = to_clk_mux(composite->mux_hw); in mtk_clk_unregister_composite()
/linux/drivers/clk/stm32/
H A Dclk-stm32mp1.c490 struct clk_hw *mux_hw; in _get_stm32_mux() local
504 mux_hw = &mmux->mux.hw; in _get_stm32_mux()
505 cfg->mmux->hws[cfg->mmux->nbr_clk++] = mux_hw; in _get_stm32_mux()
518 mux_hw = &mux->hw; in _get_stm32_mux()
521 return mux_hw; in _get_stm32_mux()
633 struct clk_hw *mux_hw, *div_hw, *gate_hw; in clk_stm32_register_composite() local
635 mux_hw = NULL; in clk_stm32_register_composite()
643 mux_hw = _get_stm32_mux(dev, base, cfg->mux, lock); in clk_stm32_register_composite()
645 if (!IS_ERR(mux_hw)) { in clk_stm32_register_composite()
676 mux_hw, mux_ops, div_hw, div_ops, in clk_stm32_register_composite()
[all …]
/linux/include/linux/
H A Dclk-provider.h1303 struct clk_hw *mux_hw; member
1316 struct clk_hw *mux_hw, const struct clk_ops *mux_ops,
1322 struct clk_hw *mux_hw, const struct clk_ops *mux_ops,
1329 struct clk_hw *mux_hw, const struct clk_ops *mux_ops,
1336 struct clk_hw *mux_hw, const struct clk_ops *mux_ops,
1343 struct clk_hw *mux_hw, const struct clk_ops *mux_ops,