Lines Matching refs:gate
31 struct clk_gate *gate = to_clk_gate(hw); in pcc_gate_enable() local
40 spin_lock_irqsave(gate->lock, flags); in pcc_gate_enable()
45 val = readl(gate->reg); in pcc_gate_enable()
47 writel(val, gate->reg); in pcc_gate_enable()
49 spin_unlock_irqrestore(gate->lock, flags); in pcc_gate_enable()
78 struct clk_gate *gate = NULL; in imx_ulp_clk_hw_composite() local
115 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in imx_ulp_clk_hw_composite()
116 if (!gate) { in imx_ulp_clk_hw_composite()
121 gate_hw = &gate->hw; in imx_ulp_clk_hw_composite()
122 gate->reg = reg; in imx_ulp_clk_hw_composite()
123 gate->bit_idx = PCG_CGC_SHIFT; in imx_ulp_clk_hw_composite()
125 gate->lock = &imx_ccm_lock; in imx_ulp_clk_hw_composite()
148 kfree(gate); in imx_ulp_clk_hw_composite()