Lines Matching refs:gc

35 	struct gpio_chip gc;  member
65 static struct vf610_gpio_port *to_vf610_gp(struct gpio_chip *gc) in to_vf610_gp() argument
67 return container_of(gc, struct vf610_gpio_port, gc); in to_vf610_gp()
85 static int vf610_gpio_get(struct gpio_chip *gc, unsigned int gpio) in vf610_gpio_get() argument
87 struct vf610_gpio_port *port = to_vf610_gp(gc); in vf610_gpio_get()
92 static void vf610_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in vf610_gpio_set() argument
94 struct vf610_gpio_port *port = to_vf610_gp(gc); in vf610_gpio_set()
131 generic_handle_irq(irq_find_mapping(port->gc.irqdomain, pin)); in vf610_gpio_irq_handler()
229 struct gpio_chip *gc; in vf610_gpio_probe() local
250 gc = &port->gc; in vf610_gpio_probe()
251 gc->of_node = np; in vf610_gpio_probe()
252 gc->dev = dev; in vf610_gpio_probe()
253 gc->label = "vf610-gpio"; in vf610_gpio_probe()
254 gc->ngpio = VF610_GPIO_PER_PORT; in vf610_gpio_probe()
255 gc->base = of_alias_get_id(np, "gpio") * VF610_GPIO_PER_PORT; in vf610_gpio_probe()
257 gc->request = gpiochip_generic_request; in vf610_gpio_probe()
258 gc->free = gpiochip_generic_free; in vf610_gpio_probe()
259 gc->direction_input = vf610_gpio_direction_input; in vf610_gpio_probe()
260 gc->get = vf610_gpio_get; in vf610_gpio_probe()
261 gc->direction_output = vf610_gpio_direction_output; in vf610_gpio_probe()
262 gc->set = vf610_gpio_set; in vf610_gpio_probe()
264 ret = gpiochip_add(gc); in vf610_gpio_probe()
271 ret = gpiochip_irqchip_add(gc, &vf610_gpio_irq_chip, 0, in vf610_gpio_probe()
275 gpiochip_remove(gc); in vf610_gpio_probe()
278 gpiochip_set_chained_irqchip(gc, &vf610_gpio_irq_chip, port->irq, in vf610_gpio_probe()