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()
200 u32 handle; in tpm2_load_space() local
206 &offset, &handle); in tpm2_load_space()
214 if (handle != space->session_tbl[i]) { in tpm2_load_space()
224 static bool tpm2_map_to_phandle(struct tpm_space *space, void *handle) in tpm2_map_to_phandle() argument
226 u32 vhandle = be32_to_cpup((__be32 *)handle); in tpm2_map_to_phandle()
235 *((__be32 *)handle) = cpu_to_be32(phandle); in tpm2_map_to_phandle()
244 __be32 *handle; in tpm2_map_command() local
254 handle = (__be32 *)&cmd[TPM_HEADER_SIZE]; in tpm2_map_command()
255 for (i = 0; i < nr_handles; i++, handle++) { in tpm2_map_command()
256 if ((be32_to_cpu(*handle) & 0xFF000000) == TPM2_HT_TRANSIENT) { in tpm2_map_command()
257 if (!tpm2_map_to_phandle(space, handle)) in tpm2_map_command()
338 static bool tpm2_add_session(struct tpm_chip *chip, u32 handle) in tpm2_add_session() argument
350 space->session_tbl[i] = handle; in tpm2_add_session()