Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 11 files:
- drivers/platform/x86/ayaneo-ec.c, line 358
- drivers/platform/x86/dell/dell-wmi-ddv.c, line 935
- drivers/platform/x86/lenovo/ideapad-laptop.c, line 2152
- drivers/platform/x86/lenovo/wmi-other.c, line 865
- drivers/platform/x86/oxpec.c, line 622
- drivers/platform/x86/samsung-galaxybook.c, line 526
- drivers/platform/x86/samsung-laptop.c, line 848
- drivers/platform/x86/uniwill/uniwill-acpi.c
- drivers/power/supply/cros_charge-control.c, line 228
- drivers/power/supply/power_supply_core.c, line 1603
- drivers/power/supply/test_power.c, line 332
Smatch caller information:
drivers/platform/x86/oxpec.c oxp_add_battery() -> power_supply_register_extension()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ext | 2956883036612026368 |
| PARAM_VALUE | 3 | data | 0 |
| BUF_SIZE | 0 | psy | (-1),2248 |
| BUF_SIZE | 0 | psy | (-1),2248 |
| DATA_SOURCE | 0 | psy | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &hook_mutex | ||
| HALF_LOCKED2 | _T->lock |
drivers/platform/x86/lenovo/ideapad-laptop.c ideapad_battery_add() -> power_supply_register_extension()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | dev | 4096-ptr_max |
| PARAM_VALUE | 3 | data | 4096-ptr_max |
| BUF_SIZE | 0 | psy | (-1),2248 |
| BUF_SIZE | 0 | psy | (-1),2248 |
| DATA_SOURCE | 0 | psy | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &hook_mutex | ||
| HALF_LOCKED2 | _T->lock |
drivers/platform/x86/samsung-laptop.c samsung_battery_add() -> power_supply_register_extension()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ext | 6426408200003756032 |
| PARAM_VALUE | 2 | dev | 4096-ptr_max |
| PARAM_VALUE | 3 | data | 4096-ptr_max |
| BUF_SIZE | 0 | psy | (-1),2248 |
| BUF_SIZE | 0 | psy | (-1),2248 |
| DATA_SOURCE | 0 | psy | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &hook_mutex | ||
| HALF_LOCKED2 | _T->lock |
drivers/platform/x86/uniwill/uniwill-acpi.c uniwill_add_battery() -> power_supply_register_extension()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ext | 4034674879183585280 |
| PARAM_VALUE | 3 | data | 4096-ptr_max |
| BUF_SIZE | 0 | psy | (-1),2248 |
| BUF_SIZE | 0 | psy | (-1),2248 |
| DATA_SOURCE | 0 | psy | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &hook_mutex | ||
| HALF_LOCKED2 | _T->lock |
drivers/platform/x86/uniwill/uniwill-acpi.c uniwill_add_battery() -> power_supply_register_extension()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ext | 4608321792447541248 |
| PARAM_VALUE | 3 | data | 4096-ptr_max |
| BUF_SIZE | 0 | psy | (-1),2248 |
| BUF_SIZE | 0 | psy | (-1),2248 |
| DATA_SOURCE | 0 | psy | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &hook_mutex | ||
| HALF_LOCKED2 | _T->lock |
drivers/platform/x86/lenovo/wmi-other.c lwmi_add_battery() -> power_supply_register_extension()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 3 | data | 4096-ptr_max |
| BUF_SIZE | 0 | psy | (-1),2248 |
| BUF_SIZE | 0 | psy | (-1),2248 |
| DATA_SOURCE | 0 | psy | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &hook_mutex | ||
| HALF_LOCKED2 | _T->lock |
drivers/platform/x86/samsung-galaxybook.c galaxybook_battery_add() -> power_supply_register_extension()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ext | 119553250940227584 |
| PARAM_VALUE | 2 | dev | 4096-ptr_max |
| PARAM_VALUE | 3 | data | 4096-ptr_max |
| BUF_SIZE | 0 | psy | (-1),2248 |
| BUF_SIZE | 0 | psy | (-1),2248 |
| DATA_SOURCE | 0 | psy | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &hook_mutex | ||
| HALF_LOCKED2 | _T->lock |
drivers/power/supply/cros_charge-control.c cros_chctl_add_battery() -> power_supply_register_extension()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 3 | data | 4096-ptr_max |
| BUF_SIZE | 0 | psy | (-1),2248 |
| BUF_SIZE | 0 | psy | (-1),2248 |
| DATA_SOURCE | 0 | psy | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &hook_mutex | ||
| HALF_LOCKED2 | _T->lock |
drivers/power/supply/test_power.c test_power_configure_battery_extension() -> power_supply_register_extension()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ext | 1597796001004142592 |
| PARAM_VALUE | 2 | dev | 4096-ptr_max |
| PARAM_VALUE | 3 | data | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/platform/x86/ayaneo-ec.c ayaneo_add_battery() -> power_supply_register_extension()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ext | 4246067620118630400 |
| PARAM_VALUE | 2 | dev | 4096-ptr_max |
| PARAM_VALUE | 3 | data | 0 |
| BUF_SIZE | 0 | psy | (-1),2248 |
| BUF_SIZE | 0 | psy | (-1),2248 |
| DATA_SOURCE | 0 | psy | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &hook_mutex | ||
| HALF_LOCKED2 | _T->lock |
drivers/platform/x86/dell/dell-wmi-ddv.c dell_wmi_ddv_add_battery() -> power_supply_register_extension()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | psy->dev.kobj.sd->__parent | 0 |
| PARAM_VALUE | 0 | psy->dev.kobj.sd->priv | 4096-ptr_max |
| PARAM_VALUE | 1 | ext | 4240906271469617152 |
| PARAM_VALUE | 3 | data | 4096-ptr_max |
| BUF_SIZE | 0 | psy | (-1),2248 |
| BUF_SIZE | 0 | psy | (-1),2248 |
| DATA_SOURCE | 0 | psy | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &hook_mutex | ||
| HALF_LOCKED2 | _T->lock |