Lines Matching defs:gc
60 static int mpc8572_gpio_get(struct gpio_chip *gc, unsigned int gpio)
63 struct of_mm_gpio_chip *mm = to_of_mm_gpio_chip(gc);
71 static int mpc8xxx_gpio_get(struct gpio_chip *gc, unsigned int gpio)
73 struct of_mm_gpio_chip *mm = to_of_mm_gpio_chip(gc);
78 static void mpc8xxx_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val)
80 struct of_mm_gpio_chip *mm = to_of_mm_gpio_chip(gc);
96 static int mpc8xxx_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio)
98 struct of_mm_gpio_chip *mm = to_of_mm_gpio_chip(gc);
111 static int mpc8xxx_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val)
113 struct of_mm_gpio_chip *mm = to_of_mm_gpio_chip(gc);
117 mpc8xxx_gpio_set(gc, gpio, val);
128 static int mpc8xxx_gpio_to_irq(struct gpio_chip *gc, unsigned offset)
130 struct of_mm_gpio_chip *mm = to_of_mm_gpio_chip(gc);
255 struct gpio_chip *gc;
268 gc = &mm_gc->gc;
271 gc->ngpio = MPC8XXX_GPIO_PINS;
272 gc->direction_input = mpc8xxx_gpio_dir_in;
273 gc->direction_output = mpc8xxx_gpio_dir_out;
275 gc->get = mpc8572_gpio_get;
277 gc->get = mpc8xxx_gpio_get;
278 gc->set = mpc8xxx_gpio_set;
279 gc->to_irq = mpc8xxx_gpio_to_irq;