Lines Matching refs:gate
30 struct clk_gate *gate = to_clk_gate(hw); in pcc_gate_enable() local
39 spin_lock_irqsave(gate->lock, flags); in pcc_gate_enable()
44 val = readl(gate->reg); in pcc_gate_enable()
46 writel(val, gate->reg); in pcc_gate_enable()
48 spin_unlock_irqrestore(gate->lock, flags); in pcc_gate_enable()
77 struct clk_gate *gate = NULL; in imx_ulp_clk_hw_composite() local
118 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in imx_ulp_clk_hw_composite()
119 if (!gate) { in imx_ulp_clk_hw_composite()
124 gate_hw = &gate->hw; in imx_ulp_clk_hw_composite()
125 gate->reg = reg; in imx_ulp_clk_hw_composite()
126 gate->bit_idx = PCG_CGC_SHIFT; in imx_ulp_clk_hw_composite()
128 gate->lock = &imx_ccm_lock; in imx_ulp_clk_hw_composite()
151 kfree(gate); in imx_ulp_clk_hw_composite()