/kernel/linux/linux-5.10/drivers/clk/actions/ |
H A D | owl-mux.c | 17 const struct owl_mux_hw *mux_hw) in owl_mux_helper_get_parent() 22 regmap_read(common->regmap, mux_hw->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() 41 regmap_read(common->regmap, mux_hw->reg, ®); in owl_mux_helper_set_parent() 42 reg &= ~GENMASK(mux_hw->width + mux_hw->shift - 1, mux_hw in owl_mux_helper_set_parent() 16 owl_mux_helper_get_parent(const struct owl_clk_common *common, const struct owl_mux_hw *mux_hw) owl_mux_helper_get_parent() argument 36 owl_mux_helper_set_parent(const struct owl_clk_common *common, struct owl_mux_hw *mux_hw, u8 index) owl_mux_helper_set_parent() argument [all...] |
H A D | owl-mux.h | 23 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 D | owl-composite.h | 28 struct owl_mux_hw mux_hw; member 40 .mux_hw = _mux, \ 69 .mux_hw = _mux, \ 100 .mux_hw = _mux, \
|
H A D | owl-composite.c | 20 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()
|
/kernel/linux/linux-6.6/drivers/clk/actions/ |
H A D | owl-mux.c | 17 const struct owl_mux_hw *mux_hw) in owl_mux_helper_get_parent() 22 regmap_read(common->regmap, mux_hw->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() 41 regmap_read(common->regmap, mux_hw->reg, ®); in owl_mux_helper_set_parent() 42 reg &= ~GENMASK(mux_hw->width + mux_hw->shift - 1, mux_hw in owl_mux_helper_set_parent() 16 owl_mux_helper_get_parent(const struct owl_clk_common *common, const struct owl_mux_hw *mux_hw) owl_mux_helper_get_parent() argument 36 owl_mux_helper_set_parent(const struct owl_clk_common *common, struct owl_mux_hw *mux_hw, u8 index) owl_mux_helper_set_parent() argument [all...] |
H A D | owl-mux.h | 23 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 D | owl-composite.h | 28 struct owl_mux_hw mux_hw; member 40 .mux_hw = _mux, \ 69 .mux_hw = _mux, \ 100 .mux_hw = _mux, \
|
H A D | owl-composite.c | 20 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()
|
/kernel/linux/linux-6.6/drivers/clk/ |
H A D | clk-composite.c | 15 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 186 struct clk_hw *mux_hw = composite->mux_hw; clk_composite_set_rate_and_parent() local 237 __clk_hw_register_composite(struct device *dev, const char *name, const char * const *parent_names, const struct clk_parent_data *pdata, int num_parents, struct clk_hw *mux_hw, const struct clk_ops *mux_ops, struct clk_hw *rate_hw, const struct clk_ops *rate_ops, struct clk_hw *gate_hw, const struct clk_ops *gate_ops, unsigned long flags) __clk_hw_register_composite() argument 354 clk_hw_register_composite(struct device *dev, const char *name, const char * const *parent_names, int num_parents, struct clk_hw *mux_hw, const struct clk_ops *mux_ops, struct clk_hw *rate_hw, const struct clk_ops *rate_ops, struct clk_hw *gate_hw, const struct clk_ops *gate_ops, unsigned long flags) clk_hw_register_composite() argument 368 clk_hw_register_composite_pdata(struct device *dev, const char *name, const struct clk_parent_data *parent_data, int num_parents, struct clk_hw *mux_hw, const struct clk_ops *mux_ops, struct clk_hw *rate_hw, const struct clk_ops *rate_ops, struct clk_hw *gate_hw, const struct clk_ops *gate_ops, unsigned long flags) clk_hw_register_composite_pdata() argument 383 clk_register_composite(struct device *dev, const char *name, const char * const *parent_names, int num_parents, struct clk_hw *mux_hw, const struct clk_ops *mux_ops, struct clk_hw *rate_hw, const struct clk_ops *rate_ops, struct clk_hw *gate_hw, const struct clk_ops *gate_ops, unsigned long flags) clk_register_composite() argument 401 clk_register_composite_pdata(struct device *dev, const char *name, const struct clk_parent_data *parent_data, int num_parents, struct clk_hw *mux_hw, const struct clk_ops *mux_ops, struct clk_hw *rate_hw, const struct clk_ops *rate_ops, struct clk_hw *gate_hw, const struct clk_ops *gate_ops, unsigned long flags) clk_register_composite_pdata() argument 450 __devm_clk_hw_register_composite(struct device *dev, const char *name, const char * const *parent_names, const struct clk_parent_data *pdata, int num_parents, struct clk_hw *mux_hw, const struct clk_ops *mux_ops, struct clk_hw *rate_hw, const struct clk_ops *rate_ops, struct clk_hw *gate_hw, const struct clk_ops *gate_ops, unsigned long flags) __devm_clk_hw_register_composite() argument 479 devm_clk_hw_register_composite_pdata(struct device *dev, const char *name, const struct clk_parent_data *parent_data, int num_parents, struct clk_hw *mux_hw, const struct clk_ops *mux_ops, struct clk_hw *rate_hw, const struct clk_ops *rate_ops, struct clk_hw *gate_hw, const struct clk_ops *gate_ops, unsigned long flags) devm_clk_hw_register_composite_pdata() argument [all...] |
H A D | clk-stm32h7.c | 350 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() 1325 c_cfg.mux_hw, c_cfg.mux_ops, in stm32h7_rcc_init() 1348 c_cfg.mux_hw, c_cfg.mux_ops, in stm32h7_rcc_init() 1363 c_cfg.mux_hw, c_cfg.mux_ops, in stm32h7_rcc_init() 1377 c_cfg.mux_hw, c_cf in stm32h7_rcc_init() [all...] |
/kernel/linux/linux-5.10/drivers/clk/ |
H A D | clk-composite.c | 14 struct clk_hw *mux_hw = composite->mux_hw; in clk_composite_get_parent() local 16 __clk_hw_set_clk(mux_hw, hw); in clk_composite_get_parent() 18 return mux_ops->get_parent(mux_hw); in clk_composite_get_parent() 25 struct clk_hw *mux_hw = composite->mux_hw; in clk_composite_set_parent() local 27 __clk_hw_set_clk(mux_hw, hw); in clk_composite_set_parent() 29 return mux_ops->set_parent(mux_hw, index); in clk_composite_set_parent() 51 struct clk_hw *mux_hw = composite->mux_hw; in clk_composite_determine_rate() local 151 struct clk_hw *mux_hw = composite->mux_hw; clk_composite_set_rate_and_parent() local 202 __clk_hw_register_composite(struct device *dev, const char *name, const char * const *parent_names, const struct clk_parent_data *pdata, int num_parents, struct clk_hw *mux_hw, const struct clk_ops *mux_ops, struct clk_hw *rate_hw, const struct clk_ops *rate_ops, struct clk_hw *gate_hw, const struct clk_ops *gate_ops, unsigned long flags) __clk_hw_register_composite() argument 319 clk_hw_register_composite(struct device *dev, const char *name, const char * const *parent_names, int num_parents, struct clk_hw *mux_hw, const struct clk_ops *mux_ops, struct clk_hw *rate_hw, const struct clk_ops *rate_ops, struct clk_hw *gate_hw, const struct clk_ops *gate_ops, unsigned long flags) clk_hw_register_composite() argument 333 clk_hw_register_composite_pdata(struct device *dev, const char *name, const struct clk_parent_data *parent_data, int num_parents, struct clk_hw *mux_hw, const struct clk_ops *mux_ops, struct clk_hw *rate_hw, const struct clk_ops *rate_ops, struct clk_hw *gate_hw, const struct clk_ops *gate_ops, unsigned long flags) clk_hw_register_composite_pdata() argument 348 clk_register_composite(struct device *dev, const char *name, const char * const *parent_names, int num_parents, struct clk_hw *mux_hw, const struct clk_ops *mux_ops, struct clk_hw *rate_hw, const struct clk_ops *rate_ops, struct clk_hw *gate_hw, const struct clk_ops *gate_ops, unsigned long flags) clk_register_composite() argument 365 clk_register_composite_pdata(struct device *dev, const char *name, const struct clk_parent_data *parent_data, int num_parents, struct clk_hw *mux_hw, const struct clk_ops *mux_ops, struct clk_hw *rate_hw, const struct clk_ops *rate_ops, struct clk_hw *gate_hw, const struct clk_ops *gate_ops, unsigned long flags) clk_register_composite_pdata() argument [all...] |
H A D | clk-stm32h7.c | 350 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_cf in stm32h7_rcc_init() [all...] |
/kernel/linux/linux-5.10/drivers/clk/imx/ |
H A D | clk-composite-7ulp.c | 31 struct clk_hw *mux_hw = NULL, *fd_hw = NULL, *gate_hw = NULL; in imx7ulp_clk_hw_composite() local 41 mux_hw = &mux->hw; in imx7ulp_clk_hw_composite() 77 mux_hw, &clk_mux_ops, fd_hw, in imx7ulp_clk_hw_composite()
|
H A D | clk-composite-8m.c | 182 struct clk_hw *hw = ERR_PTR(-ENOMEM), *mux_hw; in imx8m_clk_hw_composite_flags() local 194 mux_hw = &mux->hw; in imx8m_clk_hw_composite_flags() 238 mux_hw, mux_ops, div_hw, in imx8m_clk_hw_composite_flags()
|
/kernel/linux/linux-5.10/drivers/clk/tegra/ |
H A D | clk-periph.c | 18 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()
|
/kernel/linux/linux-6.6/drivers/clk/tegra/ |
H A D | clk-periph.c | 18 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()
|
/kernel/linux/linux-5.10/drivers/clk/mvebu/ |
H A D | armada-37xx-periph.c | 97 struct clk_hw *mux_hw; member 204 .mux_hw = &mux_##_name.hw, \ 214 .mux_hw = &mux_##_name.hw, \ 248 .mux_hw = &mux_##_name.hw, \ 622 struct clk_hw *mux_hw = NULL, *gate_hw = NULL, *rate_hw = NULL; in armada_3700_add_composite_clk() local 624 if (data->mux_hw) { in armada_3700_add_composite_clk() 627 mux_hw = data->mux_hw; in armada_3700_add_composite_clk() 628 mux = to_clk_mux(mux_hw); in armada_3700_add_composite_clk() 630 mux_ops = mux_hw in armada_3700_add_composite_clk() [all...] |
/kernel/linux/linux-6.6/drivers/clk/mvebu/ |
H A D | armada-37xx-periph.c | 97 struct clk_hw *mux_hw; member 204 .mux_hw = &mux_##_name.hw, \ 214 .mux_hw = &mux_##_name.hw, \ 248 .mux_hw = &mux_##_name.hw, \ 622 struct clk_hw *mux_hw = NULL, *gate_hw = NULL, *rate_hw = NULL; in armada_3700_add_composite_clk() local 624 if (data->mux_hw) { in armada_3700_add_composite_clk() 627 mux_hw = data->mux_hw; in armada_3700_add_composite_clk() 628 mux = to_clk_mux(mux_hw); in armada_3700_add_composite_clk() 630 mux_ops = mux_hw in armada_3700_add_composite_clk() [all...] |
/kernel/linux/linux-6.6/drivers/clk/imx/ |
H A D | clk-composite-93.c | 188 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() 243 mux_hw, &imx93_clk_composite_mux_ops, div_hw, in imx93_clk_composite_flags()
|
H A D | clk-composite-7ulp.c | 74 struct clk_hw *mux_hw = NULL, *fd_hw = NULL, *gate_hw = NULL; in imx_ulp_clk_hw_composite() local 85 mux_hw = &mux->hw; in imx_ulp_clk_hw_composite() 137 mux_hw, &clk_mux_ops, fd_hw, in imx_ulp_clk_hw_composite()
|
H A D | clk-composite-8m.c | 213 struct clk_hw *hw = ERR_PTR(-ENOMEM), *mux_hw; in __imx8m_clk_hw_composite() local 225 mux_hw = &mux->hw; in __imx8m_clk_hw_composite() 272 mux_hw, mux_ops, div_hw, in __imx8m_clk_hw_composite()
|
/kernel/linux/linux-5.10/drivers/clk/st/ |
H A D | clk-flexgen.c | 92 struct clk_hw *mux_hw = &flexgen->mux.hw; in flexgen_get_parent() local 94 __clk_hw_set_clk(mux_hw, hw); in flexgen_get_parent() 96 return clk_mux_ops.get_parent(mux_hw); in flexgen_get_parent() 102 struct clk_hw *mux_hw = &flexgen->mux.hw; in flexgen_set_parent() local 104 __clk_hw_set_clk(mux_hw, hw); in flexgen_set_parent() 106 return clk_mux_ops.set_parent(mux_hw, index); in flexgen_set_parent()
|
/kernel/linux/linux-6.6/drivers/clk/st/ |
H A D | clk-flexgen.c | 99 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()
|
/kernel/linux/linux-5.10/drivers/clk/mediatek/ |
H A D | clk-mtk.c | 156 struct clk_hw *mux_hw = NULL, *gate_hw = NULL, *div_hw = NULL; in mtk_clk_register_composite() local 173 mux_hw = &mux->hw; in mtk_clk_register_composite() 217 mux_hw, mux_ops, in mtk_clk_register_composite()
|
/kernel/linux/linux-5.10/drivers/clk/sunxi/ |
H A D | clk-factors.c | 186 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()
|