Lines Matching defs:offset
47 #define get_reg(offset) ((offset) / NR_GPIOS_PER_REG) argument
48 #define get_shift(offset) ((offset) % NR_GPIOS_PER_REG) argument
49 #define get_mask(offset) (BIT(get_shift(offset))) argument
104 static int stmfx_gpio_get(struct gpio_chip *gc, unsigned int offset) in stmfx_gpio_get()
117 static void stmfx_gpio_set(struct gpio_chip *gc, unsigned int offset, int value) in stmfx_gpio_set()
127 static int stmfx_gpio_get_direction(struct gpio_chip *gc, unsigned int offset) in stmfx_gpio_get_direction()
148 static int stmfx_gpio_direction_input(struct gpio_chip *gc, unsigned int offset) in stmfx_gpio_direction_input()
158 unsigned int offset, int value) in stmfx_gpio_direction_output()
170 unsigned int offset) in stmfx_pinconf_get_pupd()
184 unsigned int offset, u32 pupd) in stmfx_pinconf_set_pupd()
193 unsigned int offset) in stmfx_pinconf_get_type()
207 unsigned int offset, u32 type) in stmfx_pinconf_set_type()
348 struct seq_file *s, unsigned int offset) in stmfx_pinconf_dbg_show()
538 unsigned int offset) in stmfx_pinctrl_irq_toggle_trigger()