Lines Matching refs:ucb
50 struct ucb1400_gpio *ucb = dev->dev.platform_data;
58 platform_set_drvdata(dev, ucb);
60 ucb->gc.label = "ucb1400_gpio";
61 ucb->gc.base = ucbdata->gpio_offset;
62 ucb->gc.ngpio = 10;
63 ucb->gc.owner = THIS_MODULE;
65 ucb->gc.direction_input = ucb1400_gpio_dir_in;
66 ucb->gc.direction_output = ucb1400_gpio_dir_out;
67 ucb->gc.get = ucb1400_gpio_get;
68 ucb->gc.set = ucb1400_gpio_set;
69 ucb->gc.can_sleep = 1;
71 err = gpiochip_add(&ucb->gc);
76 err = ucbdata->gpio_setup(&dev->dev, ucb->gc.ngpio);
86 struct ucb1400_gpio *ucb = platform_get_drvdata(dev);
89 err = ucbdata->gpio_teardown(&dev->dev, ucb->gc.ngpio);
94 err = gpiochip_remove(&ucb->gc);