Home
last modified time | relevance | path

Searched refs:gpio_bit (Results 1 – 4 of 4) sorted by relevance

/arch/blackfin/kernel/
Dbfin_gpio.c192 *port_fer[gpio_bank(gpio)] &= ~gpio_bit(gpio); in port_setup()
194 *port_fer[gpio_bank(gpio)] |= gpio_bit(gpio); in port_setup()
198 gpio_array[gpio_bank(gpio)]->port_fer &= ~gpio_bit(gpio); in port_setup()
200 gpio_array[gpio_bank(gpio)]->port_fer |= gpio_bit(gpio); in port_setup()
351 gpio_array[gpio_bank(gpio)]->name |= gpio_bit(gpio); \
353 gpio_array[gpio_bank(gpio)]->name &= ~gpio_bit(gpio); \
373 gpio_array[gpio_bank(gpio)]->name ## _set = gpio_bit(gpio); \ in SET_GPIO()
375 gpio_array[gpio_bank(gpio)]->name ## _clear = gpio_bit(gpio); \ in SET_GPIO()
392 gpio_array[gpio_bank(gpio)]->toggle = gpio_bit(gpio);
528 wakeup_map[gpio_bank(gpio)] |= gpio_bit(gpio); in gpio_pm_wakeup_request()
[all …]
/arch/arm/common/
Dscoop.c129 unsigned short gpio_bit; in set_scoop_gpio() local
134 gpio_bit = ioread16(sdev->base + SCOOP_GPWR) | bit; in set_scoop_gpio()
135 iowrite16(gpio_bit, sdev->base + SCOOP_GPWR); in set_scoop_gpio()
138 return gpio_bit; in set_scoop_gpio()
143 unsigned short gpio_bit; in reset_scoop_gpio() local
148 gpio_bit = ioread16(sdev->base + SCOOP_GPWR) & ~bit; in reset_scoop_gpio()
149 iowrite16(gpio_bit, sdev->base + SCOOP_GPWR); in reset_scoop_gpio()
152 return gpio_bit; in reset_scoop_gpio()
/arch/arm/plat-omap/
Dgpio.c508 u32 gpio_bit = 1 << gpio; in set_24xx_gpio_triggering() local
510 MOD_REG_BIT(OMAP24XX_GPIO_LEVELDETECT0, gpio_bit, in set_24xx_gpio_triggering()
512 MOD_REG_BIT(OMAP24XX_GPIO_LEVELDETECT1, gpio_bit, in set_24xx_gpio_triggering()
514 MOD_REG_BIT(OMAP24XX_GPIO_RISINGDETECT, gpio_bit, in set_24xx_gpio_triggering()
516 MOD_REG_BIT(OMAP24XX_GPIO_FALLINGDETECT, gpio_bit, in set_24xx_gpio_triggering()
519 if (likely(!(bank->non_wakeup_gpios & gpio_bit))) { in set_24xx_gpio_triggering()
528 bank->enabled_non_wakeup_gpios |= gpio_bit; in set_24xx_gpio_triggering()
530 bank->enabled_non_wakeup_gpios &= ~gpio_bit; in set_24xx_gpio_triggering()
/arch/blackfin/include/asm/
Dgpio.h34 #define gpio_bit(x) (1<<((x) & 0xF)) macro