Lines Matching defs:offset
15 #define GPIO_REG_ADDR(offset) (MAX77620_REG_GPIO0 + offset)
29 unsigned int value, offset;
41 for_each_set_bit(offset, &pending, MAX77620_GPIO_NR) {
44 virq = irq_find_mapping(gpio->gpio_chip.irq.domain, offset);
110 unsigned int value, offset = data->hwirq;
113 value = gpio->irq_enabled[offset] ? gpio->irq_type[offset] : 0;
115 err = regmap_update_bits(gpio->rmap, GPIO_REG_ADDR(offset),
135 static int max77620_gpio_dir_input(struct gpio_chip *gc, unsigned int offset)
140 ret = regmap_update_bits(mgpio->rmap, GPIO_REG_ADDR(offset),
149 static int max77620_gpio_get(struct gpio_chip *gc, unsigned int offset)
155 ret = regmap_read(mgpio->rmap, GPIO_REG_ADDR(offset), &val);
167 static int max77620_gpio_dir_output(struct gpio_chip *gc, unsigned int offset,
177 ret = regmap_update_bits(mgpio->rmap, GPIO_REG_ADDR(offset),
184 ret = regmap_update_bits(mgpio->rmap, GPIO_REG_ADDR(offset),
194 unsigned int offset,
218 ret = regmap_update_bits(mgpio->rmap, GPIO_REG_ADDR(offset),
226 static void max77620_gpio_set(struct gpio_chip *gc, unsigned int offset,
236 ret = regmap_update_bits(mgpio->rmap, GPIO_REG_ADDR(offset),
242 static int max77620_gpio_set_config(struct gpio_chip *gc, unsigned int offset,
249 return regmap_update_bits(mgpio->rmap, GPIO_REG_ADDR(offset),
253 return regmap_update_bits(mgpio->rmap, GPIO_REG_ADDR(offset),
257 return max77620_gpio_set_debounce(mgpio, offset,