Home
last modified time | relevance | path

Searched refs:gpio_setup (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/dev/p2sb/
H A Dlewisburg_gpio.c56 struct gpio_pin gpio_setup[P2SB_GROUP_GPIO_MAX_PINS]; member
95 strlcpy(name, sc->gpio_setup[pin].gp_name, GPIOMAXNAME); in lbggpio_pin_getname()
111 *flags = sc->gpio_setup[pin].gp_flags; in lbggpio_pin_getflags()
127 *caps = sc->gpio_setup[pin].gp_caps; in lbggpio_pin_getcaps()
141 if ((flags & sc->gpio_setup[pin].gp_caps) != flags) in lbggpio_pin_setflags()
145 sc->gpio_setup[pin].gp_flags = flags; in lbggpio_pin_setflags()
212 sc->gpio_setup[i].gp_pin = i; in lbggpio_attach()
213 snprintf(sc->gpio_setup[i].gp_name, in lbggpio_attach()
214 sizeof(sc->gpio_setup[i].gp_name), in lbggpio_attach()
216 sc->gpio_setup[i].gp_caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in lbggpio_attach()
/freebsd/sys/arm/mv/
H A Dgpio.c88 struct gpio_pin gpio_setup[MV_GPIO_MAX_NPINS]; member
322 sc->gpio_setup[i].gp_caps = GPIO_GENERIC_CAP; in mv_gpio_attach()
419 if (sc->gpio_setup[pin].gp_flags & MV_GPIO_IN_DEBOUNCE) { in mv_gpio_setup_intrhandler()
425 } else if (sc->gpio_setup[pin].gp_flags & MV_GPIO_IN_IRQ_DOUBLE_EDGE) in mv_gpio_setup_intrhandler()
455 if (sc->gpio_setup[s->pin].gp_flags & (MV_GPIO_IN_IRQ_EDGE | in mv_gpio_intr_mask()
485 if (sc->gpio_setup[s->pin].gp_flags & (MV_GPIO_IN_IRQ_EDGE | in mv_gpio_intr_unmask()
509 if (sc->gpio_setup[pin].gp_flags & MV_GPIO_IN_DEBOUNCE) in mv_gpio_exec_intr_handlers()
511 else if (sc->gpio_setup[pin].gp_flags & MV_GPIO_IN_IRQ_DOUBLE_EDGE) { in mv_gpio_exec_intr_handlers()
591 sc->gpio_setup[pin].gp_flags &= ~(mask); in mv_gpio_configure()
592 sc->gpio_setup[pin].gp_flags |= (flags & mask); in mv_gpio_configure()
[all …]