Lines Matching defs:iEntry

856         uint32_t iEntry = ((uint64_t)(uintptr_t)pvPage >> pPgLvl->a[i].fPtrShift) & pPgLvl->a[i].fPtrMask;
859 pvEntry = &pPgLvl->a[i].u.paLegacy[iEntry];
860 uEntry = pPgLvl->a[i].u.paLegacy[iEntry];
864 pvEntry = &pPgLvl->a[i].u.paPae[iEntry];
865 uEntry = pPgLvl->a[i].u.paPae[iEntry];
871 "PGMR0DynMap: pv=%p pvPage=%p iEntry=%#x fLegacyMode=%RTbool\n",
873 pPgLvl->a[i].u.pv, pvPage, iEntry, pThis->fLegacyMode));
876 /*Log(("#%d: iEntry=%4d uEntry=%#llx pvEntry=%p HCPhys=%RHp \n", i, iEntry, uEntry, pvEntry, pPgLvl->a[i].HCPhys));*/
2178 uint32_t iEntry = pSet->cEntries;
2179 AssertReturnVoid(iEntry > 0);
2186 #define IS_MATCHING_ENTRY(pSet, iEntry, pvHint) \
2187 ( (pSet)->aEntries[(iEntry)].pvPage == (pvHint) \
2188 && (uint32_t)(pSet)->aEntries[(iEntry)].cRefs + (pSet)->aEntries[(iEntry)].cInlinedRefs \
2189 > (pSet)->aEntries[(iEntry)].cUnrefs )
2190 if ( iEntry >= 1 && IS_MATCHING_ENTRY(pSet, iEntry - 1, pvHint))
2191 iEntry = iEntry - 1;
2192 else if (iEntry >= 2 && IS_MATCHING_ENTRY(pSet, iEntry - 2, pvHint))
2193 iEntry = iEntry - 2;
2194 else if (iEntry >= 3 && IS_MATCHING_ENTRY(pSet, iEntry - 3, pvHint))
2195 iEntry = iEntry - 3;
2196 else if (iEntry >= 4 && IS_MATCHING_ENTRY(pSet, iEntry - 4, pvHint))
2197 iEntry = iEntry - 4;
2198 else if (iEntry >= 5 && IS_MATCHING_ENTRY(pSet, iEntry - 5, pvHint))
2199 iEntry = iEntry - 5;
2200 else if (iEntry >= 6 && IS_MATCHING_ENTRY(pSet, iEntry - 6, pvHint))
2201 iEntry = iEntry - 6;
2202 else if (iEntry >= 7 && IS_MATCHING_ENTRY(pSet, iEntry - 7, pvHint))
2203 iEntry = iEntry - 7;
2210 if (iEntry > 7)
2212 iEntry -= 7;
2213 while (iEntry-- > 0)
2214 if (IS_MATCHING_ENTRY(pSet, iEntry, pvHint))
2242 uint32_t const cTotalRefs = (uint32_t)pSet->aEntries[iEntry].cRefs + pSet->aEntries[iEntry].cInlinedRefs;
2243 uint32_t const cUnrefs = pSet->aEntries[iEntry].cUnrefs;
2245 pvHint, iEntry, pSet->aEntries[iEntry].cRefs, pSet->aEntries[iEntry].cInlinedRefs, cUnrefs, cTotalRefs, pszFile, iLine, pszFunction));
2249 pSet->aEntries[iEntry].cUnrefs++;
2250 else if (pSet->aEntries[iEntry].cInlinedRefs)
2252 uint32_t cSub = RT_MIN(pSet->aEntries[iEntry].cInlinedRefs, pSet->aEntries[iEntry].cUnrefs);
2253 pSet->aEntries[iEntry].cInlinedRefs -= cSub;
2254 pSet->aEntries[iEntry].cUnrefs -= cSub;
2255 pSet->aEntries[iEntry].cUnrefs++;
2327 unsigned iEntry = pSet->cEntries++;
2328 pSet->aEntries[iEntry].cRefs = 1;
2329 pSet->aEntries[iEntry].cUnrefs = 0;
2330 pSet->aEntries[iEntry].cInlinedRefs = 0;
2331 pSet->aEntries[iEntry].iPage = iPage;
2332 pSet->aEntries[iEntry].pvPage = pvPage;
2333 pSet->aEntries[iEntry].HCPhys = HCPhys;
2334 pSet->aiHashTable[PGMMAPSET_HASH(HCPhys)] = iEntry;
2336 pSet, HCPhys, iEntry, iEntry + 1, pvPage, 1, iPage, pszFile, iLine, pszFunction));
2372 unsigned iEntry = pSet->cEntries++;
2373 pSet->aEntries[iEntry].cRefs = 1;
2374 pSet->aEntries[iEntry].cUnrefs = 0;
2375 pSet->aEntries[iEntry].cInlinedRefs = 0;
2376 pSet->aEntries[iEntry].iPage = iPage;
2377 pSet->aEntries[iEntry].pvPage = pvPage;
2378 pSet->aEntries[iEntry].HCPhys = HCPhys;
2379 pSet->aiHashTable[PGMMAPSET_HASH(HCPhys)] = iEntry;
2380 LogFlow(("pgmRZDynMapHCPageCommon: pSet=%p HCPhys=%RHp #%u/%u/%p cRefs=1/0/0 iPage=%#x [b] %s(%d) %s\n", pSet, HCPhys, iEntry, pSet->cEntries, pvPage, iPage, pszFile, iLine, pszFunction));
2416 unsigned iEntry = pSet->cEntries++;
2417 pSet->aEntries[iEntry].cRefs = 1;
2418 pSet->aEntries[iEntry].cUnrefs = 0;
2419 pSet->aEntries[iEntry].cInlinedRefs = 0;
2420 pSet->aEntries[iEntry].iPage = iPage;
2421 pSet->aEntries[iEntry].pvPage = pvPage;
2422 pSet->aEntries[iEntry].HCPhys = HCPhys;
2423 pSet->aiHashTable[PGMMAPSET_HASH(HCPhys)] = iEntry;
2424 LogFlow(("pgmRZDynMapHCPageCommon: pSet=%p HCPhys=%RHp #%u/%u/%p cRefs=1/0/0 iPage=%#x [d] %s(%d) %s\n", pSet, HCPhys, iEntry, pSet->cEntries, pvPage, iPage, pszFile, iLine, pszFunction));