Lines Matching refs:max17040_chip
139 struct max17040_chip { struct
156 static int max17040_reset(struct max17040_chip *chip) in max17040_reset() argument
161 static int max17040_set_low_soc_alert(struct max17040_chip *chip, u32 level) in max17040_set_low_soc_alert()
168 static int max17040_set_soc_alert(struct max17040_chip *chip, bool enable) in max17040_set_soc_alert()
174 static int max17040_set_rcomp(struct max17040_chip *chip, u16 rcomp) in max17040_set_rcomp()
182 static int max17040_raw_vcell_to_uvolts(struct max17040_chip *chip, u16 vcell) in max17040_raw_vcell_to_uvolts()
190 static int max17040_get_vcell(struct max17040_chip *chip) in max17040_get_vcell()
199 static int max17040_get_soc(struct max17040_chip *chip) in max17040_get_soc()
208 static int max17040_get_version(struct max17040_chip *chip) in max17040_get_version()
218 static int max17040_get_online(struct max17040_chip *chip) in max17040_get_online()
223 static int max17040_get_of_data(struct max17040_chip *chip) in max17040_get_of_data()
260 static void max17040_check_changes(struct max17040_chip *chip) in max17040_check_changes()
265 static void max17040_queue_work(struct max17040_chip *chip) in max17040_queue_work()
273 struct max17040_chip *chip = data; in max17040_stop_work()
280 struct max17040_chip *chip; in max17040_work()
283 chip = container_of(work, struct max17040_chip, work.work); in max17040_work()
297 static bool max17040_handle_soc_alert(struct max17040_chip *chip) in max17040_handle_soc_alert()
319 struct max17040_chip *chip = dev; in max17040_thread_handler()
336 static int max17040_enable_alert_irq(struct max17040_chip *chip) in max17040_enable_alert_irq()
363 struct max17040_chip *chip = power_supply_get_drvdata(psy); in max17040_set_property()
388 struct max17040_chip *chip = power_supply_get_drvdata(psy); in max17040_get_property()
438 struct max17040_chip *chip; in max17040_probe()
529 struct max17040_chip *chip = i2c_get_clientdata(client); in max17040_suspend()
546 struct max17040_chip *chip = i2c_get_clientdata(client); in max17040_resume()