Lines Matching refs:offset
45 static int tc35892_gpio_get(struct gpio_chip *chip, unsigned offset)
49 u8 reg = TC35892_GPIODATA0 + (offset / 8) * 2;
50 u8 mask = 1 << (offset % 8);
60 static void tc35892_gpio_set(struct gpio_chip *chip, unsigned offset, int val)
64 u8 reg = TC35892_GPIODATA0 + (offset / 8) * 2;
65 unsigned pos = offset % 8;
72 unsigned offset, int val)
76 u8 reg = TC35892_GPIODIR0 + offset / 8;
77 unsigned pos = offset % 8;
79 tc35892_gpio_set(chip, offset, val);
85 unsigned offset)
89 u8 reg = TC35892_GPIODIR0 + offset / 8;
90 unsigned pos = offset % 8;
95 static int tc35892_gpio_to_irq(struct gpio_chip *chip, unsigned offset)
99 return tc35892_gpio->irq_base + offset;
116 int offset = irq - tc35892_gpio->irq_base;
117 int regoffset = offset / 8;
118 int mask = 1 << (offset % 8);
178 int offset = irq - tc35892_gpio->irq_base;
179 int regoffset = offset / 8;
180 int mask = 1 << (offset % 8);
188 int offset = irq - tc35892_gpio->irq_base;
189 int regoffset = offset / 8;
190 int mask = 1 << (offset % 8);