Lines Matching refs:gate
123 struct cp110_gate_clk *gate = to_cp110_gate_clk(hw);
125 regmap_update_bits(gate->regmap, CP110_PM_CLOCK_GATING_REG,
126 BIT(gate->bit_idx), BIT(gate->bit_idx));
133 struct cp110_gate_clk *gate = to_cp110_gate_clk(hw);
135 regmap_update_bits(gate->regmap, CP110_PM_CLOCK_GATING_REG,
136 BIT(gate->bit_idx), 0);
141 struct cp110_gate_clk *gate = to_cp110_gate_clk(hw);
144 regmap_read(gate->regmap, CP110_PM_CLOCK_GATING_REG, &val);
146 return val & BIT(gate->bit_idx);
159 struct cp110_gate_clk *gate;
164 gate = kzalloc(sizeof(*gate), GFP_KERNEL);
165 if (!gate)
175 gate->regmap = regmap;
176 gate->bit_idx = bit_idx;
177 gate->hw.init = &init;
179 hw = &gate->hw;
182 kfree(gate);
315 /* create the unique name for all the gate clocks */