Lines Matching refs:gate_hw
17 const struct owl_gate_hw *gate_hw, bool enable)
19 int set = gate_hw->gate_flags & CLK_GATE_SET_TO_DISABLE ? 1 : 0;
24 regmap_read(common->regmap, gate_hw->reg, ®);
27 reg |= BIT(gate_hw->bit_idx);
29 reg &= ~BIT(gate_hw->bit_idx);
31 regmap_write(common->regmap, gate_hw->reg, reg);
39 owl_gate_set(common, &gate->gate_hw, false);
47 owl_gate_set(common, &gate->gate_hw, true);
53 const struct owl_gate_hw *gate_hw)
57 regmap_read(common->regmap, gate_hw->reg, ®);
59 if (gate_hw->gate_flags & CLK_GATE_SET_TO_DISABLE)
60 reg ^= BIT(gate_hw->bit_idx);
62 return !!(reg & BIT(gate_hw->bit_idx));
70 return owl_gate_clk_is_enabled(common, &gate->gate_hw);