Searched refs:gpt_h (Results 1 – 2 of 2) sorted by relevance
| /OK3568_Linux_fs/u-boot/disk/ |
| H A D | part_efi.c | 76 static int validate_gpt_header(gpt_header *gpt_h, lbaint_t lba, in validate_gpt_header() argument 83 if (le64_to_cpu(gpt_h->signature) != GPT_HEADER_SIGNATURE) { in validate_gpt_header() 84 if (le64_to_cpu(gpt_h->signature) != 0) in validate_gpt_header() 87 le64_to_cpu(gpt_h->signature), in validate_gpt_header() 93 memcpy(&crc32_backup, &gpt_h->header_crc32, sizeof(crc32_backup)); in validate_gpt_header() 94 memset(&gpt_h->header_crc32, 0, sizeof(gpt_h->header_crc32)); in validate_gpt_header() 96 calc_crc32 = efi_crc32((const unsigned char *)gpt_h, in validate_gpt_header() 97 le32_to_cpu(gpt_h->header_size)); in validate_gpt_header() 99 memcpy(&gpt_h->header_crc32, &crc32_backup, sizeof(crc32_backup)); in validate_gpt_header() 111 if (le64_to_cpu(gpt_h->my_lba) != lba) { in validate_gpt_header() [all …]
|
| /OK3568_Linux_fs/u-boot/include/ |
| H A D | part.h | 314 gpt_header *gpt_h, gpt_entry *gpt_e); 328 gpt_header *gpt_h, gpt_entry *gpt_e, 341 int gpt_fill_header(struct blk_desc *dev_desc, gpt_header *gpt_h,
|