Lines Matching defs:offset
29 static int wm831x_gpio_direction_in(struct gpio_chip *chip, unsigned offset)
38 return wm831x_set_bits(wm831x, WM831X_GPIO1_CONTROL + offset,
43 static int wm831x_gpio_get(struct gpio_chip *chip, unsigned offset)
53 if (ret & 1 << offset)
59 static void wm831x_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
64 wm831x_set_bits(wm831x, WM831X_GPIO_LEVEL, 1 << offset,
65 value << offset);
69 unsigned offset, int value)
79 ret = wm831x_set_bits(wm831x, WM831X_GPIO1_CONTROL + offset,
86 wm831x_gpio_set(chip, offset, value);
91 static int wm831x_gpio_to_irq(struct gpio_chip *chip, unsigned offset)
97 WM831X_IRQ_GPIO_1 + offset);
100 static int wm831x_gpio_set_debounce(struct wm831x *wm831x, unsigned offset,
103 int reg = WM831X_GPIO1_CONTROL + offset;
129 static int wm831x_set_config(struct gpio_chip *chip, unsigned int offset,
134 int reg = WM831X_GPIO1_CONTROL + offset;
144 return wm831x_gpio_set_debounce(wm831x, offset,