Lines Matching defs:gate
259 struct lgm_clk_gate *gate = to_lgm_clk_gate(hw);
262 reg = GATE_HW_REG_EN(gate->reg);
263 lgm_set_clk_val(gate->membase, reg, gate->shift, 1, 1);
270 struct lgm_clk_gate *gate = to_lgm_clk_gate(hw);
273 reg = GATE_HW_REG_DIS(gate->reg);
274 lgm_set_clk_val(gate->membase, reg, gate->shift, 1, 1);
279 struct lgm_clk_gate *gate = to_lgm_clk_gate(hw);
282 reg = GATE_HW_REG_STAT(gate->reg);
283 ret = lgm_get_clk_val(gate->membase, reg, gate->shift, 1);
303 struct lgm_clk_gate *gate;
308 gate = devm_kzalloc(dev, sizeof(*gate), GFP_KERNEL);
309 if (!gate)
318 gate->membase = ctx->membase;
319 gate->reg = reg;
320 gate->shift = shift;
321 gate->flags = cflags;
322 gate->hw.init = &init;
324 hw = &gate->hw;
330 lgm_set_clk_val(gate->membase, reg, shift, 1, list->gate_val);
366 * of the end product. To override control of gate
368 * of gate clk provider.