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()
150 u32 reg = STMFX_REG_GPIO_DIR + get_reg(offset); in stmfx_gpio_direction_input()
160 u32 reg = STMFX_REG_GPIO_DIR + get_reg(offset); in stmfx_gpio_direction_output()
171 u32 reg = STMFX_REG_GPIO_PUPD + get_reg(offset); in stmfx_pinconf_get_pupd()
185 u32 reg = STMFX_REG_GPIO_PUPD + get_reg(offset); in stmfx_pinconf_set_pupd()
194 u32 reg = STMFX_REG_GPIO_TYPE + get_reg(offset); in stmfx_pinconf_get_type()
208 u32 reg = STMFX_REG_GPIO_TYPE + get_reg(offset); in stmfx_pinconf_set_type()
424 u32 reg = get_reg(data->hwirq); in stmfx_pinctrl_irq_mask()
434 u32 reg = get_reg(data->hwirq); in stmfx_pinctrl_irq_unmask()
444 u32 reg = get_reg(data->hwirq); in stmfx_pinctrl_irq_set_type()
490 u32 reg = get_reg(data->hwirq); in stmfx_pinctrl_irq_bus_sync_unlock()
537 u32 reg = get_reg(offset); in stmfx_pinctrl_irq_toggle_trigger()