Lines Matching defs:offset
16 static int sa1100_gpio_get(struct gpio_chip *chip, unsigned offset)
18 return GPLR & GPIO_GPIO(offset);
21 static void sa1100_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
24 GPSR = GPIO_GPIO(offset);
26 GPCR = GPIO_GPIO(offset);
29 static int sa1100_direction_input(struct gpio_chip *chip, unsigned offset)
34 GPDR &= ~GPIO_GPIO(offset);
39 static int sa1100_direction_output(struct gpio_chip *chip, unsigned offset, int value)
44 sa1100_gpio_set(chip, offset, value);
45 GPDR |= GPIO_GPIO(offset);
50 static int sa1100_to_irq(struct gpio_chip *chip, unsigned offset)
52 return offset < 11 ? (IRQ_GPIO0 + offset) : (IRQ_GPIO11 - 11 + offset);