Lines Matching defs:offset
43 static int max3107_gpio_direction_in(struct gpio_chip *chip, unsigned offset)
48 if (offset >= MAX3107_GPIO_COUNT) {
63 buf[0] &= ~(0x0001 << offset);
76 static int max3107_gpio_direction_out(struct gpio_chip *chip, unsigned offset,
82 if (offset >= MAX3107_GPIO_COUNT) {
99 buf[0] |= (0x0001 << offset);
102 buf[1] |= (0x0001 << offset);
104 buf[1] &= ~(0x0001 << offset);
119 static int max3107_gpio_get(struct gpio_chip *chip, unsigned offset)
124 if (offset >= MAX3107_GPIO_COUNT) {
139 return buf[0] & (0x0001 << offset);
143 static void max3107_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
148 if (offset >= MAX3107_GPIO_COUNT) {
165 if (!(buf[1] & (0x0001 << offset))) {
174 buf[0] |= (0x0001 << offset);
176 buf[0] &= ~(0x0001 << offset);