Lines Matching refs:get_reg
47 #define get_reg(offset) ((offset) / NR_GPIOS_PER_REG) macro
107 u32 reg = STMFX_REG_GPIO_STATE + get_reg(offset); in stmfx_gpio_get()
123 regmap_write_bits(pctl->stmfx->map, reg + get_reg(offset), in stmfx_gpio_set()
130 u32 reg = STMFX_REG_GPIO_DIR + get_reg(offset); in stmfx_gpio_get_direction()
151 u32 reg = STMFX_REG_GPIO_DIR + get_reg(offset); in stmfx_gpio_direction_input()
161 u32 reg = STMFX_REG_GPIO_DIR + get_reg(offset); in stmfx_gpio_direction_output()
172 u32 reg = STMFX_REG_GPIO_PUPD + get_reg(offset); in stmfx_pinconf_get_pupd()
186 u32 reg = STMFX_REG_GPIO_PUPD + get_reg(offset); in stmfx_pinconf_set_pupd()
195 u32 reg = STMFX_REG_GPIO_TYPE + get_reg(offset); in stmfx_pinconf_get_type()
209 u32 reg = STMFX_REG_GPIO_TYPE + get_reg(offset); in stmfx_pinconf_set_type()
425 u32 reg = get_reg(data->hwirq); in stmfx_pinctrl_irq_mask()
436 u32 reg = get_reg(data->hwirq); in stmfx_pinctrl_irq_unmask()
447 u32 reg = get_reg(data->hwirq); in stmfx_pinctrl_irq_set_type()
493 u32 reg = get_reg(data->hwirq); in stmfx_pinctrl_irq_bus_sync_unlock()
540 u32 reg = get_reg(offset); in stmfx_pinctrl_irq_toggle_trigger()