Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/platform/x86/lenovo/thinkpad_acpi.c charge_behaviour_store() -> tpacpi_battery_set_validate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | what | 2 |
| PARAM_VALUE | 1 | battery | 1-2 |
| PARAM_VALUE | 2 | value | 0 |
| DATA_SOURCE | 1 | battery | r tpacpi_battery_get_id |
| 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 charge_behaviour_store() -> tpacpi_battery_set_validate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | what | 3 |
| PARAM_VALUE | 1 | battery | 1-2 |
| PARAM_VALUE | 2 | value | 0 |
| CAPPED_DATA | 1 | battery | 1 |
| DATA_SOURCE | 1 | battery | r tpacpi_battery_get_id |
| 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 charge_behaviour_store() -> tpacpi_battery_set_validate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | what | 3 |
| PARAM_VALUE | 1 | battery | 1-2 |
| PARAM_VALUE | 2 | value | 0 |
| DATA_SOURCE | 1 | battery | r tpacpi_battery_get_id |
| 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 charge_behaviour_store() -> tpacpi_battery_set_validate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | what | 2 |
| PARAM_VALUE | 1 | battery | 1-2 |
| PARAM_VALUE | 2 | value | 1 |
| CAPPED_DATA | 1 | battery | 1 |
| DATA_SOURCE | 1 | battery | r tpacpi_battery_get_id |
| 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 charge_behaviour_store() -> tpacpi_battery_set_validate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | what | 2 |
| PARAM_VALUE | 1 | battery | 1-2 |
| PARAM_VALUE | 2 | value | 0 |
| DATA_SOURCE | 1 | battery | r tpacpi_battery_get_id |
| 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 charge_behaviour_store() -> tpacpi_battery_set_validate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | what | 3 |
| PARAM_VALUE | 1 | battery | 1-2 |
| PARAM_VALUE | 2 | value | 1 |
| CAPPED_DATA | 1 | battery | 1 |
| DATA_SOURCE | 1 | battery | r tpacpi_battery_get_id |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |