Lines Matching refs:get_reg
45 #define get_reg(offset) ((offset) / NR_GPIOS_PER_REG) macro
106 u32 reg = STMFX_REG_GPIO_STATE + get_reg(offset); in stmfx_gpio_get()
122 regmap_write_bits(pctl->stmfx->map, reg + get_reg(offset), in stmfx_gpio_set()
129 u32 reg = STMFX_REG_GPIO_DIR + get_reg(offset); in stmfx_gpio_get_direction()
146 u32 reg = STMFX_REG_GPIO_DIR + get_reg(offset); in stmfx_gpio_direction_input()
156 u32 reg = STMFX_REG_GPIO_DIR + get_reg(offset); in stmfx_gpio_direction_output()
167 u32 reg = STMFX_REG_GPIO_PUPD + get_reg(offset); in stmfx_pinconf_get_pupd()
181 u32 reg = STMFX_REG_GPIO_PUPD + get_reg(offset); in stmfx_pinconf_set_pupd()
190 u32 reg = STMFX_REG_GPIO_TYPE + get_reg(offset); in stmfx_pinconf_get_type()
204 u32 reg = STMFX_REG_GPIO_TYPE + get_reg(offset); in stmfx_pinconf_set_type()
417 u32 reg = get_reg(data->hwirq); in stmfx_pinctrl_irq_mask()
427 u32 reg = get_reg(data->hwirq); in stmfx_pinctrl_irq_unmask()
437 u32 reg = get_reg(data->hwirq); in stmfx_pinctrl_irq_set_type()
483 u32 reg = get_reg(data->hwirq); in stmfx_pinctrl_irq_bus_sync_unlock()
511 u32 reg = get_reg(offset); in stmfx_pinctrl_irq_toggle_trigger()