Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/char/tpm/tpm2-space.c tpm2_map_response_body() -> tpm2_map_to_vhandle()

Type Parameter Key Value
PARAM_VALUE 0 space 4096-ptr_max
PARAM_VALUE 2 alloc 0
BUF_SIZE 0 space 56
DATA_SOURCE 1 phandle r __be32_to_cpup
LOCK2 &chip->ops_sem
LOCK2 &chip->tpm_mutex
LOCK2 &priv->buffer_mutex
TYPE_LOCK (struct file_priv)->buffer_mutex
TYPE_LOCK (struct tpm_chip)->ops_sem
TYPE_LOCK (struct tpm_chip)->tpm_mutex

drivers/char/tpm/tpm2-space.c tpm2_map_response_header() -> tpm2_map_to_vhandle()

Type Parameter Key Value
PARAM_VALUE 0 space 4096-ptr_max
PARAM_VALUE 2 alloc 1
BUF_SIZE 0 space 56
DATA_SOURCE 1 phandle r __be32_to_cpup
LOCK2 &chip->ops_sem
LOCK2 &chip->tpm_mutex
LOCK2 &priv->buffer_mutex
TYPE_LOCK (struct file_priv)->buffer_mutex
TYPE_LOCK (struct tpm_chip)->ops_sem
TYPE_LOCK (struct tpm_chip)->tpm_mutex