Lines Matching defs:offset
107 static void ucb1x00_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
114 ucb->io_out |= 1 << offset;
116 ucb->io_out &= ~(1 << offset);
124 static int ucb1x00_gpio_get(struct gpio_chip *chip, unsigned offset)
133 return !!(val & (1 << offset));
136 static int ucb1x00_gpio_direction_input(struct gpio_chip *chip, unsigned offset)
142 ucb->io_dir &= ~(1 << offset);
151 static int ucb1x00_gpio_direction_output(struct gpio_chip *chip, unsigned offset
156 unsigned old, mask = 1 << offset;
179 static int ucb1x00_to_irq(struct gpio_chip *chip, unsigned offset)
183 return ucb->irq_base > 0 ? ucb->irq_base + offset : -ENXIO;