Lines Matching defs:caps
114 int caps;
136 caps = gpio_pin_caps(sc->sc_gpio, &sc->sc_map, sc->sc_pin_sda);
137 if (!(caps & GPIO_PIN_OUTPUT)) {
141 if (!(caps & GPIO_PIN_INPUT)) {
147 if (caps & GPIO_PIN_OPENDRAIN) {
150 } else if ((caps & GPIO_PIN_PUSHPULL) && (caps & GPIO_PIN_TRISTATE)) {
154 if (caps & GPIO_PIN_PULLUP) {
161 caps = gpio_pin_caps(sc->sc_gpio, &sc->sc_map, sc->sc_pin_scl);
162 if (!(caps & GPIO_PIN_OUTPUT)) {
168 if (caps & GPIO_PIN_OPENDRAIN) {
171 if (caps & GPIO_PIN_PULLUP) {
175 } else if (caps & GPIO_PIN_PUSHPULL) {