Lines Matching full:log

16 /* read binary bios log from EFI configuration table */
23 struct tpm_bios_log *log; in tpm_read_log_efi() local
35 log = &chip->log; in tpm_read_log_efi()
39 pr_err("Could not map UEFI TPM log table !\n"); in tpm_read_log_efi()
47 pr_warn("UEFI TPM log area empty\n"); in tpm_read_log_efi()
54 pr_err("Could not map UEFI TPM log table payload!\n"); in tpm_read_log_efi()
59 log->bios_event_log = devm_kmemdup(&chip->dev, log_tbl->log, log_size, GFP_KERNEL); in tpm_read_log_efi()
60 if (!log->bios_event_log) { in tpm_read_log_efi()
65 log->bios_event_log_end = log->bios_event_log + log_size; in tpm_read_log_efi()
79 pr_err("Could not map UEFI TPM final log\n"); in tpm_read_log_efi()
80 devm_kfree(&chip->dev, log->bios_event_log); in tpm_read_log_efi()
86 * The 'final events log' size excludes the 'final events preboot log' in tpm_read_log_efi()
92 * Allocate memory for the 'combined log' where we will append the in tpm_read_log_efi()
93 * 'final events log' to. in tpm_read_log_efi()
95 tmp = devm_krealloc(&chip->dev, log->bios_event_log, in tpm_read_log_efi()
99 devm_kfree(&chip->dev, log->bios_event_log); in tpm_read_log_efi()
104 log->bios_event_log = tmp; in tpm_read_log_efi()
107 * Append any of the 'final events log' that didn't also end up in the in tpm_read_log_efi()
108 * 'main log'. Events can be logged in both if events are generated in tpm_read_log_efi()
111 memcpy((void *)log->bios_event_log + log_size, in tpm_read_log_efi()
115 * The size of the 'combined log' is the size of the 'main log' plus in tpm_read_log_efi()
116 * the size of the 'final events log'. in tpm_read_log_efi()
118 log->bios_event_log_end = log->bios_event_log + in tpm_read_log_efi()