Lines Matching defs:part
57 static void fdisk_set_CHS_values(ext_part_t *epp, struct ipart *part);
890 struct ipart *part;
900 part = &temp->parts[0];
901 part->bootid = 0;
902 part->systid = LE_8(partid);
903 part->relsect = MAX_LOGDRIVE_OFFSET;
904 part->numsect = LE_32(temp->numsect);
906 fdisk_set_CHS_values(epp, part);
911 part->relsect = LE_32(begsec - epp->ext_beg_sec);
913 part->numsect = LE_32(temp->numsect);
914 if (LE_32(part->relsect) > MAX_LOGDRIVE_OFFSET) {
918 temp->logdrive_offset = LE_32(part->relsect);
929 part->relsect = LE_32(LE_32(part->relsect) - 1);
937 part = &pre->parts[1];
938 part->bootid = 0;
939 part->systid = LE_8(EXTDOS);
940 part->relsect = LE_32(temp->abs_secnum - epp->ext_beg_sec);
941 part->numsect = LE_32(temp->numsect + temp->logdrive_offset);
943 fdisk_set_CHS_values(epp, part);
1027 fdisk_set_CHS_values(ext_part_t *epp, struct ipart *part)
1033 lba = LE_32(part->relsect) + epp->ext_beg_sec;
1048 part->begcyl = cy & 0xff;
1049 part->beghead = (uchar_t)hd;
1050 part->begsect = (uchar_t)(((cy >> 2) & 0xc0) | sc);
1056 lba += LE_32(part->numsect - 1);
1066 part->endcyl = cy & 0xff;
1067 part->endhead = (uchar_t)hd;
1068 part->endsect = (uchar_t)(((cy >> 2) & 0xc0) | sc);
1115 int part;
1140 if (fdisk_get_solaris_part(epp, &part, &begsec, &numsec) ==
1142 if (part > FD_NUMPART) {
1171 part = atoi(part_str);
1173 if (part >= 5) {