/external/vboot_reference/firmware/lib/cgptlib/ |
D | cgptlib_internal.c | 47 (SECTOR_SIZE / sizeof(GptEntry))))) in CheckParameters() 101 if (h->size_of_entry != sizeof(GptEntry)) in CheckHeader() 153 int IsKernelEntry(const GptEntry *e) in IsKernelEntry() 159 int CheckEntries(GptEntry *entries, GptHeader *h) in CheckEntries() 163 GptEntry *entry; in CheckEntries() 175 GptEntry *e2; in CheckEntries() 242 GptEntry *entries1 = (GptEntry *)(gpt->primary_entries); in GptSanityCheck() 243 GptEntry *entries2 = (GptEntry *)(gpt->secondary_entries); in GptSanityCheck() 319 GptEntry *entries1 = (GptEntry *)(gpt->primary_entries); in GptRepair() 320 GptEntry *entries2 = (GptEntry *)(gpt->secondary_entries); in GptRepair() [all …]
|
D | cgptlib.c | 36 GptEntry *entries = (GptEntry *)gpt->primary_entries; in GptNextKernelEntry() 37 GptEntry *e; in GptNextKernelEntry() 120 int GptUpdateKernelWithEntry(GptData *gpt, GptEntry *e, uint32_t update_type) in GptUpdateKernelWithEntry() 200 GptEntry *entries = (GptEntry *)gpt->primary_entries; in GptUpdateKernelEntry() 201 GptEntry *e = entries + gpt->current_kernel; in GptUpdateKernelEntry() 215 GptEntry *GptFindNthEntry(GptData *gpt, const Guid *guid, unsigned int n) in GptFindNthEntry() 218 GptEntry *entries = (GptEntry *)gpt->primary_entries; in GptFindNthEntry() 219 GptEntry *e; in GptFindNthEntry()
|
/external/vboot_reference/firmware/lib/cgptlib/include/ |
D | cgptlib_internal.h | 102 int CheckEntries(GptEntry *entries, GptHeader *h); 139 int GetEntrySuccessful(const GptEntry *e); 140 int GetEntryPriority(const GptEntry *e); 141 int GetEntryTries(const GptEntry *e); 142 void SetEntrySuccessful(GptEntry *e, int successful); 143 void SetEntryPriority(GptEntry *e, int priority); 144 void SetEntryTries(GptEntry *e, int tries); 149 int IsKernelEntry(const GptEntry *e);
|
/external/vboot_reference/firmware/include/ |
D | gpt_misc.h | 147 GptEntry *GptFindNthEntry(GptData *gpt, const Guid *guid, unsigned int n); 166 int IsUnusedEntry(const GptEntry *e); 171 size_t GptGetEntrySizeLba(const GptEntry *e); 176 size_t GptGetEntrySizeBytes(const GptData *gpt, const GptEntry *e); 188 int GptUpdateKernelWithEntry(GptData *gpt, GptEntry *e, uint32_t update_type);
|
D | gpt.h | 115 } __attribute__((packed)) GptEntry; typedef
|
/external/vboot_reference/tests/ |
D | cgptlib_test.c | 45 #define TOTAL_ENTRIES_SIZE (MAX_NUMBER_OF_ENTRIES * sizeof(GptEntry)) /* 16384 */ 75 GptEntry *entries, *entries2; in RefreshCrc32() 78 entries = (GptEntry *)gpt->primary_entries; in RefreshCrc32() 80 entries2 = (GptEntry *)gpt->secondary_entries; in RefreshCrc32() 148 GptEntry *entries, *entries2; in BuildTestGptData() 162 entries = (GptEntry *)gpt->primary_entries; in BuildTestGptData() 195 entries2 = (GptEntry *)gpt->secondary_entries; in BuildTestGptData() 214 EXPECT(GPTENTRY_EXPECTED_SIZE == sizeof(GptEntry)); in StructSizeTest() 681 GptEntry *e1 = (GptEntry *)(gpt->primary_entries); in EntriesCrcTest() 682 GptEntry *e2 = (GptEntry *)(gpt->secondary_entries); in EntriesCrcTest() [all …]
|
D | vboot_kernel_tests.c | 85 h->size_of_entry = sizeof(GptEntry); in SetupGptHeader() 433 h->size_of_entry = sizeof(GptEntry); in ReadWriteGptTest() 447 h->size_of_entry = sizeof(GptEntry); in ReadWriteGptTest()
|
/external/vboot_reference/cgpt/ |
D | cgpt_show.c | 69 static void HeaderDetails(GptHeader *header, GptEntry *entries, in HeaderDetails() 99 void EntryDetails(GptEntry *entry, uint32_t index, int raw) { in EntryDetails() 148 GptEntry *entry; in EntriesDetails() 174 GptEntry *entry = GetEntry(&drive->gpt, ANY_VALID, index); in GptShow() 223 GptEntry *entry; in GptShow() 241 GptEntry *entries; in GptShow() 268 entries = (GptEntry*)drive->gpt.primary_entries; in GptShow() 324 entries = (GptEntry*)drive->gpt.secondary_entries; in GptShow()
|
D | cgpt_find.c | 43 GptEntry *entry) { in match_content() 75 int partnum, GptEntry *entry) { in showmatch() 96 int partnum, GptEntry *entry) { in chromeos_mtd_show() 113 GptEntry *entry; in gpt_search()
|
D | cgpt_add.c | 71 GptEntry *entry; in GptSetEntryAttributes() 236 GptEntry *entry = GetEntry(&drive.gpt, PRIMARY, index); in CgptGetPartitionDetails() 250 GptEntry *entry = GetEntry(&drive.gpt, PRIMARY, index); in CgptGetPartitionDetails() 268 GptEntry *entry, backup; in GptAdd() 282 rv = CheckEntries((GptEntry*)drive->gpt.primary_entries, in GptAdd()
|
D | cgpt_common.c | 705 GptEntry *GetEntry(GptData *gpt, int secondary, uint32_t entry_index) { in GetEntry() 726 return (GptEntry*)(&entries[stride * entry_index]); in GetEntry() 732 GptEntry *entry; in SetPriority() 738 GptEntry *entry; in GetPriority() 746 GptEntry *entry; in SetTries() 752 GptEntry *entry; in GetTries() 760 GptEntry *entry; in SetSuccessful() 766 GptEntry *entry; in GetSuccessful() 773 GptEntry *entry; in SetRaw() 788 GptEntry *entry; in IsUnused() [all …]
|
D | cgpt_boot.c | 46 GptEntry *entry = GetEntry(&drive.gpt, ANY_VALID, i); in CgptGetBootPartitionNumber() 120 GptEntry *entry = GetEntry(&drive.gpt, ANY_VALID, index); in CgptBoot()
|
D | cgpt.h | 147 void EntryDetails(GptEntry *entry, uint32_t index, int raw); 150 GptEntry *GetEntry(GptData *gpt, int secondary, uint32_t entry_index);
|
D | cgpt_create.c | 50 h->size_of_entry = sizeof(GptEntry); in GptCreate()
|
/external/vboot_reference/firmware/lib/ |
D | gpt_misc.c | 26 uint64_t max_entries_bytes = MAX_NUMBER_OF_ENTRIES * sizeof(GptEntry); in AllocAndReadGptData() 199 int IsUnusedEntry(const GptEntry *e) in IsUnusedEntry() 210 size_t GptGetEntrySizeLba(const GptEntry *e) in GptGetEntrySizeLba() 220 size_t GptGetEntrySizeBytes(const GptData *gpt, const GptEntry *e) in GptGetEntrySizeBytes()
|
/external/vboot_reference/host/include/ |
D | cgpt_params.h | 83 int partnum, GptEntry *entry);
|