Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 9 files:
- drivers/acpi/battery.c, line 809
- drivers/platform/x86/ayaneo-ec.c, line 496
- drivers/platform/x86/dell/dell-wmi-ddv.c, line 975
- drivers/platform/x86/lenovo/ideapad-laptop.c, line 2200
- drivers/platform/x86/oxpec.c, line 952
- drivers/platform/x86/samsung-galaxybook.c, line 552
- drivers/platform/x86/samsung-laptop.c, line 1145
- drivers/platform/x86/uniwill/uniwill-acpi.c, line 2168
- drivers/power/supply/cros_charge-control.c, line 318
Smatch caller information:
drivers/platform/x86/oxpec.c oxp_platform_probe() -> devm_battery_hook_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | hook | 2982330831833247744 |
| BUF_SIZE | 0 | dev | 1616 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/platform/x86/lenovo/ideapad-laptop.c ideapad_check_features() -> devm_battery_hook_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->driver_data | 4096-ptr_max |
| PARAM_VALUE | 1 | hook | 4096-ptr_max |
| PARAM_VALUE | 1 | hook->add_battery | 8193209939915984896 |
| PARAM_VALUE | 1 | hook->name | 8948500826732687360 |
| PARAM_VALUE | 1 | hook->remove_battery | 428352607031296 |
| TERMINATED | 1 | hook->name | 1 |
| MEM_ZERO | 1 | hook | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/platform/x86/samsung-laptop.c samsung_battery_hook_init() -> devm_battery_hook_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->driver_data | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->kobj.sd | 1-u64max |
| PARAM_VALUE | 1 | hook | 4096-ptr_max |
| PARAM_VALUE | 1 | hook->add_battery | 95839084174475264 |
| PARAM_VALUE | 1 | hook->name | 7882554303602499584 |
| PARAM_VALUE | 1 | hook->remove_battery | 2901000953752014848 |
| TERMINATED | 1 | hook->name | 1 |
drivers/platform/x86/uniwill/uniwill-acpi.c uniwill_battery_init() -> devm_battery_hook_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 0 |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | hook | 4096-ptr_max |
| PARAM_VALUE | 1 | hook->add_battery | 4999403679185395712 |
| PARAM_VALUE | 1 | hook->name | 7667365683088519168 |
| PARAM_VALUE | 1 | hook->remove_battery | 6700919047685574656 |
| TERMINATED | 1 | hook->name | 1 |
| MEM_ZERO | 1 | hook | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/platform/x86/samsung-galaxybook.c galaxybook_battery_threshold_init() -> devm_battery_hook_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 16,4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | hook | 4096-ptr_max |
| PARAM_VALUE | 1 | hook->add_battery | 804458522230910976 |
| PARAM_VALUE | 1 | hook->name | 8139628511150514176 |
| PARAM_VALUE | 1 | hook->remove_battery | 1910274968065015808 |
| TERMINATED | 1 | hook->name | 1 |
| MEM_ZERO | 1 | hook | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/power/supply/cros_charge-control.c cros_chctl_probe() -> devm_battery_hook_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->parent | 4096-ptr_max |
| PARAM_VALUE | 1 | hook | 4096-ptr_max |
| PARAM_VALUE | 1 | hook->add_battery | 7577248727513055232 |
| PARAM_VALUE | 1 | hook->remove_battery | 737855822967799808 |
| BUF_SIZE | 0 | dev | 1616 |
| MEM_ZERO | 1 | hook | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | _T->lock |
drivers/platform/x86/ayaneo-ec.c ayaneo_ec_probe() -> devm_battery_hook_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | hook | 4096-ptr_max |
| PARAM_VALUE | 1 | hook->add_battery | 1133844449554178048 |
| PARAM_VALUE | 1 | hook->name | 4928758263536168960 |
| PARAM_VALUE | 1 | hook->remove_battery | 1209910526207336448 |
| TERMINATED | 1 | hook->name | 1 |
| MEM_ZERO | 1 | hook | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/platform/x86/dell/dell-wmi-ddv.c dell_wmi_ddv_battery_add() -> devm_battery_hook_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->driver_data | 4096-ptr_max |
| PARAM_VALUE | 1 | hook | 4096-ptr_max |
| PARAM_VALUE | 1 | hook->add_battery | 1532418334375608320 |
| PARAM_VALUE | 1 | hook->name | 9150654770940002304 |
| PARAM_VALUE | 1 | hook->remove_battery | 8350015114111393792 |
| TERMINATED | 1 | hook->name | 1 |
| MEM_ZERO | 1 | hook | |
| RX_PATH | |||
| TASK_NOT_RUNNING |