Lines Matching full:mfd

20 #include <linux/mfd/tps65910.h>
309 struct tps65910 *mfd; member
824 struct tps65910 *mfd = pmic->mfd; in tps65910_set_ext_sleep_config() local
844 dev_err(mfd->dev, in tps65910_set_ext_sleep_config()
854 ret = regmap_set_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
857 ret = regmap_clear_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
860 dev_err(mfd->dev, in tps65910_set_ext_sleep_config()
867 ret = regmap_set_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
870 ret = regmap_clear_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
873 dev_err(mfd->dev, in tps65910_set_ext_sleep_config()
879 if ((tps65910_chip_id(mfd) == TPS65910) && in tps65910_set_ext_sleep_config()
882 ret = regmap_set_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
885 ret = regmap_clear_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
888 dev_err(mfd->dev, in tps65910_set_ext_sleep_config()
897 ret = regmap_clear_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
900 ret = regmap_clear_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
903 dev_err(mfd->dev, in tps65910_set_ext_sleep_config()
916 (tps65910_chip_id(mfd) == TPS65911))) { in tps65910_set_ext_sleep_config()
921 ret = regmap_read(mfd->regmap, op_reg_add, &opvsel); in tps65910_set_ext_sleep_config()
924 ret = regmap_read(mfd->regmap, sr_reg_add, &srvsel); in tps65910_set_ext_sleep_config()
931 ret = regmap_write(mfd->regmap, op_reg_add, reg_val); in tps65910_set_ext_sleep_config()
933 dev_err(mfd->dev, in tps65910_set_ext_sleep_config()
938 ret = regmap_write(mfd->regmap, sr_reg_add, 0); in tps65910_set_ext_sleep_config()
940 dev_err(mfd->dev, "Error in setting sr register\n"); in tps65910_set_ext_sleep_config()
945 ret = regmap_clear_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
949 ret = regmap_set_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
952 ret = regmap_clear_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
956 dev_err(mfd->dev, in tps65910_set_ext_sleep_config()
1096 pmic->mfd = tps65910; in tps65910_probe()
1100 err = regmap_set_bits(pmic->mfd->regmap, TPS65910_DEVCTRL, in tps65910_probe()
1116 regmap_clear_bits(pmic->mfd->regmap, TPS65910_DCDCCTRL, in tps65910_probe()