Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/char/tpm/tpm2-sessions.c tpm2_read_public() -> tpm_ret_to_err()

Type Parameter Key Value
PARAM_VALUE 0 ret s32min-(-1),1-s32max
DATA_SOURCE 0 ret r tpm_transmit_cmd
RX_PATH
TASK_NOT_RUNNING
LOCK2 &chip->ops_sem
LOCK2 &chip->tpm_mutex
TYPE_LOCK (struct tpm_chip)->ops_sem
TYPE_LOCK (struct tpm_chip)->tpm_mutex

drivers/char/tpm/tpm2-sessions.c tpm2_start_auth_session() -> tpm_ret_to_err()

Type Parameter Key Value
PARAM_VALUE 0 ret s64min-s32max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &chip->ops_sem
LOCK2 &chip->tpm_mutex
TYPE_LOCK (struct tpm_chip)->ops_sem
TYPE_LOCK (struct tpm_chip)->tpm_mutex

drivers/char/tpm/tpm2-sessions.c tpm_buf_append_name() -> tpm_ret_to_err()

Type Parameter Key Value
PARAM_VALUE 0 ret s32min-(-1)
CAPPED_DATA 0 ret 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &chip->ops_sem
LOCK2 &chip->tpm_mutex
TYPE_LOCK (struct tpm_chip)->ops_sem
TYPE_LOCK (struct tpm_chip)->tpm_mutex

security/keys/trusted-keys/trusted_tpm2.c tpm2_load_cmd() -> tpm_ret_to_err()

Type Parameter Key Value
LOCK2 &chip->ops_sem
LOCK2 &chip->tpm_mutex
TYPE_LOCK (struct tpm_chip)->ops_sem
TYPE_LOCK (struct tpm_chip)->tpm_mutex

security/keys/trusted-keys/trusted_tpm2.c tpm2_seal_trusted() -> tpm_ret_to_err()

Type Parameter Key Value
UNITS 0 ret unit_byte

security/keys/trusted-keys/trusted_tpm2.c tpm2_unseal_cmd() -> tpm_ret_to_err()

Type Parameter Key Value
LOCK2 &chip->ops_sem
LOCK2 &chip->tpm_mutex
TYPE_LOCK (struct tpm_chip)->ops_sem
TYPE_LOCK (struct tpm_chip)->tpm_mutex

security/keys/trusted-keys/trusted_tpm2.c tpm2_unseal_trusted() -> tpm_ret_to_err()

Type Parameter Key Value