Lines Matching defs:hdr
378 struct gpt_hdr *hdr, struct gpt_ent *ent, UINT32 index)
414 struct gpt_hdr hdr;
421 status = efi_block_read(bdev, (EFI_LBA)GPT_HDR_BLKNO * bdev->bio->Media->BlockSize, &hdr,
422 sizeof(hdr));
427 if (memcmp(hdr.hdr_sig, GPT_HDR_SIG, sizeof(hdr.hdr_sig)) != 0)
429 if (le32toh(hdr.hdr_entsz) < sizeof(ent))
432 sz = le32toh(hdr.hdr_entsz) * le32toh(hdr.hdr_entries);
438 le64toh(hdr.hdr_lba_table) * bdev->bio->Media->BlockSize, buf, sz);
444 for (entry = 0; entry < le32toh(hdr.hdr_entries); entry++) {
445 memcpy(&ent, (UINT8 *)buf + (entry * le32toh(hdr.hdr_entsz)),
447 efi_block_find_partitions_gpt_entry(bdev, &hdr, &ent, entry);