Lines Matching refs:gpio_entry
54 typedef TAILQ_HEAD(gpio_list, gpio_entry) gpio_list_t;
55 struct gpio_entry { struct
56 TAILQ_ENTRY(gpio_entry) link;
69 struct gpio_entry *gpio_entry; argument
99 static struct gpio_entry *
102 struct gpio_entry *entry, *tmp; in regnode_get_gpio_entry()
109 entry = malloc(sizeof(struct gpio_entry), M_FIXEDREGULATOR, in regnode_get_gpio_entry()
157 if (sc->gpio_entry == NULL) in regnode_fixed_init()
159 pin = &sc->gpio_entry->gpio_pin; in regnode_fixed_init()
198 if (sc->gpio_entry == NULL) in regnode_fixed_enable()
200 pin = &sc->gpio_entry->gpio_pin; in regnode_fixed_enable()
202 sc->gpio_entry->enable_cnt++; in regnode_fixed_enable()
203 if (sc->gpio_entry->enable_cnt > 1) in regnode_fixed_enable()
206 KASSERT(sc->gpio_entry->enable_cnt > 0, in regnode_fixed_enable()
208 sc->gpio_entry->enable_cnt--; in regnode_fixed_enable()
209 if (sc->gpio_entry->enable_cnt >= 1) in regnode_fixed_enable()
212 if (sc->gpio_entry->always_on && !enable) in regnode_fixed_enable()
241 if (sc->gpio_entry == NULL) in regnode_fixed_stop()
243 if (sc->gpio_entry->always_on) in regnode_fixed_stop()
245 pin = &sc->gpio_entry->gpio_pin; in regnode_fixed_stop()
246 if (sc->gpio_entry->enable_cnt > 0) { in regnode_fixed_stop()
272 if (sc->gpio_entry == NULL) { in regnode_fixed_status()
276 pin = &sc->gpio_entry->gpio_pin; in regnode_fixed_status()
311 sc->gpio_entry = regnode_get_gpio_entry(init_def->gpio_pin); in regnode_fixed_register()
312 if (sc->gpio_entry == NULL) in regnode_fixed_register()
321 if (sc->gpio_entry != NULL) in regnode_fixed_register()
322 sc->gpio_entry->always_on |= sc->param->always_on; in regnode_fixed_register()