Lines Matching refs:gpio
34 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_get_direction() local
38 ret = regmap_read(gpio->tps->regmap, TPS65912_GPIO1 + offset, &val); in tps65912_gpio_get_direction()
50 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_direction_input() local
52 return regmap_update_bits(gpio->tps->regmap, TPS65912_GPIO1 + offset, in tps65912_gpio_direction_input()
59 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_direction_output() local
62 regmap_update_bits(gpio->tps->regmap, TPS65912_GPIO1 + offset, in tps65912_gpio_direction_output()
65 return regmap_update_bits(gpio->tps->regmap, TPS65912_GPIO1 + offset, in tps65912_gpio_direction_output()
71 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_get() local
74 ret = regmap_read(gpio->tps->regmap, TPS65912_GPIO1 + offset, &val); in tps65912_gpio_get()
87 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_set() local
89 regmap_update_bits(gpio->tps->regmap, TPS65912_GPIO1 + offset, in tps65912_gpio_set()
109 struct tps65912_gpio *gpio; in tps65912_gpio_probe() local
112 gpio = devm_kzalloc(&pdev->dev, sizeof(*gpio), GFP_KERNEL); in tps65912_gpio_probe()
113 if (!gpio) in tps65912_gpio_probe()
116 gpio->tps = dev_get_drvdata(pdev->dev.parent); in tps65912_gpio_probe()
117 gpio->gpio_chip = template_chip; in tps65912_gpio_probe()
118 gpio->gpio_chip.parent = tps->dev; in tps65912_gpio_probe()
120 ret = devm_gpiochip_add_data(&pdev->dev, &gpio->gpio_chip, in tps65912_gpio_probe()
121 gpio); in tps65912_gpio_probe()
127 platform_set_drvdata(pdev, gpio); in tps65912_gpio_probe()