firmware/lib/tpm2_lite/tlcl.c
/*
 * Same as tpm_get_response() but, if the response was successfully received,
 * returns the received response code. The set of errors returned by the
 * communication stack doesn't overlap with the set of errors returned by the
 * TPM, so it's always possible to distinguish the two. In case of communication
 * errors, the caller should not check other fields of response, as the response
 * is likely not filled. In any case, it is recommended that callers, who need
 * to work with response fields even if a non-zero response code was received
 * from the TPM, use tpm_get_response() and explicitly check the response code
 * themselves.
 */
Same as tpm_get_response() but, if the response was successfully received,
returns the received response code. The set of errors returned by the
communication stack doesn't overlap with the set of errors returned by the
TPM, so it's always possible to distinguish the two. In case of communication
errors, the caller should not check other fields of response, as the response
is likely not filled. In any case, it is recommended that callers, who need
to work with response fields even if a non-zero response code was received
from the TPM, use tpm_get_response() and explicitly check the response code
themselves.
Same as tpm_get_response () but if the response was successfully received returns the received response code . The set of errors returned by the communication stack doesn ' t overlap with the set of errors returned by the TPM so it ' s always possible to distinguish the two . In case of communication errors the caller should not check other fields of response as the response is likely not filled . In any case it is recommended that callers who need to work with response fields even if a non - zero response code was received from the TPM use tpm_get_response () and explicitly check the response code themselves .
static uint32_t tpm_send_receive(TPM_CC command,
				 void *command_body,
				 struct tpm2_response *response)
{
	uint32_t rv = tpm_get_response(command, command_body, response);
	return rv ? rv : response->hdr.tpm_code;
}
static uint32_t tpm_send_receive ( TPM_CC command , void * command_body , struct tpm2_response * response ) { uint32_t rv = tpm_get_response ( command , command_body , response ) ; return rv ? rv : response -> hdr . tpm_code ; }
Same as tpm_get_response() but, if the response was successfully received,
 returns the received response code.
Same as tpm_get_response () but if the response was successfully received returns the received response code .