Lines Matching defs:gh
601 struct gpt_header gh;
635 memcpy(&gh, secbuf, sizeof(gh));
639 if (letoh64(gh.gh_sig) != GPTSIGNATURE)
642 if (letoh32(gh.gh_rev) != GPTREVISION)
645 ghsize = letoh32(gh.gh_size);
650 orig_csum = gh.gh_csum;
651 gh.gh_csum = 0;
652 new_csum = crc32((unsigned char *)&gh, ghsize);
653 gh.gh_csum = orig_csum;
657 off = letoh64(gh.gh_part_lba) * dl->d_secsize;
658 ghpartsize = letoh32(gh.gh_part_size);
660 ghpartnum = letoh32(gh.gh_part_num);
675 if (new_csum != letoh32(gh.gh_part_csum))