• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/powerpc/platforms/52xx/

Lines Matching defs:gc

56 static int mpc52xx_wkup_gpio_get(struct gpio_chip *gc, unsigned int gpio)
58 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
70 __mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val)
72 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
86 mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val)
92 __mpc52xx_wkup_gpio_set(gc, gpio, val);
99 static int mpc52xx_wkup_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio)
101 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
123 mpc52xx_wkup_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val)
125 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
133 __mpc52xx_wkup_gpio_set(gc, gpio, val);
155 struct gpio_chip *gc;
162 gc = &chip->mmchip.gc;
164 gc->ngpio = 8;
165 gc->direction_input = mpc52xx_wkup_gpio_dir_in;
166 gc->direction_output = mpc52xx_wkup_gpio_dir_out;
167 gc->get = mpc52xx_wkup_gpio_get;
168 gc->set = mpc52xx_wkup_gpio_set;
221 static int mpc52xx_simple_gpio_get(struct gpio_chip *gc, unsigned int gpio)
223 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
233 __mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val)
235 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
248 mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val)
254 __mpc52xx_simple_gpio_set(gc, gpio, val);
261 static int mpc52xx_simple_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio)
263 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
285 mpc52xx_simple_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val)
287 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
296 __mpc52xx_simple_gpio_set(gc, gpio, val);
317 struct gpio_chip *gc;
325 gc = &chip->mmchip.gc;
327 gc->ngpio = 32;
328 gc->direction_input = mpc52xx_simple_gpio_dir_in;
329 gc->direction_output = mpc52xx_simple_gpio_dir_out;
330 gc->get = mpc52xx_simple_gpio_get;
331 gc->set = mpc52xx_simple_gpio_set;