Home
last modified time | relevance | path

Searched refs:GPIO_PIN_OUTPUT (Results 1 – 25 of 57) sorted by relevance

123

/freebsd-11-stable/sys/arm/lpc/
HDlpc_gpio.c112 { 22, 24, 3, 0, GPIO_PIN_OUTPUT },
117 { 46, 6, 3, -1, GPIO_PIN_INPUT | GPIO_PIN_OUTPUT },
118 { 52, 13, 2, 0, GPIO_PIN_INPUT | GPIO_PIN_OUTPUT },
119 { 65, 24, 1, 0, GPIO_PIN_INPUT | GPIO_PIN_OUTPUT },
120 { 89, 8, 0, 0, GPIO_PIN_INPUT | GPIO_PIN_OUTPUT },
256 if ((map->lp_flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) != in lpc_gpio_pin_getflags()
257 (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) { in lpc_gpio_pin_getflags()
283 *flags = dir ? GPIO_PIN_OUTPUT : GPIO_PIN_INPUT; in lpc_gpio_pin_getflags()
301 if ((map->lp_flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) != in lpc_gpio_pin_setflags()
302 (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) in lpc_gpio_pin_setflags()
[all …]
/freebsd-11-stable/sys/arm/xscale/ixp425/
HDavila_gpio.c77 #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()
HDcambria_gpio.c101 { "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()
/freebsd-11-stable/sys/dev/rccgpio/
HDrccgpio.c61 { .pin = (1 << 15), .name = "red LED", .caps = GPIO_PIN_OUTPUT },
62 { .pin = (1 << 17), .name = "green LED", .caps = GPIO_PIN_OUTPUT },
64 { .pin = (1 << 16), .name = "HD1 LED", .caps = GPIO_PIN_OUTPUT },
65 { .pin = (1 << 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()
/freebsd-11-stable/sys/arm/freescale/vybrid/
HDvf_gpio.c72 #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()
/freebsd-11-stable/sys/arm/ti/am335x/
HDam335x_gpio.c89 if (flags & GPIO_PIN_OUTPUT) { in am335x_gpio_set_flags()
117 *flags = GPIO_PIN_OUTPUT; in am335x_gpio_get_flags()
120 *flags = GPIO_PIN_OUTPUT | GPIO_PIN_PULLUP; in am335x_gpio_get_flags()
/freebsd-11-stable/sys/arm/rockchip/
HDrk30xx_gpio.c65 #define RK30_GPIO_DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | \
136 return (GPIO_PIN_OUTPUT); in rk30_gpio_get_function()
149 if (func == GPIO_PIN_OUTPUT) in rk30_gpio_set_function()
192 if (flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) { in rk30_gpio_pin_configure()
193 pin->gp_flags &= ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT); in rk30_gpio_pin_configure()
194 if (flags & GPIO_PIN_OUTPUT) in rk30_gpio_pin_configure()
195 pin->gp_flags |= GPIO_PIN_OUTPUT; in rk30_gpio_pin_configure()
565 rk30_gpio_pin_set(sc->sc_dev, pin, GPIO_PIN_OUTPUT); in rk30_gpios_prop_handle()
/freebsd-11-stable/sys/dev/gpio/
HDgpiospi.c159 GPIO_PIN_OUTPUT|GPIO_PIN_PULLDOWN); in gpio_spi_attach()
161 GPIO_PIN_OUTPUT|GPIO_PIN_PULLDOWN); in gpio_spi_attach()
168 GPIO_PIN_OUTPUT|GPIO_PIN_PULLUP); in gpio_spi_attach()
172 GPIO_PIN_OUTPUT|GPIO_PIN_PULLUP); in gpio_spi_attach()
175 GPIO_PIN_OUTPUT|GPIO_PIN_PULLUP); in gpio_spi_attach()
178 GPIO_PIN_OUTPUT|GPIO_PIN_PULLUP); in gpio_spi_attach()
HDchvgpio.c197 *caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in chvgpio_pin_getcaps()
220 *flags |= GPIO_PIN_OUTPUT; in chvgpio_pin_getflags()
243 allowed = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in chvgpio_pin_setflags()
262 if (flags & GPIO_PIN_OUTPUT) in chvgpio_pin_setflags()
/freebsd-11-stable/sys/arm/altera/socfpga/
HDsocfpga_gpio.c105 #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()
/freebsd-11-stable/sys/mips/atheros/
HDar71xx_gpio.c62 #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()
/freebsd-11-stable/sys/powerpc/mpc85xx/
HDqoriq_gpio.c104 *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()
/freebsd-11-stable/sys/arm/xilinx/
HDzy7_gpio.c144 *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()
/freebsd-11-stable/sys/arm/freescale/imx/
HDimx_gpio.c93 #define DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | \
97 #define DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)
531 if (flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) { in imx51_gpio_pin_configure()
532 newflags = pin->gp_flags & ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT); in imx51_gpio_pin_configure()
533 if (flags & GPIO_PIN_OUTPUT) { in imx51_gpio_pin_configure()
545 newflags |= GPIO_PIN_OUTPUT; in imx51_gpio_pin_configure()
751 } else if (flags & GPIO_PIN_OUTPUT) { in imx51_gpio_pin_config_32()
829 (READ4(sc, IMX_GPIO_OE_REG) & (1U << i)) ? GPIO_PIN_OUTPUT : in imx51_gpio_attach()
/freebsd-11-stable/sys/mips/rt305x/
HDrt305x_gpio.c59 #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()
/freebsd-11-stable/sys/arm/ti/omap4/
HDomap4_gpio.c85 if (flags & GPIO_PIN_OUTPUT) in omap4_gpio_set_flags()
113 *flags = GPIO_PIN_OUTPUT; in omap4_gpio_get_flags()
/freebsd-11-stable/sys/mips/cavium/
HDocteon_gpio.c58 #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()
/freebsd-11-stable/sys/dev/amdgpio/
HDamdgpio.c210 allowed = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in amdgpio_pin_setflags()
235 sc->sc_gpio_pins[pin].gp_flags = GPIO_PIN_OUTPUT; in amdgpio_pin_setflags()
267 if ((sc->sc_gpio_pins[pin].gp_flags & GPIO_PIN_OUTPUT) != 0) { in amdgpio_pin_get()
409 GPIO_PIN_OUTPUT : GPIO_PIN_INPUT; in amdgpio_attach()
/freebsd-11-stable/sys/arm/samsung/exynos/
HDexynos5_pad.c68 #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()
/freebsd-11-stable/sys/arm/allwinner/
HDaxp81x.c230 *caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in axp81x_gpio_pin_getcaps()
255 *flags = GPIO_PIN_OUTPUT; in axp81x_gpio_pin_getflags()
280 if ((flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) != 0) { in axp81x_gpio_pin_setflags()
281 if ((flags & GPIO_PIN_OUTPUT) == 0) in axp81x_gpio_pin_setflags()
/freebsd-11-stable/sys/arm/amlogic/aml8726/
HDaml8726_gpio.c195 *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()
/freebsd-11-stable/sys/arm/nvidia/
HDtegra_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()
183 if (flags & GPIO_PIN_OUTPUT) { in tegra_gpio_pin_configure()
184 pin->gp_flags |= GPIO_PIN_OUTPUT; in tegra_gpio_pin_configure()
779 sc->gpio_pins[i].gp_caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | in tegra_gpio_attach()
788 GPIO_PIN_OUTPUT : GPIO_PIN_INPUT; in tegra_gpio_attach()
/freebsd-11-stable/sys/mips/mediatek/
HDmtk_gpio_v2.c188 sc->pins[pin].pin_flags &= ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT); in mtk_gpio_pin_set_direction()
234 sc->pins[pin].pin_flags |= GPIO_PIN_OUTPUT; 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()
482 if(!(sc->pins[pin].pin_flags & GPIO_PIN_OUTPUT)) { in mtk_gpio_pin_toggle()
HDmtk_gpio_v1.c197 sc->pins[pin].pin_flags &= ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT); in mtk_gpio_pin_set_direction()
243 sc->pins[pin].pin_flags |= GPIO_PIN_OUTPUT; in mtk_gpio_pin_probe()
294 sc->pins[i].pin_caps |= GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | in mtk_gpio_attach()
425 flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)); in mtk_gpio_pin_setflags()
490 if (!(sc->pins[pin].pin_flags & GPIO_PIN_OUTPUT)) { in mtk_gpio_pin_toggle()
/freebsd-11-stable/sys/dev/nctgpio/
HDnctgpio.c94 #define NCT_GPIO_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | \
538 pin->gp_flags |= GPIO_PIN_OUTPUT; in nct_attach()
726 if (flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) { in nct_gpio_pin_setflags()
727 if ((flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) == in nct_gpio_pin_setflags()
728 (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) { in nct_gpio_pin_setflags()

123