Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 13 files:
- drivers/bus/stm32_dbg_bus.c, line 94
- drivers/char/hw_random/optee-rng.c
- drivers/char/tpm/tpm_ftpm_tee.c, line 102
- drivers/firmware/arm_scmi/transports/optee.c
- drivers/firmware/broadcom/tee_bnxt_fw.c
- drivers/firmware/efi/stmm/tee_stmm_efi.c, line 88
- drivers/firmware/qcom/qcom_pas_tee.c
- drivers/nvmem/stm32-bsec-optee-ta.c
- drivers/platform/x86/amd/pmf/tee-if.c
- drivers/rtc/rtc-optee.c
- drivers/tee/optee/device.c, line 40
- drivers/tee/tee_core.c, line 1404
- security/keys/trusted-keys/trusted_tee.c
Smatch caller information:
security/keys/trusted-keys/trusted_tee.c trusted_tee_get_random() -> tee_client_invoke_func()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->data | 0 |
| PARAM_VALUE | 0 | ctx->data->qtee_objects_idr.idr_rt.xa_flags | 0,33554432-4294967295 |
| PARAM_VALUE | 0 | ctx->data->reqs_idr.idr_rt.xa_flags | 0,33554432-4294967295 |
| PARAM_VALUE | 0 | ctx->teedev | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->teedev->c_no_users.done | 0-4294967295 |
| PARAM_VALUE | 0 | ctx->teedev->c_no_users.wait.lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ctx->teedev->c_no_users.wait.lock.owner | (-1) |
| PARAM_VALUE | 0 | ctx->teedev->c_no_users.wait.lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 1 | arg | 6458348800600612864 |
| PARAM_VALUE | 1 | arg->func | 0 |
| PARAM_VALUE | 1 | arg->num_params | 4 |
| PARAM_VALUE | 1 | arg->session | 0 |
| PARAM_VALUE | 2 | param | 4096-ptr_max |
| BUF_SIZE | 2 | param | 128 |
| CAPPED_DATA | 0 | ctx | 1 |
| MEM_ZERO | 1 | arg |
security/keys/trusted-keys/trusted_tee.c trusted_tee_seal() -> tee_client_invoke_func()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->data | 0 |
| PARAM_VALUE | 0 | ctx->data->qtee_objects_idr.idr_rt.xa_flags | 0,33554432-4294967295 |
| PARAM_VALUE | 0 | ctx->data->reqs_idr.idr_rt.xa_flags | 0,33554432-4294967295 |
| PARAM_VALUE | 0 | ctx->teedev | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->teedev->c_no_users.done | 0-4294967295 |
| PARAM_VALUE | 0 | ctx->teedev->c_no_users.wait.lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ctx->teedev->c_no_users.wait.lock.owner | (-1) |
| PARAM_VALUE | 0 | ctx->teedev->c_no_users.wait.lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 1 | arg | 1921977520575197184 |
| PARAM_VALUE | 1 | arg->func | 1 |
| PARAM_VALUE | 1 | arg->num_params | 4 |
| PARAM_VALUE | 1 | arg->session | 0 |
| PARAM_VALUE | 2 | param | 4096-ptr_max |
| BUF_SIZE | 2 | param | 128 |
| CAPPED_DATA | 0 | ctx | 1 |
| MEM_ZERO | 1 | arg |
security/keys/trusted-keys/trusted_tee.c trusted_tee_unseal() -> tee_client_invoke_func()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->data | 0 |
| PARAM_VALUE | 0 | ctx->data->qtee_objects_idr.idr_rt.xa_flags | 0,33554432-4294967295 |
| PARAM_VALUE | 0 | ctx->data->reqs_idr.idr_rt.xa_flags | 0,33554432-4294967295 |
| PARAM_VALUE | 0 | ctx->teedev | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->teedev->c_no_users.done | 0-4294967295 |
| PARAM_VALUE | 0 | ctx->teedev->c_no_users.wait.lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ctx->teedev->c_no_users.wait.lock.owner | (-1) |
| PARAM_VALUE | 0 | ctx->teedev->c_no_users.wait.lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 1 | arg | 5695559661709459456 |
| PARAM_VALUE | 1 | arg->func | 2 |
| PARAM_VALUE | 1 | arg->num_params | 4 |
| PARAM_VALUE | 1 | arg->session | 0 |
| PARAM_VALUE | 2 | param | 4096-ptr_max |
| BUF_SIZE | 2 | param | 128 |
| CAPPED_DATA | 0 | ctx | 1 |
| MEM_ZERO | 1 | arg |
drivers/firmware/qcom/qcom_pas_tee.c __qcom_pas_tee_auth_and_reset() -> tee_client_invoke_func()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | arg | 7587058517863038976 |
| PARAM_VALUE | 1 | arg->func | 6 |
| PARAM_VALUE | 1 | arg->num_params | 4 |
| PARAM_VALUE | 1 | arg->ret | 0 |
| PARAM_VALUE | 1 | arg->ret_origin | 0 |
| PARAM_VALUE | 2 | param | 4096-ptr_max |
| BUF_SIZE | 2 | param | 128 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/firmware/qcom/qcom_pas_tee.c qcom_pas_tee_get_rsc_table() -> tee_client_invoke_func()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | arg | 3846369849080143872 |
| PARAM_VALUE | 1 | arg->func | 5 |
| PARAM_VALUE | 1 | arg->num_params | 4 |
| PARAM_VALUE | 1 | arg->ret | 0 |
| PARAM_VALUE | 1 | arg->ret_origin | 0 |
| PARAM_VALUE | 2 | param | 4096-ptr_max |
| BUF_SIZE | 2 | param | 128 |
drivers/firmware/qcom/qcom_pas_tee.c qcom_pas_tee_get_rsc_table() -> tee_client_invoke_func()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->teedev | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->teedev->desc | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->teedev->desc->ops | 4096-ptr_max |
| PARAM_VALUE | 1 | arg | 3846369849080143872 |
| PARAM_VALUE | 1 | arg->func | 5 |
| PARAM_VALUE | 1 | arg->num_params | 4 |
| PARAM_VALUE | 1 | arg->ret | 0 |
| PARAM_VALUE | 2 | param | 4096-ptr_max |
| BUF_SIZE | 2 | param | 128 |
drivers/firmware/qcom/qcom_pas_tee.c qcom_pas_tee_init_image() -> tee_client_invoke_func()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->teedev | 4096-ptr_max |
| PARAM_VALUE | 1 | arg | 8841208626281111552 |
| PARAM_VALUE | 1 | arg->func | 3 |
| PARAM_VALUE | 1 | arg->num_params | 4 |
| PARAM_VALUE | 1 | arg->ret | 0 |
| PARAM_VALUE | 1 | arg->ret_origin | 0 |
| PARAM_VALUE | 2 | param | 4096-ptr_max |
| BUF_SIZE | 2 | param | 128 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/firmware/qcom/qcom_pas_tee.c qcom_pas_tee_mem_setup() -> tee_client_invoke_func()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | arg | 6866035221088206848 |
| PARAM_VALUE | 1 | arg->func | 4 |
| PARAM_VALUE | 1 | arg->num_params | 4 |
| PARAM_VALUE | 1 | arg->ret | 0 |
| PARAM_VALUE | 1 | arg->ret_origin | 0 |
| PARAM_VALUE | 2 | param | 4096-ptr_max |
| BUF_SIZE | 2 | param | 128 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/firmware/qcom/qcom_pas_tee.c qcom_pas_tee_set_remote_state() -> tee_client_invoke_func()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | arg | 6154037548586233856 |
| PARAM_VALUE | 1 | arg->func | 7 |
| PARAM_VALUE | 1 | arg->num_params | 4 |
| PARAM_VALUE | 1 | arg->ret | 0 |
| PARAM_VALUE | 1 | arg->ret_origin | 0 |
| PARAM_VALUE | 2 | param | 4096-ptr_max |
| BUF_SIZE | 2 | param | 128 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &core->lock | ||
| HALF_LOCKED2 | &hdev->lock |
drivers/firmware/qcom/qcom_pas_tee.c qcom_pas_tee_shutdown() -> tee_client_invoke_func()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | arg | 4680268909207924736 |
| PARAM_VALUE | 1 | arg->func | 8 |
| PARAM_VALUE | 1 | arg->num_params | 4 |
| PARAM_VALUE | 1 | arg->ret | 0 |
| PARAM_VALUE | 1 | arg->ret_origin | 0 |
| PARAM_VALUE | 2 | param | 4096-ptr_max |
| BUF_SIZE | 2 | param | 128 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &core->lock |
drivers/firmware/qcom/qcom_pas_tee.c qcom_pas_tee_supported() -> tee_client_invoke_func()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | arg | 9092003867233468416 |
| PARAM_VALUE | 1 | arg->func | 1 |
| PARAM_VALUE | 1 | arg->num_params | 4 |
| PARAM_VALUE | 1 | arg->ret | 0 |
| PARAM_VALUE | 1 | arg->ret_origin | 0 |
| PARAM_VALUE | 2 | param | 4096-ptr_max |
| BUF_SIZE | 2 | param | 128 |
drivers/firmware/broadcom/tee_bnxt_fw.c tee_bnxt_copy_coredump() -> tee_client_invoke_func()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max,(-12),(-2) |
| PARAM_VALUE | 1 | arg | 2389934599745327104 |
| PARAM_VALUE | 1 | arg->func | 3 |
| PARAM_VALUE | 1 | arg->num_params | 4 |
| PARAM_VALUE | 1 | arg->ret | 0 |
| PARAM_VALUE | 1 | arg->session | 0 |
| PARAM_VALUE | 2 | param | 3930569040974970880 |
| PARAM_VALUE | 2 | param->attr | 0 |
| BUF_SIZE | 2 | param | 128 |
| MEM_ZERO | 1 | arg | |
| RX_PATH |
drivers/firmware/broadcom/tee_bnxt_fw.c tee_bnxt_fw_load() -> tee_client_invoke_func()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max,(-12),(-2) |
| PARAM_VALUE | 1 | arg | 6276482628518899712 |
| PARAM_VALUE | 1 | arg->func | 0 |
| PARAM_VALUE | 1 | arg->num_params | 4 |
| PARAM_VALUE | 1 | arg->ret | 0 |
| PARAM_VALUE | 1 | arg->ret_origin | 0 |
| PARAM_VALUE | 1 | arg->session | 0 |
| PARAM_VALUE | 2 | param | 2482810528926564352 |
| PARAM_VALUE | 2 | param->attr | 0 |
| BUF_SIZE | 2 | param | 128 |
| MEM_ZERO | 1 | arg | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/platform/x86/amd/pmf/tee-if.c amd_pmf_invoke_cmd_enact() -> tee_client_invoke_func()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 1-u64max |
| PARAM_VALUE | 1 | arg | 1617510444591874048 |
| PARAM_VALUE | 1 | arg->func | 1 |
| PARAM_VALUE | 1 | arg->num_params | 4 |
| PARAM_VALUE | 1 | arg->ret | 0 |
| PARAM_VALUE | 1 | arg->ret_origin | 0 |
| PARAM_VALUE | 2 | param | 5645463341676748800 |
| PARAM_VALUE | 2 | param->attr | 0 |
| BUF_SIZE | 2 | param | 128 |
| MEM_ZERO | 1 | arg | |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | _T->lock |
drivers/platform/x86/amd/pmf/tee-if.c amd_pmf_invoke_cmd_init() -> tee_client_invoke_func()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 1-u64max |
| PARAM_VALUE | 1 | arg | 3459956841716002816 |
| PARAM_VALUE | 1 | arg->func | 0 |
| PARAM_VALUE | 1 | arg->num_params | 4 |
| PARAM_VALUE | 1 | arg->ret | 0 |
| PARAM_VALUE | 1 | arg->ret_origin | 0 |
| PARAM_VALUE | 2 | param | 1473410924745637888 |
| PARAM_VALUE | 2 | param->attr | 0 |
| BUF_SIZE | 2 | param | 128 |
| MEM_ZERO | 1 | arg | |
| RX_PATH | |||
| TASK_NOT_RUNNING |