Lines Matching refs:mfd
310 struct tps65910 *mfd; member
825 struct tps65910 *mfd = pmic->mfd; in tps65910_set_ext_sleep_config() local
845 dev_err(mfd->dev, in tps65910_set_ext_sleep_config()
855 ret = regmap_set_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
858 ret = regmap_clear_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
861 dev_err(mfd->dev, in tps65910_set_ext_sleep_config()
868 ret = regmap_set_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
871 ret = regmap_clear_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
874 dev_err(mfd->dev, in tps65910_set_ext_sleep_config()
880 if ((tps65910_chip_id(mfd) == TPS65910) && in tps65910_set_ext_sleep_config()
883 ret = regmap_set_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
886 ret = regmap_clear_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
889 dev_err(mfd->dev, in tps65910_set_ext_sleep_config()
898 ret = regmap_clear_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
901 ret = regmap_clear_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
904 dev_err(mfd->dev, in tps65910_set_ext_sleep_config()
917 (tps65910_chip_id(mfd) == TPS65911))) { in tps65910_set_ext_sleep_config()
922 ret = regmap_read(mfd->regmap, op_reg_add, &opvsel); in tps65910_set_ext_sleep_config()
925 ret = regmap_read(mfd->regmap, sr_reg_add, &srvsel); in tps65910_set_ext_sleep_config()
932 ret = regmap_write(mfd->regmap, op_reg_add, reg_val); in tps65910_set_ext_sleep_config()
934 dev_err(mfd->dev, in tps65910_set_ext_sleep_config()
939 ret = regmap_write(mfd->regmap, sr_reg_add, 0); in tps65910_set_ext_sleep_config()
941 dev_err(mfd->dev, "Error in setting sr register\n"); in tps65910_set_ext_sleep_config()
946 ret = regmap_clear_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
950 ret = regmap_set_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
953 ret = regmap_clear_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
957 dev_err(mfd->dev, in tps65910_set_ext_sleep_config()
1097 pmic->mfd = tps65910; in tps65910_probe()
1101 err = regmap_set_bits(pmic->mfd->regmap, TPS65910_DEVCTRL, in tps65910_probe()
1117 regmap_clear_bits(pmic->mfd->regmap, TPS65910_DCDCCTRL, in tps65910_probe()