Lines Matching refs:result
51 TSS_RESULT result; in GetTpm() local
53 if (TPM_ERROR(result = in GetTpm()
55 TPM_LOG(ERROR, result) << "Error getting a handle to the TPM."; in GetTpm()
65 TSS_RESULT result; in ConnectContextIfNeeded() local
66 if (TPM_ERROR(result = Tspi_Context_Create(context_.ptr()))) { in ConnectContextIfNeeded()
67 TPM_LOG(ERROR, result) << "Error connecting to TPM."; in ConnectContextIfNeeded()
72 if (TPM_ERROR(result = Tspi_Context_Connect(context_, nullptr))) { in ConnectContextIfNeeded()
73 if (ERROR_CODE(result) == TSS_E_COMM_FAILURE) { in ConnectContextIfNeeded()
77 TPM_LOG(ERROR, result) << "Error connecting to TPM."; in ConnectContextIfNeeded()
94 if (TPM_ERROR(result = in ConnectContextIfNeeded()
96 TPM_LOG(ERROR, result) << "Error getting a handle to the TPM."; in ConnectContextIfNeeded()
101 if (TPM_ERROR(result = Tspi_GetPolicyObject(tpm_handle, TSS_POLICY_USAGE, in ConnectContextIfNeeded()
103 TPM_LOG(ERROR, result) << "Error calling Tspi_GetPolicyObject"; in ConnectContextIfNeeded()
107 if (TPM_ERROR(result = Tspi_Policy_SetSecret( in ConnectContextIfNeeded()
112 TPM_LOG(ERROR, result) << "Error calling Tspi_Policy_SetSecret"; in ConnectContextIfNeeded()