Lines Matching refs:gate
68 const struct gate_cfg *gate = &priv->gates[gate_id]; in stm32_gate_endisable() local
69 uintptr_t addr = priv->base + gate->offset; in stm32_gate_endisable()
72 if (gate->set_clr) in stm32_gate_endisable()
73 io_write32(addr, BIT(gate->bit_idx)); in stm32_gate_endisable()
75 io_setbits32_stm32shregs(addr, BIT(gate->bit_idx)); in stm32_gate_endisable()
82 if (gate->set_clr) in stm32_gate_endisable()
84 BIT(gate->bit_idx)); in stm32_gate_endisable()
86 io_clrbits32_stm32shregs(addr, BIT(gate->bit_idx)); in stm32_gate_endisable()
123 const struct gate_cfg *gate = &priv->gates[gate_id]; in stm32_gate_is_enabled() local
124 uintptr_t addr = priv->base + gate->offset; in stm32_gate_is_enabled()
126 return (io_read32(addr) & BIT(gate->bit_idx)) != 0U; in stm32_gate_is_enabled()
132 const struct gate_cfg *gate = &priv->gates[gate_id]; in stm32_gate_wait_ready() local
133 uintptr_t address = priv->base + gate->offset; in stm32_gate_wait_ready()
134 uint32_t mask_rdy = BIT(gate->bit_idx); in stm32_gate_wait_ready()
139 mask = BIT(gate->bit_idx); in stm32_gate_wait_ready()