Lines Matching defs:sectors
81 uint64_t sectors;
259 phdr = gpt_checkhdr((struct gpt_hdr *)buf, 1, table->sectors - 1,
268 table->sectors - 1) == 0) {
273 offset = pri ? hdr.hdr_lba_alt: table->sectors - 1;
279 table->sectors - 1, table->sectorsize);
302 table->sectors - 1) == 0) {
319 * in the disk's GPT table header, set the table->sectors to the value
326 table->sectors = hdr.hdr_lba_alt + 1;
407 #if 0 /* Some BIOSes return an incorrect number of sectors */
408 if (offset >= table->sectors)
546 uint16_t sum, heads, sectors;
572 sectors = be16toh(dl->nsecs);
574 if (sectors * heads == 0) {
587 entry->part.start = be32toh(dl->map[i].cyl) * heads * sectors;
631 entry->part.end = table->sectors;
644 ptable_open(void *dev, uint64_t sectors, uint16_t sectorsize,
669 table->sectors = sectors;
751 #if 0 /* Some BIOSes return an incorrect number of sectors */
752 if (start + end - 1 >= sectors)
808 uint64_t tmp = table->sectors * table->sectorsize;
810 if (tmp < table->sectors)