Lines Matching refs:gc

57 static int mpc52xx_wkup_gpio_get(struct gpio_chip *gc, unsigned int gpio)  in mpc52xx_wkup_gpio_get()  argument
59 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_get()
71 __mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_wkup_gpio_set() argument
73 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in __mpc52xx_wkup_gpio_set()
87 mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_set() argument
93 __mpc52xx_wkup_gpio_set(gc, gpio, val); in mpc52xx_wkup_gpio_set()
100 static int mpc52xx_wkup_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_dir_in() argument
102 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_dir_in()
124 mpc52xx_wkup_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_dir_out() argument
126 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_dir_out()
134 __mpc52xx_wkup_gpio_set(gc, gpio, val); in mpc52xx_wkup_gpio_dir_out()
155 struct gpio_chip *gc; in mpc52xx_wkup_gpiochip_probe() local
164 gc = &chip->mmchip.gc; in mpc52xx_wkup_gpiochip_probe()
166 gc->ngpio = 8; in mpc52xx_wkup_gpiochip_probe()
167 gc->direction_input = mpc52xx_wkup_gpio_dir_in; in mpc52xx_wkup_gpiochip_probe()
168 gc->direction_output = mpc52xx_wkup_gpio_dir_out; in mpc52xx_wkup_gpiochip_probe()
169 gc->get = mpc52xx_wkup_gpio_get; in mpc52xx_wkup_gpiochip_probe()
170 gc->set = mpc52xx_wkup_gpio_set; in mpc52xx_wkup_gpiochip_probe()
224 static int mpc52xx_simple_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_get() argument
226 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_simple_gpio_get()
236 __mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_simple_gpio_set() argument
238 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in __mpc52xx_simple_gpio_set()
251 mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_simple_gpio_set() argument
257 __mpc52xx_simple_gpio_set(gc, gpio, val); in mpc52xx_simple_gpio_set()
264 static int mpc52xx_simple_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_dir_in() argument
266 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_simple_gpio_dir_in()
288 mpc52xx_simple_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_simple_gpio_dir_out() argument
290 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_simple_gpio_dir_out()
299 __mpc52xx_simple_gpio_set(gc, gpio, val); in mpc52xx_simple_gpio_dir_out()
319 struct gpio_chip *gc; in mpc52xx_simple_gpiochip_probe() local
329 gc = &chip->mmchip.gc; in mpc52xx_simple_gpiochip_probe()
331 gc->ngpio = 32; in mpc52xx_simple_gpiochip_probe()
332 gc->direction_input = mpc52xx_simple_gpio_dir_in; in mpc52xx_simple_gpiochip_probe()
333 gc->direction_output = mpc52xx_simple_gpio_dir_out; in mpc52xx_simple_gpiochip_probe()
334 gc->get = mpc52xx_simple_gpio_get; in mpc52xx_simple_gpiochip_probe()
335 gc->set = mpc52xx_simple_gpio_set; in mpc52xx_simple_gpiochip_probe()