Lines Matching defs:bat
155 static bool spwr_battery_present(struct spwr_battery_device *bat) in spwr_battery_present()
162 static int spwr_battery_load_sta(struct spwr_battery_device *bat) in spwr_battery_load_sta()
169 static int spwr_battery_load_bix(struct spwr_battery_device *bat) in spwr_battery_load_bix()
189 static int spwr_battery_load_bst(struct spwr_battery_device *bat) in spwr_battery_load_bst()
199 static int spwr_battery_set_alarm_unlocked(struct spwr_battery_device *bat, u32 value) in spwr_battery_set_alarm_unlocked()
209 static int spwr_battery_update_bst_unlocked(struct spwr_battery_device *bat, bool cached) in spwr_battery_update_bst_unlocked()
231 static int spwr_battery_update_bst(struct spwr_battery_device *bat, bool cached) in spwr_battery_update_bst()
242 static int spwr_battery_update_bix_unlocked(struct spwr_battery_device *bat) in spwr_battery_update_bix_unlocked()
267 static u32 sprw_battery_get_full_cap_safe(struct spwr_battery_device *bat) in sprw_battery_get_full_cap_safe()
279 static bool spwr_battery_is_full(struct spwr_battery_device *bat) in spwr_battery_is_full()
293 static int spwr_battery_recheck_full(struct spwr_battery_device *bat) in spwr_battery_recheck_full()
332 static int spwr_battery_recheck_status(struct spwr_battery_device *bat) in spwr_battery_recheck_status()
345 struct spwr_battery_device *bat = container_of(nf, struct spwr_battery_device, notif); in spwr_notify_bat() local
395 struct spwr_battery_device *bat; in spwr_battery_update_bst_workfn() local
411 struct spwr_battery_device *bat = power_supply_get_drvdata(psy); in spwr_external_power_changed() local
464 static int spwr_battery_prop_status(struct spwr_battery_device *bat) in spwr_battery_prop_status()
486 static int spwr_battery_prop_technology(struct spwr_battery_device *bat) in spwr_battery_prop_technology()
508 static int spwr_battery_prop_capacity(struct spwr_battery_device *bat) in spwr_battery_prop_capacity()
524 static int spwr_battery_prop_capacity_level(struct spwr_battery_device *bat) in spwr_battery_prop_capacity_level()
546 struct spwr_battery_device *bat = power_supply_get_drvdata(psy); in spwr_battery_get_property() local
671 struct spwr_battery_device *bat = power_supply_get_drvdata(psy); in alarm_show() local
685 struct spwr_battery_device *bat = power_supply_get_drvdata(psy); in alarm_store() local
721 static void spwr_battery_init(struct spwr_battery_device *bat, struct ssam_device *sdev, in spwr_battery_init()
744 static int spwr_battery_register(struct spwr_battery_device *bat) in spwr_battery_register()
820 struct spwr_battery_device *bat; in surface_battery_probe() local
838 struct spwr_battery_device *bat = ssam_device_get_drvdata(sdev); in surface_battery_remove() local