Lines Matching refs:gate
307 struct clk_gate gate;
356 struct gate_cfg *gate;
374 const struct stm32_gate_cfg *gate;
456 struct clk_gate *gate = to_clk_gate(hw);
460 spin_lock_irqsave(gate->lock, flags);
461 writel_relaxed(BIT(gate->bit_idx), gate->reg + RCC_CLR);
462 spin_unlock_irqrestore(gate->lock, flags);
538 struct clk_gate *gate;
546 mgate->gate.reg = cfg->gate->reg_off + base;
547 mgate->gate.bit_idx = cfg->gate->bit_idx;
548 mgate->gate.flags = cfg->gate->gate_flags;
549 mgate->gate.lock = lock;
554 gate_hw = &mgate->gate.hw;
557 gate = kzalloc(sizeof(*gate), GFP_KERNEL);
558 if (!gate)
561 gate->reg = cfg->gate->reg_off + base;
562 gate->bit_idx = cfg->gate->bit_idx;
563 gate->flags = cfg->gate->gate_flags;
564 gate->lock = lock;
566 gate_hw = &gate->hw;
647 if (cfg->gate) {
648 gate_hw = _get_stm32_gate(base, cfg->gate, lock);
653 if (cfg->gate->ops)
654 gate_ops = cfg->gate->ops;
663 #define to_clk_mgate(_gate) container_of(_gate, struct stm32_clk_mgate, gate)
667 struct clk_gate *gate = to_clk_gate(hw);
668 struct stm32_clk_mgate *clk_mgate = to_clk_mgate(gate);
679 struct clk_gate *gate = to_clk_gate(hw);
680 struct stm32_clk_mgate *clk_mgate = to_clk_mgate(gate);
1219 .gate = &per_gate_cfg[_mgate]
1268 #define _NO_GATE .gate = NULL
1954 /* Particulary Kernel Clocks (no mux or no gate) */