Lines Matching refs:gate
48 struct clk_gate *gate = to_clk_gate(hw); in imx93_clk_composite_gate_endisable() local
52 if (gate->lock) in imx93_clk_composite_gate_endisable()
53 spin_lock_irqsave(gate->lock, flags); in imx93_clk_composite_gate_endisable()
55 reg = readl(gate->reg); in imx93_clk_composite_gate_endisable()
58 reg &= ~BIT(gate->bit_idx); in imx93_clk_composite_gate_endisable()
60 reg |= BIT(gate->bit_idx); in imx93_clk_composite_gate_endisable()
62 writel(reg, gate->reg); in imx93_clk_composite_gate_endisable()
64 imx93_clk_composite_wait_ready(hw, gate->reg); in imx93_clk_composite_gate_endisable()
66 if (gate->lock) in imx93_clk_composite_gate_endisable()
67 spin_unlock_irqrestore(gate->lock, flags); in imx93_clk_composite_gate_endisable()
198 struct clk_gate *gate = NULL; in imx93_clk_composite_flags() local
233 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in imx93_clk_composite_flags()
234 if (!gate) in imx93_clk_composite_flags()
237 gate_hw = &gate->hw; in imx93_clk_composite_flags()
238 gate->reg = reg; in imx93_clk_composite_flags()
239 gate->bit_idx = CCM_OFF_SHIFT; in imx93_clk_composite_flags()
240 gate->lock = &imx_ccm_lock; in imx93_clk_composite_flags()
241 gate->flags = CLK_GATE_SET_TO_DISABLE; in imx93_clk_composite_flags()
256 kfree(gate); in imx93_clk_composite_flags()