/openbmc/u-boot/drivers/gpio/ |
H A D | kona_gpio.c | 16 #define GPIO_BANK(gpio) ((gpio) >> 5) macro 50 off = GPIO_PWD_STATUS(GPIO_BANK(gpio)); in gpio_request() 62 off = GPIO_PWD_STATUS(GPIO_BANK(gpio)); in gpio_free() 83 int bank_id = GPIO_BANK(gpio); in gpio_direction_output() 102 int bank_id = GPIO_BANK(gpio); in gpio_get_value() 121 int bank_id = GPIO_BANK(gpio); in gpio_set_value()
|
H A D | tegra_gpio.c | 46 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in get_config() 63 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in set_config() 81 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in get_direction() 98 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in set_direction() 116 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in set_level()
|
H A D | da8xx_gpio.c | 388 bank = GPIO_BANK(gpio); in gpio_info() 403 bank = GPIO_BANK(gpio); in gpio_direction_input() 411 bank = GPIO_BANK(gpio); in gpio_direction_output() 419 bank = GPIO_BANK(gpio); in gpio_get_value() 427 bank = GPIO_BANK(gpio); in gpio_set_value()
|
H A D | aspeed_gpio.c | 181 #define GPIO_BANK(x) ((x) >> 5) macro 187 unsigned int bank = GPIO_BANK(offset); in to_bank()
|
H A D | sunxi_gpio.c | 35 u32 bank = GPIO_BANK(pin); in sunxi_gpio_output() 53 u32 bank = GPIO_BANK(pin); in sunxi_gpio_input()
|
/openbmc/u-boot/arch/arm/mach-sunxi/ |
H A D | pinmux.c | 22 u32 bank = GPIO_BANK(pin); in sunxi_gpio_set_cfgpin() 42 u32 bank = GPIO_BANK(pin); in sunxi_gpio_get_cfgpin() 50 u32 bank = GPIO_BANK(pin); in sunxi_gpio_set_drv() 62 u32 bank = GPIO_BANK(pin); in sunxi_gpio_set_pull()
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-bcm-kona.c | 24 #define GPIO_BANK(gpio) ((gpio) >> 5) macro 88 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_lock_gpio() 104 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_unlock_gpio() 129 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_set() 156 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_get() 220 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_direction_output() 335 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_irq_ack() 356 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_irq_mask() 378 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_irq_unmask()
|
H A D | gpio-npcm-sgpio.c | 44 #define GPIO_BANK(x) ((x) / 8) macro 159 unsigned int bank = GPIO_BANK(offset); in offset_to_bank() 184 in_port = GPIO_BANK(gpio->nin_sgpio); in npcm_sgpio_init_port() 188 out_port = GPIO_BANK(gpio->nout_sgpio); in npcm_sgpio_init_port()
|
H A D | gpio-tegra.c | 27 #define GPIO_BANK(x) ((x) >> 5) macro 31 #define GPIO_REG(tgi, x) (GPIO_BANK(x) * tgi->soc->bank_stride + \ 234 struct tegra_gpio_bank *bank = &tgi->bank_info[GPIO_BANK(offset)]; in tegra_gpio_set_debounce() 314 bank = &tgi->bank_info[GPIO_BANK(d->hwirq)]; in tegra_gpio_irq_set_type() 547 bank = &tgi->bank_info[GPIO_BANK(d->hwirq)]; in tegra_gpio_irq_set_wake()
|
H A D | gpio-aspeed.c | 245 #define GPIO_BANK(x) ((x) >> 5) macro 255 unsigned int bank = GPIO_BANK(offset); in to_bank() 272 if (props->bank == GPIO_BANK(offset)) in find_bank_props() 358 gpio->dcache[GPIO_BANK(offset)] = ioread32(bank_reg(gpio, bank, reg_rdata)); in aspeed_gpio_copro_request() 400 reg = gpio->dcache[GPIO_BANK(offset)]; in __aspeed_gpio_set() 406 gpio->dcache[GPIO_BANK(offset)] = reg; in __aspeed_gpio_set()
|
H A D | gpio-aspeed-sgpio.c | 131 #define GPIO_BANK(x) ((x) >> 6) macro 139 bank = GPIO_BANK(offset); in to_bank()
|
H A D | gpio-brcmstb.c | 59 #define GPIO_BANK(gpio) ((gpio) >> 5) macro
|
/openbmc/u-boot/arch/arm/include/asm/arch-tegra/ |
H A D | gpio.h | 16 #define GPIO_BANK(x) ((x) >> 5) macro
|
/openbmc/u-boot/arch/arm/mach-davinci/include/mach/ |
H A D | gpio.h | 42 #define GPIO_BANK(gp) (davinci_gpio_bank01 + ((gp) >> 5)) macro
|
/openbmc/linux/drivers/pinctrl/ |
H A D | pinctrl-pistachio.c | 1316 #define GPIO_BANK(_bank, _pin_base, _npins) \ macro 1336 GPIO_BANK(0, PISTACHIO_PIN_MFIO(0), 16), 1337 GPIO_BANK(1, PISTACHIO_PIN_MFIO(16), 16), 1338 GPIO_BANK(2, PISTACHIO_PIN_MFIO(32), 16), 1339 GPIO_BANK(3, PISTACHIO_PIN_MFIO(48), 16), 1340 GPIO_BANK(4, PISTACHIO_PIN_MFIO(64), 16), 1341 GPIO_BANK(5, PISTACHIO_PIN_MFIO(80), 10),
|
H A D | pinctrl-pic32.c | 2111 #define GPIO_BANK(_bank, _npins) \ macro 2131 GPIO_BANK(0, PINS_PER_BANK), 2132 GPIO_BANK(1, PINS_PER_BANK), 2133 GPIO_BANK(2, PINS_PER_BANK), 2134 GPIO_BANK(3, PINS_PER_BANK), 2135 GPIO_BANK(4, PINS_PER_BANK), 2136 GPIO_BANK(5, PINS_PER_BANK), 2137 GPIO_BANK(6, PINS_PER_BANK), 2138 GPIO_BANK(7, PINS_PER_BANK), 2139 GPIO_BANK(8, PINS_PER_BANK), [all …]
|
/openbmc/u-boot/arch/arm/include/asm/arch-sunxi/ |
H A D | gpio.h | 80 #define GPIO_BANK(pin) ((pin) >> 5) macro
|
/openbmc/linux/drivers/pinctrl/bcm/ |
H A D | pinctrl-iproc-gpio.c | 61 #define GPIO_BANK(pin) ((pin) / NGPIOS_PER_BANK) macro 63 #define IPROC_GPIO_REG(pin, reg) (GPIO_BANK(pin) * GPIO_BANK_SIZE + (reg))
|