Home
last modified time | relevance | path

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

12

/f-stack/freebsd/arm/ti/omap4/
H A Domap4_gpio.c86 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 Dam335x_gpio.c94 } 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 Dvf_gpio.c73 #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 Dar5315_gpio.c58 #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 Dls1046_gpio.c59 (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 Draspberrypi_gpio.c54 #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 Dbcm2835_gpio.c70 #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 Docteon_gpio.c60 #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 Das3722_gpio.c354 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 Dtegra_gpio.c178 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 Drk_gpio.c73 #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 Dmtk_gpio_v2.c182 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 Dmtk_gpio_v1.c191 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 Dar71xx_gpio.c64 #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 Dimx_gpio.c100 #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 Dmvebu_gpio.c157 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 Da37x0_gpio.c134 *caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in a37x0_gpio_pin_getcaps()
152 *flags = GPIO_PIN_INPUT; in a37x0_gpio_pin_getflags()
H A Dgpio.c65 #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 Djz4780_gpio.c155 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 Dgpio.h68 #define GPIO_PIN_INPUT 0x00000001 /* input direction */ macro
/f-stack/freebsd/arm/xilinx/
H A Dzy7_gpio.c144 *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 Dmax77620_gpio.c474 *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 Daw_gpio.c68 #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 Daxp209.c937 *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 Dti_gpio.c316 *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()

12