Lines Matching refs:cEntries

357         pSet->cEntries = PGMMAPSET_CLOSED;
554 uint32_t j = pSet->cEntries;
572 pSet->cEntries = PGMMAPSET_CLOSED;
577 AssertMsg(j == PGMMAPSET_CLOSED, ("cEntries=%#x\n", j));
1723 for (uint32_t i = 0 ; i < pSet->cEntries; i++)
1730 while ( j < pSet->cEntries
1732 || pSet->iSubset < pSet->cEntries) )
1757 pSet->cEntries--;
1758 if (j < pSet->cEntries)
1760 pSet->aEntries[j] = pSet->aEntries[pSet->cEntries];
1761 PGMRZDYNMAP_ZAP_ENTRY(&pSet->aEntries[pSet->cEntries]);
1789 pSet->cEntries,
1800 || pSet->iSubset < pSet->cEntries)
1808 pSet->cEntries--;
1809 if (i < pSet->cEntries)
1811 pSet->aEntries[i] = pSet->aEntries[pSet->cEntries];
1812 PGMRZDYNMAP_ZAP_ENTRY(&pSet->aEntries[pSet->cEntries]);
1834 Assert(pVCpu->pgm.s.AutoSet.cEntries == PGMMAPSET_CLOSED);
1836 pVCpu->pgm.s.AutoSet.cEntries = 0;
1856 bool fStartIt = pVCpu->pgm.s.AutoSet.cEntries == PGMMAPSET_CLOSED;
1875 if (pSet->cEntries < MM_HYPER_DYNAMIC_SIZE / PAGE_SIZE / 2)
1893 * @param cEntries The number of entries.
1895 DECLINLINE(void) pgmDynMapFlushAutoSetWorker(PPGMMAPSET pSet, uint32_t cEntries)
1900 if ( cEntries != 0
1901 && RT_LIKELY(cEntries <= RT_ELEMENTS(pSet->aEntries)))
1906 uint32_t i = cEntries;
1937 uint32_t cEntries = pSet->cEntries;
1938 AssertReturnVoid(cEntries != PGMMAPSET_CLOSED);
1939 pSet->cEntries = PGMMAPSET_CLOSED;
1945 STAM_COUNTER_INC(&pVCpu->pgm.s.CTX_SUFF(pStats)->aStatRZDynMapSetFilledPct[(cEntries * 10 / (MM_HYPER_DYNAMIC_SIZE / PAGE_SIZE)) % 11]);
1948 STAM_COUNTER_INC(&pVCpu->pgm.s.CTX_SUFF(pStats)->aStatRZDynMapSetFilledPct[(cEntries * 10 / RT_ELEMENTS(pSet->aEntries)) % 11]);
1949 if (cEntries > RT_ELEMENTS(pSet->aEntries) * 50 / 100)
1950 Log(("PGMRZDynMapReleaseAutoSet: cEntries=%d\n", cEntries));
1952 LogFlow(("PGMRZDynMapReleaseAutoSet: cEntries=%d\n", cEntries));
1954 pgmDynMapFlushAutoSetWorker(pSet, cEntries);
1971 uint32_t cEntries = pSet->cEntries;
1972 AssertReturnVoid(cEntries != PGMMAPSET_CLOSED);
1976 STAM_COUNTER_INC(&pVCpu->pgm.s.CTX_SUFF(pStats)->aStatRZDynMapSetFilledPct[(cEntries * 10 / (MM_HYPER_DYNAMIC_SIZE / PAGE_SIZE)) % 11]);
1979 STAM_COUNTER_INC(&pVCpu->pgm.s.CTX_SUFF(pStats)->aStatRZDynMapSetFilledPct[(cEntries * 10 / RT_ELEMENTS(pSet->aEntries)) % 11]);
1980 if ( cEntries >= RT_ELEMENTS(pSet->aEntries) * 45 / 100
1983 pSet->cEntries = 0;
1984 Log(("PGMDynMapFlushAutoSet: cEntries=%d\n", pSet->cEntries));
1986 pgmDynMapFlushAutoSetWorker(pSet, cEntries);
2013 uint32_t i = pSet->cEntries;
2061 uint32_t i = pSet->cEntries;
2066 Log(("pgmDynMapFlushSubset: cEntries=%d iSubset=%d\n", pSet->cEntries, iSubset));
2067 pSet->cEntries = iSubset;
2105 AssertReturn(pSet->cEntries != PGMMAPSET_CLOSED, UINT32_MAX);
2113 if ( pSet->cEntries > RT_ELEMENTS(pSet->aEntries) * 60 / 100
2120 pSet->iSubset = pSet->cEntries;
2137 uint32_t cEntries = pSet->cEntries;
2138 LogFlow(("PGMRZDynMapPopAutoSubset: pVCpu=%p iPrevSubset=%u iSubset=%u cEntries=%u\n", pVCpu, iPrevSubset, pSet->iSubset, cEntries));
2139 AssertReturnVoid(cEntries != PGMMAPSET_CLOSED);
2140 AssertMsgReturnVoid(pSet->iSubset >= iPrevSubset || iPrevSubset == UINT32_MAX, ("iPrevSubset=%u iSubset=%u cEntries=%u\n", iPrevSubset, pSet->iSubset, cEntries));
2143 STAM_COUNTER_INC(&pVCpu->pgm.s.CTX_SUFF(pStats)->aStatRZDynMapSetFilledPct[(cEntries * 10 / (MM_HYPER_DYNAMIC_SIZE / PAGE_SIZE)) % 11]);
2146 STAM_COUNTER_INC(&pVCpu->pgm.s.CTX_SUFF(pStats)->aStatRZDynMapSetFilledPct[(cEntries * 10 / RT_ELEMENTS(pSet->aEntries)) % 11]);
2147 if ( cEntries >= RT_ELEMENTS(pSet->aEntries) * 40 / 100
2148 && cEntries != pSet->iSubset)
2151 Assert(pSet->cEntries >= iPrevSubset || iPrevSubset == UINT32_MAX);
2178 uint32_t iEntry = pSet->cEntries;
2221 ("pvHint=%p cEntries=%#x iSubset=%#x\n"
2229 pvHint, pSet->cEntries, pSet->iSubset,
2324 int32_t i = pSet->cEntries;
2327 unsigned iEntry = pSet->cEntries++;
2343 LogFlow(("pgmRZDynMapHCPageCommon: pSet=%p HCPhys=%RHp #%u/%u/%p cRefs=%u/%u/%u iPage=%#x [0] %s(%d) %s\n", pSet, HCPhys, i - 0, pSet->cEntries, pvPage, pSet->aEntries[i - 0].cRefs, pSet->aEntries[i - 0].cInlinedRefs, pSet->aEntries[i - 0].cUnrefs, iPage, pszFile, iLine, pszFunction));
2349 LogFlow(("pgmRZDynMapHCPageCommon: pSet=%p HCPhys=%RHp #%u/%u/%p cRefs=%u/%u/%u iPage=%#x [1] %s(%d) %s\n", pSet, HCPhys, i - 1, pSet->cEntries, pvPage, pSet->aEntries[i - 1].cRefs, pSet->aEntries[i - 1].cInlinedRefs, pSet->aEntries[i - 1].cUnrefs, iPage, pszFile, iLine, pszFunction));
2355 LogFlow(("pgmRZDynMapHCPageCommon: pSet=%p HCPhys=%RHp #%u/%u/%p cRefs=%u/%u/%u iPage=%#x [2] %s(%d) %s\n", pSet, HCPhys, i - 2, pSet->cEntries, pvPage, pSet->aEntries[i - 2].cRefs, pSet->aEntries[i - 2].cInlinedRefs, pSet->aEntries[i - 2].cUnrefs, iPage, pszFile, iLine, pszFunction));
2361 LogFlow(("pgmRZDynMapHCPageCommon: pSet=%p HCPhys=%RHp #%u/%u/%p cRefs=%u/%u/%u iPage=%#x [4] %s(%d) %s\n", pSet, HCPhys, i - 3, pSet->cEntries, pvPage, pSet->aEntries[i - 3].cRefs, pSet->aEntries[i - 3].cInlinedRefs, pSet->aEntries[i - 3].cUnrefs, iPage, pszFile, iLine, pszFunction));
2367 LogFlow(("pgmRZDynMapHCPageCommon: pSet=%p HCPhys=%RHp #%u/%u/%p cRefs=%u/%u/%u iPage=%#x [4] %s(%d) %s\n", pSet, HCPhys, i - 4, pSet->cEntries, pvPage, pSet->aEntries[i - 4].cRefs, pSet->aEntries[i - 4].cInlinedRefs, pSet->aEntries[i - 4].cUnrefs, iPage, pszFile, iLine, pszFunction));
2372 unsigned iEntry = pSet->cEntries++;
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));
2385 Assert(pSet->cEntries <= RT_ELEMENTS(pSet->aEntries));
2393 LogFlow(("pgmRZDynMapHCPageCommon: pSet=%p HCPhys=%RHp #%u/%u/%p cRefs=%u/%u/%u iPage=%#x [c] %s(%d) %s\n", pSet, HCPhys, i, pSet->cEntries, pvPage, pSet->aEntries[i].cRefs, pSet->aEntries[i].cInlinedRefs, pSet->aEntries[i].cUnrefs, iPage, pszFile, iLine, pszFunction));
2400 if (pSet->iSubset < pSet->cEntries)
2403 STAM_COUNTER_INC(&pVCpu->pgm.s.CTX_SUFF(pStats)->aStatRZDynMapSetFilledPct[(pSet->cEntries * 10 / RT_ELEMENTS(pSet->aEntries)) % 11]);
2408 if (RT_UNLIKELY(pSet->cEntries >= RT_ELEMENTS(pSet->aEntries)))
2414 if (RT_LIKELY(pSet->cEntries < RT_ELEMENTS(pSet->aEntries)))
2416 unsigned iEntry = pSet->cEntries++;
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));
2515 LogRel(("Load=%u/%u/%u Set=%u/%u\n", pThis->cLoad, pThis->cMaxLoad, pThis->cPages - pThis->cPages, pSet->cEntries, RT_ELEMENTS(pSet->aEntries)));
2536 else if (pSet->cEntries != 5)
2538 LogRel(("failed(%d): cEntries=%d expected %d\n", __LINE__, pSet->cEntries, RT_ELEMENTS(pSet->aEntries) / 2));
2548 for (i = 0; i < pSet->cEntries; i++)
2575 else if (pSet->cEntries != RT_ELEMENTS(pSet->aEntries))
2577 LogRel(("failed(%d): cEntries=%d expected %d\n", __LINE__, pSet->cEntries, RT_ELEMENTS(pSet->aEntries)));
2580 LogRel(("Load=%u/%u/%u Set=%u/%u\n", pThis->cLoad, pThis->cMaxLoad, pThis->cPages - pThis->cPages, pSet->cEntries, RT_ELEMENTS(pSet->aEntries)));
2615 rc, VERR_PGM_DYNMAP_FULL_SET, pv2, pSet->cEntries, RT_ELEMENTS(pSet->aEntries), i));
2684 pThis->cLoad, pThis->cMaxLoad, pThis->cPages - pThis->cPages, pSet->cEntries, RT_ELEMENTS(pSet->aEntries)));