Home
last modified time | relevance | path

Searched refs:gate_hw (Results 1 - 25 of 41) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/clk/actions/
H A Dowl-gate.c17 const struct owl_gate_hw *gate_hw, bool enable) in owl_gate_set()
19 int set = gate_hw->gate_flags & CLK_GATE_SET_TO_DISABLE ? 1 : 0; in owl_gate_set()
24 regmap_read(common->regmap, gate_hw->reg, &reg); in owl_gate_set()
27 reg |= BIT(gate_hw->bit_idx); in owl_gate_set()
29 reg &= ~BIT(gate_hw->bit_idx); in owl_gate_set()
31 regmap_write(common->regmap, gate_hw->reg, reg); in owl_gate_set()
39 owl_gate_set(common, &gate->gate_hw, false); in owl_gate_disable()
47 owl_gate_set(common, &gate->gate_hw, true); in owl_gate_enable()
53 const struct owl_gate_hw *gate_hw) in owl_gate_clk_is_enabled()
57 regmap_read(common->regmap, gate_hw in owl_gate_clk_is_enabled()
16 owl_gate_set(const struct owl_clk_common *common, const struct owl_gate_hw *gate_hw, bool enable) owl_gate_set() argument
52 owl_gate_clk_is_enabled(const struct owl_clk_common *common, const struct owl_gate_hw *gate_hw) owl_gate_clk_is_enabled() argument
[all...]
H A Dowl-gate.h23 struct owl_gate_hw gate_hw; member
37 .gate_hw = OWL_GATE_HW(_reg, _bit_idx, _gate_flags), \
50 .gate_hw = OWL_GATE_HW(_reg, _bit_idx, _gate_flags), \
67 const struct owl_gate_hw *gate_hw, bool enable);
69 const struct owl_gate_hw *gate_hw);
H A Dowl-composite.h29 struct owl_gate_hw gate_hw; member
41 .gate_hw = _gate, \
55 .gate_hw = _gate, \
70 .gate_hw = _gate, \
84 .gate_hw = _gate, \
101 .gate_hw = _gate, \
H A Dowl-composite.c35 owl_gate_set(common, &comp->gate_hw, false); in owl_comp_disable()
43 owl_gate_set(common, &comp->gate_hw, true); in owl_comp_enable()
53 return owl_gate_clk_is_enabled(common, &comp->gate_hw); in owl_comp_is_enabled()
/kernel/linux/linux-6.6/drivers/clk/actions/
H A Dowl-gate.c17 const struct owl_gate_hw *gate_hw, bool enable) in owl_gate_set()
19 int set = gate_hw->gate_flags & CLK_GATE_SET_TO_DISABLE ? 1 : 0; in owl_gate_set()
24 regmap_read(common->regmap, gate_hw->reg, &reg); in owl_gate_set()
27 reg |= BIT(gate_hw->bit_idx); in owl_gate_set()
29 reg &= ~BIT(gate_hw->bit_idx); in owl_gate_set()
31 regmap_write(common->regmap, gate_hw->reg, reg); in owl_gate_set()
39 owl_gate_set(common, &gate->gate_hw, false); in owl_gate_disable()
47 owl_gate_set(common, &gate->gate_hw, true); in owl_gate_enable()
53 const struct owl_gate_hw *gate_hw) in owl_gate_clk_is_enabled()
57 regmap_read(common->regmap, gate_hw in owl_gate_clk_is_enabled()
16 owl_gate_set(const struct owl_clk_common *common, const struct owl_gate_hw *gate_hw, bool enable) owl_gate_set() argument
52 owl_gate_clk_is_enabled(const struct owl_clk_common *common, const struct owl_gate_hw *gate_hw) owl_gate_clk_is_enabled() argument
[all...]
H A Dowl-gate.h23 struct owl_gate_hw gate_hw; member
37 .gate_hw = OWL_GATE_HW(_reg, _bit_idx, _gate_flags), \
50 .gate_hw = OWL_GATE_HW(_reg, _bit_idx, _gate_flags), \
67 const struct owl_gate_hw *gate_hw, bool enable);
69 const struct owl_gate_hw *gate_hw);
H A Dowl-composite.h29 struct owl_gate_hw gate_hw; member
41 .gate_hw = _gate, \
55 .gate_hw = _gate, \
70 .gate_hw = _gate, \
84 .gate_hw = _gate, \
101 .gate_hw = _gate, \
H A Dowl-composite.c35 owl_gate_set(common, &comp->gate_hw, false); in owl_comp_disable()
43 owl_gate_set(common, &comp->gate_hw, true); in owl_comp_enable()
53 return owl_gate_clk_is_enabled(common, &comp->gate_hw); in owl_comp_is_enabled()
/kernel/linux/linux-6.6/drivers/clk/
H A Dclk-composite.c208 struct clk_hw *gate_hw = composite->gate_hw; in clk_composite_is_enabled() local
210 __clk_hw_set_clk(gate_hw, hw); in clk_composite_is_enabled()
212 return gate_ops->is_enabled(gate_hw); in clk_composite_is_enabled()
219 struct clk_hw *gate_hw = composite->gate_hw; in clk_composite_enable() local
221 __clk_hw_set_clk(gate_hw, hw); in clk_composite_enable()
223 return gate_ops->enable(gate_hw); in clk_composite_enable()
230 struct clk_hw *gate_hw = composite->gate_hw; in clk_composite_disable() 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 Dclk-stm32h7.c352 struct clk_hw *gate_hw; member
369 struct clk_hw *gate_hw; in get_cfg_composite_div() local
372 mux_hw = div_hw = gate_hw = NULL; in get_cfg_composite_div()
406 gate_hw = &gate->hw; in get_cfg_composite_div()
418 composite->gate_hw = gate_hw; in get_cfg_composite_div()
1327 c_cfg.gate_hw, c_cfg.gate_ops, in stm32h7_rcc_init()
1350 c_cfg.gate_hw, c_cfg.gate_ops, in stm32h7_rcc_init()
1365 c_cfg.gate_hw, c_cfg.gate_ops, in stm32h7_rcc_init()
1379 c_cfg.gate_hw, c_cf in stm32h7_rcc_init()
[all...]
/kernel/linux/linux-5.10/drivers/clk/
H A Dclk-composite.c173 struct clk_hw *gate_hw = composite->gate_hw; in clk_composite_is_enabled() local
175 __clk_hw_set_clk(gate_hw, hw); in clk_composite_is_enabled()
177 return gate_ops->is_enabled(gate_hw); in clk_composite_is_enabled()
184 struct clk_hw *gate_hw = composite->gate_hw; in clk_composite_enable() local
186 __clk_hw_set_clk(gate_hw, hw); in clk_composite_enable()
188 return gate_ops->enable(gate_hw); in clk_composite_enable()
195 struct clk_hw *gate_hw = composite->gate_hw; in clk_composite_disable() 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 Dclk-stm32h7.c352 struct clk_hw *gate_hw; member
369 struct clk_hw *gate_hw; in get_cfg_composite_div() local
372 mux_hw = div_hw = gate_hw = NULL; in get_cfg_composite_div()
406 gate_hw = &gate->hw; in get_cfg_composite_div()
418 composite->gate_hw = gate_hw; in get_cfg_composite_div()
1328 c_cfg.gate_hw, c_cfg.gate_ops, in stm32h7_rcc_init()
1351 c_cfg.gate_hw, c_cfg.gate_ops, in stm32h7_rcc_init()
1366 c_cfg.gate_hw, c_cfg.gate_ops, in stm32h7_rcc_init()
1380 c_cfg.gate_hw, c_cf in stm32h7_rcc_init()
[all...]
/kernel/linux/linux-5.10/drivers/clk/tegra/
H A Dclk-sdmmc-mux.c170 struct clk_hw *gate_hw = &sdmmc_mux->gate.hw; in clk_sdmmc_mux_is_enabled() local
172 __clk_hw_set_clk(gate_hw, hw); in clk_sdmmc_mux_is_enabled()
174 return gate_ops->is_enabled(gate_hw); in clk_sdmmc_mux_is_enabled()
181 struct clk_hw *gate_hw = &sdmmc_mux->gate.hw; in clk_sdmmc_mux_enable() local
183 __clk_hw_set_clk(gate_hw, hw); in clk_sdmmc_mux_enable()
185 return gate_ops->enable(gate_hw); in clk_sdmmc_mux_enable()
192 struct clk_hw *gate_hw = &sdmmc_mux->gate.hw; in clk_sdmmc_mux_disable() local
194 gate_ops->disable(gate_hw); in clk_sdmmc_mux_disable()
201 struct clk_hw *gate_hw = &sdmmc_mux->gate.hw; in clk_sdmmc_mux_disable_unused() local
203 gate_ops->disable_unused(gate_hw); in clk_sdmmc_mux_disable_unused()
[all...]
H A Dclk-periph.c76 struct clk_hw *gate_hw = &periph->gate.hw; in clk_periph_is_enabled() local
78 __clk_hw_set_clk(gate_hw, hw); in clk_periph_is_enabled()
80 return gate_ops->is_enabled(gate_hw); in clk_periph_is_enabled()
87 struct clk_hw *gate_hw = &periph->gate.hw; in clk_periph_enable() local
89 __clk_hw_set_clk(gate_hw, hw); in clk_periph_enable()
91 return gate_ops->enable(gate_hw); in clk_periph_enable()
98 struct clk_hw *gate_hw = &periph->gate.hw; in clk_periph_disable() local
100 gate_ops->disable(gate_hw); in clk_periph_disable()
107 struct clk_hw *gate_hw = &periph->gate.hw; in clk_periph_disable_unused() local
109 gate_ops->disable_unused(gate_hw); in clk_periph_disable_unused()
[all...]
/kernel/linux/linux-6.6/drivers/clk/tegra/
H A Dclk-sdmmc-mux.c170 struct clk_hw *gate_hw = &sdmmc_mux->gate.hw; in clk_sdmmc_mux_is_enabled() local
172 __clk_hw_set_clk(gate_hw, hw); in clk_sdmmc_mux_is_enabled()
174 return gate_ops->is_enabled(gate_hw); in clk_sdmmc_mux_is_enabled()
181 struct clk_hw *gate_hw = &sdmmc_mux->gate.hw; in clk_sdmmc_mux_enable() local
183 __clk_hw_set_clk(gate_hw, hw); in clk_sdmmc_mux_enable()
185 return gate_ops->enable(gate_hw); in clk_sdmmc_mux_enable()
192 struct clk_hw *gate_hw = &sdmmc_mux->gate.hw; in clk_sdmmc_mux_disable() local
194 gate_ops->disable(gate_hw); in clk_sdmmc_mux_disable()
201 struct clk_hw *gate_hw = &sdmmc_mux->gate.hw; in clk_sdmmc_mux_disable_unused() local
203 gate_ops->disable_unused(gate_hw); in clk_sdmmc_mux_disable_unused()
[all...]
H A Dclk-periph.c82 struct clk_hw *gate_hw = &periph->gate.hw; in clk_periph_is_enabled() local
84 __clk_hw_set_clk(gate_hw, hw); in clk_periph_is_enabled()
86 return gate_ops->is_enabled(gate_hw); in clk_periph_is_enabled()
93 struct clk_hw *gate_hw = &periph->gate.hw; in clk_periph_enable() local
95 __clk_hw_set_clk(gate_hw, hw); in clk_periph_enable()
97 return gate_ops->enable(gate_hw); in clk_periph_enable()
104 struct clk_hw *gate_hw = &periph->gate.hw; in clk_periph_disable() local
106 gate_ops->disable(gate_hw); in clk_periph_disable()
113 struct clk_hw *gate_hw = &periph->gate.hw; in clk_periph_disable_unused() local
115 gate_ops->disable_unused(gate_hw); in clk_periph_disable_unused()
[all...]
/kernel/linux/linux-5.10/drivers/clk/imx/
H A Dclk-composite-7ulp.c31 struct clk_hw *mux_hw = NULL, *fd_hw = NULL, *gate_hw = NULL; in imx7ulp_clk_hw_composite() local
71 gate_hw = &gate->hw; in imx7ulp_clk_hw_composite()
78 &clk_fractional_divider_ops, gate_hw, in imx7ulp_clk_hw_composite()
H A Dclk-composite-8m.c183 struct clk_hw *div_hw, *gate_hw; in imx8m_clk_hw_composite_flags() local
232 gate_hw = &gate->hw; in imx8m_clk_hw_composite_flags()
239 divider_ops, gate_hw, &clk_gate_ops, flags); in imx8m_clk_hw_composite_flags()
/kernel/linux/linux-5.10/drivers/clk/mvebu/
H A Darmada-37xx-periph.c99 struct clk_hw *gate_hw; member
205 .gate_hw = &gate_##_name.hw, \
215 .gate_hw = &gate_##_name.hw, \
224 .gate_hw = &gate_##_name.hw, \
231 .gate_hw = &gate_##_name.hw, \
622 struct clk_hw *mux_hw = NULL, *gate_hw = NULL, *rate_hw = NULL; in armada_3700_add_composite_clk() local
634 if (data->gate_hw) { in armada_3700_add_composite_clk()
637 gate_hw = data->gate_hw; in armada_3700_add_composite_clk()
638 gate = to_clk_gate(gate_hw); in armada_3700_add_composite_clk()
[all...]
/kernel/linux/linux-6.6/drivers/clk/mvebu/
H A Darmada-37xx-periph.c99 struct clk_hw *gate_hw; member
205 .gate_hw = &gate_##_name.hw, \
215 .gate_hw = &gate_##_name.hw, \
224 .gate_hw = &gate_##_name.hw, \
231 .gate_hw = &gate_##_name.hw, \
622 struct clk_hw *mux_hw = NULL, *gate_hw = NULL, *rate_hw = NULL; in armada_3700_add_composite_clk() local
634 if (data->gate_hw) { in armada_3700_add_composite_clk()
637 gate_hw = data->gate_hw; in armada_3700_add_composite_clk()
638 gate = to_clk_gate(gate_hw); in armada_3700_add_composite_clk()
[all...]
/kernel/linux/linux-6.6/drivers/clk/imx/
H A Dclk-composite-7ulp.c74 struct clk_hw *mux_hw = NULL, *fd_hw = NULL, *gate_hw = NULL; in imx_ulp_clk_hw_composite() local
117 gate_hw = &gate->hw; in imx_ulp_clk_hw_composite()
138 &clk_fractional_divider_ops, gate_hw, in imx_ulp_clk_hw_composite()
/kernel/linux/linux-5.10/drivers/clk/ti/
H A Dadpll.c544 struct clk_hw *gate_hw = &co->gate.hw; in ti_adpll_clkout_enable() local
546 __clk_hw_set_clk(gate_hw, hw); in ti_adpll_clkout_enable()
548 return clk_gate_ops.enable(gate_hw); in ti_adpll_clkout_enable()
554 struct clk_hw *gate_hw = &co->gate.hw; in ti_adpll_clkout_disable() local
556 __clk_hw_set_clk(gate_hw, hw); in ti_adpll_clkout_disable()
557 clk_gate_ops.disable(gate_hw); in ti_adpll_clkout_disable()
563 struct clk_hw *gate_hw = &co->gate.hw; in ti_adpll_clkout_is_enabled() local
565 __clk_hw_set_clk(gate_hw, hw); in ti_adpll_clkout_is_enabled()
567 return clk_gate_ops.is_enabled(gate_hw); in ti_adpll_clkout_is_enabled()
/kernel/linux/linux-6.6/drivers/clk/ti/
H A Dadpll.c535 struct clk_hw *gate_hw = &co->gate.hw; in ti_adpll_clkout_enable() local
537 __clk_hw_set_clk(gate_hw, hw); in ti_adpll_clkout_enable()
539 return clk_gate_ops.enable(gate_hw); in ti_adpll_clkout_enable()
545 struct clk_hw *gate_hw = &co->gate.hw; in ti_adpll_clkout_disable() local
547 __clk_hw_set_clk(gate_hw, hw); in ti_adpll_clkout_disable()
548 clk_gate_ops.disable(gate_hw); in ti_adpll_clkout_disable()
554 struct clk_hw *gate_hw = &co->gate.hw; in ti_adpll_clkout_is_enabled() local
556 __clk_hw_set_clk(gate_hw, hw); in ti_adpll_clkout_is_enabled()
558 return clk_gate_ops.is_enabled(gate_hw); in ti_adpll_clkout_is_enabled()
/kernel/linux/linux-5.10/drivers/clk/mediatek/
H A Dclk-mtk.c156 struct clk_hw *mux_hw = NULL, *gate_hw = NULL, *div_hw = NULL; in mtk_clk_register_composite() local
196 gate_hw = &gate->hw; in mtk_clk_register_composite()
219 gate_hw, gate_ops, in mtk_clk_register_composite()
/kernel/linux/linux-5.10/drivers/clk/sunxi/
H A Dclk-factors.c185 struct clk_hw *gate_hw = NULL; in __sunxi_factors_register() local
226 gate_hw = &gate->hw; in __sunxi_factors_register()
249 gate_hw, &clk_gate_ops, CLK_IS_CRITICAL); in __sunxi_factors_register()

Completed in 18 milliseconds

12