Searched refs:sc_pin (Results 1 - 3 of 3) sorted by relevance

/freebsd-12-stable/sys/dev/gpio/
H A Dgpiobacklight.c50 gpio_pin_t sc_pin; member in struct:gpiobacklight_softc
65 if (sc->sc_pin)
66 gpio_pin_set_active(sc->sc_pin, sc->sc_brightness);
120 gpio_pin_get_by_ofw_idx(dev, node, 0, &sc->sc_pin);
121 if (sc->sc_pin == NULL) {
126 gpio_pin_setflags(sc->sc_pin, GPIO_PIN_OUTPUT);
147 if (sc->sc_pin)
148 gpio_pin_release(sc->sc_pin);
H A Dgpiopower.c45 gpio_pin_t sc_pin; member in struct:gpiopower_softc
77 ofw_gpiobus_parse_gpios(dev, "gpios", &sc->sc_pin);
78 if (sc->sc_pin == NULL) {
89 gpio_pin_setflags(sc->sc_pin, GPIO_PIN_OUTPUT);
114 gpio_pin_set_active(sc->sc_pin, true);
/freebsd-12-stable/sys/dev/ow/
H A Dowc_gpiobus.c69 gpio_pin_t sc_pin; member in struct:owc_gpiobus_softc
112 &sc->sc_pin);
123 err = gpio_pin_get_by_child_index(dev, OW_PIN, &sc->sc_pin);
154 gpio_pin_release(sc->sc_pin);
169 #define OUTPIN(sc) gpio_pin_setflags((sc)->sc_pin, GPIO_PIN_OUTPUT)
170 #define INPIN(sc) gpio_pin_setflags((sc)->sc_pin, GPIO_PIN_INPUT)
171 #define GETPIN(sc, bp) gpio_pin_is_active((sc)->sc_pin, (bp))
172 #define LOW(sc) gpio_pin_set_active((sc)->sc_pin, false)

Completed in 172 milliseconds