Searched refs:GPIO_BANK (Results 1 – 5 of 5) sorted by relevance
| /linux/drivers/gpio/ |
| 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 | 28 #define GPIO_BANK(x) ((x) >> 5) macro 32 #define GPIO_REG(tgi, x) (GPIO_BANK(x) * tgi->soc->bank_stride + \ 232 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() 545 bank = &tgi->bank_info[GPIO_BANK(d->hwirq)]; in tegra_gpio_irq_set_wake()
|
| H A D | gpio-aspeed.c | 320 #define GPIO_BANK(x) ((x) >> 5) macro 326 unsigned int bank = GPIO_BANK(offset); in to_bank() 343 if (props->bank == GPIO_BANK(offset)) in find_bank_props() 1045 temp = gpio->dcache[GPIO_BANK(offset)]; in aspeed_g4_reg_bit_set() 1055 gpio->dcache[GPIO_BANK(offset)] = temp; in aspeed_g4_reg_bit_set() 1121 gpio->dcache[GPIO_BANK(offset)] = aspeed_g4_reg_bank_get(gpio, offset, reg_rdata); in aspeed_g4_copro_request()
|
| /linux/drivers/pinctrl/ |
| H A D | pinctrl-pistachio.c | 1321 #define GPIO_BANK(_bank, _pin_base, _npins) \ macro 1341 GPIO_BANK(0, PISTACHIO_PIN_MFIO(0), 16), 1342 GPIO_BANK(1, PISTACHIO_PIN_MFIO(16), 16), 1343 GPIO_BANK(2, PISTACHIO_PIN_MFIO(32), 16), 1344 GPIO_BANK(3, PISTACHIO_PIN_MFIO(48), 16), 1345 GPIO_BANK(4, PISTACHIO_PIN_MFIO(64), 16), 1346 GPIO_BANK(5, PISTACHIO_PIN_MFIO(80), 10),
|
| /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))
|