Lines Matching refs:tps6586x_gpio
25 struct tps6586x_gpio { struct
32 struct tps6586x_gpio *tps6586x_gpio = gpiochip_get_data(gc); in tps6586x_gpio_get() argument
36 ret = tps6586x_read(tps6586x_gpio->parent, TPS6586X_GPIOSET2, &val); in tps6586x_gpio_get()
46 struct tps6586x_gpio *tps6586x_gpio = gpiochip_get_data(gc); in tps6586x_gpio_set() local
48 tps6586x_update(tps6586x_gpio->parent, TPS6586X_GPIOSET2, in tps6586x_gpio_set()
55 struct tps6586x_gpio *tps6586x_gpio = gpiochip_get_data(gc); in tps6586x_gpio_output() local
63 return tps6586x_update(tps6586x_gpio->parent, TPS6586X_GPIOSET1, in tps6586x_gpio_output()
69 struct tps6586x_gpio *tps6586x_gpio = gpiochip_get_data(gc); in tps6586x_gpio_to_irq() local
71 return tps6586x_irq_get_virq(tps6586x_gpio->parent, in tps6586x_gpio_to_irq()
78 struct tps6586x_gpio *tps6586x_gpio; in tps6586x_gpio_probe() local
83 tps6586x_gpio = devm_kzalloc(&pdev->dev, in tps6586x_gpio_probe()
84 sizeof(*tps6586x_gpio), GFP_KERNEL); in tps6586x_gpio_probe()
85 if (!tps6586x_gpio) in tps6586x_gpio_probe()
88 tps6586x_gpio->parent = pdev->dev.parent; in tps6586x_gpio_probe()
90 tps6586x_gpio->gpio_chip.owner = THIS_MODULE; in tps6586x_gpio_probe()
91 tps6586x_gpio->gpio_chip.label = pdev->name; in tps6586x_gpio_probe()
92 tps6586x_gpio->gpio_chip.parent = &pdev->dev; in tps6586x_gpio_probe()
93 tps6586x_gpio->gpio_chip.ngpio = 4; in tps6586x_gpio_probe()
94 tps6586x_gpio->gpio_chip.can_sleep = true; in tps6586x_gpio_probe()
97 tps6586x_gpio->gpio_chip.direction_output = tps6586x_gpio_output; in tps6586x_gpio_probe()
98 tps6586x_gpio->gpio_chip.set = tps6586x_gpio_set; in tps6586x_gpio_probe()
99 tps6586x_gpio->gpio_chip.get = tps6586x_gpio_get; in tps6586x_gpio_probe()
100 tps6586x_gpio->gpio_chip.to_irq = tps6586x_gpio_to_irq; in tps6586x_gpio_probe()
103 tps6586x_gpio->gpio_chip.base = pdata->gpio_base; in tps6586x_gpio_probe()
105 tps6586x_gpio->gpio_chip.base = -1; in tps6586x_gpio_probe()
107 return devm_gpiochip_add_data(&pdev->dev, &tps6586x_gpio->gpio_chip, in tps6586x_gpio_probe()
108 tps6586x_gpio); in tps6586x_gpio_probe()