Lines Matching full:log

15 /* read binary bios log from EFI configuration table */
22 struct tpm_bios_log *log; in tpm_read_log_efi() local
34 log = &chip->log; in tpm_read_log_efi()
38 pr_err("Could not map UEFI TPM log table !\n"); in tpm_read_log_efi()
46 pr_warn("UEFI TPM log area empty\n"); in tpm_read_log_efi()
53 pr_err("Could not map UEFI TPM log table payload!\n"); in tpm_read_log_efi()
58 log->bios_event_log = kmemdup(log_tbl->log, log_size, GFP_KERNEL); in tpm_read_log_efi()
59 if (!log->bios_event_log) { in tpm_read_log_efi()
64 log->bios_event_log_end = log->bios_event_log + log_size; in tpm_read_log_efi()
78 pr_err("Could not map UEFI TPM final log\n"); in tpm_read_log_efi()
79 kfree(log->bios_event_log); in tpm_read_log_efi()
85 * The 'final events log' size excludes the 'final events preboot log' in tpm_read_log_efi()
91 * Allocate memory for the 'combined log' where we will append the in tpm_read_log_efi()
92 * 'final events log' to. in tpm_read_log_efi()
94 tmp = krealloc(log->bios_event_log, in tpm_read_log_efi()
98 kfree(log->bios_event_log); in tpm_read_log_efi()
103 log->bios_event_log = tmp; in tpm_read_log_efi()
106 * Append any of the 'final events log' that didn't also end up in the in tpm_read_log_efi()
107 * 'main log'. Events can be logged in both if events are generated in tpm_read_log_efi()
110 memcpy((void *)log->bios_event_log + log_size, in tpm_read_log_efi()
114 * The size of the 'combined log' is the size of the 'main log' plus in tpm_read_log_efi()
115 * the size of the 'final events log'. in tpm_read_log_efi()
117 log->bios_event_log_end = log->bios_event_log + in tpm_read_log_efi()