Home
last modified time | relevance | path

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

/linux-6.12.1/include/acpi/
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.12.1/drivers/acpi/
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.12.1/drivers/power/supply/
Dcros_charge-control.c40 struct acpi_battery_hook battery_hook;
236 static int cros_chctl_add_battery(struct power_supply *battery, struct acpi_battery_hook *hook) in cros_chctl_add_battery()
247 static int cros_chctl_remove_battery(struct power_supply *battery, struct acpi_battery_hook *hook) in cros_chctl_remove_battery()
/linux-6.12.1/drivers/platform/x86/dell/
Ddell-wmi-ddv.c106 struct acpi_battery_hook hook;
698 static int dell_wmi_ddv_add_battery(struct power_supply *battery, struct acpi_battery_hook *hook) in dell_wmi_ddv_add_battery()
723 static int dell_wmi_ddv_remove_battery(struct power_supply *battery, struct acpi_battery_hook *hook) in dell_wmi_ddv_remove_battery()
735 struct acpi_battery_hook *hook = data; in dell_wmi_ddv_battery_remove()
Ddell-laptop.c2401 struct acpi_battery_hook *hook) in dell_battery_add()
2411 struct acpi_battery_hook *hook) in dell_battery_remove()
2420 static struct acpi_battery_hook dell_battery_hook = {
/linux-6.12.1/drivers/platform/x86/
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 = {
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 = {
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 = {
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 = {
Dfujitsu-laptop.c221 struct acpi_battery_hook *hook) in fujitsu_battery_add_hook()
228 struct acpi_battery_hook *hook) in fujitsu_battery_remove_hook()
236 static struct acpi_battery_hook battery_hook = {
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 = {
Dasus-wmi.c1433 static int asus_wmi_battery_add(struct power_supply *battery, struct acpi_battery_hook *hook) in asus_wmi_battery_add()
1460 static int asus_wmi_battery_remove(struct power_supply *battery, struct acpi_battery_hook *hook) in asus_wmi_battery_remove()
1467 static struct acpi_battery_hook battery_hook = {
Dthinkpad_acpi.c9930 static int tpacpi_battery_add(struct power_supply *battery, struct acpi_battery_hook *hook) in tpacpi_battery_add()
9941 static int tpacpi_battery_remove(struct power_supply *battery, struct acpi_battery_hook *hook) in tpacpi_battery_remove()
9947 static struct acpi_battery_hook battery_hook = {