Lines Matching refs:gate
51 struct clk_gate *gate = NULL; in rockchip_clk_register_branch() local
71 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in rockchip_clk_register_branch()
72 if (!gate) in rockchip_clk_register_branch()
75 gate->flags = gate_flags; in rockchip_clk_register_branch()
76 gate->reg = base + gate_offset; in rockchip_clk_register_branch()
77 gate->bit_idx = gate_shift; in rockchip_clk_register_branch()
78 gate->lock = lock; in rockchip_clk_register_branch()
101 gate ? &gate->hw : NULL, gate_ops, in rockchip_clk_register_branch()
106 kfree(gate); in rockchip_clk_register_branch()
119 struct clk_gate *gate = NULL; in rockchip_clk_register_frac_branch() local
124 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in rockchip_clk_register_frac_branch()
125 if (!gate) in rockchip_clk_register_frac_branch()
128 gate->flags = gate_flags; in rockchip_clk_register_frac_branch()
129 gate->reg = base + gate_offset; in rockchip_clk_register_frac_branch()
130 gate->bit_idx = gate_shift; in rockchip_clk_register_frac_branch()
131 gate->lock = lock; in rockchip_clk_register_frac_branch()
156 gate ? &gate->hw : NULL, gate_ops, in rockchip_clk_register_frac_branch()