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