Lines Matching full:phandle
224 u32 phandle; in tpm2_map_to_phandle() local
231 phandle = space->context_tbl[i]; in tpm2_map_to_phandle()
232 *((__be32 *)handle) = cpu_to_be32(phandle); in tpm2_map_to_phandle()
349 static u32 tpm2_map_to_vhandle(struct tpm_space *space, u32 phandle, bool alloc) in tpm2_map_to_vhandle() argument
356 space->context_tbl[i] = phandle; in tpm2_map_to_vhandle()
359 } else if (space->context_tbl[i] == phandle) in tpm2_map_to_vhandle()
374 u32 phandle; in tpm2_map_response_header() local
392 phandle = be32_to_cpup((__be32 *)&rsp[TPM_HEADER_SIZE]); in tpm2_map_response_header()
393 phandle_type = phandle & 0xFF000000; in tpm2_map_response_header()
397 vhandle = tpm2_map_to_vhandle(space, phandle, true); in tpm2_map_response_header()
405 if (!tpm2_add_session(chip, phandle)) in tpm2_map_response_header()
410 __func__, phandle); in tpm2_map_response_header()
416 tpm2_flush_context(chip, phandle); in tpm2_map_response_header()
418 phandle); in tpm2_map_response_header()
435 u32 phandle; in tpm2_map_response_body() local
457 phandle = be32_to_cpup((__be32 *)&data->handles[i]); in tpm2_map_response_body()
458 phandle_type = phandle & 0xFF000000; in tpm2_map_response_body()
462 vhandle = tpm2_map_to_vhandle(space, phandle, false); in tpm2_map_response_body()
471 data->handles[j] = cpu_to_be32(phandle); in tpm2_map_response_body()