Home | History | Annotate | Download | only in gpttool

Lines Matching refs:ptbl

118 int add_ptn(struct ptable *ptbl, u64 first, u64 last, const char *name)
120 struct efi_header *hdr = &ptbl->header;
121 struct efi_entry *entry = ptbl->entry;
160 void show(struct ptable *ptbl)
162 struct efi_entry *entry = ptbl->entry;
181 u64 find_next_lba(struct ptable *ptbl)
183 struct efi_entry *entry = ptbl->entry;
218 int parse_ptn(struct ptable *ptbl, char *x)
230 sz = ptbl->header.last_lba - next_lba;
245 if (x[0] && add_ptn(ptbl, next_lba, next_lba + sz - 1, x))
254 struct ptable ptbl;
256 struct efi_header *hdr = &ptbl.header;
304 memset(&ptbl, 0, sizeof(ptbl));
306 init_mbr(ptbl.mbr, sz - 1);
344 if (parse_ptn(&ptbl, p))
349 if (parse_ptn(&ptbl, argv[1]))
357 n = crc32(n, (void*) ptbl.entry, sizeof(ptbl.entry));
361 n = crc32(n, (void*) &ptbl.header, sizeof(ptbl.header));
364 show(&ptbl);
367 write(fd, &ptbl, sizeof(ptbl));