Home
last modified time | relevance | path

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

1234

/netbsd-src/sys/arch/evbppc/wii/dev/
H A Dhwgpio.c52 PIN( 0, "POWER", GPIO_PIN_INPUT),
58 PIN( 6, "EJECT_BTN", GPIO_PIN_INPUT),
59 PIN( 7, "SLOT_IN", GPIO_PIN_INPUT),
65 PIN(13, "EEP_MISO", GPIO_PIN_INPUT),
67 PIN(15, "AVE_SDA", GPIO_PIN_INPUT | GPIO_PIN_OUTPUT),
68 PIN(16, "DEBUG0", GPIO_PIN_INPUT | GPIO_PIN_OUTPUT),
69 PIN(17, "DEBUG1", GPIO_PIN_INPUT | GPIO_PIN_OUTPUT),
70 PIN(18, "DEBUG2", GPIO_PIN_INPUT | GPIO_PIN_OUTPUT),
71 PIN(19, "DEBUG3", GPIO_PIN_INPUT | GPIO_PIN_OUTPUT),
72 PIN(20, "DEBUG4", GPIO_PIN_INPUT | GPIO_PIN_OUTPUT),
[all …]
/netbsd-src/sys/arch/evbarm/netwalker/
H A Dnetwalker_spi.c86 imxgpio_set_direction(GPIO_NO(4, 24), GPIO_PIN_INPUT); in imxspi_cs_disable()
90 imxgpio_set_direction(GPIO_NO(4, 25), GPIO_PIN_INPUT); in imxspi_cs_disable()
94 imxgpio_set_direction(GPIO_NO(3, 0), GPIO_PIN_INPUT); in imxspi_cs_disable()
133 imxgpio_set_direction(GPIO_NO(4, 24), GPIO_PIN_INPUT); in imxspi_attach()
137 imxgpio_set_direction(GPIO_NO(4, 25), GPIO_PIN_INPUT); in imxspi_attach()
146 imxgpio_set_direction(GPIO_NO(3, 0), GPIO_PIN_INPUT); in imxspi_attach()
H A Dnetwalker_btn.c140 if (!(caps & GPIO_PIN_INPUT)) { in mousebtn_attach()
146 GPIO_PIN_INPUT); in mousebtn_attach()
150 if (!(caps & GPIO_PIN_INPUT)) { in mousebtn_attach()
156 GPIO_PIN_INPUT); in mousebtn_attach()
/netbsd-src/sys/arch/mips/rmi/
H A Drmixl_gpio.c126 KASSERT((flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) != (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)); in rmixl_gpio_pin_ctl()
129 switch (flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in rmixl_gpio_pin_ctl()
130 case GPIO_PIN_INPUT: new &= ~mask; break; in rmixl_gpio_pin_ctl()
165 pins->pin_caps = GPIO_PIN_INPUT; in gpio_defer()
169 caps |= GPIO_PIN_INPUT; in gpio_defer()
171 caps |= GPIO_PIN_INPUT; in gpio_defer()
175 (dir & mask) ? GPIO_PIN_OUTPUT : GPIO_PIN_INPUT; in gpio_defer()
/netbsd-src/sys/arch/mips/alchemy/dev/
H A Daugpio.c109 sc->sc_caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | in augpio_attach()
124 sc->sc_caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in augpio_attach()
181 if (flags & (GPIO_PIN_TRISTATE|GPIO_PIN_INPUT)) { in augpio_ctl()
201 return GPIO_PIN_INPUT; in augpio_getctl()
240 if (flags & GPIO_PIN_INPUT) { in augpio2_ctl()
259 return GPIO_PIN_INPUT; in augpio2_getctl()
/netbsd-src/sys/arch/powerpc/booke/dev/
H A Dpq3gpio.c128 switch (ctl & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in pq3gpio_pin_ctl()
129 case GPIO_PIN_INPUT|GPIO_PIN_OUTPUT: dir = CPDIR_INOUT; break; in pq3gpio_pin_ctl()
131 case GPIO_PIN_INPUT: dir = CPDIR_INOUT; break; in pq3gpio_pin_ctl()
177 switch (ctl & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in pq3gpio_pin_ctl()
179 case GPIO_PIN_INPUT: new_dir &= ~mask; break; in pq3gpio_pin_ctl()
286 GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_OPENDRAIN, in pq3gpio_mpc8536_attach()
309 GPIO_PIN_INPUT, pq3gpio_null_pin_ctl); in pq3gpio_mpc8544_attach()
377 GPIO_PIN_INPUT, pq3gpio_null_pin_ctl); in pq3gpio_mpc8548_attach()
426 GPIO_PIN_INPUT|GPIO_PIN_OUTPUT|GPIO_PIN_OPENDRAIN, in pq3gpio_p1025_attach()
465 GPIO_PIN_INPUT|GPIO_PIN_OUTPUT|GPIO_PIN_OPENDRAIN, in pq3gpio_p20x0_attach()
[all …]
/netbsd-src/sys/arch/mips/adm5120/dev/
H A Dadmgpio.c65 KASSERT(flags == GPIO_PIN_INPUT || flags == GPIO_PIN_OUTPUT); in admgpio_pin_ctl()
84 if (sc->sc_pins[pin].pin_flags == GPIO_PIN_INPUT) in admgpio_pin_read()
120 sc->sc_pins[pin].pin_caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in admgpio_attach()
125 sc->sc_pins[pin].pin_flags = GPIO_PIN_INPUT; in admgpio_attach()
/netbsd-src/sys/arch/arm/imx/
H A Dimx31_gpio.c263 switch (flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in imxgpio_pin_ctl()
264 case GPIO_PIN_INPUT: new |= mask; break; in imxgpio_pin_ctl()
297 pins->pin_caps = GPIO_PIN_INPUT; in gpio_defer()
299 pins->pin_caps = GPIO_PIN_INPUT|GPIO_PIN_OUTPUT; in gpio_defer()
301 (dir & mask) ? GPIO_PIN_OUTPUT : GPIO_PIN_INPUT; in gpio_defer()
H A Dimxgpio.c273 switch (flags & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) { in imxgpio_pin_ctl()
274 case GPIO_PIN_INPUT: in imxgpio_pin_ctl()
309 pins->pin_caps = GPIO_PIN_INPUT; in imxgpio_attach_ports()
311 pins->pin_caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT; in imxgpio_attach_ports()
313 (dir & mask) ? GPIO_PIN_OUTPUT : GPIO_PIN_INPUT; in imxgpio_attach_ports()
/netbsd-src/sys/dev/gpio/
H A Dgpioow.c122 if (!(caps & GPIO_PIN_INPUT)) { in gpioow_attach()
214 data &= ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_TRISTATE); in gpioow_bb_rx()
215 data |= GPIO_PIN_INPUT; in gpioow_bb_rx()
231 data &= ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_TRISTATE); in gpioow_bb_tx()
H A Dgpiolock.c110 if (!(caps & GPIO_PIN_INPUT)) { in gpiolock_attach()
115 sc->sc_data = GPIO_PIN_INPUT; in gpiolock_attach()
H A Dgpioiic.c142 if (!(caps & GPIO_PIN_INPUT)) { in gpioiic_attach()
269 sda &= ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | GPIO_PIN_TRISTATE); in gpioiic_bb_set_dir()
270 sda |= (bits & GPIOIIC_SDA ? GPIO_PIN_OUTPUT : GPIO_PIN_INPUT); in gpioiic_bb_set_dir()
/netbsd-src/sys/arch/arm/gemini/
H A Dgemini_gpio.c278 switch (flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in geminigpio_pin_ctl()
279 case GPIO_PIN_INPUT: new &= ~mask; break; in geminigpio_pin_ctl()
313 pins->pin_caps = GPIO_PIN_INPUT; in gpio_defer()
315 pins->pin_caps = GPIO_PIN_INPUT|GPIO_PIN_OUTPUT; in gpio_defer()
317 (dir & mask) ? GPIO_PIN_OUTPUT : GPIO_PIN_INPUT; in gpio_defer()
/netbsd-src/sys/arch/arm/marvell/
H A Dmvsocgpp.c208 pins->pin_caps = (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | in mvsocgpp_attach()
211 pins->pin_flags = GPIO_PIN_INPUT; in mvsocgpp_attach()
314 mvsocgpp_pin_ctl(NULL, pin, GPIO_PIN_INPUT | GPIO_PIN_INVIN); in gpio_pic_establish_irq()
319 mvsocgpp_pin_ctl(NULL, pin, GPIO_PIN_INPUT); in gpio_pic_establish_irq()
395 switch (flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in mvsocgpp_pin_ctl()
396 case GPIO_PIN_INPUT: in mvsocgpp_pin_ctl()
/netbsd-src/sys/dev/fdt/
H A Dfdt_pinctrl.c279 direction = GPIO_PIN_INPUT; in fdtbus_pinctrl_parse_input_output()
320 && (direction & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) in fdtbus_pinctrl_parse_input_output()
321 == (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT)) { in fdtbus_pinctrl_parse_input_output()
/netbsd-src/sys/dev/tc/
H A Dtcu.c198 sc->sc_gpio_pins[pin].pin_caps = GPIO_PIN_INPUT | in tcu_gpio_attach()
201 GPIO_PIN_OUTPUT : GPIO_PIN_INPUT; in tcu_gpio_attach()
263 if (flags & GPIO_PIN_INPUT) in tcu_gpio_ctl()
/netbsd-src/sys/dev/ic/
H A Dpl061.c67 GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | in plgpio_attach()
107 if (flags & GPIO_PIN_INPUT) { in plgpio_pin_ctl()
/netbsd-src/sys/sys/
H A Dgpio.h34 #define GPIO_PIN_INPUT 0x00000001 /* input direction */ macro
56 #define GPIO_PIN_HWCAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | \
/netbsd-src/sys/arch/arm/nvidia/
H A Dtegra_gpio.c221 GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | in tegra_gpio_attach_bank()
278 if (flags & GPIO_PIN_INPUT) { in tegra_gpio_pin_ctl()
420 tegra_gpio_pin_ctl(&gpin->pin_bank, gpin->pin_no, GPIO_PIN_INPUT); in tegra_gpio_release()
429 if (gpin->pin_flags & GPIO_PIN_INPUT) { in tegra_gpio_read()
/netbsd-src/sys/dev/isa/
H A Dsoekrisgpio.c146 sc->sc_gpio_pins[i].pin_caps = GPIO_PIN_INPUT | in soekris_attach()
149 GPIO_PIN_OUTPUT : GPIO_PIN_INPUT; in soekris_attach()
228 if (flags & GPIO_PIN_INPUT) in soekris_gpio_ctl()
H A Dnct.c420 GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | in nct_attach()
425 GPIO_PIN_INPUT | GPIO_PIN_OPENDRAIN; in nct_attach()
602 if ((flg & (GPIO_PIN_INPUT | GPIO_PIN_TRISTATE)) != 0) { in nct_gpio_ctl()
616 (flg & (GPIO_PIN_INPUT | GPIO_PIN_INVIN)) == in nct_gpio_ctl()
617 (GPIO_PIN_INPUT | GPIO_PIN_INVIN)) { in nct_gpio_ctl()
/netbsd-src/sys/dev/i2c/
H A Dmax77620.c114 switch (flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in max77620_gpio_config()
115 case GPIO_PIN_INPUT: in max77620_gpio_config()
190 max77620_gpio_config(sc, gpin->pin_num, GPIO_PIN_INPUT|GPIO_PIN_OPENDRAIN); in max77620_gpio_release()
H A Dtcagpio.c119 switch (flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) { in tcagpio_gpio_config()
120 case GPIO_PIN_INPUT: in tcagpio_gpio_config()
177 tcagpio_gpio_config(sc, gpin->pin_num, GPIO_PIN_INPUT); in tcagpio_gpio_release()
/netbsd-src/sys/arch/mips/atheros/dev/
H A Dargpio.c177 pp->pin_caps = GPIO_PIN_INPUT; in argpio_attach()
196 pp->pin_caps = GPIO_PIN_INPUT | in argpio_attach()
223 if (flags & GPIO_PIN_INPUT) { in argpio_ctl()
/netbsd-src/sys/arch/arm/apple/
H A Dapple_pinctrl.c120 if (flags & (GPIO_PIN_OUTPUT | GPIO_PIN_INPUT)) { in apple_gpio_pin_ctl()
121 if (flags & GPIO_PIN_INPUT) { in apple_gpio_pin_ctl()
163 apple_gpio_pin_ctl(sc, pin->pin_no, GPIO_PIN_INPUT); in apple_pinctrl_gpio_release()

1234