Home
last modified time | relevance | path

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

12

/NextBSD/sys/arm/lpc/
HDlpc_gpio.c114 { 22, 24, 3, 0, GPIO_PIN_OUTPUT },
119 { 46, 6, 3, -1, GPIO_PIN_INPUT | GPIO_PIN_OUTPUT },
120 { 52, 13, 2, 0, GPIO_PIN_INPUT | GPIO_PIN_OUTPUT },
121 { 65, 24, 1, 0, GPIO_PIN_INPUT | GPIO_PIN_OUTPUT },
122 { 89, 8, 0, 0, GPIO_PIN_INPUT | GPIO_PIN_OUTPUT },
258 if ((map->lp_flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) != in lpc_gpio_pin_getflags()
259 (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) { in lpc_gpio_pin_getflags()
285 *flags = dir ? GPIO_PIN_OUTPUT : GPIO_PIN_INPUT; in lpc_gpio_pin_getflags()
303 if ((map->lp_flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) != in lpc_gpio_pin_setflags()
304 (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) in lpc_gpio_pin_setflags()
[all …]
/NextBSD/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()
/NextBSD/sys/dev/rccgpio/
HDrccgpio.c61 { .pin = 15, .name = "red LED", .caps = GPIO_PIN_OUTPUT },
62 { .pin = 17, .name = "green LED", .caps = GPIO_PIN_OUTPUT },
64 { .pin = 16, .name = "HD1 LED", .caps = GPIO_PIN_OUTPUT },
65 { .pin = 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()
/NextBSD/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()
/NextBSD/sys/arm/ti/am335x/
HDam335x_gpio.c91 if (flags & GPIO_PIN_OUTPUT) { in am335x_gpio_set_flags()
119 *flags = GPIO_PIN_OUTPUT; in am335x_gpio_get_flags()
122 *flags = GPIO_PIN_OUTPUT | GPIO_PIN_PULLUP; in am335x_gpio_get_flags()
/NextBSD/sys/arm/rockchip/
HDrk30xx_gpio.c67 #define RK30_GPIO_DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | \
138 return (GPIO_PIN_OUTPUT); in rk30_gpio_get_function()
151 if (func == GPIO_PIN_OUTPUT) in rk30_gpio_set_function()
194 if (flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) { in rk30_gpio_pin_configure()
195 pin->gp_flags &= ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT); in rk30_gpio_pin_configure()
196 if (flags & GPIO_PIN_OUTPUT) in rk30_gpio_pin_configure()
197 pin->gp_flags |= GPIO_PIN_OUTPUT; in rk30_gpio_pin_configure()
569 rk30_gpio_pin_set(sc->sc_dev, pin, GPIO_PIN_OUTPUT); in rk30_gpios_prop_handle()
/NextBSD/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()
/NextBSD/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()
/NextBSD/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()
/NextBSD/sys/arm/ti/omap4/
HDomap4_gpio.c84 if (flags & GPIO_PIN_OUTPUT) in omap4_gpio_set_flags()
112 *flags = GPIO_PIN_OUTPUT; in omap4_gpio_get_flags()
/NextBSD/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()
/NextBSD/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()
/NextBSD/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()
/NextBSD/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()
HDchrome_ec_spi.c81 GPIO_PIN_SETFLAGS(sc->dev_gpio, EC_SPI_CS, GPIO_PIN_OUTPUT); in assert_cs()
/NextBSD/sys/arm/freescale/imx/
HDimx_gpio.c91 #define DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)
403 if (flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in imx51_gpio_pin_configure()
404 pin->gp_flags &= ~(GPIO_PIN_INPUT|GPIO_PIN_OUTPUT); in imx51_gpio_pin_configure()
405 if (flags & GPIO_PIN_OUTPUT) { in imx51_gpio_pin_configure()
406 pin->gp_flags |= GPIO_PIN_OUTPUT; in imx51_gpio_pin_configure()
652 (READ4(sc, IMX_GPIO_OE_REG) & (1U << i)) ? GPIO_PIN_OUTPUT : in imx51_gpio_attach()
/NextBSD/sys/arm/allwinner/
HDa10_gpio.c66 #define A10_GPIO_DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | \
129 return (GPIO_PIN_OUTPUT); in a10_gpio_get_function()
202 if (flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) { in a10_gpio_pin_configure()
203 if (flags & GPIO_PIN_OUTPUT) in a10_gpio_pin_configure()
HDa10_ehci.c188 GPIO_PIN_SETFLAGS(sc_gpio_dev, GPIO_USB2_PWR, GPIO_PIN_OUTPUT); in a10_ehci_attach()
192 GPIO_PIN_SETFLAGS(sc_gpio_dev, GPIO_USB1_PWR, GPIO_PIN_OUTPUT); in a10_ehci_attach()
/NextBSD/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()
HDaml8726_usb_phy-m6.c215 GPIO_PIN_OUTPUT) != 0) { in aml8726_usb_phy_attach()
331 GPIO_PIN_OUTPUT) != 0) in aml8726_usb_phy_attach()
/NextBSD/sys/sys/
HDgpio.h64 #define GPIO_PIN_OUTPUT 0x0002 /* output direction */ macro
/NextBSD/sys/dev/gpio/
HDgpioiic.c185 GPIO_PIN_OUTPUT); in gpioiic_setsda()
200 GPIO_PIN_OUTPUT); in gpioiic_setscl()
HDgpiobacklight.c91 GPIOBL_PIN, GPIO_PIN_OUTPUT); in gpiobacklight_update_brightness()
/NextBSD/sys/arm/broadcom/bcm2835/
HDbcm2835_gpio.c62 #define BCM_GPIO_DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | \
228 return (GPIO_PIN_OUTPUT); in bcm_gpio_func_flag()
302 if (flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in bcm_gpio_pin_configure()
303 pin->gp_flags &= ~(GPIO_PIN_INPUT|GPIO_PIN_OUTPUT); in bcm_gpio_pin_configure()
304 if (flags & GPIO_PIN_OUTPUT) { in bcm_gpio_pin_configure()
305 pin->gp_flags |= GPIO_PIN_OUTPUT; in bcm_gpio_pin_configure()

12