Lines Matching refs:NMK_GPIO_PER_CHIP
205 #define NMK_GPIO_PER_CHIP (1 << GPIO_BLOCK_SHIFT) macro
206 #define NMK_MAX_BANKS DIV_ROUND_UP(ARCH_NR_GPIOS, NMK_GPIO_PER_CHIP)
622 nmk_chip = nmk_gpio_chips[gpio / NMK_GPIO_PER_CHIP]; in nmk_gpio_get_mode()
626 bit = 1 << (gpio % NMK_GPIO_PER_CHIP); in nmk_gpio_get_mode()
643 return 1 << (gpio % NMK_GPIO_PER_CHIP); in nmk_gpio_get_bitmask()
709 __nmk_gpio_set_slpm(nmk_chip, gpio % NMK_GPIO_PER_CHIP, in __nmk_gpio_set_wake()
1188 chip->base = id * NMK_GPIO_PER_CHIP; in nmk_gpio_populate_chip()
1189 chip->ngpio = NMK_GPIO_PER_CHIP; in nmk_gpio_populate_chip()
1717 slpm[g->pins[i] / NMK_GPIO_PER_CHIP] &= ~BIT(g->pins[i]); in nmk_pmx_set()
1735 bit = g->pins[i] % NMK_GPIO_PER_CHIP; in nmk_pmx_set()
1797 bit = offset % NMK_GPIO_PER_CHIP; in nmk_gpio_request_enable()
1910 bit = pin % NMK_GPIO_PER_CHIP; in nmk_pin_config_set()