| /NextBSD/sys/arm/lpc/ |
| HD | lpc_gpio.c | 114 { 22, 24, 3, 0, GPIO_PIN_OUTPUT }, 119 { 46, 6, 3, -1, GPIO_PIN_INPUT | GPIO_PIN_OUTPUT }, 120 { 52, 13, 2, 0, GPIO_PIN_INPUT | GPIO_PIN_OUTPUT }, 121 { 65, 24, 1, 0, GPIO_PIN_INPUT | GPIO_PIN_OUTPUT }, 122 { 89, 8, 0, 0, GPIO_PIN_INPUT | GPIO_PIN_OUTPUT }, 258 if ((map->lp_flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) != in lpc_gpio_pin_getflags() 259 (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) { in lpc_gpio_pin_getflags() 285 *flags = dir ? GPIO_PIN_OUTPUT : GPIO_PIN_INPUT; in lpc_gpio_pin_getflags() 303 if ((map->lp_flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) != in lpc_gpio_pin_setflags() 304 (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) in lpc_gpio_pin_setflags() [all …]
|
| /NextBSD/sys/arm/xscale/ixp425/ |
| HD | avila_gpio.c | 77 #define GPIO_PIN_IO (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT) 98 { "PCI_CLK", 14, GPIO_PIN_OUTPUT }, 99 { "EX_CLK", 15, GPIO_PIN_OUTPUT }, 139 return (v ? GPIO_PIN_INPUT : GPIO_PIN_OUTPUT); in avila_gpio_pin_flags() 153 if (flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in avila_gpio_pin_configure() 155 pin->gp_flags &= ~(GPIO_PIN_INPUT|GPIO_PIN_OUTPUT); in avila_gpio_pin_configure() 156 if (flags & GPIO_PIN_OUTPUT) { in avila_gpio_pin_configure() 157 pin->gp_flags |= GPIO_PIN_OUTPUT; in avila_gpio_pin_configure()
|
| HD | cambria_gpio.c | 101 { "PLD0", 0, GPIO_PIN_OUTPUT }, 102 { "PLD1", 1, GPIO_PIN_OUTPUT }, 103 { "PLD2", 2, GPIO_PIN_OUTPUT }, 104 { "PLD3", 3, GPIO_PIN_OUTPUT }, 105 { "PLD4", 4, GPIO_PIN_OUTPUT }, 369 if (sc->sc_pins[pin].gp_flags != GPIO_PIN_OUTPUT) { in cambria_gpio_pin_set() 395 if (sc->sc_pins[pin].gp_flags == GPIO_PIN_OUTPUT) in cambria_gpio_pin_get() 415 if (sc->sc_pins[pin].gp_flags == GPIO_PIN_OUTPUT) { in cambria_gpio_pin_toggle() 449 sc->sc_pins[pin].gp_caps = GPIO_PIN_INPUT|GPIO_PIN_OUTPUT; in cambria_gpio_attach()
|
| /NextBSD/sys/dev/rccgpio/ |
| HD | rccgpio.c | 61 { .pin = 15, .name = "red LED", .caps = GPIO_PIN_OUTPUT }, 62 { .pin = 17, .name = "green LED", .caps = GPIO_PIN_OUTPUT }, 64 { .pin = 16, .name = "HD1 LED", .caps = GPIO_PIN_OUTPUT }, 65 { .pin = 18, .name = "HD2 LED", .caps = GPIO_PIN_OUTPUT }, 189 if ((rcc_pins[pin].caps & GPIO_PIN_OUTPUT) == 0) in rcc_gpio_pin_set() 233 if ((rcc_pins[pin].caps & GPIO_PIN_OUTPUT) == 0) in rcc_gpio_pin_toggle() 303 if (rcc_pins[i].caps & GPIO_PIN_OUTPUT) in rcc_gpio_attach()
|
| /NextBSD/sys/arm/freescale/vybrid/ |
| HD | vf_gpio.c | 72 #define DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT) 147 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() 303 if (flags & GPIO_PIN_OUTPUT) { in vf_gpio_pin_configure() 304 pin->gp_flags |= GPIO_PIN_OUTPUT; in vf_gpio_pin_configure()
|
| /NextBSD/sys/arm/ti/am335x/ |
| HD | am335x_gpio.c | 91 if (flags & GPIO_PIN_OUTPUT) { in am335x_gpio_set_flags() 119 *flags = GPIO_PIN_OUTPUT; in am335x_gpio_get_flags() 122 *flags = GPIO_PIN_OUTPUT | GPIO_PIN_PULLUP; in am335x_gpio_get_flags()
|
| /NextBSD/sys/arm/rockchip/ |
| HD | rk30xx_gpio.c | 67 #define RK30_GPIO_DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | \ 138 return (GPIO_PIN_OUTPUT); in rk30_gpio_get_function() 151 if (func == GPIO_PIN_OUTPUT) in rk30_gpio_set_function() 194 if (flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) { in rk30_gpio_pin_configure() 195 pin->gp_flags &= ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT); in rk30_gpio_pin_configure() 196 if (flags & GPIO_PIN_OUTPUT) in rk30_gpio_pin_configure() 197 pin->gp_flags |= GPIO_PIN_OUTPUT; in rk30_gpio_pin_configure() 569 rk30_gpio_pin_set(sc->sc_dev, pin, GPIO_PIN_OUTPUT); in rk30_gpios_prop_handle()
|
| /NextBSD/sys/arm/altera/socfpga/ |
| HD | socfpga_gpio.c | 105 #define DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT) 197 GPIO_PIN_OUTPUT: GPIO_PIN_INPUT; in socfpga_gpio_attach() 363 if (flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in socfpga_gpio_pin_configure() 364 pin->gp_flags &= ~(GPIO_PIN_INPUT|GPIO_PIN_OUTPUT); in socfpga_gpio_pin_configure() 365 if (flags & GPIO_PIN_OUTPUT) { in socfpga_gpio_pin_configure() 366 pin->gp_flags |= GPIO_PIN_OUTPUT; in socfpga_gpio_pin_configure()
|
| /NextBSD/sys/mips/atheros/ |
| HD | ar71xx_gpio.c | 62 #define DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT) 152 if (flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in ar71xx_gpio_pin_configure() 153 pin->gp_flags &= ~(GPIO_PIN_INPUT|GPIO_PIN_OUTPUT); in ar71xx_gpio_pin_configure() 154 if (flags & GPIO_PIN_OUTPUT) { in ar71xx_gpio_pin_configure() 155 pin->gp_flags |= GPIO_PIN_OUTPUT; in ar71xx_gpio_pin_configure() 468 sc->gpio_pins[i].gp_flags = GPIO_PIN_OUTPUT; in ar71xx_gpio_attach() 478 ar71xx_gpio_pin_setflags(dev, j, GPIO_PIN_OUTPUT); in ar71xx_gpio_attach()
|
| /NextBSD/sys/powerpc/mpc85xx/ |
| HD | qoriq_gpio.c | 104 *caps = (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_OPENDRAIN); in qoriq_gpio_pin_getcaps() 134 if ((flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) == in qoriq_gpio_pin_setflags() 135 (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) in qoriq_gpio_pin_setflags() 144 else if (flags & GPIO_PIN_OUTPUT) { in qoriq_gpio_pin_setflags()
|
| /NextBSD/sys/arm/ti/omap4/ |
| HD | omap4_gpio.c | 84 if (flags & GPIO_PIN_OUTPUT) in omap4_gpio_set_flags() 112 *flags = GPIO_PIN_OUTPUT; in omap4_gpio_get_flags()
|
| /NextBSD/sys/arm/xilinx/ |
| HD | zy7_gpio.c | 144 *caps = (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_TRISTATE); in zy7_gpio_pin_getcaps() 182 *flags = (GPIO_PIN_OUTPUT | GPIO_PIN_TRISTATE); in zy7_gpio_pin_getflags() 184 *flags = GPIO_PIN_OUTPUT; in zy7_gpio_pin_getflags() 205 if ((flags & GPIO_PIN_OUTPUT) != 0) { in zy7_gpio_pin_setflags()
|
| /NextBSD/sys/mips/rt305x/ |
| HD | rt305x_gpio.c | 59 #define DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_INVIN | \ 62 #define DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_INVIN | \ 108 if (flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in rt305x_gpio_pin_configure() 109 pin->gp_flags &= ~(GPIO_PIN_INPUT|GPIO_PIN_OUTPUT); in rt305x_gpio_pin_configure() 110 if (flags & GPIO_PIN_OUTPUT) { in rt305x_gpio_pin_configure() 111 pin->gp_flags |= GPIO_PIN_OUTPUT; in rt305x_gpio_pin_configure()
|
| /NextBSD/sys/mips/cavium/ |
| HD | octeon_gpio.c | 58 #define DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT) 118 if (flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in octeon_gpio_pin_configure() 120 pin->gp_flags &= ~(GPIO_PIN_INPUT|GPIO_PIN_OUTPUT); in octeon_gpio_pin_configure() 121 if (flags & GPIO_PIN_OUTPUT) { in octeon_gpio_pin_configure() 122 pin->gp_flags |= GPIO_PIN_OUTPUT; in octeon_gpio_pin_configure()
|
| /NextBSD/sys/arm/samsung/exynos/ |
| HD | exynos5_pad.c | 68 #define DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT) 558 sc->gpio_pins[i].gp_flags = GPIO_PIN_OUTPUT; in pad_attach() 749 if (flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in pad_pin_configure() 750 pin->gp_flags &= ~(GPIO_PIN_INPUT|GPIO_PIN_OUTPUT); in pad_pin_configure() 761 if (flags & GPIO_PIN_OUTPUT) { in pad_pin_configure() 762 pin->gp_flags |= GPIO_PIN_OUTPUT; in pad_pin_configure()
|
| HD | chrome_ec_spi.c | 81 GPIO_PIN_SETFLAGS(sc->dev_gpio, EC_SPI_CS, GPIO_PIN_OUTPUT); in assert_cs()
|
| /NextBSD/sys/arm/freescale/imx/ |
| HD | imx_gpio.c | 91 #define DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT) 403 if (flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in imx51_gpio_pin_configure() 404 pin->gp_flags &= ~(GPIO_PIN_INPUT|GPIO_PIN_OUTPUT); in imx51_gpio_pin_configure() 405 if (flags & GPIO_PIN_OUTPUT) { in imx51_gpio_pin_configure() 406 pin->gp_flags |= GPIO_PIN_OUTPUT; in imx51_gpio_pin_configure() 652 (READ4(sc, IMX_GPIO_OE_REG) & (1U << i)) ? GPIO_PIN_OUTPUT : in imx51_gpio_attach()
|
| /NextBSD/sys/arm/allwinner/ |
| HD | a10_gpio.c | 66 #define A10_GPIO_DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | \ 129 return (GPIO_PIN_OUTPUT); in a10_gpio_get_function() 202 if (flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) { in a10_gpio_pin_configure() 203 if (flags & GPIO_PIN_OUTPUT) in a10_gpio_pin_configure()
|
| HD | a10_ehci.c | 188 GPIO_PIN_SETFLAGS(sc_gpio_dev, GPIO_USB2_PWR, GPIO_PIN_OUTPUT); in a10_ehci_attach() 192 GPIO_PIN_SETFLAGS(sc_gpio_dev, GPIO_USB1_PWR, GPIO_PIN_OUTPUT); in a10_ehci_attach()
|
| /NextBSD/sys/arm/amlogic/aml8726/ |
| HD | aml8726_gpio.c | 195 *caps = (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT); in aml8726_gpio_pin_getcaps() 226 *flags = GPIO_PIN_OUTPUT; in aml8726_gpio_pin_getflags() 246 if ((flags & GPIO_PIN_OUTPUT) != 0) { in aml8726_gpio_pin_setflags()
|
| HD | aml8726_usb_phy-m6.c | 215 GPIO_PIN_OUTPUT) != 0) { in aml8726_usb_phy_attach() 331 GPIO_PIN_OUTPUT) != 0) in aml8726_usb_phy_attach()
|
| /NextBSD/sys/sys/ |
| HD | gpio.h | 64 #define GPIO_PIN_OUTPUT 0x0002 /* output direction */ macro
|
| /NextBSD/sys/dev/gpio/ |
| HD | gpioiic.c | 185 GPIO_PIN_OUTPUT); in gpioiic_setsda() 200 GPIO_PIN_OUTPUT); in gpioiic_setscl()
|
| HD | gpiobacklight.c | 91 GPIOBL_PIN, GPIO_PIN_OUTPUT); in gpiobacklight_update_brightness()
|
| /NextBSD/sys/arm/broadcom/bcm2835/ |
| HD | bcm2835_gpio.c | 62 #define BCM_GPIO_DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | \ 228 return (GPIO_PIN_OUTPUT); in bcm_gpio_func_flag() 302 if (flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in bcm_gpio_pin_configure() 303 pin->gp_flags &= ~(GPIO_PIN_INPUT|GPIO_PIN_OUTPUT); in bcm_gpio_pin_configure() 304 if (flags & GPIO_PIN_OUTPUT) { in bcm_gpio_pin_configure() 305 pin->gp_flags |= GPIO_PIN_OUTPUT; in bcm_gpio_pin_configure()
|