Lines Matching refs:gpio_entry
53 typedef TAILQ_HEAD(gpio_list, gpio_entry) gpio_list_t;
54 struct gpio_entry { struct
55 TAILQ_ENTRY(gpio_entry) link;
68 struct gpio_entry *gpio_entry; argument
98 static struct gpio_entry *
101 struct gpio_entry *entry, *tmp; in regnode_get_gpio_entry()
108 entry = malloc(sizeof(struct gpio_entry), M_FIXEDREGULATOR, in regnode_get_gpio_entry()
156 if (sc->gpio_entry == NULL) in regnode_fixed_init()
158 pin = &sc->gpio_entry->gpio_pin; in regnode_fixed_init()
197 if (sc->gpio_entry == NULL) in regnode_fixed_enable()
199 pin = &sc->gpio_entry->gpio_pin; in regnode_fixed_enable()
201 sc->gpio_entry->enable_cnt++; in regnode_fixed_enable()
202 if (sc->gpio_entry->enable_cnt > 1) in regnode_fixed_enable()
205 KASSERT(sc->gpio_entry->enable_cnt > 0, in regnode_fixed_enable()
207 sc->gpio_entry->enable_cnt--; in regnode_fixed_enable()
208 if (sc->gpio_entry->enable_cnt >= 1) in regnode_fixed_enable()
211 if (sc->gpio_entry->always_on && !enable) in regnode_fixed_enable()
240 if (sc->gpio_entry == NULL) in regnode_fixed_stop()
242 if (sc->gpio_entry->always_on) in regnode_fixed_stop()
244 pin = &sc->gpio_entry->gpio_pin; in regnode_fixed_stop()
245 if (sc->gpio_entry->enable_cnt > 0) { in regnode_fixed_stop()
271 if (sc->gpio_entry == NULL) { in regnode_fixed_status()
275 pin = &sc->gpio_entry->gpio_pin; in regnode_fixed_status()
310 sc->gpio_entry = regnode_get_gpio_entry(init_def->gpio_pin); in regnode_fixed_register()
311 if (sc->gpio_entry == NULL) in regnode_fixed_register()
320 if (sc->gpio_entry != NULL) in regnode_fixed_register()
321 sc->gpio_entry->always_on |= sc->param->always_on; in regnode_fixed_register()