Home
last modified time | relevance | path

Searched refs:header_crc32 (Results 1 – 10 of 10) sorted by relevance

/external/vboot_reference/firmware/lib/cgptlib/
Dcgptlib_internal.c58 original_crc32 = h->header_crc32; in HeaderCrc()
59 h->header_crc32 = 0; in HeaderCrc()
61 h->header_crc32 = original_crc32; in HeaderCrc()
88 if (HeaderCrc(h) != h->header_crc32) in CheckHeader()
334 header2->header_crc32 = HeaderCrc(header2); in GptRepair()
345 header1->header_crc32 = HeaderCrc(header1); in GptRepair()
420 header->header_crc32 = HeaderCrc(header); in GptModified()
/external/u-boot/disk/
Dpart_efi.c95 memcpy(&crc32_backup, &gpt_h->header_crc32, sizeof(crc32_backup)); in validate_gpt_header()
96 memset(&gpt_h->header_crc32, 0, sizeof(gpt_h->header_crc32)); in validate_gpt_header()
101 memcpy(&gpt_h->header_crc32, &crc32_backup, sizeof(crc32_backup)); in validate_gpt_header()
173 gpt_h->header_crc32 = 0; in prepare_backup_gpt_header()
177 gpt_h->header_crc32 = cpu_to_le32(calc_crc32); in prepare_backup_gpt_header()
409 gpt_h->header_crc32 = cpu_to_le32(calc_crc32); in write_gpt_table()
619 gpt_h->header_crc32 = 0; in gpt_fill_header()
/external/vboot_reference/firmware/include/
Dgpt.h79 uint32_t header_crc32; member
/external/vboot_reference/tests/
Dcgptlib_test.c85 header->header_crc32 = 0; in RefreshCrc32()
86 header->header_crc32 = Crc32((uint8_t *)header, header->size); in RefreshCrc32()
90 header2->header_crc32 = 0; in RefreshCrc32()
91 header2->header_crc32 = Crc32((uint8_t *)header2, header2->size); in RefreshCrc32()
275 EXPECT(HeaderCrc(h1) == h1->header_crc32); in HeaderCrcTest()
280 EXPECT(HeaderCrc(h1) != h1->header_crc32); in HeaderCrcTest()
285 EXPECT(HeaderCrc(h1) != h1->header_crc32); in HeaderCrcTest()
290 EXPECT(HeaderCrc(h1) == h1->header_crc32); in HeaderCrcTest()
Dvboot_kernel_tests.c100 h->header_crc32 = HeaderCrc(h); in SetupGptHeader()
/external/u-boot/include/
Dpart_efi.h80 __le32 header_crc32; member
/external/avb/examples/uefi/
Duefi_avb_ops.c50 uint32_t header_crc32; member
374 uint32_t gpt_header_crc = gpth_tmp.header_crc32; in validate_gpt()
375 gpth_tmp.header_crc32 = 0; in validate_gpt()
/external/vboot_reference/cgpt/
Dcgpt_show.c75 printf("%sHeader CRC: 0x%08x %s\n", indent, header->header_crc32, in HeaderDetails()
76 (HeaderCrc(header) != header->header_crc32) ? "(INVALID)" : ""); in HeaderDetails()
Dcgpt_common.c838 primary_header->header_crc32 = 0; in UpdateCrc()
839 primary_header->header_crc32 = Crc32( in UpdateCrc()
843 secondary_header->header_crc32 = 0; in UpdateCrc()
844 secondary_header->header_crc32 = Crc32( in UpdateCrc()
/external/vboot_reference/futility/
Dmisc.c321 if (HeaderCrc(h) != h->header_crc32) in recognize_gpt()