Lines Matching refs:tps65910

27 	struct tps65910 *tps65910;  member
38 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_get() local
41 tps65910_reg_read(tps65910, TPS65910_GPIO0 + offset, &val); in tps65910_gpio_get()
53 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_set() local
56 tps65910_reg_set_bits(tps65910, TPS65910_GPIO0 + offset, in tps65910_gpio_set()
59 tps65910_reg_clear_bits(tps65910, TPS65910_GPIO0 + offset, in tps65910_gpio_set()
67 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_output() local
72 return tps65910_reg_set_bits(tps65910, TPS65910_GPIO0 + offset, in tps65910_gpio_output()
79 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_input() local
81 return tps65910_reg_clear_bits(tps65910, TPS65910_GPIO0 + offset, in tps65910_gpio_input()
87 struct tps65910 *tps65910, int chip_ngpio) in tps65910_parse_dt_for_gpio() argument
89 struct tps65910_board *tps65910_board = tps65910->of_plat_data; in tps65910_parse_dt_for_gpio()
96 ret = of_property_read_u32_array(tps65910->dev->of_node, in tps65910_parse_dt_for_gpio()
110 struct tps65910 *tps65910, int chip_ngpio) in tps65910_parse_dt_for_gpio() argument
118 struct tps65910 *tps65910 = dev_get_drvdata(pdev->dev.parent); in tps65910_gpio_probe() local
119 struct tps65910_board *pdata = dev_get_platdata(tps65910->dev); in tps65910_gpio_probe()
129 tps65910_gpio->tps65910 = tps65910; in tps65910_gpio_probe()
132 tps65910_gpio->gpio_chip.label = tps65910->i2c_client->name; in tps65910_gpio_probe()
134 switch (tps65910_chip_id(tps65910)) { in tps65910_gpio_probe()
151 tps65910_gpio->gpio_chip.of_node = tps65910->dev->of_node; in tps65910_gpio_probe()
158 if (!pdata && tps65910->dev->of_node) in tps65910_gpio_probe()
159 pdata = tps65910_parse_dt_for_gpio(&pdev->dev, tps65910, in tps65910_gpio_probe()
170 ret = tps65910_reg_set_bits(tps65910, in tps65910_gpio_probe()
173 dev_warn(tps65910->dev, in tps65910_gpio_probe()