PINS_PER_BANK
#define TI_GPIO_MASK(p) (1U << ((p) % PINS_PER_BANK))
*maxpin = PINS_PER_BANK - 1;
for (pin = 0; pin < PINS_PER_BANK; pin++) {