Lines Matching refs:handle
72 unsigned int *offset, u32 *handle) in tpm2_load_context() argument
105 *handle = 0; in tpm2_load_context()
115 *handle = be32_to_cpup((__be32 *)&tbuf.data[TPM_HEADER_SIZE]); in tpm2_load_context()
122 static int tpm2_save_context(struct tpm_chip *chip, u32 handle, u8 *buf, in tpm2_save_context() argument
133 tpm_buf_append_u32(&tbuf, handle); in tpm2_save_context()
203 u32 handle; in tpm2_load_space() local
209 &offset, &handle); in tpm2_load_space()
217 if (handle != space->session_tbl[i]) { in tpm2_load_space()
227 static bool tpm2_map_to_phandle(struct tpm_space *space, void *handle) in tpm2_map_to_phandle() argument
229 u32 vhandle = be32_to_cpup((__be32 *)handle); in tpm2_map_to_phandle()
238 *((__be32 *)handle) = cpu_to_be32(phandle); in tpm2_map_to_phandle()
247 __be32 *handle; in tpm2_map_command() local
257 handle = (__be32 *)&cmd[TPM_HEADER_SIZE]; in tpm2_map_command()
258 for (i = 0; i < nr_handles; i++, handle++) { in tpm2_map_command()
259 if ((be32_to_cpu(*handle) & 0xFF000000) == TPM2_HT_TRANSIENT) { in tpm2_map_command()
260 if (!tpm2_map_to_phandle(space, handle)) in tpm2_map_command()
341 static bool tpm2_add_session(struct tpm_chip *chip, u32 handle) in tpm2_add_session() argument
353 space->session_tbl[i] = handle; in tpm2_add_session()