Lines Matching refs:gc
92 static int xgpio_get(struct gpio_chip *gc, unsigned int gpio) in xgpio_get() argument
94 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_get()
114 static void xgpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in xgpio_set() argument
117 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_set()
146 static int xgpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in xgpio_dir_in() argument
149 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_dir_in()
179 static int xgpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in xgpio_dir_out() argument
182 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_dir_out()
307 chip->mmchip.gc.ngpio = chip->gpio_width[0] + chip->gpio_width[1]; in xgpio_probe()
308 chip->mmchip.gc.dev = &pdev->dev; in xgpio_probe()
309 chip->mmchip.gc.direction_input = xgpio_dir_in; in xgpio_probe()
310 chip->mmchip.gc.direction_output = xgpio_dir_out; in xgpio_probe()
311 chip->mmchip.gc.get = xgpio_get; in xgpio_probe()
312 chip->mmchip.gc.set = xgpio_set; in xgpio_probe()