Lines Matching defs:sc_pins
87 struct gpio_pin sc_pins[GPIO_PINS];
293 *caps = sc->sc_pins[pin].gp_caps;
305 *flags = sc->sc_pins[pin].gp_flags;
317 memcpy(name, sc->sc_pins[pin].gp_name, GPIOMAXNAME);
334 sc->sc_pins[pin].gp_flags = flags;
369 if (sc->sc_pins[pin].gp_flags != GPIO_PIN_OUTPUT) {
395 if (sc->sc_pins[pin].gp_flags == GPIO_PIN_OUTPUT)
415 if (sc->sc_pins[pin].gp_flags == GPIO_PIN_OUTPUT) {
447 strncpy(sc->sc_pins[pin].gp_name, p->name, GPIOMAXNAME);
448 sc->sc_pins[pin].gp_pin = pin;
449 sc->sc_pins[pin].gp_caps = GPIO_PIN_INPUT|GPIO_PIN_OUTPUT;
450 sc->sc_pins[pin].gp_flags = 0;