Lines Matching defs:pEntry

384     PRTLISTNODE pEntry = List.pNext;
385 for (; pEntry != &List; pEntry = pNext)
387 pNext = pEntry->pNext;
388 PVBOXVR_REG pReg = PVBOXVR_REG_FROM_ENTRY(pEntry);
391 pMemberEntry = pEntry->pNext; /* the following elements should go after the given pEntry since they are ordered already */
1206 PVBOXVR_COMPOSITOR_ENTRY pEntry, pEntryNext;
1207 RTListForEachSafe(&pCompositor->List, pEntry, pEntryNext, VBOXVR_COMPOSITOR_ENTRY, Node)
1209 VBoxVrCompositorEntryRemove(pCompositor, pEntry);
1222 DECLINLINE(void) vboxVrCompositorEntryRelease(PVBOXVR_COMPOSITOR pCompositor, PVBOXVR_COMPOSITOR_ENTRY pEntry,
1225 if (--pEntry->cRefs)
1227 Assert(pEntry->cRefs < UINT32_MAX/2);
1231 Assert(!VBoxVrCompositorEntryIsInList(pEntry));
1234 pCompositor->pfnEntryReleased(pCompositor, pEntry, pReplacingEntry);
1237 DECLINLINE(void) vboxVrCompositorEntryAddRef(PVBOXVR_COMPOSITOR_ENTRY pEntry)
1239 ++pEntry->cRefs;
1242 DECLINLINE(void) vboxVrCompositorEntryAdd(PVBOXVR_COMPOSITOR pCompositor, PVBOXVR_COMPOSITOR_ENTRY pEntry)
1244 RTListPrepend(&pCompositor->List, &pEntry->Node);
1245 vboxVrCompositorEntryAddRef(pEntry);
1248 DECLINLINE(void) vboxVrCompositorEntryRemove(PVBOXVR_COMPOSITOR pCompositor, PVBOXVR_COMPOSITOR_ENTRY pEntry,
1251 RTListNodeRemove(&pEntry->Node);
1252 vboxVrCompositorEntryRelease(pCompositor, pEntry, pReplacingEntry);
1255 static void vboxVrCompositorEntryReplace(PVBOXVR_COMPOSITOR pCompositor, PVBOXVR_COMPOSITOR_ENTRY pEntry,
1258 VBoxVrListMoveTo(&pEntry->Vr, &pReplacingEntry->Vr);
1260 pReplacingEntry->Node = pEntry->Node;
1263 pEntry->Node.pNext = NULL;
1264 pEntry->Node.pPrev = NULL;
1267 vboxVrCompositorEntryRelease(pCompositor, pEntry, pReplacingEntry);
1272 VBOXVREGDECL(void) VBoxVrCompositorEntryInit(PVBOXVR_COMPOSITOR_ENTRY pEntry)
1274 VBoxVrListInit(&pEntry->Vr);
1275 pEntry->cRefs = 0;
1278 VBOXVREGDECL(bool) VBoxVrCompositorEntryRemove(PVBOXVR_COMPOSITOR pCompositor, PVBOXVR_COMPOSITOR_ENTRY pEntry)
1280 if (!VBoxVrCompositorEntryIsInList(pEntry))
1283 vboxVrCompositorEntryAddRef(pEntry);
1285 VBoxVrListClear(&pEntry->Vr);
1286 vboxVrCompositorEntryRemove(pCompositor, pEntry, NULL);
1287 vboxVrCompositorEntryRelease(pCompositor, pEntry, NULL);
1291 VBOXVREGDECL(bool) VBoxVrCompositorEntryReplace(PVBOXVR_COMPOSITOR pCompositor, PVBOXVR_COMPOSITOR_ENTRY pEntry,
1294 if (!VBoxVrCompositorEntryIsInList(pEntry))
1297 vboxVrCompositorEntryReplace(pCompositor, pEntry, pNewEntry);
1302 static int vboxVrCompositorEntryRegionsSubst(PVBOXVR_COMPOSITOR pCompositor, PVBOXVR_COMPOSITOR_ENTRY pEntry,
1306 vboxVrCompositorEntryAddRef(pEntry);
1308 int rc = VBoxVrListRectsSubst(&pEntry->Vr, cRects, paRects, &fChanged);
1311 if (VBoxVrListIsEmpty(&pEntry->Vr))
1314 vboxVrCompositorEntryRemove(pCompositor, pEntry, NULL);
1322 vboxVrCompositorEntryRelease(pCompositor, pEntry, NULL);
1326 VBOXVREGDECL(int) VBoxVrCompositorEntryRegionsAdd(PVBOXVR_COMPOSITOR pCompositor, PVBOXVR_COMPOSITOR_ENTRY pEntry,
1339 if (pEntry)
1340 vboxVrCompositorEntryAddRef(pEntry);
1346 if (pEntry)
1347 vboxVrCompositorEntryRelease(pCompositor, pEntry, NULL);
1351 if (pEntry)
1353 fEntryWasInList = VBoxVrCompositorEntryIsInList(pEntry);
1354 rc = VBoxVrListRectsAdd(&pEntry->Vr, cRects, paRects, &fEntryChanged);
1357 if (VBoxVrListIsEmpty(&pEntry->Vr))
1362 vboxVrCompositorEntryRelease(pCompositor, pEntry, NULL);
1369 vboxVrCompositorEntryRelease(pCompositor, pEntry, NULL);
1373 Assert(!VBoxVrListIsEmpty(&pEntry->Vr));
1383 if (pCur != pEntry)
1385 if (pEntry && !VBoxVrListCmp(&pCur->Vr, &pEntry->Vr))
1390 vboxVrCompositorEntryRemove(pCompositor, pCur, pEntry);
1409 if (pEntry)
1413 Assert(!VBoxVrListIsEmpty(&pEntry->Vr));
1414 vboxVrCompositorEntryAdd(pCompositor, pEntry);
1416 vboxVrCompositorEntryRelease(pCompositor, pEntry, NULL);
1428 vboxVrCompositorEntryRelease(pCompositor, pReplacedEntry, pEntry);
1451 VBOXVREGDECL(int) VBoxVrCompositorEntryRegionsSubst(PVBOXVR_COMPOSITOR pCompositor, PVBOXVR_COMPOSITOR_ENTRY pEntry,
1454 if (!pEntry)
1462 vboxVrCompositorEntryAddRef(pEntry);
1464 if (VBoxVrListIsEmpty(&pEntry->Vr))
1468 vboxVrCompositorEntryRelease(pCompositor, pEntry, NULL);
1472 int rc = vboxVrCompositorEntryRegionsSubst(pCompositor, pEntry, cRects, paRects, pfChanged);
1476 vboxVrCompositorEntryRelease(pCompositor, pEntry, NULL);
1481 VBOXVREGDECL(int) VBoxVrCompositorEntryRegionsSet(PVBOXVR_COMPOSITOR pCompositor, PVBOXVR_COMPOSITOR_ENTRY pEntry,
1484 if (!pEntry)
1492 vboxVrCompositorEntryAddRef(pEntry);
1497 fCurChanged = VBoxVrCompositorEntryRemove(pCompositor, pEntry);
1500 rc = VBoxVrCompositorEntryRegionsAdd(pCompositor, pEntry, cRects, paRects, NULL, &fChangeFlags);
1510 vboxVrCompositorEntryRelease(pCompositor, pEntry, NULL);
1515 VBOXVREGDECL(int) VBoxVrCompositorEntryListIntersect(PVBOXVR_COMPOSITOR pCompositor, PVBOXVR_COMPOSITOR_ENTRY pEntry,
1521 vboxVrCompositorEntryAddRef(pEntry);
1523 if (VBoxVrCompositorEntryIsInList(pEntry))
1525 rc = VBoxVrListIntersect(&pEntry->Vr, pList2, &fChanged);
1528 if (VBoxVrListIsEmpty(&pEntry->Vr))
1531 vboxVrCompositorEntryRemove(pCompositor, pEntry, NULL);
1543 vboxVrCompositorEntryRelease(pCompositor, pEntry, NULL);
1548 VBOXVREGDECL(int) VBoxVrCompositorEntryRegionsIntersect(PVBOXVR_COMPOSITOR pCompositor, PVBOXVR_COMPOSITOR_ENTRY pEntry,
1554 vboxVrCompositorEntryAddRef(pEntry);
1556 if (VBoxVrCompositorEntryIsInList(pEntry))
1558 rc = VBoxVrListRectsIntersect(&pEntry->Vr, cRects, paRects, &fChanged);
1561 if (VBoxVrListIsEmpty(&pEntry->Vr))
1564 vboxVrCompositorEntryRemove(pCompositor, pEntry, NULL);
1576 vboxVrCompositorEntryRelease(pCompositor, pEntry, NULL);
1585 PVBOXVR_COMPOSITOR_ENTRY pEntry;
1589 while ((pEntry = VBoxVrCompositorIterNext(&Iter)) != NULL)
1592 int tmpRc = VBoxVrCompositorEntryListIntersect(pCompositor, pEntry, pList2, &fTmpChanged);
1615 PVBOXVR_COMPOSITOR_ENTRY pEntry;
1619 while ((pEntry = VBoxVrCompositorIterNext(&Iter)) != NULL)
1622 int tmpRc = VBoxVrCompositorEntryRegionsIntersect(pCompositor, pEntry, cRegions, paRegions, &fTmpChanged);
1640 VBOXVREGDECL(int) VBoxVrCompositorEntryRegionsTranslate(PVBOXVR_COMPOSITOR pCompositor, PVBOXVR_COMPOSITOR_ENTRY pEntry,
1643 if (!pEntry)
1651 vboxVrCompositorEntryAddRef(pEntry);
1654 || !VBoxVrCompositorEntryIsInList(pEntry))
1659 vboxVrCompositorEntryRelease(pCompositor, pEntry, NULL);
1663 VBoxVrListTranslate(&pEntry->Vr, x, y);
1665 Assert(!VBoxVrListIsEmpty(&pEntry->Vr));
1675 if (pCur == pEntry)
1680 cRects = VBoxVrListRectsCount(&pEntry->Vr);
1690 rc = VBoxVrListRectsGet(&pEntry->Vr, cRects, paRects);
1712 vboxVrCompositorEntryRelease(pCompositor, pEntry, NULL);
1719 PVBOXVR_COMPOSITOR_ENTRY pEntry, pEntryNext;
1720 RTListForEachSafe(&pCompositor->List, pEntry, pEntryNext, VBOXVR_COMPOSITOR_ENTRY, Node)
1722 if (!pfnVisitor(pCompositor, pEntry, pvVisitor))