Home
last modified time | relevance | path

Searched refs:GPIO_PIN_INPUT (Results 1 – 18 of 18) sorted by relevance

/openbsd/sys/dev/gpio/
H A Dgpioow.c122 if (!(caps & GPIO_PIN_INPUT)) { in gpioow_attach()
207 data &= ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_TRISTATE); in gpioow_bb_rx()
208 data |= GPIO_PIN_INPUT; in gpioow_bb_rx()
224 data &= ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_TRISTATE); in gpioow_bb_tx()
H A Dgpiosim.c81 sc->sc_gpio_pins[i].pin_caps = GPIO_PIN_INPUT | in gpiosim_attach()
87 sc->sc_gpio_pins[i].pin_flags = GPIO_PIN_INPUT; in gpiosim_attach()
H A Dgpioiic.c144 if (!(caps & GPIO_PIN_INPUT)) { in gpioiic_attach()
283 sda &= ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_TRISTATE); in gpioiic_bb_set_dir()
284 sda |= (bits & GPIOIIC_SDA ? GPIO_PIN_OUTPUT : GPIO_PIN_INPUT); in gpioiic_bb_set_dir()
H A Dgpiodcf.c149 if (!(caps & GPIO_PIN_INPUT)) { in gpiodcf_attach()
154 sc->sc_data = GPIO_PIN_INPUT; in gpiodcf_attach()
/openbsd/sys/dev/isa/
H A Dskgpio.c131 sc->sc_gpio_pins[i].pin_caps = GPIO_PIN_INPUT | in skgpio_attach()
134 GPIO_PIN_OUTPUT : GPIO_PIN_INPUT; in skgpio_attach()
205 if (flags & GPIO_PIN_INPUT) in skgpio_gpio_ctl()
H A Disagpio.c112 sc->sc_gpio_pins[i].pin_caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in isagpio_attach()
H A Dnsclpcsio_isa.c520 sc->sc_gpio_pins[i].pin_caps = GPIO_PIN_INPUT | in nsclpcsio_gpio_init()
/openbsd/sys/arch/loongson/dev/
H A Dgdiumiic.c171 if (!(caps & GPIO_PIN_INPUT)) { in gdiumiic_attach()
316 sda &= ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_TRISTATE); in gdiumiic_bb_set_dir()
317 sda |= (bits & GPIOIIC_SDA ? GPIO_PIN_OUTPUT : GPIO_PIN_INPUT); in gdiumiic_bb_set_dir()
H A Dvoyager.c385 GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in voyager_attach_gpio()
402 GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in voyager_attach_gpio()
/openbsd/sys/sys/
H A Dgpio.h29 #define GPIO_PIN_INPUT 0x0001 /* input direction */ macro
/openbsd/sys/arch/riscv64/dev/
H A Dmpfgpio.c271 flags = GPIO_PIN_SET | GPIO_PIN_INPUT; in mpfgpio_attach_gpio()
278 GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in mpfgpio_attach_gpio()
/openbsd/sys/dev/fdt/
H A Dbcm2835_gpio.c372 flags = GPIO_PIN_SET | GPIO_PIN_INPUT; in bcmgpio_attach_gpio()
387 GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | in bcmgpio_attach_gpio()
H A Dsxipio.c571 flags = GPIO_PIN_SET | GPIO_PIN_INPUT; in sxipio_attach_gpio()
585 GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in sxipio_attach_gpio()
/openbsd/sys/arch/i386/pci/
H A Dgscpcib.c109 sc->sc_gpio_pins[i].pin_caps = GPIO_PIN_INPUT | in gscpcib_attach()
/openbsd/sys/dev/pci/
H A Dglxpcib.c329 sc->sc_gpio_pins[i].pin_caps = GPIO_PIN_INPUT | in glxpcib_attach()
559 if (flags & GPIO_PIN_INPUT) in glxpcib_gpio_pin_ctl()
/openbsd/usr.sbin/gpioctl/
H A Dgpioctl.c56 { GPIO_PIN_INPUT, "in" },
/openbsd/sys/arch/armv7/omap/
H A Domgpio.c357 sc->sc_gpio_pins[i].pin_caps = GPIO_PIN_INPUT | in omgpio_attach()
512 if (flags & GPIO_PIN_INPUT) in omgpio_pin_ctl()
/openbsd/sys/dev/ic/
H A Dath.c3099 sc->sc_gpio_pins[i].pin_caps = GPIO_PIN_INPUT | in ath_gpio_attach()
3104 sc->sc_gpio_pins[i].pin_flags = GPIO_PIN_INPUT; in ath_gpio_attach()
3162 if (flags & GPIO_PIN_INPUT) { in ath_gpio_pin_ctl()