Lines Matching refs:gate
314 struct clk_gate gate;
364 struct gate_cfg *gate;
382 const struct stm32_gate_cfg *gate;
464 struct clk_gate *gate = to_clk_gate(hw);
468 spin_lock_irqsave(gate->lock, flags);
469 writel_relaxed(BIT(gate->bit_idx), gate->reg + RCC_CLR);
470 spin_unlock_irqrestore(gate->lock, flags);
546 struct clk_gate *gate;
554 mgate->gate.reg = cfg->gate->reg_off + base;
555 mgate->gate.bit_idx = cfg->gate->bit_idx;
556 mgate->gate.flags = cfg->gate->gate_flags;
557 mgate->gate.lock = lock;
562 gate_hw = &mgate->gate.hw;
565 gate = devm_kzalloc(dev, sizeof(*gate), GFP_KERNEL);
566 if (!gate)
569 gate->reg = cfg->gate->reg_off + base;
570 gate->bit_idx = cfg->gate->bit_idx;
571 gate->flags = cfg->gate->gate_flags;
572 gate->lock = lock;
574 gate_hw = &gate->hw;
660 if (cfg->gate) {
661 gate_hw = _get_stm32_gate(dev, base, cfg->gate, lock);
666 if (cfg->gate->ops)
667 gate_ops = cfg->gate->ops;
676 #define to_clk_mgate(_gate) container_of(_gate, struct stm32_clk_mgate, gate)
680 struct clk_gate *gate = to_clk_gate(hw);
681 struct stm32_clk_mgate *clk_mgate = to_clk_mgate(gate);
692 struct clk_gate *gate = to_clk_gate(hw);
693 struct stm32_clk_mgate *clk_mgate = to_clk_mgate(gate);
1305 .gate = &per_gate_cfg[_mgate]
1362 #define _NO_GATE .gate = NULL
2040 /* Particulary Kernel Clocks (no mux or no gate) */