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()
68 struct tps65910_gpio *tps65910_gpio = gpiochip_get_data(gc); in tps65910_gpio_input() local
69 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_input()
110 struct tps65910_gpio *tps65910_gpio; in tps65910_gpio_probe() local
116 tps65910_gpio = devm_kzalloc(&pdev->dev, in tps65910_gpio_probe()
117 sizeof(*tps65910_gpio), GFP_KERNEL); in tps65910_gpio_probe()
118 if (!tps65910_gpio) in tps65910_gpio_probe()
121 tps65910_gpio->tps65910 = tps65910; in tps65910_gpio_probe()
123 tps65910_gpio->gpio_chip.owner = THIS_MODULE; in tps65910_gpio_probe()
124 tps65910_gpio->gpio_chip.label = tps65910->i2c_client->name; in tps65910_gpio_probe()
128 tps65910_gpio->gpio_chip.ngpio = TPS65910_NUM_GPIO; in tps65910_gpio_probe()
131 tps65910_gpio->gpio_chip.ngpio = TPS65911_NUM_GPIO; in tps65910_gpio_probe()
136 tps65910_gpio->gpio_chip.can_sleep = true; in tps65910_gpio_probe()
137 tps65910_gpio->gpio_chip.direction_input = tps65910_gpio_input; in tps65910_gpio_probe()
138 tps65910_gpio->gpio_chip.direction_output = tps65910_gpio_output; in tps65910_gpio_probe()
139 tps65910_gpio->gpio_chip.set = tps65910_gpio_set; in tps65910_gpio_probe()
140 tps65910_gpio->gpio_chip.get = tps65910_gpio_get; in tps65910_gpio_probe()
141 tps65910_gpio->gpio_chip.parent = &pdev->dev; in tps65910_gpio_probe()
144 tps65910_gpio->gpio_chip.base = pdata->gpio_base; in tps65910_gpio_probe()
146 tps65910_gpio->gpio_chip.base = -1; in tps65910_gpio_probe()
150 tps65910_gpio->gpio_chip.ngpio); in tps65910_gpio_probe()
156 for (i = 0; i < tps65910_gpio->gpio_chip.ngpio; ++i) { in tps65910_gpio_probe()
168 return devm_gpiochip_add_data(&pdev->dev, &tps65910_gpio->gpio_chip, in tps65910_gpio_probe()
169 tps65910_gpio); in tps65910_gpio_probe()