Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/platform/x86/lenovo/thinkpad_acpi.c tpacpi_battery_set_validate() -> tpacpi_battery_set()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | what | 2-3 |
| PARAM_VALUE | 1 | battery | 1-2 |
| PARAM_VALUE | 2 | value | 0-1 |
| CAPPED_DATA | 1 | battery | 1 |
| DATA_SOURCE | 0 | what | $0 |
| DATA_SOURCE | 1 | battery | $1 |
| DATA_SOURCE | 2 | value | $2 |
| HARD_MAX | 0 | what | 3 |
| HARD_MAX | 2 | value | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/platform/x86/lenovo/thinkpad_acpi.c tpacpi_battery_store() -> tpacpi_battery_set()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | what | 0 |
| PARAM_VALUE | 1 | battery | 1-2 |
| PARAM_VALUE | 2 | value | 0-99 |
| CAPPED_DATA | 2 | value | 1 |
| FUZZY_MAX | 1 | battery | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | value | 1-99[c] |
| NO_OVERFLOW_SIMPLE | 2 | value | |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/platform/x86/lenovo/thinkpad_acpi.c tpacpi_battery_store() -> tpacpi_battery_set()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | what | 1 |
| PARAM_VALUE | 1 | battery | 1-2 |
| PARAM_VALUE | 2 | value | 0-99 |
| FUZZY_MAX | 1 | battery | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | value | 1-99 |
| NO_OVERFLOW_SIMPLE | 2 | value | |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |