Lines Matching defs:offset
57 static int ttl_get_value(struct gpio_chip *gpio, unsigned offset)
63 if (offset < 8) {
65 } else if (offset < 16) {
67 offset -= 8;
70 offset -= 16;
74 ret = *shadow & BIT(offset);
79 static void ttl_set_value(struct gpio_chip *gpio, unsigned offset, int value)
85 if (offset < 8) {
88 } else if (offset < 16) {
91 offset -= 8;
95 offset -= 16;
100 *shadow |= BIT(offset);
102 *shadow &= ~BIT(offset);