Lines Matching +full:hall +full:- +full:switch +full:-
1 // SPDX-License-Identifier: GPL-2.0-or-later
10 * Kylene Hall <kjhall@us.ibm.com>
13 * Maintained by: <tpmdd-devel@lists.sourceforge.net>
38 "S-CRTM Contents",
39 "S-CRTM Version",
46 "Non-Host Code",
47 "Non-Host Config",
48 "Non-Host Info"
63 "S-CRTM Version",
64 "S-CRTM Contents ",
73 struct tpm_chip *chip = m->private; in tpm1_bios_measurements_start()
74 struct tpm_bios_log *log = &chip->log; in tpm1_bios_measurements_start()
75 void *addr = log->bios_event_log; in tpm1_bios_measurements_start()
76 void *limit = log->bios_event_log_end; in tpm1_bios_measurements_start()
90 do_endian_conversion(event->event_size); in tpm1_bios_measurements_start()
92 do_endian_conversion(event->event_type); in tpm1_bios_measurements_start()
112 struct tpm_chip *chip = m->private; in tpm1_bios_measurements_next()
113 struct tpm_bios_log *log = &chip->log; in tpm1_bios_measurements_next()
114 void *limit = log->bios_event_log_end; in tpm1_bios_measurements_next()
119 converted_event_size = do_endian_conversion(event->event_size); in tpm1_bios_measurements_next()
129 converted_event_size = do_endian_conversion(event->event_size); in tpm1_bios_measurements_next()
130 converted_event_type = do_endian_conversion(event->event_type); in tpm1_bios_measurements_next()
152 switch (do_endian_conversion(event->event_type)) { in get_event_name()
169 (event->event_type)]; in get_event_name()
175 do_endian_conversion(event->event_size)) { in get_event_name()
177 n_len = do_endian_conversion(event->event_size); in get_event_name()
183 /* ToDo Row data -> Base64 */ in get_event_name()
185 switch (do_endian_conversion(pc_event->event_id)) { in get_event_name()
194 (pc_event->event_id)]; in get_event_name()
204 (pc_event->event_id)]; in get_event_name()
208 pc_event->event_data[i]); in get_event_name()
233 temp_event.pcr_index = do_endian_conversion(event->pcr_index); in tpm1_binary_bios_measurements_show()
234 temp_event.event_type = do_endian_conversion(event->event_type); in tpm1_binary_bios_measurements_show()
235 temp_event.event_size = do_endian_conversion(event->event_size); in tpm1_binary_bios_measurements_show()
239 for (i = 0; i < (sizeof(struct tcpa_event) - 1) ; i++) in tpm1_binary_bios_measurements_show()
244 for (i = (sizeof(struct tcpa_event) - 1); in tpm1_binary_bios_measurements_show()
261 printk(KERN_ERR "%s: ERROR - No Memory for event name\n ", in tpm1_ascii_bios_measurements_show()
263 return -EFAULT; in tpm1_ascii_bios_measurements_show()
267 seq_printf(m, "%2d ", do_endian_conversion(event->pcr_index)); in tpm1_ascii_bios_measurements_show()
270 seq_printf(m, "%20phN", event->pcr_value); in tpm1_ascii_bios_measurements_show()
273 seq_printf(m, " %02x", do_endian_conversion(event->event_type)); in tpm1_ascii_bios_measurements_show()