Searched refs:GPIO_BIT (Results 1 – 4 of 4) sorted by relevance
36 #define GPIO_BIT(x) ((x) & 0x7) macro105 val = 0x100 << GPIO_BIT(gpio); in tegra_gpio_mask_write()107 val |= 1 << GPIO_BIT(gpio); in tegra_gpio_mask_write()140 if ((tegra_gpio_readl(GPIO_OE(offset)) >> GPIO_BIT(offset)) & 1) in tegra_gpio_get()142 GPIO_BIT(offset)) & 0x1; in tegra_gpio_get()144 return (tegra_gpio_readl(GPIO_IN(offset)) >> GPIO_BIT(offset)) & 0x1; in tegra_gpio_get()184 tegra_gpio_writel(1 << GPIO_BIT(gpio), GPIO_INT_CLR(gpio)); in tegra_gpio_irq_ack()245 val &= ~(GPIO_INT_LVL_MASK << GPIO_BIT(gpio)); in tegra_gpio_irq_set_type()246 val |= lvl_type << GPIO_BIT(gpio); in tegra_gpio_irq_set_type()366 bit = GPIO_BIT(gpio); in tegra_gpio_irq_set_wake()
29 #define GPIO_BIT(gpio) ((gpio) & (GPIO_PER_BANK - 1)) macro140 int bit = GPIO_BIT(gpio); in bcm_kona_gpio_set()167 int bit = GPIO_BIT(gpio); in bcm_kona_gpio_get()231 int bit = GPIO_BIT(gpio); in bcm_kona_gpio_direction_output()334 int bit = GPIO_BIT(gpio); in bcm_kona_gpio_irq_ack()355 int bit = GPIO_BIT(gpio); in bcm_kona_gpio_irq_mask()376 int bit = GPIO_BIT(gpio); in bcm_kona_gpio_irq_unmask()
58 #define GPIO_BIT(gpio) ((gpio) & (MAX_GPIO_PER_BANK - 1)) macro
225 #define GPIO_BIT(gpio) (1<<(gpio)) macro