Lines Matching defs:iparts

61 static int	get_attrs(descriptor_t *dp, struct ipart *iparts,
63 static int get_parts(disk_t *disk, struct ipart *iparts, char *opath,
105 struct ipart iparts[TOTAL_NUMPART];
112 if (get_parts(desc->p.disk, iparts, pname, sizeof (pname)) != 0) {
139 if (iparts[i].bootid == ACTIVE &&
140 (iparts[i].systid == SUNIXOS ||
141 iparts[i].systid == SUNIXOS2)) {
151 if (iparts[i].systid == SUNIXOS ||
152 iparts[i].systid == SUNIXOS2) {
191 if (iparts[i].systid != UNUSED) {
231 struct ipart iparts[TOTAL_NUMPART];
238 if ((*errp = get_parts(dp->p.disk, iparts, NULL, 0)) != 0) {
247 if ((*errp = get_attrs(dp, iparts, attrs)) != 0) {
338 * and the secondary name is the media name. The iparts parameter returned
359 struct ipart iparts[TOTAL_NUMPART];
362 if (get_parts(dp, iparts, pname, sizeof (pname)) == 0) {
388 if (iparts[i].systid != UNUSED) {
420 get_attrs(descriptor_t *dp, struct ipart *iparts, nvlist_t *attrs)
438 iparts[part_num - 1].systid == UNUSED) {
453 } else if (fdisk_is_dos_extended(iparts[part_num - 1].systid)) {
476 (unsigned int)iparts[part_num - 1].bootid) != 0) {
481 (unsigned int)iparts[part_num - 1].systid) != 0) {
486 (unsigned int)iparts[part_num - 1].beghead) != 0) {
491 (unsigned int)((iparts[part_num - 1].begsect) & 0x3f)) != 0) {
496 ((iparts[part_num - 1].begcyl & 0xff) |
497 ((iparts[part_num - 1].begsect & 0xc0) << 2))) != 0) {
502 (unsigned int)iparts[part_num - 1].endhead) != 0) {
507 (unsigned int)((iparts[part_num - 1].endsect) & 0x3f)) != 0) {
512 ((iparts[part_num - 1].endcyl & 0xff) |
513 ((iparts[part_num - 1].endsect & 0xc0) << 2))) != 0) {
518 (unsigned int)iparts[part_num - 1].relsect) != 0) {
523 (unsigned int)iparts[part_num - 1].numsect) != 0) {
539 * iparts -The structure that holds information about
549 get_parts(disk_t *disk, struct ipart *iparts, char *opath, int opath_len)
604 (void) memset(&iparts[i], 0, sizeof (struct ipart));
605 iparts[i].systid = UNUSED;
608 (void) memcpy(iparts, bootblk.parts, ISIZE);
617 if (iparts[i].systid == UNUSED)
620 iparts[i].relsect = lel(iparts[i].relsect);
621 iparts[i].numsect = lel(iparts[i].numsect);
624 if (!fdisk_is_dos_extended(iparts[i].systid))
636 if ((ret = libfdisk_init(&epp, device, &iparts[i],
672 iparts[j].bootid = log_drv->parts[0].bootid;
673 iparts[j].beghead = log_drv->parts[0].beghead;
674 iparts[j].begsect = log_drv->parts[0].begsect;
675 iparts[j].begcyl = log_drv->parts[0].begcyl;
676 iparts[j].systid = log_drv->parts[0].systid;
677 iparts[j].endhead = log_drv->parts[0].endhead;
678 iparts[j].endsect = log_drv->parts[0].endsect;
679 iparts[j].endcyl = log_drv->parts[0].endcyl;
680 iparts[j].relsect = (tmpsect +
682 iparts[j].numsect = lel(log_drv->parts[0].numsect);
732 struct ipart iparts[TOTAL_NUMPART];
734 if (get_parts(desc->p.disk, iparts, NULL, 0) != 0) {
753 if (iparts[pnum].bootid == ACTIVE &&
754 (iparts[pnum].systid == SUNIXOS ||
755 iparts[pnum].systid == SUNIXOS2)) {
762 if (iparts[i].bootid == ACTIVE &&
763 (iparts[i].systid == SUNIXOS ||
764 iparts[i].systid == SUNIXOS2)) {
773 if (iparts[i].systid == SUNIXOS ||
774 iparts[i].systid == SUNIXOS2) {