Home
last modified time | relevance | path

Searched refs:relsect (Results 1 – 17 of 17) sorted by relevance

/illumos-gate/usr/src/cmd/hal/utils/
H A Dfsutils.c122 uint_t relsect; in walk_partitions() local
140 relsect = sec + ltohi(ipart[i].relsect); in walk_partitions()
146 sec = startsec + ltohi(ipart[i].relsect); in walk_partitions()
148 relsect = startsec = sec; in walk_partitions()
153 if (valid && f(arg, ipart[i].systid, relsect, in walk_partitions()
162 find_dos_drive_cb(void *arg, int systid, uint_t relsect, uint_t numsect) in find_dos_drive_cb() argument
168 p->r_relsect = relsect; in find_dos_drive_cb()
201 get_num_dos_drives_cb(void *arg, int systid, uint_t relsect, uint_t numsect) in get_num_dos_drives_cb() argument
/illumos-gate/usr/src/cmd/fstyp/
H A Dfstyp.c316 uint32_t relsect; in walk_partitions() local
334 relsect = sec + ltohi(ipart[i].relsect); in walk_partitions()
340 sec = startsec + ltohi(ipart[i].relsect); in walk_partitions()
342 relsect = startsec = sec; in walk_partitions()
347 if (valid && f(arg, ipart[i].systid, relsect, in walk_partitions()
356 find_dos_drive_cb(void *arg, int systid, uint32_t relsect, uint32_t numsect) in find_dos_drive_cb() argument
362 p->r_relsect = relsect; in find_dos_drive_cb()
/illumos-gate/usr/src/lib/libfdisk/common/
H A Dlibfdisk.c638 secnum = LE_32(fdp->relsect); in fdisk_read_extpart()
659 if ((LE_32(ext_fdp->relsect) == 0) && in fdisk_read_extpart()
669 LE_32(ext_fdp->relsect); in fdisk_read_extpart()
723 if (LE_32(ext_fdp->relsect) == 0) in fdisk_read_extpart()
726 secnum = LE_32(fdp->relsect) + in fdisk_read_extpart()
727 LE_32(ext_fdp->relsect); in fdisk_read_extpart()
924 part->relsect = MAX_LOGDRIVE_OFFSET; in fdisk_add_logical_drive()
950 part->relsect = LE_32(LE_32(part->relsect) - 1); in fdisk_add_logical_drive()
1018 cur->parts[0].relsect = in fdisk_delete_logical_drive()
1019 LE_32(LE_32(cur->parts[0].relsect) + in fdisk_delete_logical_drive()
[all …]
/illumos-gate/usr/src/cmd/fdisk/
H A Dfdisk.c1440 Table[new_pt].relsect) && in dev_mboot_write()
1474 Table[new_pt].relsect) && in dev_mboot_write()
1828 Old_Table[i].relsect; in load()
2066 relsect == LE_32(rsect) && in load()
2319 Table[i].relsect = LE_32(rsect); in insert_tbl()
2446 if (Table[i].relsect != 1) { in verify_tbl()
2452 Table[i].relsect); in verify_tbl()
2525 Table[i].relsect, in verify_tbl()
2535 Table[j].relsect, in verify_tbl()
3012 LE_32(Table[i].relsect),
[all …]
/illumos-gate/usr/src/cmd/format/
H A Dmenu_fdisk.c138 partp->relsect = getlong((uchar_t **)&bootptr); in fill_ipart()
553 ip.relsect = relsec;
569 (fdisk_is_linux_swap(epp, lel(ip.relsect), NULL) != 0)) ||
584 xstart = lel(ip.relsect) / (nhead * nsect);
594 solaris_offset = (uint_t)lel(ip.relsect);
781 ip.relsect = relsec;
792 (fdisk_is_linux_swap(epp, lel(ip.relsect), NULL) != 0)) ||
800 solaris_offset = lel(ip.relsect);
920 (fdisk_is_linux_swap(epp, lel(ip.relsect), NULL) != 0)) ||
946 solaris_offset = lel(ip.relsect);
/illumos-gate/usr/src/cmd/fs.d/pcfs/fsck/
H A Dpcfs_common.c552 found = ltohi(part[bootPart].relsect) * BPSEC; in findPartitionOffset()
557 found = ltohi(part[primaryPart].relsect) * BPSEC; in findPartitionOffset()
574 nextseek = xstartsect = ltohi(part[extendedPart].relsect); in findPartitionOffset()
630 ltohi(part[i].relsect); in findPartitionOffset()
644 ltohi(part[extndDrives[driveIndex]].relsect) + in findPartitionOffset()
673 found = ltohi(part[extraDrives[driveIndex]].relsect) * BPSEC; in findPartitionOffset()
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dpartition.c518 (unsigned int)iparts[part_num - 1].relsect) != 0) { in get_attrs()
620 iparts[i].relsect = lel(iparts[i].relsect); in get_parts()
680 iparts[j].relsect = (tmpsect + in get_parts()
681 lel(log_drv->parts[0].relsect) + epp->ext_beg_sec); in get_parts()
683 tmpsect = lel(log_drv->parts[1].relsect); in get_parts()
/illumos-gate/usr/src/cmd/rmformat/
H A Drmf_slice.c1208 fdisk->part[i].relsect = lel(GET_32(&(part->relsect))); in get_fdisk()
1213 DPRINTF1("\trel sector 0x%x\n", fdisk->part[i].relsect); in get_fdisk()
1377 parts[i].relsect = lel(UNUSED); in write_default_label()
1390 parts[0].relsect = lel(nhead * nsect); in write_default_label()
1537 sol_offset = fdisk.part[i].relsect; in overwrite_metadata()
1545 sol_offset = fdisk.part[i].relsect; in overwrite_metadata()
1552 erase(handle, (diskaddr_t)fdisk.part[i].relsect, in overwrite_metadata()
H A Drmformat.h142 uint32_t relsect; /* Beginning of partition */ member
/illumos-gate/usr/src/uts/common/sys/dktp/
H A Dfdisk.h84 uint32_t relsect; /* first sector relative to start of disk */ member
/illumos-gate/usr/src/uts/common/fs/pcfs/
H A Dpc_vfsops.c1603 uint_t, LE_32(dosp[i].relsect), in findTheDrive()
1630 startsec = LE_32(dosp[bootPart].relsect); in findTheDrive()
1636 startsec = LE_32(dosp[primaryPart].relsect); in findTheDrive()
1653 diskblk = xstartsect = LE_32(dosp[extendedPart].relsect); in findTheDrive()
1703 uint_t, LE_32(dosp[i].relsect), in findTheDrive()
1719 LE_32(dosp[i].relsect); in findTheDrive()
1737 LE_32(dosp[extndDrives[driveIndex]].relsect) + in findTheDrive()
1772 startsec = LE_32(dosp[extraDrives[driveIndex]].relsect); in findTheDrive()
/illumos-gate/usr/src/cmd/boot/installgrub/
H A Dinstallgrub.c782 if (part->relsect == 0) { in get_start_sector()
787 if (edkpi.p_start >= part->relsect && in get_start_sector()
788 edkpi.p_start < (part->relsect + part->numsect)) { in get_start_sector()
805 device->start_sector = part->relsect; in get_start_sector()
1468 *start_sect = part->relsect; in find_x86_bootpar()
/illumos-gate/usr/src/cmd/boot/installboot/i386/
H A Dinstallboot.c1343 if (part[i].relsect == edkpi.p_start) { in get_start_sector()
1344 *start = part[i].relsect; in get_start_sector()
1561 data->target.start = part[data->target.id - 1].relsect; in probe_mbr()
1591 device->stage.size = part[0].relsect; in probe_mbr()
1626 device->stage.start = part[i].relsect; in probe_mbr()
1650 device->stage.start = part[i].relsect; in probe_mbr()
/illumos-gate/usr/src/uts/common/io/
H A Dcmlb.c2508 i, fdp->relsect, fdp->numsect,
2522 uint32_t relsect;
2542 relsect = LE_32(fdp->relsect);
2545 cl->cl_fmap[i].fmap_start = relsect;
2563 (relsect + ext_relsect), blocksize,
2584 logdrive_offset = LE_32(efdp1->relsect);
2589 abs_secnum = relsect + ext_relsect +
2624 if ((ext_relsect = LE_32(efdp2->relsect)) == 0)
2648 (cmlb_is_linux_swap(cl, relsect,
2652 solaris_offset = relsect;
/illumos-gate/usr/src/cmd/fs.d/pcfs/mkfs/
H A Dmkfs.c713 if ((*seekto = ltohi(part[bootPart].relsect)) == 0) { in seek_partn()
735 if ((*seekto = ltohi(part[primaryPart].relsect)) == 0) { in seek_partn()
769 nextseek = xstartsect = ltohi(part[extendedPart].relsect); in seek_partn()
825 ltohi(part[i].relsect); in seek_partn()
839 ltohi(part[extndDrives[driveIndex]].relsect) + in seek_partn()
892 *seekto = ltohi(part[extraDrives[driveIndex]].relsect); in seek_partn()
/illumos-gate/usr/src/cmd/mdb/common/modules/disk_label/
H A Ddisk_label.c193 nr, typestr, ip->bootid, begchs, endchs, ip->relsect, ip->numsect); in print_fdisk_part()
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm.c5642 (fdisk_is_linux_swap(epp, part->relsect,