Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
- drivers/base/firmware_loader/main.c, line 146
- drivers/base/firmware_loader/sysfs.c, line 226
- drivers/base/firmware_loader/sysfs_upload.c
Smatch caller information:
drivers/base/firmware_loader/sysfs.c firmware_loading_store() -> fw_state_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fw_priv | 4096-ptr_max |
| PARAM_VALUE | 0 | fw_priv->fw_st.completion.done | u32max |
| PARAM_VALUE | 0 | fw_priv->fw_st.status | 1-3 |
| PARAM_VALUE | 0 | fw_priv->pending_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | fw_priv->pending_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | fw_priv->pending_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | fw_priv->pending_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | fw_priv->pending_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | fw_priv->pending_list.prev->prev | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | global &fw_lock | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/base/firmware_loader/main.c __allocate_fw_priv() -> fw_state_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fw_priv | 4096-ptr_max |
| PARAM_VALUE | 0 | fw_priv->fw_name | 4096-ptr_max |
| PARAM_VALUE | 0 | fw_priv->fwc | 6790809598455861248 |
| PARAM_VALUE | 0 | fw_priv->opt_flags | 128-u32max |
| PARAM_VALUE | 0 | fw_priv->ref.refcount.refs.counter | 1 |
| BUF_SIZE | 0 | fw_priv | 224 |
| BUF_SIZE | 0 | fw_priv->data | (-1)-s32max |
| DATA_SOURCE | 0 | fw_priv | r _kzalloc_noprof |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &fwc->lock | ||
| TYPE_LOCK | (struct firmware_cache)->lock |
drivers/base/firmware_loader/sysfs_upload.c fw_upload_main() -> fw_state_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fw_priv | 4096-ptr_max |
| PARAM_VALUE | 0 | fw_priv->pages | 0 |
| NOCHECK_CALL | |||
| LOCK2 | global &fw_lock | ||
| HALF_LOCKED2 | &pool->lock |
drivers/base/firmware_loader/sysfs_upload.c fw_upload_start() -> fw_state_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fw_priv | 4096-ptr_max |
| PARAM_VALUE | 0 | fw_priv->fw_st.completion.done | u32max |
| PARAM_VALUE | 0 | fw_priv->fw_st.status | 1-3 |
| PARAM_VALUE | 0 | fw_priv->pages | 0 |
| PARAM_VALUE | 0 | fw_priv->pending_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | fw_priv->pending_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | fw_priv->pending_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | fw_priv->pending_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | fw_priv->pending_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | fw_priv->pending_list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | fw_priv->size | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | global &fw_lock | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |