Lines Matching full:bat
98 struct power_supply *bat; member
710 if (!hook->remove_battery(battery->bat, hook)) in __battery_hook_unregister()
711 power_supply_changed(battery->bat); in __battery_hook_unregister()
739 if (hook->add_battery(battery->bat, hook)) { in battery_hook_register()
751 power_supply_changed(battery->bat); in battery_hook_register()
779 if (hook_node->add_battery(battery->bat, hook_node)) { in battery_hook_add_battery()
802 hook->remove_battery(battery->bat, hook); in battery_hook_remove_battery()
861 battery->bat = power_supply_register_no_ws(&battery->device->dev, in sysfs_add_battery()
864 if (IS_ERR(battery->bat)) { in sysfs_add_battery()
865 int result = PTR_ERR(battery->bat); in sysfs_add_battery()
867 battery->bat = NULL; in sysfs_add_battery()
871 return device_create_file(&battery->bat->dev, &alarm_attr); in sysfs_add_battery()
877 if (!battery->bat) { in sysfs_remove_battery()
882 device_remove_file(&battery->bat->dev, &alarm_attr); in sysfs_remove_battery()
883 power_supply_unregister(battery->bat); in sysfs_remove_battery()
884 battery->bat = NULL; in sysfs_remove_battery()
999 if (!battery->bat) { in acpi_battery_update()
1021 if (!battery->bat) in acpi_battery_refresh()
1045 old = battery->bat; in acpi_battery_notify()
1062 if (old && battery->bat) in acpi_battery_notify()
1063 power_supply_changed(battery->bat); in acpi_battery_notify()
1079 if (battery->bat) { in battery_notify()