Lines Matching refs:tps65910_gpio
20 struct tps65910_gpio { struct
27 struct tps65910_gpio *tps65910_gpio = gpiochip_get_data(gc); in tps65910_gpio_get() local
28 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_get()
42 struct tps65910_gpio *tps65910_gpio = gpiochip_get_data(gc); in tps65910_gpio_set() local
43 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_set()
56 struct tps65910_gpio *tps65910_gpio = gpiochip_get_data(gc); in tps65910_gpio_output() local
57 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_output()
71 struct tps65910_gpio *tps65910_gpio = gpiochip_get_data(gc); in tps65910_gpio_input() local
72 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_input()
113 struct tps65910_gpio *tps65910_gpio; in tps65910_gpio_probe() local
119 tps65910_gpio = devm_kzalloc(&pdev->dev, in tps65910_gpio_probe()
120 sizeof(*tps65910_gpio), GFP_KERNEL); in tps65910_gpio_probe()
121 if (!tps65910_gpio) in tps65910_gpio_probe()
124 tps65910_gpio->tps65910 = tps65910; in tps65910_gpio_probe()
126 tps65910_gpio->gpio_chip.owner = THIS_MODULE; in tps65910_gpio_probe()
127 tps65910_gpio->gpio_chip.label = tps65910->i2c_client->name; in tps65910_gpio_probe()
131 tps65910_gpio->gpio_chip.ngpio = TPS65910_NUM_GPIO; in tps65910_gpio_probe()
134 tps65910_gpio->gpio_chip.ngpio = TPS65911_NUM_GPIO; in tps65910_gpio_probe()
139 tps65910_gpio->gpio_chip.can_sleep = true; in tps65910_gpio_probe()
140 tps65910_gpio->gpio_chip.direction_input = tps65910_gpio_input; in tps65910_gpio_probe()
141 tps65910_gpio->gpio_chip.direction_output = tps65910_gpio_output; in tps65910_gpio_probe()
142 tps65910_gpio->gpio_chip.set_rv = tps65910_gpio_set; in tps65910_gpio_probe()
143 tps65910_gpio->gpio_chip.get = tps65910_gpio_get; in tps65910_gpio_probe()
144 tps65910_gpio->gpio_chip.parent = &pdev->dev; in tps65910_gpio_probe()
147 tps65910_gpio->gpio_chip.base = pdata->gpio_base; in tps65910_gpio_probe()
149 tps65910_gpio->gpio_chip.base = -1; in tps65910_gpio_probe()
153 tps65910_gpio->gpio_chip.ngpio); in tps65910_gpio_probe()
159 for (i = 0; i < tps65910_gpio->gpio_chip.ngpio; ++i) { in tps65910_gpio_probe()
171 return devm_gpiochip_add_data(&pdev->dev, &tps65910_gpio->gpio_chip, in tps65910_gpio_probe()
172 tps65910_gpio); in tps65910_gpio_probe()