Searched refs:primary_entries (Results 1 – 10 of 10) sorted by relevance
/external/vboot_reference/firmware/lib/ |
D | gpt_misc.c | 36 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/ |
D | cgptlib_test.c | 78 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/ |
D | cgpt_common.c | 179 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 …]
|
D | cgpt_legacy.c | 33 memset(drive.gpt.primary_entries, 0, drive.gpt.sector_bytes); in CgptLegacy()
|
D | cgpt_show.c | 268 entries = (GptEntry*)drive->gpt.primary_entries; in GptShow() 296 memcmp(drive->gpt.primary_entries, drive->gpt.secondary_entries, in GptShow()
|
D | cgpt_create.c | 93 AllocAndClear(&drive->gpt.primary_entries, entries_size); in GptCreate()
|
D | cgpt_add.c | 282 rv = CheckEntries((GptEntry*)drive->gpt.primary_entries, in GptAdd()
|
/external/vboot_reference/firmware/lib/cgptlib/ |
D | cgptlib.c | 36 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()
|
D | cgptlib_internal.c | 242 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/ |
D | gpt_misc.h | 88 uint8_t *primary_entries; member
|