Searched refs:sc_pin (Results 1 - 3 of 3) sorted by relevance
/freebsd-13-stable/sys/dev/gpio/ |
H A D | gpiobacklight.c | 50 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 D | gpiopower.c | 45 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-13-stable/sys/dev/ow/ |
H A D | owc_gpiobus.c | 68 gpio_pin_t sc_pin; member in struct:owc_gpiobus_softc 111 &sc->sc_pin); 122 err = gpio_pin_get_by_child_index(dev, OW_PIN, &sc->sc_pin); 153 gpio_pin_release(sc->sc_pin); 168 #define OUTPIN(sc) gpio_pin_setflags((sc)->sc_pin, GPIO_PIN_OUTPUT) 169 #define INPIN(sc) gpio_pin_setflags((sc)->sc_pin, GPIO_PIN_INPUT) 170 #define GETPIN(sc, bp) gpio_pin_is_active((sc)->sc_pin, (bp)) 171 #define LOW(sc) gpio_pin_set_active((sc)->sc_pin, false)
|
Completed in 102 milliseconds