Lines Matching defs:efi_parts
319 efi_gpe_t *efi_parts;
508 efi_parts = (efi_gpe_t *)(((char *)efi) + disk_info.dki_lbsize);
534 UUID_LE_CONVERT(vtoc->efi_parts[i].p_guid,
535 efi_parts[i].efi_gpe_PartitionTypeGUID);
541 if (bcmp(&vtoc->efi_parts[i].p_guid,
544 vtoc->efi_parts[i].p_tag = j;
548 if (vtoc->efi_parts[i].p_tag == V_UNASSIGNED)
550 vtoc->efi_parts[i].p_flag =
551 LE_16(efi_parts[i].efi_gpe_Attributes.PartitionAttrs);
552 vtoc->efi_parts[i].p_start =
553 LE_64(efi_parts[i].efi_gpe_StartingLBA);
554 vtoc->efi_parts[i].p_size =
555 LE_64(efi_parts[i].efi_gpe_EndingLBA) -
556 vtoc->efi_parts[i].p_start + 1;
558 vtoc->efi_parts[i].p_name[j] =
560 efi_parts[i].efi_gpe_PartitionName[j]);
563 UUID_LE_CONVERT(vtoc->efi_parts[i].p_uguid,
564 efi_parts[i].efi_gpe_UniquePartitionGUID);
671 if ((vtoc->efi_parts[i].p_tag == V_UNASSIGNED) &&
672 (vtoc->efi_parts[i].p_size != 0)) {
677 vtoc->efi_parts[i].p_size);
681 if (vtoc->efi_parts[i].p_tag == V_UNASSIGNED) {
682 if (uuid_is_null((uchar_t *)&vtoc->efi_parts[i].p_guid))
685 vtoc->efi_parts[i].p_tag = 0xff;
687 if (vtoc->efi_parts[i].p_tag == V_RESERVED) {
698 if ((vtoc->efi_parts[i].p_start < vtoc->efi_first_u_lba) ||
699 (vtoc->efi_parts[i].p_start > vtoc->efi_last_u_lba)) {
704 vtoc->efi_parts[i].p_start);
712 if ((vtoc->efi_parts[i].p_start +
713 vtoc->efi_parts[i].p_size <
715 (vtoc->efi_parts[i].p_start +
716 vtoc->efi_parts[i].p_size >
722 vtoc->efi_parts[i].p_start +
723 vtoc->efi_parts[i].p_size);
733 isize = vtoc->efi_parts[i].p_size;
734 jsize = vtoc->efi_parts[j].p_size;
735 istart = vtoc->efi_parts[i].p_start;
736 jstart = vtoc->efi_parts[j].p_start;
779 if (pl_start < efi_label->efi_parts[i].p_start) {
780 pl_start = efi_label->efi_parts[i].p_start;
784 pl_size = efi_label->efi_parts[phy_last_slice].p_size;
809 efi_label->efi_parts[phy_last_slice].p_size +=
818 efi_label->efi_parts[efi_label->efi_nparts - 1].p_start +=
847 efi_gpe_t *efi_parts;
923 efi_parts = (efi_gpe_t *)((char *)dk_ioc.dki_data + vtoc->efi_lbasize);
930 if (vtoc->efi_parts[i].p_tag == j) {
932 efi_parts[i].efi_gpe_PartitionTypeGUID,
947 vtoc->efi_parts[i].p_tag);
952 efi_parts[i].efi_gpe_StartingLBA =
953 LE_64(vtoc->efi_parts[i].p_start);
954 efi_parts[i].efi_gpe_EndingLBA =
955 LE_64(vtoc->efi_parts[i].p_start +
956 vtoc->efi_parts[i].p_size - 1);
957 efi_parts[i].efi_gpe_Attributes.PartitionAttrs =
958 LE_16(vtoc->efi_parts[i].p_flag);
960 efi_parts[i].efi_gpe_PartitionName[j] =
961 LE_16((ushort_t)vtoc->efi_parts[i].p_name[j]);
963 if ((vtoc->efi_parts[i].p_tag != V_UNASSIGNED) &&
964 uuid_is_null((uchar_t *)&vtoc->efi_parts[i].p_uguid)) {
966 &vtoc->efi_parts[i].p_uguid);
968 bcopy(&vtoc->efi_parts[i].p_uguid,
969 &efi_parts[i].efi_gpe_UniquePartitionGUID,
973 LE_32(efi_crc32((unsigned char *)efi_parts,
1088 if ((vtoc->efi_parts[i].p_tag == V_UNASSIGNED) &&
1089 (vtoc->efi_parts[i].p_size != 0)) {
1092 "of %llu\n", i, vtoc->efi_parts[i].p_size);
1094 if (vtoc->efi_parts[i].p_tag == V_UNASSIGNED) {
1097 if (vtoc->efi_parts[i].p_tag == V_RESERVED) {
1104 if (vtoc->efi_parts[i].p_size != EFI_MIN_RESV_SIZE)
1109 if ((vtoc->efi_parts[i].p_start < vtoc->efi_first_u_lba) ||
1110 (vtoc->efi_parts[i].p_start > vtoc->efi_last_u_lba)) {
1114 vtoc->efi_parts[i].p_start);
1120 if ((vtoc->efi_parts[i].p_start +
1121 vtoc->efi_parts[i].p_size <
1123 (vtoc->efi_parts[i].p_start +
1124 vtoc->efi_parts[i].p_size >
1129 vtoc->efi_parts[i].p_start +
1130 vtoc->efi_parts[i].p_size);
1138 isize = vtoc->efi_parts[i].p_size;
1139 jsize = vtoc->efi_parts[j].p_size;
1140 istart = vtoc->efi_parts[i].p_start;
1141 jstart = vtoc->efi_parts[j].p_start;
1187 (*vtoc)->efi_parts[i].p_tag = default_vtoc_map[i].p_tag;
1188 (*vtoc)->efi_parts[i].p_flag = default_vtoc_map[i].p_flag;
1189 (*vtoc)->efi_parts[i].p_start = 0;
1190 (*vtoc)->efi_parts[i].p_size = 0;
1198 (*vtoc)->efi_parts[0].p_start = 34;
1199 (*vtoc)->efi_parts[0].p_size = 262144;
1202 (*vtoc)->efi_parts[1].p_start = 262178;
1203 (*vtoc)->efi_parts[1].p_size = 262144;
1206 (*vtoc)->efi_parts[2].p_tag = V_UNASSIGNED;
1209 (*vtoc)->efi_parts[6].p_start = 524322;
1210 (*vtoc)->efi_parts[6].p_size = (*vtoc)->efi_last_u_lba - 524322
1214 (*vtoc)->efi_parts[8].p_start = (*vtoc)->efi_last_u_lba - (1024 * 16);
1215 (*vtoc)->efi_parts[8].p_size = (1024 * 16);
1216 (*vtoc)->efi_parts[8].p_tag = V_RESERVED;