Home
last modified time | relevance | path

Searched refs:valid_headers (Results 1 – 8 of 8) sorted by relevance

/external/vboot_reference/firmware/lib/cgptlib/
Dcgptlib_internal.c246 gpt->valid_headers = 0; in GptSanityCheck()
256 gpt->valid_headers |= MASK_PRIMARY; in GptSanityCheck()
261 gpt->valid_headers |= MASK_SECONDARY; in GptSanityCheck()
266 if (!gpt->valid_headers) in GptSanityCheck()
285 if (MASK_BOTH == gpt->valid_headers && !gpt->valid_entries) { in GptSanityCheck()
296 gpt->valid_headers &= ~MASK_PRIMARY; in GptSanityCheck()
308 if (MASK_BOTH == gpt->valid_headers && in GptSanityCheck()
310 gpt->valid_headers &= ~MASK_SECONDARY; in GptSanityCheck()
324 if (MASK_NONE == gpt->valid_headers || MASK_NONE == gpt->valid_entries) in GptRepair()
328 if (MASK_PRIMARY == gpt->valid_headers) { in GptRepair()
[all …]
/external/vboot_reference/tests/
Dcgptlib_test.c156 gpt->valid_headers = MASK_BOTH; in BuildTestGptData()
824 EXPECT(MASK_BOTH == gpt->valid_headers); in SanityCheckTest()
829 EXPECT(MASK_BOTH == gpt->valid_headers); in SanityCheckTest()
843 EXPECT(0 == gpt->valid_headers); in SanityCheckTest()
848 EXPECT(0 == gpt->valid_headers); in SanityCheckTest()
855 EXPECT(MASK_SECONDARY == gpt->valid_headers); in SanityCheckTest()
859 EXPECT(MASK_BOTH == gpt->valid_headers); in SanityCheckTest()
866 EXPECT(MASK_PRIMARY == gpt->valid_headers); in SanityCheckTest()
870 EXPECT(MASK_BOTH == gpt->valid_headers); in SanityCheckTest()
882 EXPECT(MASK_PRIMARY == gpt->valid_headers); in SanityCheckTest()
[all …]
Dvboot_kernel_tests.c300 g.valid_headers = g.valid_entries = MASK_BOTH; in ReadWriteGptTest()
386 g.valid_headers = g.valid_entries = MASK_SECONDARY; in ReadWriteGptTest()
411 g.valid_headers = g.valid_entries = MASK_PRIMARY; in ReadWriteGptTest()
/external/vboot_reference/cgpt/
Dcgpt_show.c253 if (drive->gpt.valid_headers & MASK_PRIMARY) { in GptShow()
262 ((drive->gpt.valid_headers & MASK_PRIMARY) && params->verbose)) { in GptShow()
302 if (drive->gpt.valid_headers & MASK_SECONDARY) in GptShow()
314 ((drive->gpt.valid_headers & MASK_SECONDARY) && in GptShow()
315 (!(drive->gpt.valid_headers & MASK_PRIMARY) || in GptShow()
Dcgpt_common.c55 if ((drive->gpt.valid_headers != MASK_BOTH) || in CheckValid()
689 if (gpt->valid_headers & MASK_PRIMARY) in GetGptHeader()
691 else if (gpt->valid_headers & MASK_SECONDARY) in GetGptHeader()
889 if (gpt->valid_headers & MASK_PRIMARY) { in RepairEntries()
891 } else if (gpt->valid_headers & MASK_SECONDARY) { in RepairEntries()
937 uint8_t RepairHeader(GptData *gpt, const uint32_t valid_headers) { in RepairHeader() argument
943 if (valid_headers == MASK_BOTH) { in RepairHeader()
948 } else if (valid_headers == MASK_PRIMARY) { in RepairHeader()
955 } else if (valid_headers == MASK_SECONDARY) { in RepairHeader()
Dcgpt.h167 uint8_t RepairHeader(GptData *gpt, const uint32_t valid_headers);
Dcgpt_add.c137 if (((drive->gpt.valid_headers & MASK_BOTH) != MASK_BOTH) || in CgptCheckAddValidity()
/external/vboot_reference/firmware/include/
Dgpt_misc.h111 uint32_t valid_headers, valid_entries; member