Home | History | Annotate | Download | only in sunxi

Lines Matching defs:gate

78 	struct sunxi_gate *gate;
85 TAILQ_FOREACH(gate, &sc->sc_gates, gates)
86 if (gate->index == index)
87 return &gate->base;
100 struct sunxi_gate *gate;
102 TAILQ_FOREACH(gate, &sc->sc_gates, gates)
103 if (strcmp(gate->base.name, name) == 0)
104 return &gate->base;
118 struct sunxi_gate *gate = (struct sunxi_gate *)clkp;
125 const bus_size_t gate_reg = GATE_REG(gate->index);
126 const uint32_t gate_mask = GATE_MASK(gate->index);
138 struct sunxi_gate *gate = (struct sunxi_gate *)clkp;
141 const bus_size_t gate_reg = GATE_REG(gate->index);
142 const uint32_t gate_mask = GATE_MASK(gate->index);
155 struct sunxi_gate *gate = (struct sunxi_gate *)clkp;
158 const bus_size_t gate_reg = GATE_REG(gate->index);
159 const uint32_t gate_mask = GATE_MASK(gate->index);
188 struct sunxi_gate *gate;
191 TAILQ_FOREACH(gate, &sc->sc_gates, gates) {
192 clkp_parent = clk_get_parent(&gate->base);
196 gate->index,
197 gate->base.name,
200 "gate");
201 aprint_debug("%10d Hz\n", clk_get_rate(&gate->base));
219 struct sunxi_gate *gate;
264 gate = kmem_zalloc(sizeof(*gate), KM_SLEEP);
265 gate->base.domain = &sc->sc_clkdom;
266 gate->base.name = name;
267 gate->index = index;
269 TAILQ_INSERT_TAIL(&sc->sc_gates, gate, gates);