Lines Matching refs:regmap
70 struct regmap *regmap; member
103 struct regmap *map = chip->regmap; in max17042_get_temperature()
127 ret = regmap_read(chip->regmap, MAX17042_AvgVCELL, &val); in max17042_get_battery_health()
136 ret = regmap_read(chip->regmap, MAX17042_VCELL, &val); in max17042_get_battery_health()
183 struct regmap *map = chip->regmap; in max17042_get_property()
346 struct regmap *map = chip->regmap; in max17042_set_property()
404 static int max17042_write_verify_reg(struct regmap *map, u8 reg, u32 value) in max17042_write_verify_reg()
425 static inline void max17042_override_por(struct regmap *map, in max17042_override_por()
434 struct regmap *map = chip->regmap; in max10742_unlock_model()
442 struct regmap *map = chip->regmap; in max10742_lock_model()
451 struct regmap *map = chip->regmap; in max17042_write_model_data()
462 struct regmap *map = chip->regmap; in max17042_read_model_data()
537 struct regmap *map = chip->regmap; in max17042_write_config_regs()
553 struct regmap *map = chip->regmap; in max17042_write_custom_regs()
577 struct regmap *map = chip->regmap; in max17042_update_capacity_regs()
589 struct regmap *map = chip->regmap; in max17042_reset_vfsoc0_reg()
603 struct regmap *map = chip->regmap; in max17042_load_new_capacity_params()
640 struct regmap *map = chip->regmap; in max17042_override_por_values()
693 struct regmap *map = chip->regmap; in max17042_init_chip()
743 struct regmap *map = chip->regmap; in max17042_set_soc_threshold()
761 regmap_read(chip->regmap, MAX17042_STATUS, &val); in max17042_thread_handler()
876 chip->regmap = devm_regmap_init_i2c(client, &max17042_regmap_config); in max17042_probe()
877 if (IS_ERR(chip->regmap)) { in max17042_probe()
902 regmap_write(chip->regmap, in max17042_probe()
907 regmap_write(chip->regmap, MAX17042_CGAIN, 0x0000); in max17042_probe()
908 regmap_write(chip->regmap, MAX17042_MiscCFG, 0x0003); in max17042_probe()
909 regmap_write(chip->regmap, MAX17042_LearnCFG, 0x0007); in max17042_probe()
928 regmap_update_bits(chip->regmap, MAX17042_CONFIG, in max17042_probe()
939 regmap_read(chip->regmap, MAX17042_STATUS, &val); in max17042_probe()