Home
last modified time | relevance | path

Searched refs:GPIO_BIT (Results 1 – 3 of 3) sorted by relevance

/linux-4.1.27/drivers/gpio/
Dgpio-tegra.c36 #define GPIO_BIT(x) ((x) & 0x7) macro
105 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()
368 bit = GPIO_BIT(gpio); in tegra_gpio_irq_set_wake()
Dgpio-bcm-kona.c29 #define GPIO_BIT(gpio) ((gpio) & (GPIO_PER_BANK - 1)) macro
130 int bit = GPIO_BIT(gpio); in bcm_kona_gpio_set()
161 int bit = GPIO_BIT(gpio); in bcm_kona_gpio_get()
226 int bit = GPIO_BIT(gpio); in bcm_kona_gpio_direction_output()
328 int bit = GPIO_BIT(gpio); in bcm_kona_gpio_irq_ack()
349 int bit = GPIO_BIT(gpio); in bcm_kona_gpio_irq_mask()
370 int bit = GPIO_BIT(gpio); in bcm_kona_gpio_irq_unmask()
/linux-4.1.27/arch/arm/mach-netx/include/mach/
Dnetx-regs.h225 #define GPIO_BIT(gpio) (1<<(gpio)) macro