Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
drivers/hid/hid-quirks.c hid_exists_dquirk() -> hid_match_one_id()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hdev | 4096-ptr_max |
| PARAM_VALUE | 1 | id | 4096-ptr_max |
| BUF_SIZE | 0 | hdev | (-1),9144 |
| BUF_SIZE | 0 | hdev | (-1),9144 |
| BUF_SIZE | 0 | hdev->bpf_rdesc | (-1)-s32max |
| BUF_SIZE | 0 | hdev->dev.parent | (-1),1616 |
| BUF_SIZE | 0 | hdev->devres_group_id | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | hdev->driver_data | (-1),32,104,128,592,848,10880 |
| BUF_SIZE | 0 | hdev->ll_driver | (-1),104 |
| DATA_SOURCE | 0 | hdev | $0 |
| STR_LEN | 0 | hdev->name | (-1),127 |
| STR_LEN | 0 | hdev->phys | (-1)-63 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &dquirks_lock | ||
| HALF_LOCKED2 | 0 | &hdev->driver_input_lock |
drivers/hid/hid-quirks.c hid_modify_dquirk() -> hid_match_one_id()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hdev | 4096-ptr_max |
| PARAM_VALUE | 0 | hdev->bus | 3 |
| PARAM_VALUE | 0 | hdev->group | 0 |
| PARAM_VALUE | 0 | hdev->product | 0-u16max |
| PARAM_VALUE | 0 | hdev->vendor | 0-u16max |
| PARAM_VALUE | 1 | id | 4096-ptr_max |
| BUF_SIZE | 0 | hdev | 9144 |
| DATA_SOURCE | 0 | hdev | r _kzalloc_noprof |
| LOCK2 | global &dquirks_lock |
drivers/hid/hid-core.c hid_match_device() -> hid_match_one_id()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | id | 4096-ptr_max |
| BUF_SIZE | 0 | hdev | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | hdev | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | hdev->bpf_rdesc | (-1)-s32max |
| DATA_SOURCE | 0 | hdev | $0 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | hdev | unit_byte |
| LOCK2 | &hdrv->dyn_lock | ||
| HALF_LOCKED2 | 0 | &hdev->driver_input_lock | |
| TYPE_LOCK | (struct hid_driver)->dyn_lock |
drivers/hid/hid-core.c hid_match_id() -> hid_match_one_id()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | id | 4096-ptr_max |
| PARAM_VALUE | 1 | id->bus | 1-u16max |
| BUF_SIZE | 0 | hdev | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | hdev | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | hdev->bpf_rdesc | (-1)-s32max |
| BUF_SIZE | 0 | hdev->dev.parent | (-1),1616 |
| BUF_SIZE | 0 | hdev->devres_group_id | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | hdev->driver_data | (-1),32,104,128,592,848,10880 |
| BUF_SIZE | 0 | hdev->ll_driver | (-1),104 |
| BUF_SIZE | 1 | id | (-1),72,456,1344,3984,4680,10152 |
| BUF_SIZE | 1 | id | (-1),72,456,1344,3984,4680,10152 |
| DATA_SOURCE | 0 | hdev | $0 |
| DATA_SOURCE | 1 | id | $1 [m] |
| STR_LEN | 0 | hdev->name | (-1),127 |
| STR_LEN | 0 | hdev->phys | (-1)-63 |
| STR_LEN | 0 | hdev->uniq | (-1),63 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | hdev->country | 0-255 |
| USER_DATA | 0 | hdev->product | 0-u16max |
| USER_DATA | 0 | hdev->vendor | 0-u16max |
| USER_DATA | 0 | hdev->version | 0-u16max |
| UNITS | 0 | hdev | unit_byte |
| HALF_LOCKED2 | global &dquirks_lock | ||
| HALF_LOCKED2 | 0 | &hdev->driver_input_lock |