Lines Matching defs:offset
140 static int f7188x_gpio_get_direction(struct gpio_chip *chip, unsigned offset);
141 static int f7188x_gpio_direction_in(struct gpio_chip *chip, unsigned offset);
142 static int f7188x_gpio_get(struct gpio_chip *chip, unsigned offset);
144 unsigned offset, int value);
145 static void f7188x_gpio_set(struct gpio_chip *chip, unsigned offset, int value);
146 static int f7188x_gpio_set_config(struct gpio_chip *chip, unsigned offset,
257 static int f7188x_gpio_get_direction(struct gpio_chip *chip, unsigned offset)
273 if (dir & 1 << offset)
279 static int f7188x_gpio_direction_in(struct gpio_chip *chip, unsigned offset)
292 dir &= ~BIT(offset);
300 static int f7188x_gpio_get(struct gpio_chip *chip, unsigned offset)
313 dir = !!(dir & BIT(offset));
321 return !!(data & BIT(offset));
325 unsigned offset, int value)
339 data_out |= BIT(offset);
341 data_out &= ~BIT(offset);
345 dir |= BIT(offset);
353 static void f7188x_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
367 data_out |= BIT(offset);
369 data_out &= ~BIT(offset);
375 static int f7188x_gpio_set_config(struct gpio_chip *chip, unsigned offset,
395 data &= ~BIT(offset);
397 data |= BIT(offset);