Lines Matching defs:sc
64 struct gpiorestart_softc *sc = (struct gpiorestart_softc *)self;
74 sc->sc_gpio = malloc(len, M_DEVBUF, M_WAITOK);
75 OF_getpropintarray(faa->fa_node, "gpios", sc->sc_gpio, len);
77 sc->sc_active_delay =
79 sc->sc_inactive_delay =
81 sc->sc_wait_delay =
93 struct gpiorestart_softc *sc = gpiorestart_cd.cd_devs[0];
95 gpio_controller_config_pin(sc->sc_gpio, GPIO_CONFIG_OUTPUT);
96 gpio_controller_set_pin(sc->sc_gpio, 1);
97 delay(sc->sc_active_delay);
98 gpio_controller_set_pin(sc->sc_gpio, 0);
99 delay(sc->sc_inactive_delay);
100 gpio_controller_set_pin(sc->sc_gpio, 1);
101 delay(sc->sc_wait_delay);