Lines Matching defs:last
366 quad_t lba, last;
371 last = (pp->mediasize / pp->sectorsize) - 1;
375 * header in AlternateLBA, otherwise in the last medium's LBA.
379 table->lba[elt] = last;
414 hdr->hdr_lba_alt > last)
419 if (hdr->hdr_lba_start < 2 || hdr->hdr_lba_start >= last)
422 if (hdr->hdr_lba_end < hdr->hdr_lba_start || hdr->hdr_lba_end >= last)
432 if (hdr->hdr_lba_table < 2 || hdr->hdr_lba_table >= last)
440 if (lba >= last)
654 * Wipe the first 2 sectors to clear the partitioning. Wipe the last
825 uint64_t last;
830 last = (pp->mediasize / pp->sectorsize) - 1;
907 } else if (table->lba[GPT_ELT_SECHDR] != last) {
909 "the last LBA.\n", pp->name);
1166 quad_t last;
1170 last = pp->mediasize / pp->sectorsize - 1;
1176 table->lba[GPT_ELT_SECHDR] = last;
1177 table->lba[GPT_ELT_SECTBL] = last - tblsz;
1184 table->hdr->hdr_lba_end = last - tblsz - 1;