Lines Matching defs:gc
76 static int ppc4xx_gpio_get(struct gpio_chip *gc, unsigned int gpio)
78 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
85 __ppc4xx_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val)
87 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
97 ppc4xx_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val)
99 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
105 __ppc4xx_gpio_set(gc, gpio, val);
112 static int ppc4xx_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio)
114 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
142 ppc4xx_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val)
144 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
152 __ppc4xx_gpio_set(gc, gpio, val);
184 struct gpio_chip *gc;
195 gc = &mm_gc->gc;
197 gc->ngpio = 32;
198 gc->direction_input = ppc4xx_gpio_dir_in;
199 gc->direction_output = ppc4xx_gpio_dir_out;
200 gc->get = ppc4xx_gpio_get;
201 gc->set = ppc4xx_gpio_set;