Searched refs:gpth (Results 1 – 2 of 2) sorted by relevance
/external/syslinux/com32/chain/ |
D | partiter.c | 125 const struct disk_gpt_header *gpth, const struct disk_gpt_part_entry *gptl in pi_gpt_ctor() argument 133 siz = (uint64_t)gpth->part_count * gpth->part_size; in pi_gpt_ctor() 142 iter->gpt.pe_count = (int)gpth->part_count; in pi_gpt_ctor() 143 iter->gpt.pe_size = (int)gpth->part_size; in pi_gpt_ctor() 144 iter->gpt.ufirst = gpth->lba_first_usable; in pi_gpt_ctor() 145 iter->gpt.ulast = gpth->lba_last_usable; in pi_gpt_ctor() 147 memcpy(&iter->gpt.disk_guid, &gpth->disk_guid, sizeof gpth->disk_guid); in pi_gpt_ctor() 148 memcpy(&iter->gpt.part_guid, &gpth->disk_guid, sizeof gpth->disk_guid); in pi_gpt_ctor() 543 struct disk_gpt_header *gpth; in try_gpt_hdr() local 546 gpth = disk_read_sectors(di, gpt_cur, 1); in try_gpt_hdr() [all …]
|
/external/avb/examples/uefi/ |
D | uefi_avb_ops.c | 357 static EFI_STATUS validate_gpt(const IN GPTHeader* gpth) { in validate_gpt() argument 358 if (avb_memcmp(gpth->signature, GPT_MAGIC, sizeof(gpth->signature)) != 0) { in validate_gpt() 363 if (gpth->header_size < GPT_MIN_SIZE) { in validate_gpt() 367 if (gpth->header_size > AVB_BLOCK_SIZE) { in validate_gpt() 373 avb_memcpy(&gpth_tmp, gpth, sizeof(GPTHeader)); in validate_gpt() 384 if (gpth->revision != GPT_REVISION) { in validate_gpt()
|