Lines Matching +full:off +full:- +full:chip

2  *  Copyright (C) 2007-2009, OpenWrt.org, Florian Fainelli <florian@openwrt.org>
37 #include <asm/mach-au1x00/gpio-au1000.h>
38 #include <asm/mach-au1x00/gpio-au1300.h>
40 static int gpio2_get(struct gpio_chip *chip, unsigned offset) in gpio2_get() argument
45 static void gpio2_set(struct gpio_chip *chip, unsigned offset, int value) in gpio2_set() argument
50 static int gpio2_direction_input(struct gpio_chip *chip, unsigned offset) in gpio2_direction_input() argument
55 static int gpio2_direction_output(struct gpio_chip *chip, unsigned offset, in gpio2_direction_output() argument
62 static int gpio2_to_irq(struct gpio_chip *chip, unsigned offset) in gpio2_to_irq() argument
68 static int gpio1_get(struct gpio_chip *chip, unsigned offset) in gpio1_get() argument
73 static void gpio1_set(struct gpio_chip *chip, in gpio1_set() argument
79 static int gpio1_direction_input(struct gpio_chip *chip, unsigned offset) in gpio1_direction_input() argument
84 static int gpio1_direction_output(struct gpio_chip *chip, in gpio1_direction_output() argument
91 static int gpio1_to_irq(struct gpio_chip *chip, unsigned offset) in gpio1_to_irq() argument
98 .label = "alchemy-gpio1",
108 .label = "alchemy-gpio2",
119 static int alchemy_gpic_get(struct gpio_chip *chip, unsigned int off) in alchemy_gpic_get() argument
121 return !!au1300_gpio_get_value(off + AU1300_GPIO_BASE); in alchemy_gpic_get()
124 static void alchemy_gpic_set(struct gpio_chip *chip, unsigned int off, int v) in alchemy_gpic_set() argument
126 au1300_gpio_set_value(off + AU1300_GPIO_BASE, v); in alchemy_gpic_set()
129 static int alchemy_gpic_dir_input(struct gpio_chip *chip, unsigned int off) in alchemy_gpic_dir_input() argument
131 return au1300_gpio_direction_input(off + AU1300_GPIO_BASE); in alchemy_gpic_dir_input()
134 static int alchemy_gpic_dir_output(struct gpio_chip *chip, unsigned int off, in alchemy_gpic_dir_output() argument
137 return au1300_gpio_direction_output(off + AU1300_GPIO_BASE, v); in alchemy_gpic_dir_output()
140 static int alchemy_gpic_gpio_to_irq(struct gpio_chip *chip, unsigned int off) in alchemy_gpic_gpio_to_irq() argument
142 return au1300_gpio_to_irq(off + AU1300_GPIO_BASE); in alchemy_gpic_gpio_to_irq()
146 .label = "alchemy-gpic",