/linux-6.3-rc2/drivers/clk/actions/ |
A D | owl-gate.c | 17 const struct owl_gate_hw *gate_hw, bool enable) in owl_gate_set() argument 24 regmap_read(common->regmap, gate_hw->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() argument 57 regmap_read(common->regmap, gate_hw->reg, ®); in owl_gate_clk_is_enabled() 60 reg ^= BIT(gate_hw->bit_idx); in owl_gate_clk_is_enabled() [all …]
|
A D | owl-gate.h | 23 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);
|
A D | owl-composite.h | 29 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, \
|
A D | owl-composite.c | 35 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()
|
/linux-6.3-rc2/drivers/clk/ |
A D | clk-composite.c | 205 struct clk_hw *gate_hw = composite->gate_hw; in clk_composite_is_enabled() local 207 __clk_hw_set_clk(gate_hw, hw); in clk_composite_is_enabled() 216 struct clk_hw *gate_hw = composite->gate_hw; in clk_composite_enable() local 218 __clk_hw_set_clk(gate_hw, hw); in clk_composite_enable() 227 struct clk_hw *gate_hw = composite->gate_hw; in clk_composite_disable() local 229 __clk_hw_set_clk(gate_hw, hw); in clk_composite_disable() 231 gate_ops->disable(gate_hw); in clk_composite_disable() 312 if (gate_hw && gate_ops) { in __clk_hw_register_composite() 319 composite->gate_hw = gate_hw; in __clk_hw_register_composite() 341 if (composite->gate_hw) in __clk_hw_register_composite() [all …]
|
A D | clk-stm32h7.c | 352 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_cfg.gate_ops, in stm32h7_rcc_init()
|
A D | clk-stm32mp1.c | 547 struct clk_hw *gate_hw; in _get_stm32_gate() local 562 gate_hw = &mgate->gate.hw; in _get_stm32_gate() 574 gate_hw = &gate->hw; in _get_stm32_gate() 577 return gate_hw; in _get_stm32_gate() 629 struct clk_hw *mux_hw, *div_hw, *gate_hw; in clk_stm32_register_composite() local 633 gate_hw = NULL; in clk_stm32_register_composite() 661 gate_hw = _get_stm32_gate(dev, base, cfg->gate, lock); in clk_stm32_register_composite() 663 if (!IS_ERR(gate_hw)) { in clk_stm32_register_composite() 673 gate_hw, gate_ops, flags); in clk_stm32_register_composite()
|
A D | clk-bm1880.c | 761 struct clk_hw *mux_hw = NULL, *gate_hw = NULL, *div_hw = NULL; in bm1880_clk_register_composite() local 799 gate_hw = &gate->hw; in bm1880_clk_register_composite() 826 div_ops, gate_hw, gate_ops, in bm1880_clk_register_composite()
|
A D | clk-stm32f4.c | 1631 struct clk_hw *mux_hw = NULL, *gate_hw = NULL; in stm32_register_aux_clk() local 1645 gate_hw = &gate->hw; in stm32_register_aux_clk() 1664 if (mux_hw == NULL && gate_hw == NULL) { in stm32_register_aux_clk() 1672 gate_hw, gate_ops, in stm32_register_aux_clk()
|
/linux-6.3-rc2/drivers/clk/tegra/ |
A D | clk-periph.c | 76 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()
|
A D | clk-sdmmc-mux.c | 170 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()
|
/linux-6.3-rc2/drivers/clk/mvebu/ |
A D | armada-37xx-periph.c | 100 struct clk_hw *gate_hw; member 206 .gate_hw = &gate_##_name.hw, \ 216 .gate_hw = &gate_##_name.hw, \ 225 .gate_hw = &gate_##_name.hw, \ 232 .gate_hw = &gate_##_name.hw, \ 623 struct clk_hw *mux_hw = NULL, *gate_hw = NULL, *rate_hw = NULL; in armada_3700_add_composite_clk() local 635 if (data->gate_hw) { in armada_3700_add_composite_clk() 638 gate_hw = data->gate_hw; in armada_3700_add_composite_clk() 639 gate = to_clk_gate(gate_hw); in armada_3700_add_composite_clk() 641 gate_ops = gate_hw->init->ops; in armada_3700_add_composite_clk() [all …]
|
/linux-6.3-rc2/drivers/clk/imx/ |
A D | clk-composite-7ulp.c | 76 struct clk_hw *mux_hw = NULL, *fd_hw = NULL, *gate_hw = NULL; in imx_ulp_clk_hw_composite() local 121 gate_hw = &gate->hw; in imx_ulp_clk_hw_composite() 142 &clk_fractional_divider_ops, gate_hw, in imx_ulp_clk_hw_composite()
|
A D | clk-composite-8m.c | 181 struct clk_hw *div_hw, *gate_hw = NULL; in __imx8m_clk_hw_composite() local 232 gate_hw = &gate->hw; in __imx8m_clk_hw_composite() 240 divider_ops, gate_hw, &clk_gate_ops, flags); in __imx8m_clk_hw_composite()
|
A D | clk-composite-93.c | 189 struct clk_hw *div_hw, *gate_hw; in imx93_clk_composite_flags() local 230 gate_hw = &gate->hw; in imx93_clk_composite_flags() 238 &imx93_clk_composite_divider_ops, gate_hw, in imx93_clk_composite_flags()
|
/linux-6.3-rc2/drivers/clk/ti/ |
A D | adpll.c | 535 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()
|
/linux-6.3-rc2/drivers/clk/mediatek/ |
A D | clk-mtk.c | 225 struct clk_hw *mux_hw = NULL, *gate_hw = NULL, *div_hw = NULL; in mtk_clk_register_composite() local 265 gate_hw = &gate->hw; in mtk_clk_register_composite() 288 gate_hw, gate_ops, in mtk_clk_register_composite() 318 if (composite->gate_hw) in mtk_clk_unregister_composite() 319 gate = to_clk_gate(composite->gate_hw); in mtk_clk_unregister_composite()
|
/linux-6.3-rc2/drivers/clk/sunxi/ |
A D | clk-factors.c | 185 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()
|
A D | clk-sunxi.c | 950 struct clk_hw *gate_hw, *rate_hw; in sunxi_divs_clk_setup() local 1030 gate_hw = NULL; in sunxi_divs_clk_setup() 1044 gate_hw = &gate->hw; in sunxi_divs_clk_setup() 1081 gate_hw, &clk_gate_ops, in sunxi_divs_clk_setup()
|
/linux-6.3-rc2/include/linux/ |
A D | clk-provider.h | 1223 struct clk_hw *gate_hw; member 1236 struct clk_hw *gate_hw, const struct clk_ops *gate_ops, 1242 struct clk_hw *gate_hw, const struct clk_ops *gate_ops, 1249 struct clk_hw *gate_hw, const struct clk_ops *gate_ops, 1256 struct clk_hw *gate_hw, const struct clk_ops *gate_ops, 1263 struct clk_hw *gate_hw, const struct clk_ops *gate_ops,
|
/linux-6.3-rc2/drivers/clk/nxp/ |
A D | clk-lpc32xx.c | 1434 struct clk_hw *mux_hw = NULL, *div_hw = NULL, *gate_hw = NULL; in lpc32xx_clk_register() local 1451 gate_hw = &gate0->clk.hw; in lpc32xx_clk_register() 1457 gate_hw, gops, lpc32xx_clk->flags); in lpc32xx_clk_register()
|