Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
drivers/hid/hid-input.c hid_test_input_update_battery_charge_status() -> hidinput_update_battery_charge_status()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bat | 16,4096-ptr_max |
| PARAM_VALUE | 1 | usage | 852041 |
| PARAM_VALUE | 2 | value | 0 |
| BUF_SIZE | 0 | bat | 80 |
| DATA_SOURCE | 0 | bat | r kunit_kzalloc |
| MEM_ZERO | 0 | bat |
drivers/hid/hid-input.c hid_test_input_update_battery_charge_status() -> hidinput_update_battery_charge_status()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bat | 4096-ptr_max |
| PARAM_VALUE | 0 | bat->charge_status | 0 |
| PARAM_VALUE | 1 | usage | 8716356 |
| PARAM_VALUE | 2 | value | 0 |
| BUF_SIZE | 0 | bat | 80 |
| DATA_SOURCE | 0 | bat | r kunit_kzalloc |
| MEM_ZERO | 0 | bat |
drivers/hid/hid-input.c hid_test_input_update_battery_charge_status() -> hidinput_update_battery_charge_status()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bat | 4096-ptr_max |
| PARAM_VALUE | 0 | bat->charge_status | 2 |
| PARAM_VALUE | 1 | usage | 8716356 |
| PARAM_VALUE | 2 | value | 1 |
| BUF_SIZE | 0 | bat | 80 |
| DATA_SOURCE | 0 | bat | r kunit_kzalloc |
| MEM_ZERO | 0 | bat |
drivers/hid/hid-input.c hidinput_update_battery() -> hidinput_update_battery_charge_status()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bat | 4096-ptr_max |
| CAPPED_DATA | 0 | bat->report_id | 1 |
| DATA_SOURCE | 0 | bat | r hidinput_find_battery |
| DATA_SOURCE | 1 | usage | $2 |
| DATA_SOURCE | 2 | value | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->dev.driver_data->dyn_callback_lock | ||
| HALF_LOCKED2 | &dev->dev.driver_data->lock | ||
| HALF_LOCKED2 | &dev->dev.driver_data->mutex | ||
| HALF_LOCKED2 | &dev->driver_data->mutex | ||
| HALF_LOCKED2 | &dev->driver_input_lock | ||
| HALF_LOCKED2 | &dev->ll_open_lock |