Lines Matching refs:bgc
67 struct bgpio_chip bgc; member
96 val = gpio_get_value(port->bgc.gc.base + d->hwirq); in mxs_gpio_set_irq_type()
228 struct bgpio_chip *bgc = to_bgpio_chip(gc); in mxs_gpio_to_irq() local
230 container_of(bgc, struct mxs_gpio_port, bgc); in mxs_gpio_to_irq()
237 struct bgpio_chip *bgc = to_bgpio_chip(gc); in mxs_gpio_get_direction() local
239 container_of(bgc, struct mxs_gpio_port, bgc); in mxs_gpio_get_direction()
333 err = bgpio_init(&port->bgc, &pdev->dev, 4, in mxs_gpio_probe()
341 port->bgc.gc.to_irq = mxs_gpio_to_irq; in mxs_gpio_probe()
342 port->bgc.gc.get_direction = mxs_gpio_get_direction; in mxs_gpio_probe()
343 port->bgc.gc.base = port->id * 32; in mxs_gpio_probe()
345 err = gpiochip_add(&port->bgc.gc); in mxs_gpio_probe()
352 bgpio_remove(&port->bgc); in mxs_gpio_probe()