Searched refs:GPIO_BANK (Results 1 – 9 of 9) sorted by relevance
/drivers/gpio/ |
D | gpio-bcm-kona.c | 30 #define GPIO_BANK(gpio) ((gpio) >> 5) macro 95 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_lock_gpio() 111 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_unlock_gpio() 136 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_set() 163 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_get() 227 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_direction_output() 342 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_irq_ack() 363 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_irq_mask() 385 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_irq_unmask()
|
D | gpio-tegra.c | 26 #define GPIO_BANK(x) ((x) >> 5) macro 30 #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() 312 bank = &tgi->bank_info[GPIO_BANK(d->hwirq)]; in tegra_gpio_irq_set_type() 548 bank = &tgi->bank_info[GPIO_BANK(d->hwirq)]; in tegra_gpio_irq_set_wake()
|
D | gpio-aspeed.c | 243 #define GPIO_BANK(x) ((x) >> 5) macro 253 unsigned int bank = GPIO_BANK(offset); in to_bank() 270 if (props->bank == GPIO_BANK(offset)) in find_bank_props() 356 gpio->dcache[GPIO_BANK(offset)] = ioread32(bank_reg(gpio, bank, reg_rdata)); in aspeed_gpio_copro_request() 398 reg = gpio->dcache[GPIO_BANK(offset)]; in __aspeed_gpio_set() 404 gpio->dcache[GPIO_BANK(offset)] = reg; in __aspeed_gpio_set()
|
D | gpio-aspeed-sgpio.c | 130 #define GPIO_BANK(x) ((x) >> 6) macro 138 bank = GPIO_BANK(offset); in to_bank()
|
D | gpio-brcmstb.c | 69 #define GPIO_BANK(gpio) ((gpio) >> 5) macro
|
/drivers/pinctrl/ |
D | pinctrl-pistachio.c | 1313 #define GPIO_BANK(_bank, _pin_base, _npins) \ macro 1340 GPIO_BANK(0, PISTACHIO_PIN_MFIO(0), 16), 1341 GPIO_BANK(1, PISTACHIO_PIN_MFIO(16), 16), 1342 GPIO_BANK(2, PISTACHIO_PIN_MFIO(32), 16), 1343 GPIO_BANK(3, PISTACHIO_PIN_MFIO(48), 16), 1344 GPIO_BANK(4, PISTACHIO_PIN_MFIO(64), 16), 1345 GPIO_BANK(5, PISTACHIO_PIN_MFIO(80), 10),
|
D | pinctrl-pic32.c | 2109 #define GPIO_BANK(_bank, _npins) \ macro 2136 GPIO_BANK(0, PINS_PER_BANK), 2137 GPIO_BANK(1, PINS_PER_BANK), 2138 GPIO_BANK(2, PINS_PER_BANK), 2139 GPIO_BANK(3, PINS_PER_BANK), 2140 GPIO_BANK(4, PINS_PER_BANK), 2141 GPIO_BANK(5, PINS_PER_BANK), 2142 GPIO_BANK(6, PINS_PER_BANK), 2143 GPIO_BANK(7, PINS_PER_BANK), 2144 GPIO_BANK(8, PINS_PER_BANK), [all …]
|
D | pinctrl-oxnas.c | 1063 #define GPIO_BANK(_bank) \ macro 1090 GPIO_BANK(0), 1091 GPIO_BANK(1),
|
/drivers/pinctrl/bcm/ |
D | pinctrl-iproc-gpio.c | 58 #define GPIO_BANK(pin) ((pin) / NGPIOS_PER_BANK) macro 60 #define IPROC_GPIO_REG(pin, reg) (GPIO_BANK(pin) * GPIO_BANK_SIZE + (reg))
|