| /freebsd-14-stable/sys/arm/ti/omap4/ |
| HD | omap4_gpio.c | 84 else if (flags & GPIO_PIN_INPUT) { in omap4_gpio_set_flags() 113 *flags = GPIO_PIN_INPUT; in omap4_gpio_get_flags() 116 *flags = GPIO_PIN_INPUT | GPIO_PIN_PULLUP; in omap4_gpio_get_flags() 119 *flags = GPIO_PIN_INPUT | GPIO_PIN_PULLDOWN; in omap4_gpio_get_flags()
|
| /freebsd-14-stable/sys/arm/ti/am335x/ |
| HD | am335x_gpio.c | 92 } else if (flags & GPIO_PIN_INPUT) { in am335x_gpio_set_flags() 121 *flags = GPIO_PIN_INPUT; in am335x_gpio_get_flags() 124 *flags = GPIO_PIN_INPUT | GPIO_PIN_PULLUP; in am335x_gpio_get_flags() 127 *flags = GPIO_PIN_INPUT | GPIO_PIN_PULLDOWN; in am335x_gpio_get_flags()
|
| /freebsd-14-stable/sys/riscv/sifive/ |
| HD | sifive_gpio.c | 51 #define SFGPIO_DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT) 155 ((input_en & (1u << i)) ? GPIO_PIN_INPUT : 0) | in sfgpio_attach() 335 if (flags & GPIO_PIN_INPUT) { in sfgpio_pin_setflags() 337 sc->gpio_pins[pin].gp_flags |= GPIO_PIN_INPUT; in sfgpio_pin_setflags() 340 sc->gpio_pins[pin].gp_flags &= ~GPIO_PIN_INPUT; in sfgpio_pin_setflags() 407 if (pin_flags[i] & GPIO_PIN_INPUT) { in sfgpio_pin_config_32() 410 sc->gpio_pins[i].gp_flags |= GPIO_PIN_INPUT; in sfgpio_pin_config_32() 415 sc->gpio_pins[i].gp_flags &= ~GPIO_PIN_INPUT; in sfgpio_pin_config_32()
|
| /freebsd-14-stable/sys/dev/gpio/ |
| HD | gpioiic.c | 194 gpio_pin_setflags(sc->sdapin, GPIO_PIN_INPUT); in gpioiic_setsda() 208 gpio_pin_setflags(sc->sclpin, GPIO_PIN_INPUT); in gpioiic_setscl() 222 gpio_pin_setflags(sc->sclpin, GPIO_PIN_INPUT); in gpioiic_getscl() 233 gpio_pin_setflags(sc->sdapin, GPIO_PIN_INPUT); in gpioiic_getsda() 244 gpio_pin_setflags(sc->sdapin, GPIO_PIN_INPUT); in gpioiic_reset() 245 gpio_pin_setflags(sc->sclpin, GPIO_PIN_INPUT); in gpioiic_reset()
|
| HD | qoriq_gpio.c | 114 if (flags & GPIO_PIN_INPUT) { in qoriq_gpio_pin_configure() 145 if ((flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) == in qoriq_gpio_pin_setflags() 146 (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) in qoriq_gpio_pin_setflags() 294 if (pin_flags[i] & GPIO_PIN_INPUT) { in qoriq_gpio_pin_config_32() 295 newflags[i] = GPIO_PIN_INPUT; in qoriq_gpio_pin_config_32()
|
| HD | chvgpio.c | 195 *caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in chvgpio_pin_getcaps() 222 *flags |= GPIO_PIN_INPUT; in chvgpio_pin_getflags() 241 allowed = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in chvgpio_pin_setflags() 258 if (flags & GPIO_PIN_INPUT) in chvgpio_pin_setflags()
|
| HD | bytgpio.c | 363 *caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in bytgpio_pin_getcaps() 393 *flags |= GPIO_PIN_INPUT; in bytgpio_pin_getflags() 411 allowed = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in bytgpio_pin_setflags() 432 if (flags & GPIO_PIN_INPUT) in bytgpio_pin_setflags()
|
| HD | qoriq_gpio.h | 34 #define DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | \
|
| HD | gpioths.c | 153 gpio_pin_setflags(sc->pin, GPIO_PIN_INPUT); in gpioths_dht_initread() 354 err = gpio_pin_setflags(sc->pin, GPIO_PIN_INPUT); in gpioths_attach()
|
| /freebsd-14-stable/sys/dev/ftgpio/ |
| HD | ftgpio.c | 73 #define FTGPIO_GPIO_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_INVIN | \ 201 if ((pin_flags & (GPIO_PIN_OUTPUT | GPIO_PIN_INPUT)) == 0) { in ftgpio_pin_read() 214 ((pin_flags & (GPIO_PIN_INPUT |GPIO_PIN_INVIN )) == (GPIO_PIN_INPUT |GPIO_PIN_INVIN))) in ftgpio_pin_read() 307 if ((pin_flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) == in ftgpio_pin_setflags() 308 (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) in ftgpio_pin_setflags() 320 if (pin_flags & GPIO_PIN_INPUT) in ftgpio_pin_setflags() 381 pin->gp_flags |= GPIO_PIN_INPUT; in ftgpio_attach()
|
| /freebsd-14-stable/sys/dev/qcom_tlmm/ |
| HD | qcom_tlmm_pin.c | 79 if (flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in qcom_tlmm_pin_configure() 80 pin->gp_flags &= ~(GPIO_PIN_INPUT|GPIO_PIN_OUTPUT); in qcom_tlmm_pin_configure() 92 pin->gp_flags |= GPIO_PIN_INPUT; in qcom_tlmm_pin_configure() 184 *flags |= GPIO_PIN_INPUT; in qcom_tlmm_pin_getflags()
|
| /freebsd-14-stable/sys/arm/freescale/vybrid/ |
| HD | vf_gpio.c | 71 #define DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT) 146 GPIO_PIN_OUTPUT: GPIO_PIN_INPUT; in vf_gpio_attach() 299 if (flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in vf_gpio_pin_configure() 300 pin->gp_flags &= ~(GPIO_PIN_INPUT|GPIO_PIN_OUTPUT); in vf_gpio_pin_configure() 305 pin->gp_flags |= GPIO_PIN_INPUT; in vf_gpio_pin_configure()
|
| /freebsd-14-stable/sys/dev/gpio/dwgpio/ |
| HD | dwgpio.c | 92 #define DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT) 167 GPIO_PIN_OUTPUT: GPIO_PIN_INPUT; in dwgpio_attach() 332 if (flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in dwgpio_pin_configure() 333 pin->gp_flags &= ~(GPIO_PIN_INPUT|GPIO_PIN_OUTPUT); in dwgpio_pin_configure() 338 pin->gp_flags |= GPIO_PIN_INPUT; in dwgpio_pin_configure()
|
| /freebsd-14-stable/sys/arm/broadcom/bcm2835/ |
| HD | raspberrypi_gpio.c | 52 #define RPI_FW_GPIO_DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT) 91 if (flags & GPIO_PIN_INPUT) { in rpi_fw_gpio_pin_configure() 94 pin->gp_flags = GPIO_PIN_INPUT; in rpi_fw_gpio_pin_configure() 399 sc->sc_gpio_pins[i].gp_flags = GPIO_PIN_INPUT; in rpi_fw_gpio_attach() 403 sc->sc_gpio_pins[i].gp_flags = GPIO_PIN_INPUT; in rpi_fw_gpio_attach()
|
| /freebsd-14-stable/sys/dev/p2sb/ |
| HD | lewisburg_gpiocm.c | 166 if ((flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) == in lbggpiocm_pin_setflags() 167 (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) in lbggpiocm_pin_setflags() 170 if ((flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) == 0) in lbggpiocm_pin_setflags() 182 if (flags & GPIO_PIN_INPUT) { in lbggpiocm_pin_setflags()
|
| /freebsd-14-stable/sys/arm/nvidia/ |
| HD | as3722_gpio.c | 352 flags = GPIO_PIN_INPUT; in as3722_gpio_pin_getflags() 360 flags = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_OPENDRAIN; in as3722_gpio_pin_getflags() 366 flags = GPIO_PIN_INPUT | GPIO_PIN_PULLUP; in as3722_gpio_pin_getflags() 400 if (gpio_flags & GPIO_PIN_INPUT) { in as3722_gpio_get_mode() 556 pin->pin_caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | in as3722_gpio_attach()
|
| HD | tegra_gpio.c | 176 if ((flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) == 0) in tegra_gpio_pin_configure() 180 pin->gp_flags &= ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT); in tegra_gpio_pin_configure() 185 pin->gp_flags |= GPIO_PIN_INPUT; in tegra_gpio_pin_configure() 774 sc->gpio_pins[i].gp_caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | in tegra_gpio_attach() 783 GPIO_PIN_OUTPUT : GPIO_PIN_INPUT; in tegra_gpio_attach()
|
| /freebsd-14-stable/sys/dev/amdgpio/ |
| HD | amdgpio.c | 207 allowed = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in amdgpio_pin_setflags() 227 if (flags & GPIO_PIN_INPUT) { in amdgpio_pin_setflags() 229 sc->sc_gpio_pins[pin].gp_flags = GPIO_PIN_INPUT; in amdgpio_pin_setflags() 408 GPIO_PIN_OUTPUT : GPIO_PIN_INPUT; in amdgpio_attach()
|
| /freebsd-14-stable/sys/arm/freescale/imx/ |
| HD | imx_gpio.c | 97 #define DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | \ 101 #define DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT) 539 if (flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) { in imx51_gpio_pin_configure() 540 newflags = pin->gp_flags & ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT); in imx51_gpio_pin_configure() 557 newflags |= GPIO_PIN_INPUT; in imx51_gpio_pin_configure() 757 if (flags & GPIO_PIN_INPUT) { in imx51_gpio_pin_config_32() 854 GPIO_PIN_INPUT; in imx51_gpio_attach()
|
| /freebsd-14-stable/sys/dev/bhnd/cores/chipc/ |
| HD | chipc_gpio.c | 358 *caps = (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_TRISTATE); in chipc_gpio_pin_getcaps() 381 *flags = GPIO_PIN_INPUT; in chipc_gpio_pin_getflags() 562 if ((flags & (GPIO_PIN_OUTPUT|GPIO_PIN_INPUT)) == 0) in chipc_gpio_pin_config_32() 716 mode_flag = flags & (GPIO_PIN_OUTPUT | GPIO_PIN_INPUT | in chipc_gpio_check_flags() 747 case GPIO_PIN_INPUT: in chipc_gpio_check_flags()
|
| /freebsd-14-stable/sys/dev/iicbus/gpio/ |
| HD | pcf8574.c | 64 #define PIN_CAPS (GPIO_PIN_OUTPUT | GPIO_PIN_INPUT) 227 *pflags = GPIO_PIN_INPUT; in pcf8574_pin_getflags() 252 } else if ((flags & GPIO_PIN_INPUT) != 0) { in pcf8574_pin_setflags()
|
| /freebsd-14-stable/sys/arm/mv/ |
| HD | mvebu_gpio.c | 161 if ((flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) == 0) in mvebu_gpio_pin_configure() 165 pin->gp_flags &= ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT); in mvebu_gpio_pin_configure() 170 pin->gp_flags |= GPIO_PIN_INPUT; in mvebu_gpio_pin_configure() 780 pin->gp_caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | in mvebu_gpio_attach() 784 pin->gp_caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in mvebu_gpio_attach() 787 GPIO_PIN_OUTPUT : GPIO_PIN_INPUT; in mvebu_gpio_attach()
|
| HD | a37x0_gpio.c | 132 *caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in a37x0_gpio_pin_getcaps() 150 *flags = GPIO_PIN_INPUT; in a37x0_gpio_pin_getflags()
|
| /freebsd-14-stable/sys/dev/nctgpio/ |
| HD | nctgpio.c | 69 #define NCT_GPIO_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | \ 1244 pin->gp_flags |= GPIO_PIN_INPUT; in nct_attach() 1441 if ((flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) == in nct_gpio_pin_setflags() 1442 (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) { in nct_gpio_pin_setflags() 1458 if ((flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) != 0) { in nct_gpio_pin_setflags() 1459 nct_set_pin_input(sc, pin_num, (flags & GPIO_PIN_INPUT) != 0); in nct_gpio_pin_setflags() 1460 pin->gp_flags &= ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT); in nct_gpio_pin_setflags() 1461 pin->gp_flags |= flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT); in nct_gpio_pin_setflags()
|
| /freebsd-14-stable/sys/arm64/rockchip/ |
| HD | rk_gpio.c | 75 #define RK_GPIO_DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | \ 464 *flags |= GPIO_PIN_INPUT; in rk_gpio_pin_getflags() 499 …if (__predict_false((flags & GPIO_PIN_INPUT) && ((flags & GPIO_FLAGS_PINCTRL) != sc->pin_cached[pi… in rk_gpio_pin_setflags() 507 if (flags & GPIO_PIN_INPUT) in rk_gpio_pin_setflags() 619 if (flags & GPIO_PIN_INPUT) { in rk_gpio_pin_config_32()
|