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()
99 gate ? &gate->hw : NULL, gate_ops, in rockchip_clk_register_branch()
112 struct clk_gate *gate = NULL; in rockchip_clk_register_frac_branch() local
117 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in rockchip_clk_register_frac_branch()
118 if (!gate) in rockchip_clk_register_frac_branch()
121 gate->flags = gate_flags; in rockchip_clk_register_frac_branch()
122 gate->reg = base + gate_offset; in rockchip_clk_register_frac_branch()
123 gate->bit_idx = gate_shift; in rockchip_clk_register_frac_branch()
124 gate->lock = lock; in rockchip_clk_register_frac_branch()
147 gate ? &gate->hw : NULL, gate_ops, in rockchip_clk_register_frac_branch()