• Home
  • Raw
  • Download

Lines Matching refs:offset

40 static int gpio2_get(struct gpio_chip *chip, unsigned offset)  in gpio2_get()  argument
42 return !!alchemy_gpio2_get_value(offset + ALCHEMY_GPIO2_BASE); in gpio2_get()
45 static void gpio2_set(struct gpio_chip *chip, unsigned offset, int value) in gpio2_set() argument
47 alchemy_gpio2_set_value(offset + ALCHEMY_GPIO2_BASE, value); in gpio2_set()
50 static int gpio2_direction_input(struct gpio_chip *chip, unsigned offset) in gpio2_direction_input() argument
52 return alchemy_gpio2_direction_input(offset + ALCHEMY_GPIO2_BASE); in gpio2_direction_input()
55 static int gpio2_direction_output(struct gpio_chip *chip, unsigned offset, in gpio2_direction_output() argument
58 return alchemy_gpio2_direction_output(offset + ALCHEMY_GPIO2_BASE, in gpio2_direction_output()
62 static int gpio2_to_irq(struct gpio_chip *chip, unsigned offset) in gpio2_to_irq() argument
64 return alchemy_gpio2_to_irq(offset + ALCHEMY_GPIO2_BASE); in gpio2_to_irq()
68 static int gpio1_get(struct gpio_chip *chip, unsigned offset) in gpio1_get() argument
70 return !!alchemy_gpio1_get_value(offset + ALCHEMY_GPIO1_BASE); in gpio1_get()
74 unsigned offset, int value) in gpio1_set() argument
76 alchemy_gpio1_set_value(offset + ALCHEMY_GPIO1_BASE, value); in gpio1_set()
79 static int gpio1_direction_input(struct gpio_chip *chip, unsigned offset) in gpio1_direction_input() argument
81 return alchemy_gpio1_direction_input(offset + ALCHEMY_GPIO1_BASE); in gpio1_direction_input()
85 unsigned offset, int value) in gpio1_direction_output() argument
87 return alchemy_gpio1_direction_output(offset + ALCHEMY_GPIO1_BASE, in gpio1_direction_output()
91 static int gpio1_to_irq(struct gpio_chip *chip, unsigned offset) in gpio1_to_irq() argument
93 return alchemy_gpio1_to_irq(offset + ALCHEMY_GPIO1_BASE); in gpio1_to_irq()