Lines Matching refs:bgc
22 struct bgpio_chip *bgc; in clps711x_gpio_probe() local
29 bgc = devm_kzalloc(&pdev->dev, sizeof(*bgc), GFP_KERNEL); in clps711x_gpio_probe()
30 if (!bgc) in clps711x_gpio_probe()
46 err = bgpio_init(bgc, &pdev->dev, 1, dat, NULL, NULL, in clps711x_gpio_probe()
50 err = bgpio_init(bgc, &pdev->dev, 1, dat, NULL, NULL, in clps711x_gpio_probe()
61 bgc->gc.ngpio = 3; in clps711x_gpio_probe()
67 bgc->gc.base = id * 8; in clps711x_gpio_probe()
68 bgc->gc.owner = THIS_MODULE; in clps711x_gpio_probe()
69 platform_set_drvdata(pdev, bgc); in clps711x_gpio_probe()
71 return gpiochip_add(&bgc->gc); in clps711x_gpio_probe()
76 struct bgpio_chip *bgc = platform_get_drvdata(pdev); in clps711x_gpio_remove() local
78 return bgpio_remove(bgc); in clps711x_gpio_remove()