Lines Matching defs:gate
151 struct clk_gate gate;
156 gate)
162 struct clk_gate *gate = to_clk_gate(hw);
163 struct stm32_ready_gate *rgate = to_ready_gate_clk(gate);
178 bit_status = !(readl(gate->reg) & BIT(rgate->bit_rdy));
190 struct clk_gate *gate = to_clk_gate(hw);
191 struct stm32_ready_gate *rgate = to_ready_gate_clk(gate);
201 bit_status = !!(readl(gate->reg) & BIT(rgate->bit_rdy));
236 rgate->gate.lock = lock;
237 rgate->gate.reg = reg;
238 rgate->gate.bit_idx = bit_idx;
239 rgate->gate.hw.init = &init;
241 hw = &rgate->gate.hw;
263 struct gate_cfg *gate;
283 struct composite_clk_gcfg_t *gate;
293 .gate = &(struct composite_clk_gcfg_t) { _gate_flags, _gate_ops}
335 struct clk_gate *gate;
337 gate = kzalloc(sizeof(*gate), GFP_KERNEL);
338 if (!gate)
341 gate->reg = reg;
342 gate->bit_idx = bit_idx;
343 gate->flags = flags;
344 gate->lock = lock;
346 return gate;
365 struct clk_gate *gate = NULL;
400 if (gcfg->gate && cfg->gate) {
401 gate = _get_cgate(base + cfg->gate->offset,
402 cfg->gate->bit_idx,
403 gcfg->gate->flags, lock);
405 if (!IS_ERR(gate)) {
406 gate_hw = &gate->hw;
407 gate_ops = gcfg->gate->ops ?
408 gcfg->gate->ops : &clk_gate_ops;
699 struct clk_hw *_hw = &clk_elem->rgate.gate.hw;
709 struct clk_hw *_hw = &clk_elem->rgate.gate.hw;
719 struct clk_hw *_hw = &clk_elem->rgate.gate.hw;
811 rgate->gate.lock = lock;
812 rgate->gate.reg = base + RCC_CR;
813 rgate->gate.bit_idx = cfg->bit_idx;
943 .gate = &(struct gate_cfg) {_gate_offset, _bit_idx },\
1069 .gate = &(struct gate_cfg) {_gate_offset, _bit_idx},\
1086 .gate = &(struct gate_cfg) {_gate_offset, _bit_idx},\
1184 .gate = NULL,\