Lines Matching refs:gc
171 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in gpio_set_irq_type() local
172 struct mxc_gpio_port *port = gc->private; in gpio_set_irq_type()
175 u32 gpio = port->bgc.gc.base + gpio_idx; in gpio_set_irq_type()
323 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in gpio_set_wake_irq() local
324 struct mxc_gpio_port *port = gc->private; in gpio_set_wake_irq()
344 struct irq_chip_generic *gc; in mxc_gpio_init_gc() local
347 gc = irq_alloc_generic_chip("gpio-mxc", 1, irq_base, in mxc_gpio_init_gc()
349 if (!gc) in mxc_gpio_init_gc()
351 gc->private = port; in mxc_gpio_init_gc()
353 ct = gc->chip_types; in mxc_gpio_init_gc()
363 irq_setup_generic_chip(gc, IRQ_MSK(32), IRQ_GC_INIT_NESTED_LOCK, in mxc_gpio_init_gc()
399 static int mxc_gpio_to_irq(struct gpio_chip *gc, unsigned offset) in mxc_gpio_to_irq() argument
401 struct bgpio_chip *bgc = to_bgpio_chip(gc); in mxc_gpio_to_irq()
462 port->bgc.gc.to_irq = mxc_gpio_to_irq; in mxc_gpio_probe()
463 port->bgc.gc.base = (pdev->id < 0) ? of_alias_get_id(np, "gpio") * 32 : in mxc_gpio_probe()
466 err = gpiochip_add(&port->bgc.gc); in mxc_gpio_probe()
497 gpiochip_remove(&port->bgc.gc); in mxc_gpio_probe()