Lines Matching refs:gc
44 static int mpc52xx_wkup_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_get() argument
46 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_get()
58 __mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_wkup_gpio_set() argument
60 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in __mpc52xx_wkup_gpio_set()
61 struct mpc52xx_gpiochip *chip = gpiochip_get_data(gc); in __mpc52xx_wkup_gpio_set()
73 mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_set() argument
79 __mpc52xx_wkup_gpio_set(gc, gpio, val); in mpc52xx_wkup_gpio_set()
86 static int mpc52xx_wkup_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_dir_in() argument
88 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_dir_in()
89 struct mpc52xx_gpiochip *chip = gpiochip_get_data(gc); in mpc52xx_wkup_gpio_dir_in()
109 mpc52xx_wkup_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_dir_out() argument
111 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_dir_out()
113 struct mpc52xx_gpiochip *chip = gpiochip_get_data(gc); in mpc52xx_wkup_gpio_dir_out()
118 __mpc52xx_wkup_gpio_set(gc, gpio, val); in mpc52xx_wkup_gpio_dir_out()
139 struct gpio_chip *gc; in mpc52xx_wkup_gpiochip_probe() local
148 gc = &chip->mmchip.gc; in mpc52xx_wkup_gpiochip_probe()
150 gc->ngpio = 8; in mpc52xx_wkup_gpiochip_probe()
151 gc->direction_input = mpc52xx_wkup_gpio_dir_in; in mpc52xx_wkup_gpiochip_probe()
152 gc->direction_output = mpc52xx_wkup_gpio_dir_out; in mpc52xx_wkup_gpiochip_probe()
153 gc->get = mpc52xx_wkup_gpio_get; in mpc52xx_wkup_gpiochip_probe()
154 gc->set = mpc52xx_wkup_gpio_set; in mpc52xx_wkup_gpiochip_probe()
206 static int mpc52xx_simple_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_get() argument
208 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_simple_gpio_get()
218 __mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_simple_gpio_set() argument
220 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in __mpc52xx_simple_gpio_set()
221 struct mpc52xx_gpiochip *chip = gpiochip_get_data(gc); in __mpc52xx_simple_gpio_set()
232 mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_simple_gpio_set() argument
238 __mpc52xx_simple_gpio_set(gc, gpio, val); in mpc52xx_simple_gpio_set()
245 static int mpc52xx_simple_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_dir_in() argument
247 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_simple_gpio_dir_in()
248 struct mpc52xx_gpiochip *chip = gpiochip_get_data(gc); in mpc52xx_simple_gpio_dir_in()
268 mpc52xx_simple_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_simple_gpio_dir_out() argument
270 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_simple_gpio_dir_out()
271 struct mpc52xx_gpiochip *chip = gpiochip_get_data(gc); in mpc52xx_simple_gpio_dir_out()
278 __mpc52xx_simple_gpio_set(gc, gpio, val); in mpc52xx_simple_gpio_dir_out()
298 struct gpio_chip *gc; in mpc52xx_simple_gpiochip_probe() local
308 gc = &chip->mmchip.gc; in mpc52xx_simple_gpiochip_probe()
310 gc->ngpio = 32; in mpc52xx_simple_gpiochip_probe()
311 gc->direction_input = mpc52xx_simple_gpio_dir_in; in mpc52xx_simple_gpiochip_probe()
312 gc->direction_output = mpc52xx_simple_gpio_dir_out; in mpc52xx_simple_gpiochip_probe()
313 gc->get = mpc52xx_simple_gpio_get; in mpc52xx_simple_gpiochip_probe()
314 gc->set = mpc52xx_simple_gpio_set; in mpc52xx_simple_gpiochip_probe()