Home
last modified time | relevance | path

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

/linux-6.15/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-6.15/drivers/power/supply/
H A Dcros_charge-control.c36 struct acpi_battery_hook battery_hook;
230 static int cros_chctl_add_battery(struct power_supply *battery, struct acpi_battery_hook *hook) in cros_chctl_add_battery()
241 static int cros_chctl_remove_battery(struct power_supply *battery, struct acpi_battery_hook *hook) in cros_chctl_remove_battery()
/linux-6.15/drivers/acpi/
H A Dbattery.c706 static void battery_hook_unregister_unlocked(struct acpi_battery_hook *hook) in battery_hook_unregister_unlocked()
723 void battery_hook_unregister(struct acpi_battery_hook *hook) in battery_hook_unregister()
738 void battery_hook_register(struct acpi_battery_hook *hook) in battery_hook_register()
773 struct acpi_battery_hook *hook = data; in devm_battery_hook_unregister()
778 int devm_battery_hook_register(struct device *dev, struct acpi_battery_hook *hook) in devm_battery_hook_register()
793 struct acpi_battery_hook *hook_node, *tmp; in battery_hook_add_battery()
821 struct acpi_battery_hook *hook; in battery_hook_remove_battery()
838 struct acpi_battery_hook *hook; in battery_hook_exit()
839 struct acpi_battery_hook *ptr; in battery_hook_exit()
/linux-6.15/drivers/platform/x86/
H A Dsystem76_acpi.c264 static int system76_battery_add(struct power_supply *battery, struct acpi_battery_hook *hook) in system76_battery_add()
276 static int system76_battery_remove(struct power_supply *battery, struct acpi_battery_hook *hook) in system76_battery_remove()
282 static struct acpi_battery_hook system76_battery_hook = {
H A Dhuawei-wmi.c471 static int huawei_wmi_battery_add(struct power_supply *battery, struct acpi_battery_hook *hook) in huawei_wmi_battery_add()
486 static int huawei_wmi_battery_remove(struct power_supply *battery, struct acpi_battery_hook *hook) in huawei_wmi_battery_remove()
494 static struct acpi_battery_hook huawei_wmi_battery_hook = {
H A Dlg-laptop.c537 static int lg_battery_add(struct power_supply *battery, struct acpi_battery_hook *hook) in lg_battery_add()
546 static int lg_battery_remove(struct power_supply *battery, struct acpi_battery_hook *hook) in lg_battery_remove()
553 static struct acpi_battery_hook battery_hook = {
H A Dmsi-ec.c1269 struct acpi_battery_hook *hook) in msi_battery_add()
1275 struct acpi_battery_hook *hook) in msi_battery_remove()
1281 static struct acpi_battery_hook battery_hook = {
H A Dfujitsu-laptop.c225 struct acpi_battery_hook *hook) in fujitsu_battery_add_hook()
232 struct acpi_battery_hook *hook) in fujitsu_battery_remove_hook()
240 static struct acpi_battery_hook battery_hook = {
H A Dsamsung-galaxybook.c58 struct acpi_battery_hook battery_hook;
515 static int galaxybook_battery_add(struct power_supply *battery, struct acpi_battery_hook *hook) in galaxybook_battery_add()
524 static int galaxybook_battery_remove(struct power_supply *battery, struct acpi_battery_hook *hook) in galaxybook_battery_remove()
H A Dtoshiba_acpi.c3123 static int toshiba_acpi_battery_add(struct power_supply *battery, struct acpi_battery_hook *hook) in toshiba_acpi_battery_add()
3136 static int toshiba_acpi_battery_remove(struct power_supply *battery, struct acpi_battery_hook *hook) in toshiba_acpi_battery_remove()
3142 static struct acpi_battery_hook battery_hook = {
H A Dasus-wmi.c1434 static int asus_wmi_battery_add(struct power_supply *battery, struct acpi_battery_hook *hook) in asus_wmi_battery_add()
1461 static int asus_wmi_battery_remove(struct power_supply *battery, struct acpi_battery_hook *hook) in asus_wmi_battery_remove()
1468 static struct acpi_battery_hook battery_hook = {
H A Dthinkpad_acpi.c9958 static int tpacpi_battery_add(struct power_supply *battery, struct acpi_battery_hook *hook) in tpacpi_battery_add()
9969 static int tpacpi_battery_remove(struct power_supply *battery, struct acpi_battery_hook *hook) in tpacpi_battery_remove()
9975 static struct acpi_battery_hook battery_hook = {
/linux-6.15/drivers/platform/x86/dell/
H A Ddell-wmi-ddv.c106 struct acpi_battery_hook hook;
719 static int dell_wmi_ddv_add_battery(struct power_supply *battery, struct acpi_battery_hook *hook) in dell_wmi_ddv_add_battery()
745 static int dell_wmi_ddv_remove_battery(struct power_supply *battery, struct acpi_battery_hook *hook) in dell_wmi_ddv_remove_battery()
H A Ddell-laptop.c2397 struct acpi_battery_hook *hook) in dell_battery_add()
2407 struct acpi_battery_hook *hook) in dell_battery_remove()
2416 static struct acpi_battery_hook dell_battery_hook = {