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 179
- drivers/char/hw_random/optee-rng.c
- drivers/char/tpm/tpm_ftpm_tee.c
- drivers/firmware/arm_scmi/transports/optee.c
- drivers/firmware/broadcom/tee_bnxt_fw.c
- drivers/firmware/efi/stmm/tee_stmm_efi.c, line 508
- 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 173
- drivers/tee/tee_core.c, line 1361
- security/keys/trusted-keys/trusted_tee.c
Smatch caller information:
security/keys/trusted-keys/trusted_tee.c trusted_key_probe() -> tee_client_close_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->data | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->refcount.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | ctx->supp_nowait | 1 |
| PARAM_VALUE | 0 | ctx->teedev | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->teedev->desc | s64min-(-4096),4096-s64max |
| PARAM_VALUE | 0 | ctx->teedev->desc->ops | 4096-ptr_max |
| BUF_SIZE | 0 | ctx | 24 |
| DATA_SOURCE | 0 | ctx | r tee_client_open_context |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | ctx->teedev->cdev.count |
security/keys/trusted-keys/trusted_tee.c trusted_key_remove() -> tee_client_close_context()
| 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 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->mutex |
drivers/firmware/qcom/qcom_pas_tee.c qcom_pas_tee_probe() -> tee_client_close_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->data | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->refcount.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | ctx->supp_nowait | 1 |
| PARAM_VALUE | 0 | ctx->teedev | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->teedev->desc | s64min-(-4096),4096-s64max |
| PARAM_VALUE | 0 | ctx->teedev->desc->ops | 4096-ptr_max |
| BUF_SIZE | 0 | ctx | 24 |
| DATA_SOURCE | 0 | ctx | r tee_client_open_context |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | ctx->teedev->cdev.count |
drivers/firmware/qcom/qcom_pas_tee.c qcom_pas_tee_remove() -> tee_client_close_context()
| 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 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->mutex |
drivers/firmware/broadcom/tee_bnxt_fw.c tee_bnxt_fw_probe() -> tee_client_close_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->data | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->refcount.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | ctx->supp_nowait | 1 |
| 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 | 0 | ctx->teedev->desc | s64min-(-4096),4096-s64max |
| PARAM_VALUE | 0 | ctx->teedev->desc->ops | 4096-ptr_max |
| BUF_SIZE | 0 | ctx | 24 |
| DATA_SOURCE | 0 | ctx | r tee_client_open_context |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | ctx->teedev->cdev.count |
drivers/firmware/broadcom/tee_bnxt_fw.c tee_bnxt_fw_remove() -> tee_client_close_context()
| 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 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->mutex |
drivers/firmware/broadcom/tee_bnxt_fw.c tee_bnxt_fw_shutdown() -> tee_client_close_context()
| 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 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &dev->mutex | ||
| HALF_LOCKED2 | &parent->mutex | ||
| HALF_LOCKED2 | global &system_transition_mutex | ||
| TYPE_LOCK | (struct device)->mutex |
drivers/platform/x86/amd/pmf/tee-if.c amd_pmf_tee_deinit() -> tee_client_close_context()
| 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 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/platform/x86/amd/pmf/tee-if.c amd_pmf_tee_init() -> tee_client_close_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->data | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->supp_nowait | 1 |
| PARAM_VALUE | 0 | ctx->teedev | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->teedev->desc->ops | 4096-ptr_max |
| BUF_SIZE | 0 | ctx | 24 |
| DATA_SOURCE | 0 | ctx | r tee_client_open_context |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | ctx->teedev->cdev.count |