Lines Matching refs:phandle
227 u32 phandle; in tpm2_map_to_phandle() local
234 phandle = space->context_tbl[i]; in tpm2_map_to_phandle()
235 *((__be32 *)handle) = cpu_to_be32(phandle); in tpm2_map_to_phandle()
354 static u32 tpm2_map_to_vhandle(struct tpm_space *space, u32 phandle, bool alloc) in tpm2_map_to_vhandle() argument
361 space->context_tbl[i] = phandle; in tpm2_map_to_vhandle()
364 } else if (space->context_tbl[i] == phandle) in tpm2_map_to_vhandle()
379 u32 phandle; in tpm2_map_response_header() local
397 phandle = be32_to_cpup((__be32 *)&rsp[TPM_HEADER_SIZE]); in tpm2_map_response_header()
398 phandle_type = phandle & 0xFF000000; in tpm2_map_response_header()
402 vhandle = tpm2_map_to_vhandle(space, phandle, true); in tpm2_map_response_header()
410 if (!tpm2_add_session(chip, phandle)) in tpm2_map_response_header()
415 __func__, phandle); in tpm2_map_response_header()
421 tpm2_flush_context(chip, phandle); in tpm2_map_response_header()
423 phandle); in tpm2_map_response_header()
440 u32 phandle; in tpm2_map_response_body() local
465 phandle = be32_to_cpup((__be32 *)&data->handles[i]); in tpm2_map_response_body()
466 phandle_type = phandle & 0xFF000000; in tpm2_map_response_body()
470 vhandle = tpm2_map_to_vhandle(space, phandle, false); in tpm2_map_response_body()
479 data->handles[j] = cpu_to_be32(phandle); in tpm2_map_response_body()