Lines Matching defs:gpt
29 __FBSDID("$FreeBSD: src/sbin/gpt/create.c,v 1.11 2005/08/31 01:47:19 marcel Exp $");
45 #include "gpt.h"
66 map_t *gpt, *tpg;
159 gpt = map_add(1LL, 1LL, MAP_TYPE_PRI_GPT_HDR, calloc(1, secsz));
162 if (gpt == NULL || tbl == NULL)
165 hdr = gpt->map_data;
169 hdr->hdr_lba_self = htole64(gpt->map_start);
191 gpt_write(fd, gpt);
202 memcpy(tpg->map_data, gpt->map_data, secsz);
205 hdr->hdr_lba_alt = htole64(gpt->map_start);