Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/hwmon/corsair-psu.c corsairpsu_fwinfo() -> corsairpsu_usb_cmd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | priv | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->cmd_buffer | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->hdev | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->hdev->batteries.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->hdev->bpf_rdesc | 1-u64max |
| PARAM_VALUE | 0 | priv->hdev->collection | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->hdev->collection_size | 16 |
| PARAM_VALUE | 0 | priv->hdev->dev.devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->hdev->devres_group_id | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->hdev->driver | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->hdev->driver_data->thc_hw->thc_regmap->cache_dirty | 0-1 |
| PARAM_VALUE | 0 | priv->hdev->hiddev | 0,4096-ptr_max |
| PARAM_VALUE | 0 | priv->hdev->hidraw | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->hdev->ll_driver | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->hdev->ll_open_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | priv->hdev->rdesc | 1-u64max |
| PARAM_VALUE | 0 | priv->vendor | 0 |
| PARAM_VALUE | 0 | priv->wait_completion.done | 0-4294967293,u32max |
| PARAM_VALUE | 0 | priv->wait_completion.wait.lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | priv->wait_completion.wait.lock.owner | (-1) |
| PARAM_VALUE | 0 | priv->wait_completion.wait.lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | priv->wait_completion.wait.task_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->wait_completion.wait.task_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->wait_completion.wait.task_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->wait_completion.wait.task_list.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->wait_completion.wait.task_list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | *priv->hdev->driver_data->report_buf | 0-255 |
| PARAM_VALUE | 1 | p0 | 3 |
| PARAM_VALUE | 2 | p1 | 153 |
| PARAM_VALUE | 3 | p2 | 0 |
| PARAM_VALUE | 4 | data | 0 |
| BUF_SIZE | 0 | priv | 272 |
| BUF_SIZE | 0 | priv->cmd_buffer | 64 |
| BUF_SIZE | 4 | data | 24 |
| DATA_SOURCE | 0 | priv | $0 |
| TERMINATED | 0 | priv->cmd_buffer->node.name | 1 |
| MEM_ZERO | 0 | priv | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/hwmon/corsair-psu.c corsairpsu_fwinfo() -> corsairpsu_usb_cmd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | priv | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->cmd_buffer | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->hdev | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->hdev->batteries.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->hdev->bpf_rdesc | 1-u64max |
| PARAM_VALUE | 0 | priv->hdev->collection | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->hdev->collection_size | 16 |
| PARAM_VALUE | 0 | priv->hdev->dev.devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->hdev->devres_group_id | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->hdev->driver | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->hdev->driver_data->thc_hw->thc_bus_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | priv->hdev->driver_data->thc_hw->thc_regmap->cache_dirty | 0-1 |
| PARAM_VALUE | 0 | priv->hdev->hiddev | 0,4096-ptr_max |
| PARAM_VALUE | 0 | priv->hdev->hidraw | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->hdev->ll_driver | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->hdev->ll_open_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | priv->hdev->rdesc | 1-u64max |
| PARAM_VALUE | 0 | priv->product | 0 |
| PARAM_VALUE | 0 | priv->vendor | 0 |
| PARAM_VALUE | 0 | priv->wait_completion.done | 0-4294967293,u32max |
| PARAM_VALUE | 0 | priv->wait_completion.wait.lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | priv->wait_completion.wait.lock.owner | (-1) |
| PARAM_VALUE | 0 | priv->wait_completion.wait.lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | priv->wait_completion.wait.task_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->wait_completion.wait.task_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->wait_completion.wait.task_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->wait_completion.wait.task_list.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->wait_completion.wait.task_list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | p0 | 3 |
| PARAM_VALUE | 2 | p1 | 154 |
| PARAM_VALUE | 3 | p2 | 0 |
| PARAM_VALUE | 4 | data | 0 |
| BUF_SIZE | 0 | priv | 272 |
| BUF_SIZE | 0 | priv->cmd_buffer | 64 |
| BUF_SIZE | 4 | data | 24 |
| DATA_SOURCE | 0 | priv | $0 |
| TERMINATED | 0 | priv->cmd_buffer->node.name | 1 |
| MEM_ZERO | 0 | priv | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/hwmon/corsair-psu.c corsairpsu_init() -> corsairpsu_usb_cmd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | p0 | 254 |
| PARAM_VALUE | 2 | p1 | 3 |
| PARAM_VALUE | 3 | p2 | 0 |
| PARAM_VALUE | 4 | data | 0 |
| BUF_SIZE | 0 | priv | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | priv | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | priv->cmd_buffer | (-1),64 |
| DATA_SOURCE | 0 | priv | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | priv | unit_byte |
drivers/hwmon/corsair-psu.c corsairpsu_request() -> corsairpsu_usb_cmd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | *priv->product | 0-255 |
| PARAM_VALUE | 0 | *priv->vendor | 0-255 |
| PARAM_VALUE | 1 | p0 | 2 |
| PARAM_VALUE | 2 | p1 | 0 |
| PARAM_VALUE | 4 | data | 0 |
| BUF_SIZE | 0 | priv | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | priv | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | priv->cmd_buffer | (-1),64 |
| DATA_SOURCE | 0 | priv | $0 |
| DATA_SOURCE | 3 | p2 | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &seqf->lock | ||
| HALF_LOCKED2 | _T->lock |
drivers/hwmon/corsair-psu.c corsairpsu_request() -> corsairpsu_usb_cmd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | *priv->product | 0-255 |
| PARAM_VALUE | 0 | *priv->vendor | 0-255 |
| PARAM_VALUE | 1 | p0 | 3 |
| PARAM_VALUE | 2 | p1 | 59,64,68,70,79,136-137,139-142,144,150,209-210,216,238,240 |
| PARAM_VALUE | 3 | p2 | 0 |
| PARAM_VALUE | 4 | data | 8425992100787900416 |
| BUF_SIZE | 0 | priv | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | priv | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | priv->cmd_buffer | (-1),64 |
| BUF_SIZE | 4 | data | 24 |
| BUF_SIZE | 4 | data | 24 |
| DATA_SOURCE | 0 | priv | $0 |
| DATA_SOURCE | 2 | p1 | $1 |
| DATA_SOURCE | 4 | data | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &seqf->lock | ||
| HALF_LOCKED2 | _T->lock |