/netbsd-src/sys/arch/mips/rmi/ |
H A D | rmixl_gpio.c | 76 #define GPIO_READ(gpio, reg) \ macro 97 return (GPIO_READ(gpio, RMIXL_GPIO_INPUT) >> pin) & 1; in rmixl_gpio_pin_read() 109 old = GPIO_READ(gpio, RMIXL_GPIO_OUTPUT); in rmixl_gpio_pin_write() 127 old = GPIO_READ(gpio, RMIXL_GPIO_IO_DIR); in rmixl_gpio_pin_ctl() 157 dir = GPIO_READ(gpio, RMIXL_GPIO_IO_DIR); in gpio_defer() 158 valueout = GPIO_READ(gpio, RMIXL_GPIO_OUTPUT); in gpio_defer() 159 valuein = GPIO_READ(gpio, RMIXL_GPIO_INPUT); in gpio_defer()
|
/netbsd-src/sys/arch/arm/imx/ |
H A D | imx31_gpio.c | 91 #define GPIO_READ(gpio, reg) \ macro 129 v = GPIO_READ(gpio, GPIO_ISR); in gpio_pic_find_pending_irqs() 195 v = GPIO_READ(gpio, icr_reg); in gpio_pic_establish_irq() 203 v = GPIO_READ(gpio, GPIO_DIR); in gpio_pic_establish_irq() 234 return (GPIO_READ(gpio, GPIO_DR) >> pin) & 1; in imxgpio_pin_read() 244 old = GPIO_READ(gpio, GPIO_DR); in imxgpio_pin_write() 261 old = GPIO_READ(gpio, GPIO_DIR); in imxgpio_pin_ctl() 291 dir = GPIO_READ(gpio, GPIO_DIR); in gpio_defer() 292 value = GPIO_READ(gpio, GPIO_DR); in gpio_defer()
|
H A D | imxgpio.c | 83 #define GPIO_READ(gpio, reg) \ macro 117 v = GPIO_READ(gpio, GPIO_ISR); in imxgpio_pic_find_pending_irqs() 150 v = GPIO_READ(gpio, icr_reg); in imxgpio_pic_find_pending_irqs() 202 v = GPIO_READ(gpio, icr_reg); in imxgpio_pic_establish_irq() 210 v = GPIO_READ(gpio, GPIO_DIR); in imxgpio_pic_establish_irq() 234 val = __SHIFTOUT(GPIO_READ(gpio, GPIO_DR), __BIT(pin)); in imxgpio_pin_read() 249 old = GPIO_READ(gpio, GPIO_DR); in imxgpio_pin_write() 271 old = GPIO_READ(gpio, GPIO_DIR); in imxgpio_pin_ctl() 303 dir = GPIO_READ(gpio, GPIO_DIR); in imxgpio_attach_ports()
|
/netbsd-src/sys/arch/arm/samsung/ |
H A D | exynos_gpio.c | 245 #define GPIO_READ(bank, reg) \ macro 330 val = GPIO_READ(bank, EXYNOS_GPIO_CON); in exynos_gpio_pin_ctl_write() 337 val = GPIO_READ(bank, EXYNOS_GPIO_PUD); in exynos_gpio_pin_ctl_write() 344 val = GPIO_READ(bank, EXYNOS_GPIO_DRV); in exynos_gpio_pin_ctl_write() 351 val = GPIO_READ(bank, EXYNOS_GPIO_CONPWD); in exynos_gpio_pin_ctl_write() 358 val = GPIO_READ(bank, EXYNOS_GPIO_PUDPWD); in exynos_gpio_pin_ctl_write() 403 bank->bank_cfg.cfg = GPIO_READ(bank, EXYNOS_GPIO_CON); in exynos_gpio_bank_config() 404 bank->bank_cfg.pud = GPIO_READ(bank, EXYNOS_GPIO_PUD); in exynos_gpio_bank_config() 405 bank->bank_cfg.drv = GPIO_READ(bank, EXYNOS_GPIO_DRV); in exynos_gpio_bank_config() 406 bank->bank_cfg.conpwd = GPIO_READ(bank, EXYNOS_GPIO_CONPWD); in exynos_gpio_bank_config() [all …]
|
/netbsd-src/sys/arch/hpcarm/dev/ |
H A D | uda1341.c | 108 #define GPIO_READ(sc, reg) \ macro 173 cr = GPIO_READ(sc, SAGPIO_PDR) | (L3_DATA | L3_MODE | L3_CLK); in uda1341_output_high() 182 cr = GPIO_READ(sc, SAGPIO_PDR); in uda1341_output_low() 192 cr = GPIO_READ(sc, SAGPIO_AFR); in uda1341_L3_init() 205 cr = GPIO_READ(sc, SAGPIO_AFR); in uda1341_init() 211 cr = GPIO_READ(sc, SAGPIO_PDR); in uda1341_init() 228 cr = GPIO_READ(sc, SAGPIO_PDR); in uda1341_init() 328 cr = GPIO_READ(sc, SAGPIO_PLR); 421 cr = GPIO_READ(sc, SAGPIO_PDR);
|
/netbsd-src/sys/arch/arm/gemini/ |
H A D | gemini_gpio.c | 105 #define GPIO_READ(gpio, reg) \ macro 150 pending = GPIO_READ(gpio, GEMINI_GPIO_INTRMSKSTATE); in gpio_pic_find_pending_irqs() 220 v = GPIO_READ(gpio, GEMINI_GPIO_PINDIR); in gpio_pic_establish_irq() 254 return (GPIO_READ(gpio, GEMINI_GPIO_DATAIN) >> pin) & 1; in geminigpio_pin_read() 276 old = GPIO_READ(gpio, GEMINI_GPIO_PINDIR); in geminigpio_pin_ctl() 306 dir = GPIO_READ(gpio, GEMINI_GPIO_PINDIR); in gpio_defer() 307 valueout = GPIO_READ(gpio, GEMINI_GPIO_DATAOUT); in gpio_defer() 308 valuein = GPIO_READ(gpio, GEMINI_GPIO_DATAIN); in gpio_defer()
|
/netbsd-src/sys/arch/arm/sunxi/ |
H A D | sunxi_gpio.c | 184 #define GPIO_READ(sc, reg) \ 241 cfg = GPIO_READ(sc, cfg_reg); in sunxi_gpio_setfunc() 246 pin_def->port + 'A', pin_def->pin, GPIO_READ(sc, cfg_reg), cfg); in sunxi_gpio_setfunc() 271 pull = GPIO_READ(sc, pull_reg); in sunxi_gpio_setpull() 281 pin_def->port + 'A', pin_def->pin, GPIO_READ(sc, pull_reg), pull); in sunxi_gpio_setpull() 302 drv = GPIO_READ(sc, drv_reg); in sunxi_gpio_setdrv() 307 pin_def->port + 'A', pin_def->pin, GPIO_READ(sc, drv_reg), drv); in sunxi_gpio_setdrv() 392 data = GPIO_READ(sc, data_reg); in sunxi_gpio_read() 423 data = GPIO_READ(sc, data_reg); in sunxi_gpio_write() 428 pin_def->port + 'A', pin_def->pin, GPIO_READ(s in sunxi_gpio_write() 180 #define GPIO_READ( global() macro [all...] |
/netbsd-src/sys/arch/arm/nvidia/ |
H A D | tegra_gpio.c | 143 #define GPIO_READ(bank, reg) \ macro 213 const uint32_t cnf = GPIO_READ(bank, GPIO_CNF_REG); in tegra_gpio_attach_bank() 256 const uint32_t v = GPIO_READ(bank, GPIO_IN_REG); in tegra_gpio_pin_read() 308 const uint32_t cnf = GPIO_READ(&gbank, GPIO_CNF_REG); in tegra_gpio_fdt_acquire() 403 const uint32_t cnf = GPIO_READ(&bank, GPIO_CNF_REG); in tegra_gpio_acquire() 432 const uint32_t v = GPIO_READ(&gpin->pin_bank, GPIO_OUT_REG); in tegra_gpio_read()
|
/netbsd-src/sys/dev/isa/ |
H A D | nsclpcsio_isa.c | 191 #define GPIO_READ(sc, reg) \ macro 610 v = GPIO_READ(sc, reg); in nsclpcsio_gpio_pin_read() 643 d = GPIO_READ(sc, reg); in nsclpcsio_gpio_pin_write()
|