Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
- drivers/base/firmware_loader/sysfs_upload.c, line 294 (as a function)
- include/linux/firmware.h, line 209 (as a function)
Referenced in 9 files:
- drivers/base/firmware_loader/sysfs_upload.c, line 380
- drivers/cxl/core/memdev.c, line 1154
- drivers/firmware/microchip/mpfs-auto-update.c, line 440
- drivers/fpga/intel-m10-bmc-sec-update.c, line 715
- drivers/greybus/gb-beagleplay.c, line 1175
- drivers/media/i2c/thp7312.c, line 1912
- drivers/net/pse-pd/pd692x0.c, line 1844
- drivers/virt/coco/tdx-host/tdx-host.c, line 197
- lib/test_firmware.c, line 1325
Smatch caller information:
drivers/media/i2c/thp7312.c thp7312_register_flash_mode() -> firmware_upload_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | module | 0 |
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->bus | 0,4096-ptr_max |
| PARAM_VALUE | 1 | parent->class | 0,4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->driver | 0,4096-ptr_max |
| PARAM_VALUE | 2 | name | 3450656610773630976 |
| PARAM_VALUE | 3 | ops | 3515077448804507648 |
| PARAM_VALUE | 4 | dd_handle | 4096-ptr_max |
| BUF_SIZE | 1 | parent | 1616 |
| BUF_SIZE | 2 | name | 17 |
| BUF_SIZE | 4 | dd_handle | 1272 |
| DATA_SOURCE | 4 | dd_handle | $0 |
| STR_LEN | 0 | module | 16 |
| TERMINATED | 2 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
lib/test_firmware.c upload_register_store() -> firmware_upload_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | module | 0 |
| PARAM_VALUE | 2 | name | 4096-ptr_max |
| PARAM_VALUE | 3 | ops | 661535494049734656 |
| PARAM_VALUE | 4 | dd_handle | 4096-ptr_max |
| BUF_SIZE | 4 | dd_handle | 72 |
| DATA_SOURCE | 1 | parent | $0 |
| DATA_SOURCE | 4 | dd_handle | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | global &test_fw_mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/fpga/intel-m10-bmc-sec-update.c m10bmc_sec_probe() -> firmware_upload_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | module | 0 |
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 2 | name | 4096-ptr_max |
| PARAM_VALUE | 3 | ops | 5499449505369960448 |
| PARAM_VALUE | 4 | dd_handle | 4096-ptr_max |
| BUF_SIZE | 1 | parent | 1616 |
| BUF_SIZE | 4 | dd_handle | 48 |
| DATA_SOURCE | 2 | name | r kmemdup_nul |
| DATA_SOURCE | 4 | dd_handle | r devm_kzalloc |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/greybus/gb-beagleplay.c gb_fw_init() -> firmware_upload_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | module | 0 |
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->driver_data | 4096-ptr_max |
| PARAM_VALUE | 2 | name | 5851268461712158720 |
| PARAM_VALUE | 3 | ops | 5872589630762131456 |
| PARAM_VALUE | 4 | dd_handle | 4096-ptr_max |
| BUF_SIZE | 2 | name | 9 |
| BUF_SIZE | 4 | dd_handle | 768 |
| DATA_SOURCE | 4 | dd_handle | $0 |
| STR_LEN | 0 | module | 8 |
| TERMINATED | 2 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/firmware/microchip/mpfs-auto-update.c mpfs_auto_update_probe() -> firmware_upload_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | module | 0 |
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->parent | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->parent->driver_data->consumers.refcount.refs.counter | (-1073741824),0-s32max |
| PARAM_VALUE | 1 | parent->parent->of_node->kobj.release->timer->entry.pprev | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->parent->of_node->kobj.release.work.entry.next->prev | 4096-ptr_max |
| PARAM_VALUE | 2 | name | 5375369705264529408 |
| PARAM_VALUE | 3 | ops | 2959294853791498240 |
| PARAM_VALUE | 4 | dd_handle | 4096-ptr_max |
| BUF_SIZE | 1 | parent | 1616 |
| BUF_SIZE | 2 | name | 17 |
| BUF_SIZE | 4 | dd_handle | 48 |
| DATA_SOURCE | 4 | dd_handle | r devm_kzalloc |
| STR_LEN | 0 | module | 16 |
| TERMINATED | 2 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/cxl/core/memdev.c devm_cxl_setup_fw_upload() -> firmware_upload_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | module | 0 |
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 3 | ops | 3152957236426162176 |
| PARAM_VALUE | 4 | dd_handle | 4096-ptr_max |
| BUF_SIZE | 1 | parent | 1616 |
| BUF_SIZE | 2 | name | 1-s32max |
| BUF_SIZE | 4 | dd_handle | 952,1584 |
| DATA_SOURCE | 4 | dd_handle | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/net/pse-pd/pd692x0.c pd692x0_i2c_probe() -> firmware_upload_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | module | 0 |
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->dma_mem->pfn_base | 0-s64max |
| PARAM_VALUE | 3 | ops | 1337018151347240960 |
| PARAM_VALUE | 4 | dd_handle | 4096-ptr_max |
| BUF_SIZE | 1 | parent | 1616 |
| BUF_SIZE | 2 | name | 1-s32max |
| BUF_SIZE | 4 | dd_handle | 832 |
| DATA_SOURCE | 4 | dd_handle | r devm_kzalloc |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/virt/coco/tdx-host/tdx-host.c seamldr_init() -> firmware_upload_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | module | 7090523972630237184 |
| PARAM_VALUE | 2 | name | 7823154933145710592 |
| PARAM_VALUE | 3 | ops | 3766119274189242368 |
| PARAM_VALUE | 4 | dd_handle | 0 |
| BUF_SIZE | 2 | name | 11 |
| DATA_SOURCE | 1 | parent | $0 |
| STR_LEN | 0 | module | 10 |
| TERMINATED | 2 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |