Lines Matching defs:offset
33 static int gpio_reg_get_direction(struct gpio_chip *gc, unsigned offset)
37 return r->direction & BIT(offset) ? GPIO_LINE_DIRECTION_IN :
41 static int gpio_reg_direction_output(struct gpio_chip *gc, unsigned offset,
46 if (r->direction & BIT(offset))
49 gc->set(gc, offset, value);
53 static int gpio_reg_direction_input(struct gpio_chip *gc, unsigned offset)
57 return r->direction & BIT(offset) ? 0 : -ENOTSUPP;
60 static void gpio_reg_set(struct gpio_chip *gc, unsigned offset, int value)
64 u32 val, mask = BIT(offset);
77 static int gpio_reg_get(struct gpio_chip *gc, unsigned offset)
80 u32 val, mask = BIT(offset);
107 static int gpio_reg_to_irq(struct gpio_chip *gc, unsigned offset)
110 int irq = r->irqs[offset];