Home
last modified time | relevance | path

Searched refs:GPTHeader (Results 1 – 4 of 4) sorted by relevance

/external/gptfdisk/
Dgpt.h43 struct GPTHeader { struct
65 struct GPTHeader mainHeader;
68 struct GPTHeader secondHeader;
87 int LoadHeader(struct GPTHeader *header, DiskIO & disk, uint64_t sector, int *crcOk);
88 int LoadPartitionTable(const struct GPTHeader & header, DiskIO & disk, uint64_t sector = 0);
89 int CheckTable(struct GPTHeader *header);
90 int SaveHeader(struct GPTHeader *header, DiskIO & disk, uint64_t sector);
104 int CheckHeaderCRC(struct GPTHeader* header, int warn = 0);
204 void ReverseHeaderBytes(struct GPTHeader* header);
Dgpt.cc537 int GPTData::CheckHeaderCRC(struct GPTHeader* header, int warn) { in CheckHeaderCRC()
557 } else if ((hSize > sizeof(GPTHeader)) && warn) { in CheckHeaderCRC()
558 …eader size for CRC check is " << hSize << ", which is greater than " << sizeof(GPTHeader) << ".\n"; in CheckHeaderCRC()
565 if (hSize < sizeof(GPTHeader)) in CheckHeaderCRC()
568 memcpy(temp, header, sizeof(GPTHeader)); in CheckHeaderCRC()
591 if (mainHeader.headerSize > sizeof(GPTHeader)) in RecomputeCRCs()
1035 int GPTData::LoadHeader(struct GPTHeader *header, DiskIO & disk, uint64_t sector, int *crcOk) { in LoadHeader()
1037 GPTHeader tempHeader; in LoadHeader()
1064 int GPTData::LoadPartitionTable(const struct GPTHeader & header, DiskIO & disk, uint64_t sector) { in LoadPartitionTable()
1107 int GPTData::CheckTable(struct GPTHeader *header) { in CheckTable()
[all …]
DNEWS486 disk's sector size is larger than the GPTHeader data structure size (512
/external/avb/examples/uefi/
Duefi_avb_ops.c62 } GPTHeader; typedef
77 GPTHeader* gpt_header = NULL; in find_partition_entry_by_name()
84 gpt_header = (GPTHeader*)avb_malloc(sizeof(GPTHeader)); in find_partition_entry_by_name()
102 sizeof(GPTHeader), in find_partition_entry_by_name()
357 static EFI_STATUS validate_gpt(const IN GPTHeader* gpth) { in validate_gpt()
372 GPTHeader gpth_tmp = {{0}}; in validate_gpt()
373 avb_memcpy(&gpth_tmp, gpth, sizeof(GPTHeader)); in validate_gpt()
409 GPTHeader gpt_header = {{0}}; in get_disk_block_io()
489 sizeof(GPTHeader), in get_disk_block_io()