Lines Matching refs:gpio_pins
187 if (sc->gpio_pins[i].gp_pin == pin)
195 *caps = sc->gpio_pins[i].gp_caps;
208 if (sc->gpio_pins[i].gp_pin == pin)
216 *flags = sc->gpio_pins[i].gp_flags;
229 if (sc->gpio_pins[i].gp_pin == pin)
237 memcpy(name, sc->gpio_pins[i].gp_name, GPIOMAXNAME);
250 if (sc->gpio_pins[i].gp_pin == pin)
257 rt305x_gpio_pin_configure(sc, &sc->gpio_pins[i], flags);
269 if (sc->gpio_pins[i].gp_pin == pin)
292 if (sc->gpio_pins[i].gp_pin == pin)
313 if (sc->gpio_pins[i].gp_pin == pin)
375 if ( (((value & input) >> i) & 1) != sc->gpio_pins[i].gp_last )
379 (uint32_t)time_uptime - sc->gpio_pins[i].gp_time);
387 sc->gpio_pins[i].gp_last = ((value & input) >> i) & 1;
388 sc->gpio_pins[i].gp_time = time_uptime;
493 sc->gpio_pins[i].gp_pin = i;
494 sc->gpio_pins[i].gp_caps = DEFAULT_CAPS;
495 sc->gpio_pins[i].gp_flags = 0;