Lines Matching refs:gpio_pins
112 struct gpio_pin gpio_pins[NR_GPIO_MAX]; member
162 sc->gpio_pins[i].gp_pin = i; in dwgpio_attach()
163 sc->gpio_pins[i].gp_caps = DEFAULT_CAPS; in dwgpio_attach()
164 sc->gpio_pins[i].gp_flags = in dwgpio_attach()
167 snprintf(sc->gpio_pins[i].gp_name, GPIOMAXNAME, in dwgpio_attach()
209 if (sc->gpio_pins[i].gp_pin == pin) in dwgpio_pin_getname()
217 memcpy(name, sc->gpio_pins[i].gp_name, GPIOMAXNAME); in dwgpio_pin_getname()
231 if (sc->gpio_pins[i].gp_pin == pin) in dwgpio_pin_getcaps()
239 *caps = sc->gpio_pins[i].gp_caps; in dwgpio_pin_getcaps()
253 if (sc->gpio_pins[i].gp_pin == pin) in dwgpio_pin_getflags()
261 *flags = sc->gpio_pins[i].gp_flags; in dwgpio_pin_getflags()
275 if (sc->gpio_pins[i].gp_pin == pin) in dwgpio_pin_get()
298 if (sc->gpio_pins[i].gp_pin == pin) in dwgpio_pin_toggle()
355 if (sc->gpio_pins[i].gp_pin == pin) in dwgpio_pin_setflags()
362 dwgpio_pin_configure(sc, &sc->gpio_pins[i], flags); in dwgpio_pin_setflags()
377 if (sc->gpio_pins[i].gp_pin == pin) in dwgpio_pin_set()