Home
last modified time | relevance | path

Searched refs:UNIPHIER_GPIO_LINES_PER_BANK (Results 1 – 2 of 2) sorted by relevance

/linux-6.6.21/include/dt-bindings/gpio/
Duniphier-gpio.h9 #define UNIPHIER_GPIO_LINES_PER_BANK 8 macro
11 #define UNIPHIER_GPIO_IRQ_OFFSET ((UNIPHIER_GPIO_LINES_PER_BANK) * 15)
14 ((UNIPHIER_GPIO_LINES_PER_BANK) * (bank) + (line))
/linux-6.6.21/drivers/gpio/
Dgpio-uniphier.c54 *bank = offset / UNIPHIER_GPIO_LINES_PER_BANK; in uniphier_gpio_get_bank_and_mask()
55 *mask = BIT(offset % UNIPHIER_GPIO_LINES_PER_BANK); in uniphier_gpio_get_bank_and_mask()
152 bank = i / UNIPHIER_GPIO_LINES_PER_BANK; in uniphier_gpio_set_multiple()
335 return DIV_ROUND_UP(ngpio, UNIPHIER_GPIO_LINES_PER_BANK); in uniphier_gpio_get_nbanks()