Searched refs:gpt_hdr (Results 1 – 5 of 5) sorted by relevance
/freebsd/stand/libsa/ |
H A D | gpt.c | 39 static struct gpt_hdr hdr_primary, hdr_backup, *gpthdr; 52 gptupdate(const char *which, struct dsk *dskp, struct gpt_hdr *hdr, in gptupdate() 183 gptread_hdr(const char *which, struct dsk *dskp, struct gpt_hdr *hdr, in gptread_hdr() 232 gptbootconv(const char *which, struct dsk *dskp, struct gpt_hdr *hdr, in gptbootconv() 282 gptread_table(const char *which, struct dsk *dskp, struct gpt_hdr *hdr, in gptread_table()
|
/freebsd/usr.bin/mkimg/ |
H A D | gpt.c | 216 gpt_write_hdr(struct gpt_hdr *hdr, uint64_t self, uint64_t alt, uint64_t tbl) in gpt_write_hdr() 224 crc = crc32(hdr, offsetof(struct gpt_hdr, padding)); in gpt_write_hdr() 234 struct gpt_hdr *hdr; in gpt_write() 265 le32enc(&hdr->hdr_size, offsetof(struct gpt_hdr, padding)); in gpt_write()
|
/freebsd/sys/sys/disk/ |
H A D | gpt.h | 55 struct gpt_hdr { struct 82 CTASSERT(offsetof(struct gpt_hdr, padding) == 92); argument
|
/freebsd/stand/common/ |
H A D | part.c | 146 static struct gpt_hdr * 147 gpt_checkhdr(struct gpt_hdr *hdr, uint64_t lba_self, uint64_t lba_last, in gpt_checkhdr() 200 gpt_checktbl(const struct gpt_hdr *hdr, uint8_t *tbl, size_t size, in gpt_checktbl() 231 struct gpt_hdr *phdr, hdr; in ptable_gptread() 254 phdr = gpt_checkhdr((struct gpt_hdr *)buf, 1, table->sectors - 1, in ptable_gptread() 273 phdr = gpt_checkhdr((struct gpt_hdr *)buf, offset, in ptable_gptread()
|
/freebsd/sys/geom/part/ |
H A D | g_part_gpt.c | 63 CTASSERT(offsetof(struct gpt_hdr, padding) == 92); 92 struct gpt_hdr *hdr; 440 static struct gpt_hdr * 444 struct gpt_hdr *buf, *hdr; in gpt_read_hdr() 545 enum gpt_elt elt, struct gpt_hdr *hdr) in gpt_read_tbl() 607 gpt_matched_hdrs(struct gpt_hdr *pri, struct gpt_hdr *sec) in gpt_matched_hdrs() 714 table->hdr = g_malloc(sizeof(struct gpt_hdr), M_WAITOK | M_ZERO); in g_part_gpt_create() 718 table->hdr->hdr_size = offsetof(struct gpt_hdr, padding); in g_part_gpt_create() 932 struct gpt_hdr *prihdr, *sechdr; in g_part_gpt_read()
|