Lines Matching refs:pPart

749 static int partRead(RTFILE File, PHOSTPARTITIONS pPart)
759 pPart->cPartitions = 0;
760 memset(pPart->aPartitions, '\0', sizeof(pPart->aPartitions));
770 pPart->uPartitioningType = GPT;//partitioningType;
841 PHOSTPARTITION pCP = &pPart->aPartitions[pPart->cPartitions++];
855 --pPart->cPartitions;
871 pPart->uPartitioningType = MBR;//partitioningType;
883 PHOSTPARTITION pCP = &pPart->aPartitions[pPart->cPartitions++];
900 uExtended = (unsigned)(pCP - pPart->aPartitions);
912 uint64_t uStart = pPart->aPartitions[uExtended].uStart;
939 PHOSTPARTITION pCP = &pPart->aPartitions[pPart->cPartitions++];
979 for (unsigned i = 0; i < pPart->cPartitions-1; i++)
982 uint64_t uMinVal = pPart->aPartitions[i].uStart;
983 for (unsigned j = i + 1; j < pPart->cPartitions; j++)
985 if (pPart->aPartitions[j].uStart < uMinVal)
988 uMinVal = pPart->aPartitions[j].uStart;
990 else if (pPart->aPartitions[j].uStart == uMinVal)
995 else if (pPart->aPartitions[j].uStart == 0)
1004 memcpy(&pPart->aPartitions[pPart->cPartitions],
1005 &pPart->aPartitions[i], sizeof(HOSTPARTITION));
1006 memcpy(&pPart->aPartitions[i],
1007 &pPart->aPartitions[uMinIdx], sizeof(HOSTPARTITION));
1008 memcpy(&pPart->aPartitions[uMinIdx],
1009 &pPart->aPartitions[pPart->cPartitions], sizeof(HOSTPARTITION));
1014 pPart->aPartitions[0].uPartDataStart = 0;
1015 pPart->aPartitions[0].cPartDataSectors = pPart->aPartitions[0].uStart;
1020 pPart->aPartitions[pPart->cPartitions-1].uPartDataStart = lastUsableLBA+1;
1021 pPart->aPartitions[pPart->cPartitions-1].cPartDataSectors = 33;
1026 for (unsigned i = 0; i < pPart->cPartitions; i++)
1028 if (pPart->aPartitions[i].cPartDataSectors)
1029 uPrevEnd = pPart->aPartitions[i].uPartDataStart + pPart->aPartitions[i].cPartDataSectors;
1030 if (pPart->aPartitions[i].uStart < uPrevEnd &&
1031 pPart->cPartitions-1 != i)
1043 for (unsigned i = 0; i < pPart->cPartitions; i++)
1045 if (pPart->aPartitions[i].cPartDataSectors)
1046 uPrevEnd = pPart->aPartitions[i].uPartDataStart + pPart->aPartitions[i].cPartDataSectors;
1047 if (pPart->aPartitions[i].uStart < uPrevEnd)
1052 if (!PARTTYPE_IS_EXTENDED(pPart->aPartitions[i].uType))
1053 uPrevEnd = pPart->aPartitions[i].uStart + pPart->aPartitions[i].uSize;