Lines Matching refs:rgate
163 struct stm32_ready_gate *rgate = to_ready_gate_clk(gate); in ready_gate_clk_enable() local
178 bit_status = !(readl(gate->reg) & BIT(rgate->bit_rdy)); in ready_gate_clk_enable()
191 struct stm32_ready_gate *rgate = to_ready_gate_clk(gate); in ready_gate_clk_disable() local
201 bit_status = !!(readl(gate->reg) & BIT(rgate->bit_rdy)); in ready_gate_clk_disable()
220 struct stm32_ready_gate *rgate; in clk_register_ready_gate() local
225 rgate = kzalloc(sizeof(*rgate), GFP_KERNEL); in clk_register_ready_gate()
226 if (!rgate) in clk_register_ready_gate()
235 rgate->bit_rdy = bit_rdy; in clk_register_ready_gate()
236 rgate->gate.lock = lock; in clk_register_ready_gate()
237 rgate->gate.reg = reg; in clk_register_ready_gate()
238 rgate->gate.bit_idx = bit_idx; in clk_register_ready_gate()
239 rgate->gate.hw.init = &init; in clk_register_ready_gate()
241 hw = &rgate->gate.hw; in clk_register_ready_gate()
244 kfree(rgate); in clk_register_ready_gate()
689 struct stm32_ready_gate rgate; member
698 struct clk_hw *_hw = &clk_elem->rgate.gate.hw; in pll_is_enabled()
708 struct clk_hw *_hw = &clk_elem->rgate.gate.hw; in pll_enable()
718 struct clk_hw *_hw = &clk_elem->rgate.gate.hw; in pll_disable()
793 struct stm32_ready_gate *rgate; in clk_register_stm32_pll() local
807 rgate = &pll->rgate; in clk_register_stm32_pll()
809 rgate->bit_rdy = cfg->bit_idx + 1; in clk_register_stm32_pll()
810 rgate->gate.lock = lock; in clk_register_stm32_pll()
811 rgate->gate.reg = base + RCC_CR; in clk_register_stm32_pll()
812 rgate->gate.bit_idx = cfg->bit_idx; in clk_register_stm32_pll()