Lines Matching refs:gate
93 struct clk_gate2 *gate = to_clk_gate2(dev_get_clk_ptr(clk->dev)); in clk_gate2_enable() local
95 gate->state = 1; in clk_gate2_enable()
101 struct clk_gate2 *gate = to_clk_gate2(dev_get_clk_ptr(clk->dev)); in clk_gate2_disable() local
103 gate->state = 0; in clk_gate2_disable()
119 struct clk_gate2 *gate; in sandbox_clk_register_gate2() local
123 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in sandbox_clk_register_gate2()
124 if (!gate) in sandbox_clk_register_gate2()
127 gate->state = 0; in sandbox_clk_register_gate2()
128 clk = &gate->clk; in sandbox_clk_register_gate2()
132 kfree(gate); in sandbox_clk_register_gate2()
171 struct clk_gate *gate = NULL; in sandbox_clk_composite() local
194 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in sandbox_clk_composite()
195 if (!gate) in sandbox_clk_composite()
198 gate->reg = reg; in sandbox_clk_composite()
199 gate->bit_idx = 28; in sandbox_clk_composite()
200 gate->flags = flags; in sandbox_clk_composite()
206 &gate->clk, &clk_gate_ops, flags); in sandbox_clk_composite()
213 kfree(gate); in sandbox_clk_composite()