Searched refs:gpio_setup (Results 1 – 2 of 2) sorted by relevance
56 struct gpio_pin gpio_setup[P2SB_GROUP_GPIO_MAX_PINS]; member95 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()
88 struct gpio_pin gpio_setup[MV_GPIO_MAX_NPINS]; member322 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 …]