Lines Matching refs:REG_GPIOx_MODE
47 #define REG_GPIOx_MODE GENMASK(3, 1) macro
200 if (FIELD_GET(REG_GPIOx_MODE, reg) == REG_GPIOx_OUT) in apple_gpio_get_direction()
214 if (FIELD_GET(REG_GPIOx_MODE, reg) != REG_GPIOx_OUT) in apple_gpio_get()
232 REG_GPIOx_PERIPH | REG_GPIOx_MODE | REG_GPIOx_DATA | in apple_gpio_direction_input()
234 FIELD_PREP(REG_GPIOx_MODE, REG_GPIOx_IN_IRQ_OFF) | in apple_gpio_direction_input()
245 REG_GPIOx_PERIPH | REG_GPIOx_MODE | REG_GPIOx_DATA, in apple_gpio_direction_output()
246 FIELD_PREP(REG_GPIOx_MODE, REG_GPIOx_OUT) | in apple_gpio_direction_output()
284 apple_gpio_set_reg(pctl, data->hwirq, REG_GPIOx_MODE, in apple_gpio_irq_mask()
285 FIELD_PREP(REG_GPIOx_MODE, REG_GPIOx_IN_IRQ_OFF)); in apple_gpio_irq_mask()
296 apple_gpio_set_reg(pctl, data->hwirq, REG_GPIOx_MODE, in apple_gpio_irq_unmask()
297 FIELD_PREP(REG_GPIOx_MODE, irqtype)); in apple_gpio_irq_unmask()
322 apple_gpio_set_reg(pctl, data->hwirq, REG_GPIOx_MODE, in apple_gpio_irq_set_type()
323 FIELD_PREP(REG_GPIOx_MODE, irqtype)); in apple_gpio_irq_set_type()