Home
last modified time | relevance | path

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

/external/vboot_reference/firmware/lib/
Dgpt_misc.c36 gptdata->primary_entries = (uint8_t *)VbExMalloc(max_entries_bytes); in AllocAndReadGptData()
41 gptdata->primary_entries == NULL || in AllocAndReadGptData()
63 gptdata->primary_entries)) in AllocAndReadGptData()
143 if (gptdata->primary_entries) { in WriteAndFreeGptData()
152 gptdata->primary_entries)) in WriteAndFreeGptData()
188 if (gptdata->primary_entries) in WriteAndFreeGptData()
189 VbExFree(gptdata->primary_entries); in WriteAndFreeGptData()
/external/vboot_reference/tests/
Dcgptlib_test.c78 entries = (GptEntry *)gpt->primary_entries; in RefreshCrc32()
102 Memset(gpt->primary_entries, 0, PARTITION_ENTRIES_SIZE); in ZeroEntries()
121 static uint8_t primary_entries[PARTITION_ENTRIES_SIZE]; in GetEmptyGptData() local
127 gpt.primary_entries = primary_entries; in GetEmptyGptData()
162 entries = (GptEntry *)gpt->primary_entries; in BuildTestGptData()
681 GptEntry *e1 = (GptEntry *)(gpt->primary_entries); in EntriesCrcTest()
688 gpt->primary_entries[0] ^= 0xa5; /* just XOR a non-zero value */ in EntriesCrcTest()
707 GptEntry *e1 = (GptEntry *)(gpt->primary_entries); in ValidEntryTest()
741 GptEntry *e = (GptEntry *)gpt->primary_entries; in OverlappedPartitionTest()
818 GptEntry *e1 = (GptEntry *)gpt->primary_entries; in SanityCheckTest()
[all …]
/external/vboot_reference/cgpt/
Dcgpt_common.c179 if (CGPT_OK != Load(drive, &drive->gpt.primary_entries, in GptLoad()
227 if (CGPT_OK != Save(drive, drive->gpt.primary_entries, in GptSave()
249 if (drive->gpt.primary_entries) in GptSave()
250 free(drive->gpt.primary_entries); in GptSave()
251 drive->gpt.primary_entries = 0; in GptSave()
713 entries = gpt->primary_entries; in GetEntry()
719 entries = gpt->primary_entries; in GetEntry()
829 Crc32(gpt->primary_entries, entries_size); in UpdateCrc()
900 if (memcmp(gpt->primary_entries, gpt->secondary_entries, entries_size)) { in RepairEntries()
901 memcpy(gpt->secondary_entries, gpt->primary_entries, entries_size); in RepairEntries()
[all …]
Dcgpt_legacy.c33 memset(drive.gpt.primary_entries, 0, drive.gpt.sector_bytes); in CgptLegacy()
Dcgpt_show.c268 entries = (GptEntry*)drive->gpt.primary_entries; in GptShow()
296 memcmp(drive->gpt.primary_entries, drive->gpt.secondary_entries, in GptShow()
Dcgpt_create.c93 AllocAndClear(&drive->gpt.primary_entries, entries_size); in GptCreate()
Dcgpt_add.c282 rv = CheckEntries((GptEntry*)drive->gpt.primary_entries, in GptAdd()
/external/vboot_reference/firmware/lib/cgptlib/
Dcgptlib.c36 GptEntry *entries = (GptEntry *)gpt->primary_entries; in GptNextKernelEntry()
200 GptEntry *entries = (GptEntry *)gpt->primary_entries; in GptUpdateKernelEntry()
218 GptEntry *entries = (GptEntry *)gpt->primary_entries; in GptFindNthEntry()
Dcgptlib_internal.c242 GptEntry *entries1 = (GptEntry *)(gpt->primary_entries); in GptSanityCheck()
319 GptEntry *entries1 = (GptEntry *)(gpt->primary_entries); in GptRepair()
408 GptEntry *entries = (GptEntry *)gpt->primary_entries; in GetCurrentKernelUniqueGuid()
417 header->entries_crc32 = Crc32(gpt->primary_entries, in GptModified()
/external/vboot_reference/firmware/include/
Dgpt_misc.h88 uint8_t *primary_entries; member