Lines Matching refs:gate
133 struct clk_hw_omap *gate; in ti_clk_build_component_gate() local
140 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in ti_clk_build_component_gate()
141 if (!gate) in ti_clk_build_component_gate()
144 reg = (struct clk_omap_reg *)&gate->enable_reg; in ti_clk_build_component_gate()
148 gate->enable_bit = setup->bit_shift; in ti_clk_build_component_gate()
156 gate->ops = ops; in ti_clk_build_component_gate()
158 return &gate->hw; in ti_clk_build_component_gate()
205 struct clk_hw_omap *gate; in _of_ti_composite_gate_clk_setup() local
208 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in _of_ti_composite_gate_clk_setup()
209 if (!gate) in _of_ti_composite_gate_clk_setup()
212 if (ti_clk_get_reg_addr(node, 0, &gate->enable_reg)) in _of_ti_composite_gate_clk_setup()
217 gate->enable_bit = val; in _of_ti_composite_gate_clk_setup()
218 gate->ops = hw_ops; in _of_ti_composite_gate_clk_setup()
220 if (!ti_clk_add_component(node, &gate->hw, CLK_COMPONENT_TYPE_GATE)) in _of_ti_composite_gate_clk_setup()
224 kfree(gate); in _of_ti_composite_gate_clk_setup()