Home
last modified time | relevance | path

Searched refs:MAX_GPIO_PER_BANK (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-6.6/drivers/gpio/
H A Dgpio-brcmstb.c58 #define MAX_GPIO_PER_BANK 32 macro
60 /* assumes MAX_GPIO_PER_BANK is a multiple of 2 */
61 #define GPIO_BIT(gpio) ((gpio) & (MAX_GPIO_PER_BANK - 1))
656 gpio_base += MAX_GPIO_PER_BANK; in brcmstb_gpio_probe()
668 if (bank_width <= 0 || bank_width > MAX_GPIO_PER_BANK) { in brcmstb_gpio_probe()
700 gc->ngpio = MAX_GPIO_PER_BANK; in brcmstb_gpio_probe()
701 gc->offset = bank->id * MAX_GPIO_PER_BANK; in brcmstb_gpio_probe()
/kernel/linux/linux-5.10/drivers/gpio/
H A Dgpio-brcmstb.c68 #define MAX_GPIO_PER_BANK 32 macro
70 /* assumes MAX_GPIO_PER_BANK is a multiple of 2 */
71 #define GPIO_BIT(gpio) ((gpio) & (MAX_GPIO_PER_BANK - 1))
614 base = bank->id * MAX_GPIO_PER_BANK; in brcmstb_gpio_set_names()
621 names = devm_kcalloc(dev, MAX_GPIO_PER_BANK, sizeof(*names), in brcmstb_gpio_set_names()
716 gpio_base += MAX_GPIO_PER_BANK; in brcmstb_gpio_probe()
728 if (bank_width <= 0 || bank_width > MAX_GPIO_PER_BANK) { in brcmstb_gpio_probe()
761 gc->ngpio = MAX_GPIO_PER_BANK; in brcmstb_gpio_probe()

Completed in 3 milliseconds