tpm2.c (44038bc514a244fba9d0d6d698b15970185ac251) | tpm2.c (c46f3405692de1ac82240d927b9c7a0f9d6a4a36) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (C) 2016 IBM Corporation 4 * 5 * Authors: 6 * Nayna Jain <nayna@linux.vnet.ibm.com> 7 * 8 * Access to TPM 2.0 event log as written by Firmware. --- 22 unchanged lines hidden (view full) --- 31 * @event: event whose size is to be calculated. 32 * @event_header: the first event in the event log. 33 * 34 * Returns size of the event. If it is an invalid event, returns 0. 35 */ 36static size_t calc_tpm2_event_size(struct tcg_pcr_event2_head *event, 37 struct tcg_pcr_event *event_header) 38{ | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (C) 2016 IBM Corporation 4 * 5 * Authors: 6 * Nayna Jain <nayna@linux.vnet.ibm.com> 7 * 8 * Access to TPM 2.0 event log as written by Firmware. --- 22 unchanged lines hidden (view full) --- 31 * @event: event whose size is to be calculated. 32 * @event_header: the first event in the event log. 33 * 34 * Returns size of the event. If it is an invalid event, returns 0. 35 */ 36static size_t calc_tpm2_event_size(struct tcg_pcr_event2_head *event, 37 struct tcg_pcr_event *event_header) 38{ |
39 return __calc_tpm2_event_size(event, event_header); | 39 return __calc_tpm2_event_size(event, event_header, false); |
40} 41 42static void *tpm2_bios_measurements_start(struct seq_file *m, loff_t *pos) 43{ 44 struct tpm_chip *chip = m->private; 45 struct tpm_bios_log *log = &chip->log; 46 void *addr = log->bios_event_log; 47 void *limit = log->bios_event_log_end; --- 114 unchanged lines hidden --- | 40} 41 42static void *tpm2_bios_measurements_start(struct seq_file *m, loff_t *pos) 43{ 44 struct tpm_chip *chip = m->private; 45 struct tpm_bios_log *log = &chip->log; 46 void *addr = log->bios_event_log; 47 void *limit = log->bios_event_log_end; --- 114 unchanged lines hidden --- |