Searched refs:GPTHeader (Results 1 – 4 of 4) sorted by relevance
/external/gptfdisk/ |
D | gpt.h | 43 struct GPTHeader { struct 64 struct GPTHeader mainHeader; 67 struct GPTHeader secondHeader; 86 int LoadHeader(struct GPTHeader *header, DiskIO & disk, uint64_t sector, int *crcOk); 87 int LoadPartitionTable(const struct GPTHeader & header, DiskIO & disk, uint64_t sector = 0); 88 int CheckTable(struct GPTHeader *header); 89 int SaveHeader(struct GPTHeader *header, DiskIO & disk, uint64_t sector); 102 int CheckHeaderCRC(struct GPTHeader* header, int warn = 0); 198 void ReverseHeaderBytes(struct GPTHeader* header);
|
D | gpt.cc | 453 int GPTData::CheckHeaderCRC(struct GPTHeader* header, int warn) { in CheckHeaderCRC() 473 } else if ((hSize > sizeof(GPTHeader)) && warn) { in CheckHeaderCRC() 474 …eader size for CRC check is " << hSize << ", which is greater than " << sizeof(GPTHeader) << ".\n"; in CheckHeaderCRC() 481 if (hSize < sizeof(GPTHeader)) in CheckHeaderCRC() 484 memcpy(temp, header, sizeof(GPTHeader)); in CheckHeaderCRC() 507 if (mainHeader.headerSize > sizeof(GPTHeader)) in RecomputeCRCs() 922 int GPTData::LoadHeader(struct GPTHeader *header, DiskIO & disk, uint64_t sector, int *crcOk) { in LoadHeader() 924 GPTHeader tempHeader; in LoadHeader() 951 int GPTData::LoadPartitionTable(const struct GPTHeader & header, DiskIO & disk, uint64_t sector) { in LoadPartitionTable() 991 int GPTData::CheckTable(struct GPTHeader *header) { in CheckTable() [all …]
|
D | NEWS | 268 disk's sector size is larger than the GPTHeader data structure size (512
|
/external/avb/examples/uefi/ |
D | uefi_avb_ops.c | 62 } 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()
|