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

2  *  Copyright (C) 2007-2009, OpenWrt.org, Florian Fainelli <florian@openwrt.org>
35 #include <asm/mach-au1x00/gpio-au1000.h>
36 #include <asm/mach-au1x00/gpio-au1300.h>
38 static int gpio2_get(struct gpio_chip *chip, unsigned offset) in gpio2_get() argument
43 static void gpio2_set(struct gpio_chip *chip, unsigned offset, int value) in gpio2_set() argument
48 static int gpio2_direction_input(struct gpio_chip *chip, unsigned offset) in gpio2_direction_input() argument
53 static int gpio2_direction_output(struct gpio_chip *chip, unsigned offset, in gpio2_direction_output() argument
60 static int gpio2_to_irq(struct gpio_chip *chip, unsigned offset) in gpio2_to_irq() argument
66 static int gpio1_get(struct gpio_chip *chip, unsigned offset) in gpio1_get() argument
71 static void gpio1_set(struct gpio_chip *chip, in gpio1_set() argument
77 static int gpio1_direction_input(struct gpio_chip *chip, unsigned offset) in gpio1_direction_input() argument
82 static int gpio1_direction_output(struct gpio_chip *chip, in gpio1_direction_output() argument
89 static int gpio1_to_irq(struct gpio_chip *chip, unsigned offset) in gpio1_to_irq() argument
96 .label = "alchemy-gpio1",
106 .label = "alchemy-gpio2",
117 static int alchemy_gpic_get(struct gpio_chip *chip, unsigned int off) in alchemy_gpic_get() argument
119 return !!au1300_gpio_get_value(off + AU1300_GPIO_BASE); in alchemy_gpic_get()
122 static void alchemy_gpic_set(struct gpio_chip *chip, unsigned int off, int v) in alchemy_gpic_set() argument
124 au1300_gpio_set_value(off + AU1300_GPIO_BASE, v); in alchemy_gpic_set()
127 static int alchemy_gpic_dir_input(struct gpio_chip *chip, unsigned int off) in alchemy_gpic_dir_input() argument
129 return au1300_gpio_direction_input(off + AU1300_GPIO_BASE); in alchemy_gpic_dir_input()
132 static int alchemy_gpic_dir_output(struct gpio_chip *chip, unsigned int off, in alchemy_gpic_dir_output() argument
135 return au1300_gpio_direction_output(off + AU1300_GPIO_BASE, v); in alchemy_gpic_dir_output()
138 static int alchemy_gpic_gpio_to_irq(struct gpio_chip *chip, unsigned int off) in alchemy_gpic_gpio_to_irq() argument
140 return au1300_gpio_to_irq(off + AU1300_GPIO_BASE); in alchemy_gpic_gpio_to_irq()
144 .label = "alchemy-gpic",