Home
last modified time | relevance | path

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

/OK3568_Linux_fs/u-boot/drivers/gpio/
H A Dtegra_gpio.c54 type = (u >> GPIO_BIT(gpio)) & 1; in get_config()
57 GPIO_FULLPORT(gpio), GPIO_BIT(gpio), type ? "GPIO" : "SFPIO"); in get_config()
70 GPIO_FULLPORT(gpio), GPIO_BIT(gpio), type ? "GPIO" : "SFPIO"); in set_config()
74 u |= 1 << GPIO_BIT(gpio); in set_config()
76 u &= ~(1 << GPIO_BIT(gpio)); in set_config()
89 dir = (u >> GPIO_BIT(gpio)) & 1; in get_direction()
92 GPIO_FULLPORT(gpio), GPIO_BIT(gpio), dir ? "OUT" : "IN"); in get_direction()
105 GPIO_FULLPORT(gpio), GPIO_BIT(gpio), output ? "OUT" : "IN"); in set_direction()
109 u |= 1 << GPIO_BIT(gpio); in set_direction()
111 u &= ~(1 << GPIO_BIT(gpio)); in set_direction()
[all …]
H A Dda8xx_gpio.c343 setbits_le32(&bank->dir, 1U << GPIO_BIT(gpio)); in gpio_direction_input()
352 clrbits_le32(&bank->dir, 1U << GPIO_BIT(gpio)); in gpio_direction_output()
363 ip = in_le32(&bank->in_data) & (1U << GPIO_BIT(gpio)); in gpio_get_value()
374 bank->set_data = 1U << GPIO_BIT(gpio); in gpio_set_value()
376 bank->clr_data = 1U << GPIO_BIT(gpio); in gpio_set_value()
388 dir = in_le32(&bank->dir) & (1U << GPIO_BIT(gpio)); in gpio_info()
/OK3568_Linux_fs/kernel/drivers/gpio/
H A Dgpio-aspeed.c245 #define GPIO_BIT(x) BIT(GPIO_OFFSET(x)) macro
285 (!props || ((props->input | props->output) & GPIO_BIT(offset))); in have_gpio()
292 return !props || (props->input & GPIO_BIT(offset)); in have_input()
302 return !props || (props->output & GPIO_BIT(offset)); in have_output()
386 return !!(ioread32(bank_reg(gpio, bank, reg_val)) & GPIO_BIT(offset)); in aspeed_gpio_get()
401 reg |= GPIO_BIT(offset); in __aspeed_gpio_set()
403 reg &= ~GPIO_BIT(offset); in __aspeed_gpio_set()
441 reg &= ~GPIO_BIT(offset); in aspeed_gpio_dir_in()
469 reg |= GPIO_BIT(offset); in aspeed_gpio_dir_out()
497 val = ioread32(bank_reg(gpio, bank, reg_dir)) & GPIO_BIT(offset); in aspeed_gpio_get_direction()
[all …]
H A Dgpio-tegra.c28 #define GPIO_BIT(x) ((x) & 0x7) macro
118 val = 0x100 << GPIO_BIT(gpio); in tegra_gpio_mask_write()
120 val |= 1 << GPIO_BIT(gpio); in tegra_gpio_mask_write()
158 unsigned int bval = BIT(GPIO_BIT(offset)); in tegra_gpio_get()
209 u32 pin_mask = BIT(GPIO_BIT(offset)); in tegra_gpio_get_direction()
282 tegra_gpio_writel(tgi, 1 << GPIO_BIT(gpio), GPIO_INT_CLR(tgi, gpio)); in tegra_gpio_irq_ack()
340 val &= ~(GPIO_INT_LVL_MASK << GPIO_BIT(gpio)); in tegra_gpio_irq_set_type()
341 val |= lvl_type << GPIO_BIT(gpio); in tegra_gpio_irq_set_type()
502 bit = GPIO_BIT(gpio); in tegra_gpio_irq_set_wake()
H A Dgpio-bcm-kona.c31 #define GPIO_BIT(gpio) ((gpio) & (GPIO_PER_BANK - 1)) macro
137 int bit = GPIO_BIT(gpio); in bcm_kona_gpio_set()
164 int bit = GPIO_BIT(gpio); in bcm_kona_gpio_get()
228 int bit = GPIO_BIT(gpio); in bcm_kona_gpio_direction_output()
343 int bit = GPIO_BIT(gpio); in bcm_kona_gpio_irq_ack()
364 int bit = GPIO_BIT(gpio); in bcm_kona_gpio_irq_mask()
386 int bit = GPIO_BIT(gpio); in bcm_kona_gpio_irq_unmask()
H A Dgpio-aspeed-sgpio.c126 #define GPIO_BIT(x) BIT(GPIO_OFFSET(x)) macro
187 rc = !!(ioread32(bank_reg(gpio, bank, reg)) & GPIO_BIT(offset)); in aspeed_sgpio_get()
212 reg |= GPIO_BIT(offset); in sgpio_set_value()
214 reg &= ~GPIO_BIT(offset); in sgpio_set_value()
272 *bit = GPIO_BIT(*offset); in irqd_to_aspeed_sgpio_data()
H A Dgpio-brcmstb.c71 #define GPIO_BIT(gpio) ((gpio) & (MAX_GPIO_PER_BANK - 1)) macro
/OK3568_Linux_fs/u-boot/arch/arm/include/asm/arch-tegra/
H A Dgpio.h19 #define GPIO_BIT(x) ((x) & 0x7) macro
/OK3568_Linux_fs/u-boot/arch/arm/mach-davinci/include/mach/
H A Dgpio.h63 #define GPIO_BIT(gp) ((gp) & 0x1F) macro