Home
last modified time | relevance | path

Searched refs:acpi_battery_hook (Results 1 – 18 of 18) sorted by relevance

/linux/include/acpi/
H A Dbattery.h14 struct acpi_battery_hook { struct
16 int (*add_battery)(struct power_supply *battery, struct acpi_battery_hook *hook); argument
17 int (*remove_battery)(struct power_supply *battery, struct acpi_battery_hook *hook); argument
21 void battery_hook_register(struct acpi_battery_hook *hook); argument
22 void battery_hook_unregister(struct acpi_battery_hook *hook);
23 int devm_battery_hook_register(struct device *dev, struct acpi_battery_hook *hook);
/linux/drivers/power/supply/
H A Dcros_charge-control.c35 struct acpi_battery_hook battery_hook;
220 static int cros_chctl_add_battery(struct power_supply *battery, struct acpi_battery_hook *hook) in cros_chctl_add_battery()
231 static int cros_chctl_remove_battery(struct power_supply *battery, struct acpi_battery_hook *hook) in cros_chctl_remove_battery()
/linux/drivers/acpi/
H A Dbattery.c760 static void battery_hook_unregister_unlocked(struct acpi_battery_hook *hook) in battery_hook_unregister_unlocked()
777 void battery_hook_unregister(struct acpi_battery_hook *hook) in battery_hook_unregister()
792 void battery_hook_register(struct acpi_battery_hook *hook) in battery_hook_register()
827 struct acpi_battery_hook *hook = data; in devm_battery_hook_unregister()
832 int devm_battery_hook_register(struct device *dev, struct acpi_battery_hook *hook) in devm_battery_hook_register()
847 struct acpi_battery_hook *hook_node, *tmp; in battery_hook_add_battery()
875 struct acpi_battery_hook *hook; in battery_hook_remove_battery()
892 struct acpi_battery_hook *hook; in battery_hook_exit()
893 struct acpi_battery_hook *ptr; in battery_hook_exit()
/linux/drivers/platform/x86/
H A Dayaneo-ec.c55 struct acpi_battery_hook battery_hook;
353 struct acpi_battery_hook *hook) in ayaneo_add_battery()
363 struct acpi_battery_hook *hook) in ayaneo_remove_battery()
H A Doxpec.c627 static int oxp_add_battery(struct power_supply *battery, struct acpi_battery_hook *hook) in oxp_add_battery()
632 static int oxp_remove_battery(struct power_supply *battery, struct acpi_battery_hook *hook) in oxp_remove_battery()
638 static struct acpi_battery_hook battery_hook = {
H A Dsystem76_acpi.c265 static int system76_battery_add(struct power_supply *battery, struct acpi_battery_hook *hook) in system76_battery_add()
277 static int system76_battery_remove(struct power_supply *battery, struct acpi_battery_hook *hook) in system76_battery_remove()
283 static struct acpi_battery_hook system76_battery_hook = {
H A Dmsi-ec.c1353 struct acpi_battery_hook *hook) in msi_battery_add()
1359 struct acpi_battery_hook *hook) in msi_battery_remove()
1365 static struct acpi_battery_hook battery_hook = {
H A Dhuawei-wmi.c476 static int huawei_wmi_battery_add(struct power_supply *battery, struct acpi_battery_hook *hook) in huawei_wmi_battery_add()
491 static int huawei_wmi_battery_remove(struct power_supply *battery, struct acpi_battery_hook *hook) in huawei_wmi_battery_remove()
499 static struct acpi_battery_hook huawei_wmi_battery_hook = {
H A Dlg-laptop.c567 static int lg_battery_add(struct power_supply *battery, struct acpi_battery_hook *hook) in lg_battery_add()
576 static int lg_battery_remove(struct power_supply *battery, struct acpi_battery_hook *hook) in lg_battery_remove()
583 static struct acpi_battery_hook battery_hook = {
H A Dfujitsu-laptop.c227 struct acpi_battery_hook *hook) in fujitsu_battery_add_hook()
234 struct acpi_battery_hook *hook) in fujitsu_battery_remove_hook()
242 static struct acpi_battery_hook battery_hook = {
H A Dsamsung-galaxybook.c58 struct acpi_battery_hook battery_hook;
521 static int galaxybook_battery_add(struct power_supply *battery, struct acpi_battery_hook *hook) in galaxybook_battery_add()
530 static int galaxybook_battery_remove(struct power_supply *battery, struct acpi_battery_hook *hook) in galaxybook_battery_remove()
H A Dsamsung-laptop.c353 struct acpi_battery_hook battery_hook;
844 static int samsung_battery_add(struct power_supply *battery, struct acpi_battery_hook *hook) in samsung_battery_add()
853 struct acpi_battery_hook *hook) in samsung_battery_remove()
H A Dtoshiba_acpi.c3124 static int toshiba_acpi_battery_add(struct power_supply *battery, struct acpi_battery_hook *hook) in toshiba_acpi_battery_add()
3137 static int toshiba_acpi_battery_remove(struct power_supply *battery, struct acpi_battery_hook *hook) in toshiba_acpi_battery_remove()
3143 static struct acpi_battery_hook battery_hook = {
H A Dasus-wmi.c1619 static int asus_wmi_battery_add(struct power_supply *battery, struct acpi_battery_hook *hook) in asus_wmi_battery_add()
1666 static int asus_wmi_battery_remove(struct power_supply *battery, struct acpi_battery_hook *hook) in asus_wmi_battery_remove()
1673 static struct acpi_battery_hook battery_hook = {
/linux/drivers/platform/x86/dell/
H A Ddell-wmi-ddv.c140 struct acpi_battery_hook hook;
921 static int dell_wmi_ddv_add_battery(struct power_supply *battery, struct acpi_battery_hook *hook) in dell_wmi_ddv_add_battery()
946 static int dell_wmi_ddv_remove_battery(struct power_supply *battery, struct acpi_battery_hook *hook) in dell_wmi_ddv_remove_battery()
/linux/drivers/platform/x86/lenovo/
H A Dideapad-laptop.c184 struct acpi_battery_hook battery_hook;
2148 static int ideapad_battery_add(struct power_supply *battery, struct acpi_battery_hook *hook) in ideapad_battery_add()
2157 struct acpi_battery_hook *hook) in ideapad_battery_remove()
H A Dthinkpad_acpi.c9976 static int tpacpi_battery_add(struct power_supply *battery, struct acpi_battery_hook *hook) in tpacpi_battery_add()
9987 static int tpacpi_battery_remove(struct power_supply *battery, struct acpi_battery_hook *hook) in tpacpi_battery_remove()
9993 static struct acpi_battery_hook battery_hook = {
/linux/drivers/platform/x86/uniwill/
H A Duniwill-acpi.c384 struct acpi_battery_hook hook;
2068 static int uniwill_add_battery(struct power_supply *battery, struct acpi_battery_hook *hook) in uniwill_add_battery()
2098 static int uniwill_remove_battery(struct power_supply *battery, struct acpi_battery_hook *hook) in uniwill_remove_battery()