Lines Matching refs:gc
44 static int xgpio_get(struct gpio_chip *gc, unsigned int gpio) in xgpio_get() argument
46 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_get()
60 static void xgpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in xgpio_set() argument
63 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_set()
88 static int xgpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in xgpio_dir_in() argument
91 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_dir_in()
116 static int xgpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in xgpio_dir_out() argument
119 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_dir_out()
184 chip->mmchip.gc.ngpio = 32; /* By default assume full GPIO controller */ in xgpio_of_probe()
190 chip->mmchip.gc.ngpio = be32_to_cpup(tree_info); in xgpio_of_probe()
194 chip->mmchip.gc.direction_input = xgpio_dir_in; in xgpio_of_probe()
195 chip->mmchip.gc.direction_output = xgpio_dir_out; in xgpio_of_probe()
196 chip->mmchip.gc.get = xgpio_get; in xgpio_of_probe()
197 chip->mmchip.gc.set = xgpio_set; in xgpio_of_probe()