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()
208 static int mpc52xx_simple_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_get() argument
210 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_simple_gpio_get()
220 __mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_simple_gpio_set() argument
222 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in __mpc52xx_simple_gpio_set()
223 struct mpc52xx_gpiochip *chip = gpiochip_get_data(gc); in __mpc52xx_simple_gpio_set()
234 mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_simple_gpio_set() argument
240 __mpc52xx_simple_gpio_set(gc, gpio, val); in mpc52xx_simple_gpio_set()
247 static int mpc52xx_simple_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_dir_in() argument
249 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_simple_gpio_dir_in()
250 struct mpc52xx_gpiochip *chip = gpiochip_get_data(gc); in mpc52xx_simple_gpio_dir_in()
270 mpc52xx_simple_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_simple_gpio_dir_out() argument
272 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_simple_gpio_dir_out()
273 struct mpc52xx_gpiochip *chip = gpiochip_get_data(gc); in mpc52xx_simple_gpio_dir_out()
280 __mpc52xx_simple_gpio_set(gc, gpio, val); in mpc52xx_simple_gpio_dir_out()
300 struct gpio_chip *gc; in mpc52xx_simple_gpiochip_probe() local
310 gc = &chip->mmchip.gc; in mpc52xx_simple_gpiochip_probe()
312 gc->ngpio = 32; in mpc52xx_simple_gpiochip_probe()
313 gc->direction_input = mpc52xx_simple_gpio_dir_in; in mpc52xx_simple_gpiochip_probe()
314 gc->direction_output = mpc52xx_simple_gpio_dir_out; in mpc52xx_simple_gpiochip_probe()
315 gc->get = mpc52xx_simple_gpio_get; in mpc52xx_simple_gpiochip_probe()
316 gc->set = mpc52xx_simple_gpio_set; in mpc52xx_simple_gpiochip_probe()