tps80031 149 drivers/mfd/tps80031.c static struct tps80031 *tps80031_power_off_dev; tps80031 218 drivers/mfd/tps80031.c static void tps80031_pupd_init(struct tps80031 *tps80031, tps80031 237 drivers/mfd/tps80031.c tps80031_update(tps80031->dev, TPS80031_SLAVE_ID1, pupd->reg, tps80031 242 drivers/mfd/tps80031.c static int tps80031_init_ext_control(struct tps80031 *tps80031, tps80031 245 drivers/mfd/tps80031.c struct device *dev = tps80031->dev; tps80031 271 drivers/mfd/tps80031.c static int tps80031_irq_init(struct tps80031 *tps80031, int irq, int irq_base) tps80031 273 drivers/mfd/tps80031.c struct device *dev = tps80031->dev; tps80031 303 drivers/mfd/tps80031.c ret = regmap_add_irq_chip(tps80031->regmap[TPS80031_SLAVE_ID2], irq, tps80031 305 drivers/mfd/tps80031.c &tps80031_irq_chip, &tps80031->irq_data); tps80031 421 drivers/mfd/tps80031.c struct tps80031 *tps80031; tps80031 432 drivers/mfd/tps80031.c tps80031 = devm_kzalloc(&client->dev, sizeof(*tps80031), GFP_KERNEL); tps80031 433 drivers/mfd/tps80031.c if (!tps80031) tps80031 438 drivers/mfd/tps80031.c tps80031->clients[i] = client; tps80031 440 drivers/mfd/tps80031.c tps80031->clients[i] = devm_i2c_new_dummy_device(&client->dev, tps80031 442 drivers/mfd/tps80031.c if (IS_ERR(tps80031->clients[i])) { tps80031 444 drivers/mfd/tps80031.c return PTR_ERR(tps80031->clients[i]); tps80031 447 drivers/mfd/tps80031.c i2c_set_clientdata(tps80031->clients[i], tps80031); tps80031 448 drivers/mfd/tps80031.c tps80031->regmap[i] = devm_regmap_init_i2c(tps80031->clients[i], tps80031 450 drivers/mfd/tps80031.c if (IS_ERR(tps80031->regmap[i])) { tps80031 451 drivers/mfd/tps80031.c ret = PTR_ERR(tps80031->regmap[i]); tps80031 476 drivers/mfd/tps80031.c tps80031->es_version = es_version; tps80031 477 drivers/mfd/tps80031.c tps80031->dev = &client->dev; tps80031 478 drivers/mfd/tps80031.c i2c_set_clientdata(client, tps80031); tps80031 479 drivers/mfd/tps80031.c tps80031->chip_info = id->driver_data; tps80031 481 drivers/mfd/tps80031.c ret = tps80031_irq_init(tps80031, client->irq, pdata->irq_base); tps80031 487 drivers/mfd/tps80031.c tps80031_pupd_init(tps80031, pdata); tps80031 489 drivers/mfd/tps80031.c tps80031_init_ext_control(tps80031, pdata); tps80031 491 drivers/mfd/tps80031.c ret = mfd_add_devices(tps80031->dev, -1, tps80031 494 drivers/mfd/tps80031.c regmap_irq_get_domain(tps80031->irq_data)); tps80031 501 drivers/mfd/tps80031.c tps80031_power_off_dev = tps80031; tps80031 507 drivers/mfd/tps80031.c regmap_del_irq_chip(client->irq, tps80031->irq_data); tps80031 668 drivers/regulator/tps80031-regulator.c struct tps80031 *tps80031_mfd = dev_get_drvdata(pdev->dev.parent); tps80031 550 include/linux/mfd/tps80031.h struct tps80031 *tps80031 = dev_get_drvdata(dev); tps80031 552 include/linux/mfd/tps80031.h return regmap_write(tps80031->regmap[sid], reg, val); tps80031 558 include/linux/mfd/tps80031.h struct tps80031 *tps80031 = dev_get_drvdata(dev); tps80031 560 include/linux/mfd/tps80031.h return regmap_bulk_write(tps80031->regmap[sid], reg, val, len); tps80031 566 include/linux/mfd/tps80031.h struct tps80031 *tps80031 = dev_get_drvdata(dev); tps80031 570 include/linux/mfd/tps80031.h ret = regmap_read(tps80031->regmap[sid], reg, &ival); tps80031 583 include/linux/mfd/tps80031.h struct tps80031 *tps80031 = dev_get_drvdata(dev); tps80031 585 include/linux/mfd/tps80031.h return regmap_bulk_read(tps80031->regmap[sid], reg, val, len); tps80031 591 include/linux/mfd/tps80031.h struct tps80031 *tps80031 = dev_get_drvdata(dev); tps80031 593 include/linux/mfd/tps80031.h return regmap_update_bits(tps80031->regmap[sid], reg, tps80031 600 include/linux/mfd/tps80031.h struct tps80031 *tps80031 = dev_get_drvdata(dev); tps80031 602 include/linux/mfd/tps80031.h return regmap_update_bits(tps80031->regmap[sid], reg, bit_mask, 0); tps80031 608 include/linux/mfd/tps80031.h struct tps80031 *tps80031 = dev_get_drvdata(dev); tps80031 610 include/linux/mfd/tps80031.h return regmap_update_bits(tps80031->regmap[sid], reg, mask, val); tps80031 615 include/linux/mfd/tps80031.h struct tps80031 *tps80031 = dev_get_drvdata(dev); tps80031 617 include/linux/mfd/tps80031.h return tps80031->chip_info; tps80031 622 include/linux/mfd/tps80031.h struct tps80031 *tps80031 = dev_get_drvdata(dev); tps80031 624 include/linux/mfd/tps80031.h return tps80031->es_version; tps80031 629 include/linux/mfd/tps80031.h struct tps80031 *tps80031 = dev_get_drvdata(dev); tps80031 631 include/linux/mfd/tps80031.h return regmap_irq_get_virq(tps80031->irq_data, irq);