Lines Matching refs:offset
36 static int wm8350_gpio_direction_in(struct gpio_chip *chip, unsigned offset)
42 1 << offset);
45 static int wm8350_gpio_get(struct gpio_chip *chip, unsigned offset)
55 if (ret & (1 << offset))
61 static void wm8350_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
67 wm8350_set_bits(wm8350, WM8350_GPIO_LEVEL, 1 << offset);
69 wm8350_clear_bits(wm8350, WM8350_GPIO_LEVEL, 1 << offset);
73 unsigned offset, int value)
80 1 << offset);
85 wm8350_gpio_set(chip, offset, value);
90 static int wm8350_gpio_to_irq(struct gpio_chip *chip, unsigned offset)
98 return wm8350->irq_base + WM8350_IRQ_GPIO(offset);