Lines Matching defs:offset
35 unsigned int offset)
42 temp &= ~BIT(offset);
44 temp |= BIT(offset);
50 unsigned int offset)
53 unsigned int addr = (offset + exar_gpio->first_pin) / 8 ?
55 unsigned int bit = (offset + exar_gpio->first_pin) % 8;
73 static int exar_get_direction(struct gpio_chip *chip, unsigned int offset)
76 unsigned int addr = (offset + exar_gpio->first_pin) / 8 ?
78 unsigned int bit = (offset + exar_gpio->first_pin) % 8;
86 static int exar_get_value(struct gpio_chip *chip, unsigned int offset)
89 unsigned int addr = (offset + exar_gpio->first_pin) / 8 ?
91 unsigned int bit = (offset + exar_gpio->first_pin) % 8;
96 static void exar_set_value(struct gpio_chip *chip, unsigned int offset,
100 unsigned int addr = (offset + exar_gpio->first_pin) / 8 ?
102 unsigned int bit = (offset + exar_gpio->first_pin) % 8;
107 static int exar_direction_output(struct gpio_chip *chip, unsigned int offset,
110 exar_set_value(chip, offset, value);
111 return exar_set_direction(chip, 0, offset);
114 static int exar_direction_input(struct gpio_chip *chip, unsigned int offset)
116 return exar_set_direction(chip, 1, offset);