Searched refs:GPIO_READ (Results 1 – 4 of 4) sorted by relevance
| /f-stack/freebsd/mips/atheros/ |
| H A D | ar71xx_gpiovar.h | 48 #define GPIO_READ(sc, reg) bus_read_4(sc->gpio_mem_res, (reg)) macro 51 GPIO_WRITE(sc, reg, GPIO_READ(sc, (reg)) | (bits)) 54 GPIO_WRITE(sc, reg, GPIO_READ(sc, (reg)) & ~(bits))
|
| H A D | ar71xx_gpio.c | 378 *val = (GPIO_READ(sc, AR71XX_GPIO_IN) & (1 << pin)) ? 1 : 0; in ar71xx_gpio_pin_get() 397 res = (GPIO_READ(sc, AR71XX_GPIO_IN) & (1 << pin)) ? 1 : 0; in ar71xx_gpio_pin_toggle() 503 oe = GPIO_READ(sc, AR71XX_GPIO_OE); in ar71xx_gpio_attach() 573 oe = GPIO_READ(sc, AR71XX_GPIO_OUT); in ar71xx_gpio_attach()
|
| /f-stack/freebsd/mips/atheros/ar531x/ |
| H A D | ar5315_gpiovar.h | 48 #define GPIO_READ(sc, reg) bus_read_4(sc->gpio_mem_res, (reg)) macro 51 GPIO_WRITE(sc, reg, GPIO_READ(sc, (reg)) | (bits)) 54 GPIO_WRITE(sc, reg, GPIO_READ(sc, (reg)) & ~(bits))
|
| H A D | ar5315_gpio.c | 189 dir = GPIO_READ(sc, ar531x_gpio_cr()) & (1 << pin); in ar5315_gpio_pin_getflags() 248 state = GPIO_READ(sc, ar531x_gpio_do()); in ar5315_gpio_pin_set() 275 *val = (GPIO_READ(sc, ar531x_gpio_di()) & (1 << pin)) ? 1 : 0; in ar5315_gpio_pin_get() 294 res = (GPIO_READ(sc, ar531x_gpio_do()) & (1 << pin)) ? 1 : 0; in ar5315_gpio_pin_toggle() 398 oe = GPIO_READ(sc, ar531x_gpio_cr()); in ar5315_gpio_attach() 461 oe = GPIO_READ(sc, ar531x_gpio_cr()); in ar5315_gpio_attach() 466 oe = GPIO_READ(sc, ar531x_gpio_do()); in ar5315_gpio_attach()
|