Lines Matching refs:pcLeaves

644  * @param   pcLeaves        Where we keep the leaf count for *ppaLeaves.
654 static int cpumR3CollectCpuIdInfoAddOne(PCPUMCPUIDLEAF *ppaLeaves, uint32_t *pcLeaves,
658 if (!cpumR3CpuIdEnsureSpace(NULL /* pVM */, ppaLeaves, *pcLeaves))
661 PCPUMCPUIDLEAF pNew = &(*ppaLeaves)[*pcLeaves];
662 Assert( *pcLeaves == 0
675 *pcLeaves += 1;
727 * @param pcLeaves Where we keep the leaf count for *ppaLeaves. Must be
732 static int cpumR3CpuIdInsert(PVM pVM, PCPUMCPUIDLEAF *ppaLeaves, uint32_t *pcLeaves, PCPUMCPUIDLEAF pNewLeaf)
740 AssertReturn(!pcLeaves, VERR_INVALID_PARAMETER);
743 pcLeaves = &pVM->cpum.s.GuestInfo.cCpuIdLeaves;
747 uint32_t cLeaves = *pcLeaves;
810 *pcLeaves = cLeaves -= c - 1;
814 cpumR3CpuIdAssertOrder(*ppaLeaves, *pcLeaves);
832 cpumR3CpuIdAssertOrder(*ppaLeaves, *pcLeaves);
847 *pcLeaves += 1;
850 cpumR3CpuIdAssertOrder(*ppaLeaves, *pcLeaves);
861 * @param pcLeaves Where we keep the leaf count for @a paLeaves.
865 static void cpumR3CpuIdRemoveRange(PCPUMCPUIDLEAF paLeaves, uint32_t *pcLeaves, uint32_t uFirst, uint32_t uLast)
867 uint32_t cLeaves = *pcLeaves;
894 *pcLeaves = cLeaves -= (iEnd - iFirst);
897 cpumR3CpuIdAssertOrder(paLeaves, *pcLeaves);
1071 return cpumR3CpuIdInsert(pVM, NULL /* ppaLeaves */, NULL /* pcLeaves */, pNewLeaf);
1080 * @param pcLeaves Where to return the size of the array on
1083 VMMR3DECL(int) CPUMR3CpuIdCollectLeaves(PCPUMCPUIDLEAF *ppaLeaves, uint32_t *pcLeaves)
1086 *pcLeaves = 0;
1170 for (uint32_t i = 0 ; i < *pcLeaves; i++)
1184 int rc = cpumR3CollectCpuIdInfoAddOne(ppaLeaves, pcLeaves,
1192 int rc = cpumR3CollectCpuIdInfoAddOne(ppaLeaves, pcLeaves,
1231 int rc = cpumR3CollectCpuIdInfoAddOne(ppaLeaves, pcLeaves,
1239 cpumR3CpuIdAssertOrder(*ppaLeaves, *pcLeaves);
3982 static int cpumR3LoadOneOldGuestCpuIdArray(PSSMHANDLE pSSM, uint32_t uBase, PCPUMCPUIDLEAF *ppaLeaves, uint32_t *pcLeaves)
4006 rc = cpumR3CpuIdInsert(NULL /* pVM */, ppaLeaves, pcLeaves, &NewLeaf);
4016 *pcLeaves = 0;
4022 static int cpumR3LoadGuestCpuIdArray(PVM pVM, PSSMHANDLE pSSM, uint32_t uVersion, PCPUMCPUIDLEAF *ppaLeaves, uint32_t *pcLeaves)
4025 *pcLeaves = 0;
4063 rc = cpumR3CpuIdInsert(NULL /* pVM */, ppaLeaves, pcLeaves, &Leaf);
4085 rc = cpumR3LoadOneOldGuestCpuIdArray(pSSM, UINT32_C(0x00000000), ppaLeaves, pcLeaves);
4087 rc = cpumR3LoadOneOldGuestCpuIdArray(pSSM, UINT32_C(0x80000000), ppaLeaves, pcLeaves);
4089 rc = cpumR3LoadOneOldGuestCpuIdArray(pSSM, UINT32_C(0xc0000000), ppaLeaves, pcLeaves);
4095 PCPUMCPUIDLEAF pLeaf = cpumR3CpuIdGetLeaf(*ppaLeaves, *pcLeaves, 0, 0);
4113 rc = cpumR3CpuIdInsert(NULL /* pVM */, ppaLeaves, pcLeaves, &Leaf);
4117 rc = cpumR3CpuIdInsert(NULL /* pVM */, ppaLeaves, pcLeaves, &Leaf);
4129 rc = cpumR3CpuIdInsert(NULL /* pVM */, ppaLeaves, pcLeaves, &Leaf);