Home
last modified time | relevance | path

Searched refs:REG_GPIOx_MODE (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/pinctrl/
H A Dpinctrl-apple-gpio.c47 #define REG_GPIOx_MODE GENMASK(3, 1) macro
208 if (FIELD_GET(REG_GPIOx_MODE, reg) == REG_GPIOx_OUT) in apple_gpio_get_direction()
222 if (FIELD_GET(REG_GPIOx_MODE, reg) != REG_GPIOx_OUT) in apple_gpio_get()
242 REG_GPIOx_PERIPH | REG_GPIOx_MODE | REG_GPIOx_DATA | in apple_gpio_direction_input()
244 FIELD_PREP(REG_GPIOx_MODE, REG_GPIOx_IN_IRQ_OFF) | in apple_gpio_direction_input()
255 REG_GPIOx_PERIPH | REG_GPIOx_MODE | REG_GPIOx_DATA, in apple_gpio_direction_output()
256 FIELD_PREP(REG_GPIOx_MODE, REG_GPIOx_OUT) | in apple_gpio_direction_output()
294 apple_gpio_set_reg(pctl, data->hwirq, REG_GPIOx_MODE, in apple_gpio_irq_mask()
295 FIELD_PREP(REG_GPIOx_MODE, REG_GPIOx_IN_IRQ_OFF)); in apple_gpio_irq_mask()
306 apple_gpio_set_reg(pctl, data->hwirq, REG_GPIOx_MODE, in apple_gpio_irq_unmask()
[all …]