Lines Matching defs:offset
25 static int gpio_reg_get_direction(struct gpio_chip *gc, unsigned offset)
29 return r->direction & BIT(offset) ? GPIO_LINE_DIRECTION_IN :
33 static int gpio_reg_direction_output(struct gpio_chip *gc, unsigned offset,
38 if (r->direction & BIT(offset))
41 gc->set(gc, offset, value);
45 static int gpio_reg_direction_input(struct gpio_chip *gc, unsigned offset)
49 return r->direction & BIT(offset) ? 0 : -ENOTSUPP;
52 static void gpio_reg_set(struct gpio_chip *gc, unsigned offset, int value)
56 u32 val, mask = BIT(offset);
69 static int gpio_reg_get(struct gpio_chip *gc, unsigned offset)
72 u32 val, mask = BIT(offset);
99 static int gpio_reg_to_irq(struct gpio_chip *gc, unsigned offset)
102 int irq = r->irqs[offset];