| /f-stack/freebsd/arm/ti/omap4/ |
| H A D | omap4_gpio.c | 86 else if (flags & GPIO_PIN_INPUT) { in omap4_gpio_set_flags() 115 *flags = GPIO_PIN_INPUT; in omap4_gpio_get_flags() 118 *flags = GPIO_PIN_INPUT | GPIO_PIN_PULLUP; in omap4_gpio_get_flags() 121 *flags = GPIO_PIN_INPUT | GPIO_PIN_PULLDOWN; in omap4_gpio_get_flags()
|
| /f-stack/freebsd/arm/ti/am335x/ |
| H A D | am335x_gpio.c | 94 } else if (flags & GPIO_PIN_INPUT) { in am335x_gpio_set_flags() 123 *flags = GPIO_PIN_INPUT; in am335x_gpio_get_flags() 126 *flags = GPIO_PIN_INPUT | GPIO_PIN_PULLUP; in am335x_gpio_get_flags() 129 *flags = GPIO_PIN_INPUT | GPIO_PIN_PULLDOWN; in am335x_gpio_get_flags()
|
| /f-stack/freebsd/arm/freescale/vybrid/ |
| H A D | vf_gpio.c | 73 #define DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT) 148 GPIO_PIN_OUTPUT: GPIO_PIN_INPUT; in vf_gpio_attach() 301 if (flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in vf_gpio_pin_configure() 302 pin->gp_flags &= ~(GPIO_PIN_INPUT|GPIO_PIN_OUTPUT); in vf_gpio_pin_configure() 307 pin->gp_flags |= GPIO_PIN_INPUT; in vf_gpio_pin_configure()
|
| /f-stack/freebsd/mips/atheros/ar531x/ |
| H A D | ar5315_gpio.c | 58 #define DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT) 122 if (flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in ar5315_gpio_pin_configure() 123 pin->gp_flags &= ~(GPIO_PIN_INPUT|GPIO_PIN_OUTPUT); in ar5315_gpio_pin_configure() 129 pin->gp_flags |= GPIO_PIN_INPUT; in ar5315_gpio_pin_configure() 191 *flags = dir ? GPIO_PIN_OUTPUT : GPIO_PIN_INPUT; in ar5315_gpio_pin_getflags() 411 sc->gpio_pins[i].gp_flags = GPIO_PIN_INPUT; in ar5315_gpio_attach()
|
| /f-stack/freebsd/arm64/qoriq/ |
| H A D | ls1046_gpio.c | 59 (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | \ 200 if (((flags & GPIO_PIN_INPUT) && (flags & GPIO_PIN_OUTPUT)) || in qoriq_gpio_configure() 206 if (flags & GPIO_PIN_INPUT) { in qoriq_gpio_configure() 207 newflags = GPIO_PIN_INPUT; in qoriq_gpio_configure() 467 if (pin_flags[i] & GPIO_PIN_INPUT) { in qoriq_gpio_pin_config_32() 468 newflags[i] = GPIO_PIN_INPUT; in qoriq_gpio_pin_config_32()
|
| /f-stack/freebsd/arm/broadcom/bcm2835/ |
| H A D | raspberrypi_gpio.c | 54 #define RPI_FW_GPIO_DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT) 93 if (flags & GPIO_PIN_INPUT) { in rpi_fw_gpio_pin_configure() 96 pin->gp_flags = GPIO_PIN_INPUT; in rpi_fw_gpio_pin_configure() 401 sc->sc_gpio_pins[i].gp_flags = GPIO_PIN_INPUT; in rpi_fw_gpio_attach() 405 sc->sc_gpio_pins[i].gp_flags = GPIO_PIN_INPUT; in rpi_fw_gpio_attach()
|
| H A D | bcm2835_gpio.c | 70 #define BCM_GPIO_DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | \ 264 return (GPIO_PIN_INPUT); in bcm_gpio_func_flag() 337 if (flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in bcm_gpio_pin_configure() 338 pin->gp_flags &= ~(GPIO_PIN_INPUT|GPIO_PIN_OUTPUT); in bcm_gpio_pin_configure() 344 pin->gp_flags |= GPIO_PIN_INPUT; in bcm_gpio_pin_configure()
|
| /f-stack/freebsd/mips/cavium/ |
| H A D | octeon_gpio.c | 60 #define DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT) 73 { "F/D", 7, GPIO_PIN_INPUT}, 120 if (flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in octeon_gpio_pin_configure() 122 pin->gp_flags &= ~(GPIO_PIN_INPUT|GPIO_PIN_OUTPUT); in octeon_gpio_pin_configure() 128 pin->gp_flags |= GPIO_PIN_INPUT; in octeon_gpio_pin_configure()
|
| /f-stack/freebsd/arm/nvidia/ |
| H A D | as3722_gpio.c | 354 flags = GPIO_PIN_INPUT; in as3722_gpio_pin_getflags() 362 flags = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_OPENDRAIN; in as3722_gpio_pin_getflags() 368 flags = GPIO_PIN_INPUT | GPIO_PIN_PULLUP; in as3722_gpio_pin_getflags() 404 if (gpio_flags & GPIO_PIN_INPUT) { in as3722_gpio_get_mode() 560 pin->pin_caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | in as3722_gpio_attach()
|
| H A D | tegra_gpio.c | 178 if ((flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) == 0) in tegra_gpio_pin_configure() 182 pin->gp_flags &= ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT); in tegra_gpio_pin_configure() 187 pin->gp_flags |= GPIO_PIN_INPUT; in tegra_gpio_pin_configure() 776 sc->gpio_pins[i].gp_caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | in tegra_gpio_attach() 785 GPIO_PIN_OUTPUT : GPIO_PIN_INPUT; in tegra_gpio_attach()
|
| /f-stack/freebsd/arm64/rockchip/ |
| H A D | rk_gpio.c | 73 #define RK_GPIO_DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | \ 253 *flags |= GPIO_PIN_INPUT; in rk_gpio_pin_getflags() 289 if (flags & GPIO_PIN_INPUT) in rk_gpio_pin_setflags() 398 if (flags & GPIO_PIN_INPUT) { in rk_gpio_pin_config_32()
|
| /f-stack/freebsd/mips/mediatek/ |
| H A D | mtk_gpio_v2.c | 182 if (dir == GPIO_PIN_INPUT) in mtk_gpio_pin_set_direction() 188 sc->pins[pin].pin_flags &= ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT); in mtk_gpio_pin_set_direction() 236 sc->pins[pin].pin_flags |= GPIO_PIN_INPUT; in mtk_gpio_pin_probe() 240 if (sc->pins[pin].pin_flags & GPIO_PIN_INPUT) { in mtk_gpio_pin_probe() 285 sc->pins[i].pin_caps |= GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | in mtk_gpio_attach() 416 flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)); in mtk_gpio_pin_setflags()
|
| H A D | mtk_gpio_v1.c | 191 if (dir == GPIO_PIN_INPUT) in mtk_gpio_pin_set_direction() 197 sc->pins[pin].pin_flags &= ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT); in mtk_gpio_pin_set_direction() 245 sc->pins[pin].pin_flags |= GPIO_PIN_INPUT; in mtk_gpio_pin_probe() 249 if (sc->pins[pin].pin_flags & GPIO_PIN_INPUT) { in mtk_gpio_pin_probe() 294 sc->pins[i].pin_caps |= GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | in mtk_gpio_attach() 426 flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)); in mtk_gpio_pin_setflags()
|
| /f-stack/freebsd/mips/atheros/ |
| H A D | ar71xx_gpio.c | 64 #define DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT) 199 if (flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in ar71xx_gpio_pin_configure() 200 pin->gp_flags &= ~(GPIO_PIN_INPUT|GPIO_PIN_OUTPUT); in ar71xx_gpio_pin_configure() 205 pin->gp_flags |= GPIO_PIN_INPUT; in ar71xx_gpio_pin_configure() 524 sc->gpio_pins[i].gp_flags = GPIO_PIN_INPUT; in ar71xx_gpio_attach()
|
| /f-stack/freebsd/arm/freescale/imx/ |
| H A D | imx_gpio.c | 100 #define DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | \ 104 #define DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT) 542 if (flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) { in imx51_gpio_pin_configure() 543 newflags = pin->gp_flags & ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT); in imx51_gpio_pin_configure() 560 newflags |= GPIO_PIN_INPUT; in imx51_gpio_pin_configure() 760 if (flags & GPIO_PIN_INPUT) { in imx51_gpio_pin_config_32() 857 GPIO_PIN_INPUT; in imx51_gpio_attach()
|
| /f-stack/freebsd/arm/mv/ |
| H A D | mvebu_gpio.c | 157 if ((flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) == 0) in mvebu_gpio_pin_configure() 161 pin->gp_flags &= ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT); in mvebu_gpio_pin_configure() 166 pin->gp_flags |= GPIO_PIN_INPUT; in mvebu_gpio_pin_configure() 768 pin->gp_caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | in mvebu_gpio_attach() 772 pin->gp_caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in mvebu_gpio_attach() 775 GPIO_PIN_OUTPUT : GPIO_PIN_INPUT; in mvebu_gpio_attach()
|
| H A D | a37x0_gpio.c | 134 *caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in a37x0_gpio_pin_getcaps() 152 *flags = GPIO_PIN_INPUT; in a37x0_gpio_pin_getflags()
|
| H A D | gpio.c | 65 #define GPIO_GENERIC_CAP (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | \ 560 if (((flags & mask) & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) == in mv_gpio_configure() 561 (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) in mv_gpio_configure() 574 if ((mask & flags) & GPIO_PIN_INPUT) in mv_gpio_configure()
|
| /f-stack/freebsd/mips/ingenic/ |
| H A D | jz4780_gpio.c | 155 sc->pins[pin].pin_flags &= ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT); in jz4780_gpio_pin_set_func() 173 case GPIO_PIN_INPUT: in jz4780_gpio_pin_set_direction() 181 sc->pins[pin].pin_flags &= ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT); in jz4780_gpio_pin_set_direction() 265 sc->pins[pin].pin_flags |= GPIO_PIN_INPUT; in jz4780_gpio_pin_probe() 332 sc->pins[i].pin_caps |= GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in jz4780_gpio_attach() 480 flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)); in jz4780_gpio_pin_setflags()
|
| /f-stack/freebsd/sys/ |
| H A D | gpio.h | 68 #define GPIO_PIN_INPUT 0x00000001 /* input direction */ macro
|
| /f-stack/freebsd/arm/xilinx/ |
| H A D | zy7_gpio.c | 144 *caps = (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_TRISTATE); in zy7_gpio_pin_getcaps() 187 *flags = GPIO_PIN_INPUT; in zy7_gpio_pin_getflags()
|
| /f-stack/freebsd/arm64/nvidia/tegra210/ |
| H A D | max77620_gpio.c | 474 *out_flags |= GPIO_PIN_OUTPUT | GPIO_PIN_INPUT; in max77620_gpio_get_mode() 547 if (flags & GPIO_PIN_INPUT) { in max77620_gpio_pin_setflags() 708 pin->pin_caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | in max77620_gpio_attach()
|
| /f-stack/freebsd/arm/allwinner/ |
| H A D | aw_gpio.c | 68 #define AW_GPIO_DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | \ 469 if (flags & GPIO_PIN_INPUT) { in aw_gpio_pin_configure() 555 *flags = GPIO_PIN_INPUT; in aw_gpio_pin_getflags() 843 if (pin_flags[pin] & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) in aw_gpio_pin_config_32()
|
| H A D | axp209.c | 937 *caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in axp2xx_gpio_pin_getcaps() 959 *flags = GPIO_PIN_INPUT; in axp2xx_gpio_pin_getflags() 987 if ((flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) != 0) { in axp2xx_gpio_pin_setflags()
|
| /f-stack/freebsd/arm/ti/ |
| H A D | ti_gpio.c | 316 *caps = (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_PULLUP | in ti_gpio_pin_getcaps() 426 if (flags & GPIO_PIN_INPUT) in ti_gpio_pin_setflags()
|