Lines Matching defs:cPTs

110     const unsigned cPTs     = cb >> X86_PD_SHIFT;
113 for (unsigned i = 0; i < cPTs; i++)
129 rc = MMHyperAlloc( pVM, RT_OFFSETOF(PGMMAPPING, aPTs[cPTs]), 0, MM_TAG_PGM_MAPPINGS, (void **)&pNew);
131 rc = MMR3HyperAllocOnceNoRel(pVM, RT_OFFSETOF(PGMMAPPING, aPTs[cPTs]), 0, MM_TAG_PGM_MAPPINGS, (void **)&pNew);
140 pNew->cPTs = cPTs;
148 rc = MMHyperAlloc( pVM, PAGE_SIZE * 3 * cPTs, PAGE_SIZE, MM_TAG_PGM_MAPPINGS, (void **)&pbPTs);
150 rc = MMR3HyperAllocOnceNoRel(pVM, PAGE_SIZE * 3 * cPTs, PAGE_SIZE, MM_TAG_PGM_MAPPINGS, (void **)&pbPTs);
160 Log4(("PGMR3MapPT: GCPtr=%RGv cPTs=%u pbPTs=%p\n", GCPtr, cPTs, pbPTs));
161 for (unsigned i = 0; i < cPTs; i++)
301 * @param cPTs The number of PDEs in the range.
303 DECLINLINE(bool) pgmR3AreIntermediatePDEsUnused(PVM pVM, unsigned iPD, unsigned cPTs)
307 while (cPTs > 1)
312 cPTs--;
433 const unsigned cPTs = pCur->cPTs;
435 if ( iPDNew + cPTs >= X86_PG_ENTRIES /* exclude the last PD */
436 || !pgmR3AreIntermediatePDEsUnused(pVM, iPDNew, cPTs)
440 iPDNew = X86_PG_ENTRIES - cPTs - 1;
442 && ( !pgmR3AreIntermediatePDEsUnused(pVM, iPDNew, cPTs)
470 iPDNext = iPDNew + cPTs;
950 unsigned i = pMap->cPTs;
1003 unsigned i = pMap->cPTs;
1183 const unsigned cPTs = pMapping->cPTs;
1184 unsigned iPDNew = RT_ELEMENTS(pPDSrc->a) - cPTs; /* (+ 1 - 1) */
1193 if (cPTs > 1)
1196 for (unsigned i = 1; fOk && i < cPTs; i++)
1207 unsigned i = cPTs;
1228 AssertMsgFailed(("Failed to relocate page table mapping '%s' from %#x! (cPTs=%d)\n", pMapping->pszDesc, GCPtrOldMapping, cPTs));
1266 const unsigned cPTs = pMapping->cb >> X86_PD_PAE_SHIFT;
1267 unsigned iPDNew = RT_ELEMENTS(pPDSrc->a) - cPTs; /* (+ 1 - 1) */
1282 if (cPTs > 1)
1285 for (unsigned i = 1; fOk && i < cPTs; i++)
1296 unsigned i = cPTs;
1316 AssertMsgFailed(("Failed to relocate page table mapping '%s' from %#x! (cPTs=%d)\n", pMapping->pszDesc, GCPtrOldMapping, pMapping->cb >> X86_PD_PAE_SHIFT));