• Home
  • Raw
  • Download

Lines Matching refs:gc

37 	struct gpio_chip gc;  member
43 static int mb86s70_gpio_request(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_request() argument
45 struct mb86s70_gpio_chip *gchip = gpiochip_get_data(gc); in mb86s70_gpio_request()
60 static void mb86s70_gpio_free(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_free() argument
62 struct mb86s70_gpio_chip *gchip = gpiochip_get_data(gc); in mb86s70_gpio_free()
75 static int mb86s70_gpio_direction_input(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_direction_input() argument
77 struct mb86s70_gpio_chip *gchip = gpiochip_get_data(gc); in mb86s70_gpio_direction_input()
92 static int mb86s70_gpio_direction_output(struct gpio_chip *gc, in mb86s70_gpio_direction_output() argument
95 struct mb86s70_gpio_chip *gchip = gpiochip_get_data(gc); in mb86s70_gpio_direction_output()
117 static int mb86s70_gpio_get(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_get() argument
119 struct mb86s70_gpio_chip *gchip = gpiochip_get_data(gc); in mb86s70_gpio_get()
124 static void mb86s70_gpio_set(struct gpio_chip *gc, unsigned gpio, int value) in mb86s70_gpio_set() argument
126 struct mb86s70_gpio_chip *gchip = gpiochip_get_data(gc); in mb86s70_gpio_set()
142 static int mb86s70_gpio_to_irq(struct gpio_chip *gc, unsigned int offset) in mb86s70_gpio_to_irq() argument
147 irq = platform_get_irq(to_platform_device(gc->parent), index); in mb86s70_gpio_to_irq()
183 gchip->gc.direction_output = mb86s70_gpio_direction_output; in mb86s70_gpio_probe()
184 gchip->gc.direction_input = mb86s70_gpio_direction_input; in mb86s70_gpio_probe()
185 gchip->gc.request = mb86s70_gpio_request; in mb86s70_gpio_probe()
186 gchip->gc.free = mb86s70_gpio_free; in mb86s70_gpio_probe()
187 gchip->gc.get = mb86s70_gpio_get; in mb86s70_gpio_probe()
188 gchip->gc.set = mb86s70_gpio_set; in mb86s70_gpio_probe()
189 gchip->gc.to_irq = mb86s70_gpio_to_irq; in mb86s70_gpio_probe()
190 gchip->gc.label = dev_name(&pdev->dev); in mb86s70_gpio_probe()
191 gchip->gc.ngpio = 32; in mb86s70_gpio_probe()
192 gchip->gc.owner = THIS_MODULE; in mb86s70_gpio_probe()
193 gchip->gc.parent = &pdev->dev; in mb86s70_gpio_probe()
194 gchip->gc.base = -1; in mb86s70_gpio_probe()
196 ret = gpiochip_add_data(&gchip->gc, gchip); in mb86s70_gpio_probe()
203 acpi_gpiochip_request_interrupts(&gchip->gc); in mb86s70_gpio_probe()
212 acpi_gpiochip_free_interrupts(&gchip->gc); in mb86s70_gpio_remove()
213 gpiochip_remove(&gchip->gc); in mb86s70_gpio_remove()