Home
last modified time | relevance | path

Searched refs:GPIO_PIN_OPENDRAIN (Results 1 – 15 of 15) sorted by relevance

/src/sys/dev/ftgpio/
H A Dftgpio.c74 GPIO_PIN_INVOUT | GPIO_PIN_OPENDRAIN | GPIO_PIN_PUSHPULL)
311 if ((pin_flags & (GPIO_PIN_OPENDRAIN | GPIO_PIN_PUSHPULL)) == in ftgpio_pin_setflags()
312 (GPIO_PIN_OPENDRAIN | GPIO_PIN_PUSHPULL)) in ftgpio_pin_setflags()
315 if (pin_flags & GPIO_PIN_OPENDRAIN) in ftgpio_pin_setflags()
386 pin->gp_flags |= GPIO_PIN_OPENDRAIN; in ftgpio_attach()
/src/sys/dev/nctgpio/
H A Dnctgpio.c70 GPIO_PIN_OPENDRAIN | GPIO_PIN_PUSHPULL | \
1249 pin->gp_flags |= GPIO_PIN_OPENDRAIN; in nct_attach()
1446 if ((flags & (GPIO_PIN_OPENDRAIN | GPIO_PIN_PUSHPULL)) == in nct_gpio_pin_setflags()
1447 (GPIO_PIN_OPENDRAIN | GPIO_PIN_PUSHPULL)) { in nct_gpio_pin_setflags()
1475 if ((flags & (GPIO_PIN_OPENDRAIN | GPIO_PIN_PUSHPULL)) != 0) { in nct_gpio_pin_setflags()
1476 if (flags & GPIO_PIN_OPENDRAIN) in nct_gpio_pin_setflags()
1480 pin->gp_flags &= ~(GPIO_PIN_OPENDRAIN | GPIO_PIN_PUSHPULL); in nct_gpio_pin_setflags()
1482 flags & (GPIO_PIN_OPENDRAIN | GPIO_PIN_PUSHPULL); in nct_gpio_pin_setflags()
/src/sys/dev/gpio/
H A Dqoriq_gpio.c123 if (flags & GPIO_PIN_OPENDRAIN) in qoriq_gpio_pin_configure()
300 if (pin_flags[i] & GPIO_PIN_OPENDRAIN) { in qoriq_gpio_pin_config_32()
301 newflags[i] |= GPIO_PIN_OPENDRAIN; in qoriq_gpio_pin_config_32()
H A Dqoriq_gpio.h35 GPIO_PIN_OPENDRAIN | GPIO_PIN_PUSHPULL)
H A Dgpioiic.c197 GPIO_PIN_OUTPUT | GPIO_PIN_OPENDRAIN); in gpioiic_setsda()
211 GPIO_PIN_OUTPUT | GPIO_PIN_OPENDRAIN); in gpioiic_setscl()
/src/sys/dev/usb/misc/
H A Dcp2112.c611 if ((flags & (GPIO_PIN_OPENDRAIN | GPIO_PIN_PUSHPULL)) != 0) in cp2112_gpio_pin_setflags()
614 if ((flags & (GPIO_PIN_OPENDRAIN | GPIO_PIN_PUSHPULL)) == in cp2112_gpio_pin_setflags()
615 (GPIO_PIN_OPENDRAIN | GPIO_PIN_PUSHPULL)) in cp2112_gpio_pin_setflags()
625 if ((flags & GPIO_PIN_OPENDRAIN) != 0) in cp2112_gpio_pin_setflags()
642 (flags & (GPIO_PIN_OPENDRAIN | GPIO_PIN_PUSHPULL)) == 0) { in cp2112_gpio_pin_setflags()
646 flags |= GPIO_PIN_OPENDRAIN; in cp2112_gpio_pin_setflags()
678 sc->gpio_caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_OPENDRAIN | in cp2112gpio_attach()
705 pin->gp_flags |= GPIO_PIN_OPENDRAIN; in cp2112gpio_attach()
/src/sys/arm/nvidia/
H A Das3722_gpio.c359 flags = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_OPENDRAIN; in as3722_gpio_pin_getflags()
391 if (flags & AS3722_CFG_OPEN_DRAIN || gpio_flags & GPIO_PIN_OPENDRAIN) { in as3722_gpio_get_mode()
556 GPIO_PIN_OPENDRAIN | GPIO_PIN_PUSHPULL | GPIO_PIN_TRISTATE | in as3722_gpio_attach()
/src/sys/sys/
H A Dgpio.h68 #define GPIO_PIN_OPENDRAIN 0x00000004 /* open-drain output */ macro
/src/sys/arm64/nvidia/tegra210/
H A Dmax77620_gpio.c465 *out_flags |= GPIO_PIN_OPENDRAIN; in max77620_gpio_get_mode()
551 (flags & GPIO_PIN_OPENDRAIN) == 0) || in max77620_gpio_pin_setflags()
706 GPIO_PIN_OPENDRAIN | GPIO_PIN_PUSHPULL | in max77620_gpio_attach()
/src/sys/dts/
H A Dbindings-gpio.txt85 GPIO_PIN_OPENDRAIN 0x0004 Open-drain output
/src/lib/libgpio/
H A Dgpio.c233 return (gpio_pin_set_flag(handle, pin, GPIO_PIN_OPENDRAIN)); in gpio_pin_opendrain()
/src/usr.sbin/gpioctl/
H A Dgpioctl.c55 { "OD", GPIO_PIN_OPENDRAIN },
/src/sys/arm/freescale/imx/
H A Dimx_gpio.c548 if (flags & GPIO_PIN_OPENDRAIN) in imx51_gpio_pin_configure()
689 if (sc->gpio_pins[pin].gp_flags & GPIO_PIN_OPENDRAIN) in imx51_gpio_pin_get()
/src/sys/dev/regulator/
H A Dregulator_fixed.c159 flags |= GPIO_PIN_OPENDRAIN; in regnode_fixed_init()
/src/sys/arm/mv/
H A Dgpio.c63 GPIO_PIN_OPENDRAIN | GPIO_PIN_PUSHPULL | \
573 if ((flags & mask) & GPIO_PIN_OPENDRAIN) in mv_gpio_configure()