Lines Matching defs:gpio_entry
53 typedef TAILQ_HEAD(gpio_list, gpio_entry) gpio_list_t;
54 struct gpio_entry {
55 TAILQ_ENTRY(gpio_entry) link;
67 struct gpio_entry *gpio_entry;
90 * gpio_entry with it.
92 static struct gpio_entry *
95 struct gpio_entry *entry, *tmp;
102 entry = malloc(sizeof(struct gpio_entry), M_FIXEDREGULATOR,
151 if (sc->gpio_entry == NULL)
153 pin = &sc->gpio_entry->gpio_pin;
193 if (sc->gpio_entry == NULL)
195 pin = &sc->gpio_entry->gpio_pin;
197 sc->gpio_entry->enable_cnt++;
198 if (sc->gpio_entry->enable_cnt > 1)
201 KASSERT(sc->gpio_entry->enable_cnt > 0,
203 sc->gpio_entry->enable_cnt--;
204 if (sc->gpio_entry->enable_cnt >= 1)
229 if (sc->gpio_entry == NULL) {
233 pin = &sc->gpio_entry->gpio_pin;
258 sc->gpio_entry = regnode_get_gpio_entry(init_def->gpio_pin);
259 if (sc->gpio_entry == NULL)