Lines Matching refs:offset
18 static int sa1100_gpio_get(struct gpio_chip *chip, unsigned offset)
20 return GPLR & GPIO_GPIO(offset);
23 static void sa1100_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
26 GPSR = GPIO_GPIO(offset);
28 GPCR = GPIO_GPIO(offset);
31 static int sa1100_direction_input(struct gpio_chip *chip, unsigned offset)
36 GPDR &= ~GPIO_GPIO(offset);
41 static int sa1100_direction_output(struct gpio_chip *chip, unsigned offset, int value)
46 sa1100_gpio_set(chip, offset, value);
47 GPDR |= GPIO_GPIO(offset);