Lines Matching refs:be32_to_cpu
255 if (be32_to_cpu(tpm_resp.hdr.len) != sizeof(tpm_resp) || in tpm_util_get_buffer_size()
256 be32_to_cpu(tpm_resp.len) != sizeof(uint32_t)) { in tpm_util_get_buffer_size()
258 be32_to_cpu(tpm_resp.hdr.len), in tpm_util_get_buffer_size()
260 trace_tpm_util_get_buffer_size_len(be32_to_cpu(tpm_resp.len), in tpm_util_get_buffer_size()
264 be32_to_cpu(tpm_resp.hdr.errcode)); in tpm_util_get_buffer_size()
267 *buffersize = be32_to_cpu(tpm_resp.buffersize); in tpm_util_get_buffer_size()
304 if (be32_to_cpu(tpm2_resp.hdr.len) != sizeof(tpm2_resp) || in tpm_util_get_buffer_size()
305 be32_to_cpu(tpm2_resp.count) != 2) { in tpm_util_get_buffer_size()
307 be32_to_cpu(tpm2_resp.hdr.len), in tpm_util_get_buffer_size()
310 be32_to_cpu(tpm2_resp.count), 2); in tpm_util_get_buffer_size()
313 be32_to_cpu(tpm2_resp.hdr.errcode)); in tpm_util_get_buffer_size()
316 *buffersize = MAX(be32_to_cpu(tpm2_resp.value1), in tpm_util_get_buffer_size()
317 be32_to_cpu(tpm2_resp.value2)); in tpm_util_get_buffer_size()