Lines Matching defs:handle
72 unsigned int *offset, u32 *handle)
105 *handle = 0;
115 *handle = be32_to_cpup((__be32 *)&tbuf.data[TPM_HEADER_SIZE]);
122 static int tpm2_save_context(struct tpm_chip *chip, u32 handle, u8 *buf,
133 tpm_buf_append_u32(&tbuf, handle);
200 u32 handle;
206 &offset, &handle);
214 if (handle != space->session_tbl[i]) {
215 dev_warn(&chip->dev, "session restored to wrong handle\n");
224 static bool tpm2_map_to_phandle(struct tpm_space *space, void *handle)
226 u32 vhandle = be32_to_cpup((__be32 *)handle);
235 *((__be32 *)handle) = cpu_to_be32(phandle);
244 __be32 *handle;
254 handle = (__be32 *)&cmd[TPM_HEADER_SIZE];
255 for (i = 0; i < nr_handles; i++, handle++) {
256 if ((be32_to_cpu(*handle) & 0xFF000000) == TPM2_HT_TRANSIENT) {
257 if (!tpm2_map_to_phandle(space, handle))
338 static bool tpm2_add_session(struct tpm_chip *chip, u32 handle)
350 space->session_tbl[i] = handle;
414 dev_err(&chip->dev, "%s: unknown handle 0x%08X\n",
523 /* handle error saving session, just forget it */