Lines Matching refs:pos
79 uint32_t *pos) in tcg_parse_event_log_header() argument
96 *pos += sizeof(*event_header); in tcg_parse_event_log_header()
114 uint32_t *pos, in tcg_parse_specid_event() argument
129 if ((*pos + sizeof(*spec_event)) > log_size) in tcg_parse_specid_event()
133 spec_event = (struct tcg_efi_spec_id_event *)((uintptr_t)buffer + *pos); in tcg_parse_specid_event()
199 if (*pos + spec_event_size >= log_size) in tcg_parse_specid_event()
202 vendor_sz = *(uint8_t *)((uintptr_t)buffer + *pos + spec_event_size); in tcg_parse_specid_event()
205 *pos += spec_event_size; in tcg_parse_specid_event()
236 size_t pos = 0; in tcg_parse_event() local
260 pos = offsetof(struct tcg_pcr_event2, digests); in tcg_parse_event()
263 pos += offsetof(struct tpml_digest_values, digests); in tcg_parse_event()
271 alg = get_unaligned_le16((void *)((uintptr_t)event + pos)); in tcg_parse_event()
280 pos += offsetof(struct tpmt_ha, digest); in tcg_parse_event()
281 memcpy(digest, (void *)((uintptr_t)event + pos), in tcg_parse_event()
285 pos += tpm2_get_alg_len(hash_alg); in tcg_parse_event()
292 size = get_unaligned_le32((void *)((uintptr_t)event + pos)); in tcg_parse_event()
294 pos += sizeof(uint32_t); /* tcg_pcr_event2 event_size*/ in tcg_parse_event()
295 pos += size; in tcg_parse_event()
298 if (pos != event_size) in tcg_parse_event()
301 if (pos > log_size) in tcg_parse_event()
304 *offset += pos; in tcg_parse_event()
318 uint32_t i = 0, pcr = 0, pos = 0; in tcg_process_fw_eventlog() local
349 pos = 0; in tcg_process_fw_eventlog()
351 ret = tcg_parse_event_log_header(buffer, sz, &pos); in tcg_process_fw_eventlog()
366 ret = tcg_parse_specid_event(buffer, sz, &pos, digest_list); in tcg_process_fw_eventlog()
372 while (pos < sz) { in tcg_process_fw_eventlog()
373 ret = tcg_parse_event(buffer, sz, &pos, digest_list, in tcg_process_fw_eventlog()