Lines Matching refs:cw_battery
59 struct cw_battery { struct
84 static int cw_read_word(struct cw_battery *cw_bat, u8 reg, u16 *val) in cw_read_word() argument
97 static int cw_update_profile(struct cw_battery *cw_bat) in cw_update_profile()
158 static int cw_init(struct cw_battery *cw_bat) in cw_init()
227 static int cw_power_on_reset(struct cw_battery *cw_bat) in cw_power_on_reset()
254 static int cw_get_soc(struct cw_battery *cw_bat) in cw_get_soc()
306 static int cw_get_voltage(struct cw_battery *cw_bat) in cw_get_voltage()
333 static int cw_get_time_to_empty(struct cw_battery *cw_bat) in cw_get_time_to_empty()
345 static void cw_update_charge_status(struct cw_battery *cw_bat) in cw_update_charge_status()
365 static void cw_update_soc(struct cw_battery *cw_bat) in cw_update_soc()
378 static void cw_update_voltage(struct cw_battery *cw_bat) in cw_update_voltage()
390 static void cw_update_status(struct cw_battery *cw_bat) in cw_update_status()
406 static void cw_update_time_to_empty(struct cw_battery *cw_bat) in cw_update_time_to_empty()
423 struct cw_battery *cw_bat; in cw_bat_work()
428 cw_bat = container_of(delay_work, struct cw_battery, battery_delay_work); in cw_bat_work()
461 static bool cw_battery_valid_time_to_empty(struct cw_battery *cw_bat) in cw_battery_valid_time_to_empty()
472 struct cw_battery *cw_bat; in cw_battery_get_property()
563 static int cw2015_parse_properties(struct cw_battery *cw_bat) in cw2015_parse_properties()
646 struct cw_battery *cw_bat; in cw_bat_probe()
715 struct cw_battery *cw_bat = i2c_get_clientdata(client); in cw_bat_suspend()
724 struct cw_battery *cw_bat = i2c_get_clientdata(client); in cw_bat_resume()