Home
last modified time | relevance | path

Searched refs:gpt_h (Results 1 – 2 of 2) sorted by relevance

/external/u-boot/disk/
Dpart_efi.c79 static int validate_gpt_header(gpt_header *gpt_h, lbaint_t lba, in validate_gpt_header() argument
86 if (le64_to_cpu(gpt_h->signature) != GPT_HEADER_SIGNATURE) { in validate_gpt_header()
89 le64_to_cpu(gpt_h->signature), in validate_gpt_header()
95 memcpy(&crc32_backup, &gpt_h->header_crc32, sizeof(crc32_backup)); in validate_gpt_header()
96 memset(&gpt_h->header_crc32, 0, sizeof(gpt_h->header_crc32)); in validate_gpt_header()
98 calc_crc32 = efi_crc32((const unsigned char *)gpt_h, in validate_gpt_header()
99 le32_to_cpu(gpt_h->header_size)); in validate_gpt_header()
101 memcpy(&gpt_h->header_crc32, &crc32_backup, sizeof(crc32_backup)); in validate_gpt_header()
113 if (le64_to_cpu(gpt_h->my_lba) != lba) { in validate_gpt_header()
115 le64_to_cpu(gpt_h->my_lba), in validate_gpt_header()
[all …]
/external/u-boot/include/
Dpart.h311 gpt_header *gpt_h, gpt_entry *gpt_e);
325 gpt_header *gpt_h, gpt_entry *gpt_e,
338 int gpt_fill_header(struct blk_desc *dev_desc, gpt_header *gpt_h,