Lines Matching defs:gpth
357 struct gpt_hdr gpth;
376 memcpy(&gpth, d->buf, sizeof(gpth));
378 if (memcmp(GPT_HDR_SIG, gpth.hdr_sig, sizeof(gpth.hdr_sig)))
381 crc = gpth.hdr_crc_self;
382 gpth.hdr_crc_self = 0;
383 gpth.hdr_crc_self = crc32(0, (const void *)&gpth, GPT_HDR_SIZE);
384 if (gpth.hdr_crc_self != crc) {
388 if (gpth.hdr_lba_self + rf_offset != sector)
399 entries = sizeof(d->buf)/gpth.hdr_entsz; /* entries per buffer */
400 entblk = gpth.hdr_lba_table + rf_offset;
406 for (entry = 0; entry < gpth.hdr_entries; entry += entries) {
408 (gpth.hdr_entries - entry) * gpth.hdr_entsz);
409 entries = size / gpth.hdr_entsz;
458 if (crc != gpth.hdr_crc_table) {