Home
last modified time | relevance | path

Searched refs:secondary_entries (Results 1 – 7 of 7) sorted by relevance

/external/vboot_reference/firmware/lib/
Dgpt_misc.c37 gptdata->secondary_entries = (uint8_t *)VbExMalloc(max_entries_bytes); in AllocAndReadGptData()
42 gptdata->secondary_entries == NULL) in AllocAndReadGptData()
88 gptdata->secondary_entries)) in AllocAndReadGptData()
172 if (gptdata->secondary_entries) { in WriteAndFreeGptData()
177 gptdata->secondary_entries)) in WriteAndFreeGptData()
190 if (gptdata->secondary_entries) in WriteAndFreeGptData()
191 VbExFree(gptdata->secondary_entries); in WriteAndFreeGptData()
/external/vboot_reference/cgpt/
Dcgpt_common.c193 if (CGPT_OK != Load(drive, &drive->gpt.secondary_entries, in GptLoad()
237 if (CGPT_OK != Save(drive, drive->gpt.secondary_entries, in GptSave()
255 if (drive->gpt.secondary_entries) in GptSave()
256 free(drive->gpt.secondary_entries); in GptSave()
257 drive->gpt.secondary_entries = 0; in GptSave()
715 entries = gpt->secondary_entries; in GetEntry()
722 entries = gpt->secondary_entries; in GetEntry()
835 Crc32(gpt->secondary_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_show.c296 memcmp(drive->gpt.primary_entries, drive->gpt.secondary_entries, in GptShow()
324 entries = (GptEntry*)drive->gpt.secondary_entries; in GptShow()
Dcgpt_create.c94 AllocAndClear(&drive->gpt.secondary_entries, entries_size); in GptCreate()
/external/vboot_reference/tests/
Dcgptlib_test.c80 entries2 = (GptEntry *)gpt->secondary_entries; in RefreshCrc32()
103 Memset(gpt->secondary_entries, 0, PARTITION_ENTRIES_SIZE); in ZeroEntries()
123 static uint8_t secondary_entries[PARTITION_ENTRIES_SIZE]; in GetEmptyGptData() local
129 gpt.secondary_entries = secondary_entries; in GetEmptyGptData()
195 entries2 = (GptEntry *)gpt->secondary_entries; in BuildTestGptData()
682 GptEntry *e2 = (GptEntry *)(gpt->secondary_entries); in EntriesCrcTest()
689 gpt->secondary_entries[TOTAL_ENTRIES_SIZE-1] ^= 0x5a; in EntriesCrcTest()
893 gpt->secondary_entries[0]++; in SanityCheckTest()
916 gpt->secondary_entries[0]++; in SanityCheckTest()
936 gpt->primary_entries = gpt->secondary_entries; in SanityCheckTest()
[all …]
/external/vboot_reference/firmware/include/
Dgpt_misc.h90 uint8_t *secondary_entries; member
/external/vboot_reference/firmware/lib/cgptlib/
Dcgptlib_internal.c243 GptEntry *entries2 = (GptEntry *)(gpt->secondary_entries); in GptSanityCheck()
320 GptEntry *entries2 = (GptEntry *)(gpt->secondary_entries); in GptRepair()