Lines Matching refs:buffer

78 static TEE_Result tcg_parse_event_log_header(void *buffer, uint32_t size,  in tcg_parse_event_log_header()  argument
81 struct tcg_pcr_event *event_header = (struct tcg_pcr_event *)buffer; in tcg_parse_event_log_header()
113 static TEE_Result tcg_parse_specid_event(void *buffer, uint32_t log_size, in tcg_parse_specid_event() argument
118 struct tcg_pcr_event *event_header = buffer; in tcg_parse_specid_event()
133 spec_event = (struct tcg_efi_spec_id_event *)((uintptr_t)buffer + *pos); in tcg_parse_specid_event()
202 vendor_sz = *(uint8_t *)((uintptr_t)buffer + *pos + spec_event_size); in tcg_parse_specid_event()
228 static TEE_Result tcg_parse_event(void *buffer, uint32_t log_size, in tcg_parse_event() argument
244 event = (struct tcg_pcr_event2 *)((uintptr_t)buffer + *offset); in tcg_parse_event()
316 void *buffer = NULL; in tcg_process_fw_eventlog() local
329 buffer = malloc(TPM2_EVENT_LOG_SIZE); in tcg_process_fw_eventlog()
330 if (!buffer) { in tcg_process_fw_eventlog()
335 ret = tpm_get_event_log(buffer, &sz); in tcg_process_fw_eventlog()
337 tmp = realloc(buffer, sz); in tcg_process_fw_eventlog()
341 buffer = tmp; in tcg_process_fw_eventlog()
343 ret = tpm_get_event_log(buffer, &sz); in tcg_process_fw_eventlog()
351 ret = tcg_parse_event_log_header(buffer, sz, &pos); in tcg_process_fw_eventlog()
366 ret = tcg_parse_specid_event(buffer, sz, &pos, digest_list); in tcg_process_fw_eventlog()
373 ret = tcg_parse_event(buffer, sz, &pos, digest_list, in tcg_process_fw_eventlog()
399 free(buffer); in tcg_process_fw_eventlog()