Lines Matching refs:event

9 #define MAX_TEXT_EVENT		1000	/* Max event string length */
102 u8 event[];
107 u8 event[];
142 * __calc_tpm2_event_size - calculate the size of a TPM2 event log entry
143 * @event: Pointer to the event whose size should be calculated
144 * @event_header: Pointer to the initial event containing the digest lengths
145 * @do_mapping: Whether or not the event needs to be mapped
147 * The TPM2 event log format can contain multiple digests corresponding to
150 * and this information is contained within the first event in the log.
153 * at each event in turn to determine how much space is used for events in
155 * and can calculate the total size of the event.
157 * Return: size of the event on success, 0 on failure
160 static __always_inline int __calc_tpm2_event_size(struct tcg_pcr_event2_head *event,
178 marker = event;
180 marker = marker + sizeof(event->pcr_idx) + sizeof(event->event_type)
181 + sizeof(event->count);
183 /* Map the event header */
196 event = (struct tcg_pcr_event2_head *)mapping;
201 count = event->count;
202 event_type = event->event_type;
212 efispecid = (struct tcg_efi_specid_event_head *)event_header->event;
215 * Perform validation of the event in order to identify malformed
217 * immediately following a valid event log. The caller expects this
218 * function to recognize that the byte sequence is not a valid event
219 * and to return an event size of 0.
229 halg_size = sizeof(event->digests[i].alg_id);
255 /* Algorithm without known length. Such event is unparseable. */
263 * Map the event size - we don't read from the event itself, so