Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/clk/actions/
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 …]
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);
Dowl-composite.h28 struct owl_mux_hw mux_hw; member
40 .mux_hw = _mux, \
69 .mux_hw = _mux, \
100 .mux_hw = _mux, \
Dowl-composite.c20 return owl_mux_helper_get_parent(&comp->common, &comp->mux_hw); in owl_comp_get_parent()
27 return owl_mux_helper_set_parent(&comp->common, &comp->mux_hw, index); in owl_comp_set_parent()
/Linux-v4.19/drivers/clk/
Dclk-composite.c26 struct clk_hw *mux_hw = composite->mux_hw; in clk_composite_get_parent() local
28 __clk_hw_set_clk(mux_hw, hw); in clk_composite_get_parent()
30 return mux_ops->get_parent(mux_hw); in clk_composite_get_parent()
37 struct clk_hw *mux_hw = composite->mux_hw; in clk_composite_set_parent() local
39 __clk_hw_set_clk(mux_hw, hw); in clk_composite_set_parent()
41 return mux_ops->set_parent(mux_hw, index); in clk_composite_set_parent()
63 struct clk_hw *mux_hw = composite->mux_hw; in clk_composite_determine_rate() local
76 mux_hw && mux_ops && mux_ops->set_parent) { in clk_composite_determine_rate()
80 parent = clk_hw_get_parent(mux_hw); in clk_composite_determine_rate()
93 for (i = 0; i < clk_hw_get_num_parents(mux_hw); i++) { in clk_composite_determine_rate()
[all …]
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()
1326 c_cfg.mux_hw, c_cfg.mux_ops, in stm32h7_rcc_init()
1349 c_cfg.mux_hw, c_cfg.mux_ops, in stm32h7_rcc_init()
1364 c_cfg.mux_hw, c_cfg.mux_ops, in stm32h7_rcc_init()
1378 c_cfg.mux_hw, c_cfg.mux_ops, in stm32h7_rcc_init()
Dclk-stm32mp1.c478 struct clk_hw *mux_hw; in _get_stm32_mux() local
492 mux_hw = &mmux->mux.hw; in _get_stm32_mux()
493 cfg->mmux->hws[cfg->mmux->nbr_clk++] = mux_hw; in _get_stm32_mux()
506 mux_hw = &mux->hw; in _get_stm32_mux()
509 return mux_hw; in _get_stm32_mux()
616 struct clk_hw *mux_hw, *div_hw, *gate_hw; in clk_stm32_register_composite() local
618 mux_hw = NULL; in clk_stm32_register_composite()
626 mux_hw = _get_stm32_mux(base, cfg->mux, lock); in clk_stm32_register_composite()
628 if (!IS_ERR(mux_hw)) { in clk_stm32_register_composite()
659 mux_hw, mux_ops, div_hw, div_ops, in clk_stm32_register_composite()
Dclk-stm32f4.c1371 struct clk_hw *mux_hw = NULL, *gate_hw = NULL; in stm32_register_aux_clk() local
1400 mux_hw = &mux->hw; in stm32_register_aux_clk()
1404 if (mux_hw == NULL && gate_hw == NULL) { in stm32_register_aux_clk()
1410 mux_hw, mux_ops, in stm32_register_aux_clk()
/Linux-v4.19/drivers/clk/tegra/
Dclk-periph.c28 struct clk_hw *mux_hw = &periph->mux.hw; in clk_periph_get_parent() local
30 __clk_hw_set_clk(mux_hw, hw); in clk_periph_get_parent()
32 return mux_ops->get_parent(mux_hw); in clk_periph_get_parent()
39 struct clk_hw *mux_hw = &periph->mux.hw; in clk_periph_set_parent() local
41 __clk_hw_set_clk(mux_hw, hw); in clk_periph_set_parent()
43 return mux_ops->set_parent(mux_hw, index); in clk_periph_set_parent()
/Linux-v4.19/drivers/clk/mvebu/
Darmada-37xx-periph.c86 struct clk_hw *mux_hw; member
193 .mux_hw = &mux_##_name.hw, \
203 .mux_hw = &mux_##_name.hw, \
237 .mux_hw = &mux_##_name.hw, \
603 struct clk_hw *mux_hw = NULL, *gate_hw = NULL, *rate_hw = NULL; in armada_3700_add_composite_clk() local
605 if (data->mux_hw) { in armada_3700_add_composite_clk()
608 mux_hw = data->mux_hw; in armada_3700_add_composite_clk()
609 mux = to_clk_mux(mux_hw); in armada_3700_add_composite_clk()
611 mux_ops = mux_hw->init->ops; in armada_3700_add_composite_clk()
657 mux_hw = muxrate_hw; in armada_3700_add_composite_clk()
[all …]
/Linux-v4.19/drivers/clk/st/
Dclk-flexgen.c91 struct clk_hw *mux_hw = &flexgen->mux.hw; in flexgen_get_parent() local
93 __clk_hw_set_clk(mux_hw, hw); in flexgen_get_parent()
95 return clk_mux_ops.get_parent(mux_hw); in flexgen_get_parent()
101 struct clk_hw *mux_hw = &flexgen->mux.hw; in flexgen_set_parent() local
103 __clk_hw_set_clk(mux_hw, hw); in flexgen_set_parent()
105 return clk_mux_ops.set_parent(mux_hw, index); in flexgen_set_parent()
/Linux-v4.19/drivers/clk/mediatek/
Dclk-mtk.c154 struct clk_hw *mux_hw = NULL, *gate_hw = NULL, *div_hw = NULL; in mtk_clk_register_composite() local
171 mux_hw = &mux->hw; in mtk_clk_register_composite()
215 mux_hw, mux_ops, in mtk_clk_register_composite()
/Linux-v4.19/drivers/clk/sunxi/
Dclk-factors.c189 struct clk_hw *mux_hw = NULL; in __sunxi_factors_register() local
245 mux_hw = &mux->hw; in __sunxi_factors_register()
250 mux_hw, &clk_mux_ops, in __sunxi_factors_register()
/Linux-v4.19/include/linux/
Dclk-provider.h679 struct clk_hw *mux_hw; member
692 struct clk_hw *mux_hw, const struct clk_ops *mux_ops,
699 struct clk_hw *mux_hw, const struct clk_ops *mux_ops,
/Linux-v4.19/drivers/clk/nxp/
Dclk-lpc32xx.c1440 struct clk_hw *mux_hw = NULL, *div_hw = NULL, *gate_hw = NULL; in lpc32xx_clk_register() local
1449 mux_hw = &mux0->clk.hw; in lpc32xx_clk_register()
1462 mux_hw, mops, div_hw, dops, in lpc32xx_clk_register()