Home
last modified time | relevance | path

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

123

/freebsd-14-stable/sys/arm/ti/omap4/
HDomap4_gpio.c84 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/
HDam335x_gpio.c92 } 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/
HDsifive_gpio.c51 #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/
HDgpioiic.c194 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()
HDqoriq_gpio.c114 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()
HDchvgpio.c195 *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()
HDbytgpio.c363 *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()
HDqoriq_gpio.h34 #define DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | \
HDgpioths.c153 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/
HDftgpio.c73 #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/
HDqcom_tlmm_pin.c79 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/
HDvf_gpio.c71 #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/
HDdwgpio.c92 #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/
HDraspberrypi_gpio.c52 #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/
HDlewisburg_gpiocm.c166 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/
HDas3722_gpio.c352 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()
HDtegra_gpio.c176 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/
HDamdgpio.c207 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/
HDimx_gpio.c97 #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/
HDchipc_gpio.c358 *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/
HDpcf8574.c64 #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/
HDmvebu_gpio.c161 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()
HDa37x0_gpio.c132 *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/
HDnctgpio.c69 #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/
HDrk_gpio.c75 #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()

123