apple_gpio_get_reg
unsigned int reg = apple_gpio_get_reg(pctl, offset);
unsigned int irqgrp = FIELD_GET(REG_GPIOx_GRP, apple_gpio_get_reg(pctl, data->hwirq));