Lines Matching refs:gc

44 static int mpc52xx_wkup_gpio_get(struct gpio_chip *gc, unsigned int gpio)
46 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
58 __mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val)
60 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
61 struct mpc52xx_gpiochip *chip = gpiochip_get_data(gc);
73 mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val)
79 __mpc52xx_wkup_gpio_set(gc, gpio, val);
86 static int mpc52xx_wkup_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio)
88 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
89 struct mpc52xx_gpiochip *chip = gpiochip_get_data(gc);
109 mpc52xx_wkup_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val)
111 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
113 struct mpc52xx_gpiochip *chip = gpiochip_get_data(gc);
118 __mpc52xx_wkup_gpio_set(gc, gpio, val);
139 struct gpio_chip *gc;
148 gc = &chip->mmchip.gc;
150 gc->ngpio = 8;
151 gc->direction_input = mpc52xx_wkup_gpio_dir_in;
152 gc->direction_output = mpc52xx_wkup_gpio_dir_out;
153 gc->get = mpc52xx_wkup_gpio_get;
154 gc->set = mpc52xx_wkup_gpio_set;
208 static int mpc52xx_simple_gpio_get(struct gpio_chip *gc, unsigned int gpio)
210 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
220 __mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val)
222 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
223 struct mpc52xx_gpiochip *chip = gpiochip_get_data(gc);
234 mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val)
240 __mpc52xx_simple_gpio_set(gc, gpio, val);
247 static int mpc52xx_simple_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio)
249 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
250 struct mpc52xx_gpiochip *chip = gpiochip_get_data(gc);
270 mpc52xx_simple_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val)
272 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
273 struct mpc52xx_gpiochip *chip = gpiochip_get_data(gc);
280 __mpc52xx_simple_gpio_set(gc, gpio, val);
300 struct gpio_chip *gc;
310 gc = &chip->mmchip.gc;
312 gc->ngpio = 32;
313 gc->direction_input = mpc52xx_simple_gpio_dir_in;
314 gc->direction_output = mpc52xx_simple_gpio_dir_out;
315 gc->get = mpc52xx_simple_gpio_get;
316 gc->set = mpc52xx_simple_gpio_set;