Lines Matching refs:tps65910
22 struct tps65910 *tps65910; member
28 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_get() local
31 regmap_read(tps65910->regmap, TPS65910_GPIO0 + offset, &val); in tps65910_gpio_get()
43 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_set() local
46 regmap_set_bits(tps65910->regmap, TPS65910_GPIO0 + offset, in tps65910_gpio_set()
49 regmap_clear_bits(tps65910->regmap, TPS65910_GPIO0 + offset, in tps65910_gpio_set()
57 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_output() local
62 return regmap_set_bits(tps65910->regmap, TPS65910_GPIO0 + offset, in tps65910_gpio_output()
69 struct tps65910 *tps65910 = tps65910_gpio->tps65910; in tps65910_gpio_input() local
71 return regmap_clear_bits(tps65910->regmap, TPS65910_GPIO0 + offset, in tps65910_gpio_input()
77 struct tps65910 *tps65910, int chip_ngpio) in tps65910_parse_dt_for_gpio() argument
79 struct tps65910_board *tps65910_board = tps65910->of_plat_data; in tps65910_parse_dt_for_gpio()
86 ret = of_property_read_u32_array(tps65910->dev->of_node, in tps65910_parse_dt_for_gpio()
100 struct tps65910 *tps65910, int chip_ngpio) in tps65910_parse_dt_for_gpio() argument
108 struct tps65910 *tps65910 = dev_get_drvdata(pdev->dev.parent); in tps65910_gpio_probe() local
109 struct tps65910_board *pdata = dev_get_platdata(tps65910->dev); in tps65910_gpio_probe()
119 tps65910_gpio->tps65910 = tps65910; in tps65910_gpio_probe()
122 tps65910_gpio->gpio_chip.label = tps65910->i2c_client->name; in tps65910_gpio_probe()
124 switch (tps65910_chip_id(tps65910)) { in tps65910_gpio_probe()
141 tps65910_gpio->gpio_chip.of_node = tps65910->dev->of_node; in tps65910_gpio_probe()
148 if (!pdata && tps65910->dev->of_node) in tps65910_gpio_probe()
149 pdata = tps65910_parse_dt_for_gpio(&pdev->dev, tps65910, in tps65910_gpio_probe()
160 ret = regmap_set_bits(tps65910->regmap, in tps65910_gpio_probe()
163 dev_warn(tps65910->dev, in tps65910_gpio_probe()