Lines Matching refs:pNew
582 PRTHEAPOFFSETFREE pNew = (PRTHEAPOFFSETFREE)((uintptr_t)&pFree->Core + cb + sizeof(RTHEAPOFFSETBLOCK));
584 pNew->Core.offSelf = RTHEAPOFF_TO_OFF(pHeapInt, pNew);
585 pNew->Core.offNext = pFree->Core.offNext;
587 RTHEAPOFF_TO_PTR(pHeapInt, pFree->Core.offNext, PRTHEAPOFFSETBLOCK)->offPrev = pNew->Core.offSelf;
588 pNew->Core.offPrev = RTHEAPOFF_TO_OFF(pHeapInt, pFree);
589 pNew->Core.fFlags = RTHEAPOFFSETBLOCK_FLAGS_MAGIC | RTHEAPOFFSETBLOCK_FLAGS_FREE;
591 pNew->offNext = pFree->offNext;
592 if (pNew->offNext)
593 RTHEAPOFF_TO_PTR(pHeapInt, pNew->offNext, PRTHEAPOFFSETFREE)->offPrev = pNew->Core.offSelf;
595 pHeapInt->offFreeTail = pNew->Core.offSelf;
596 pNew->offPrev = pFree->offPrev;
597 if (pNew->offPrev)
598 RTHEAPOFF_TO_PTR(pHeapInt, pNew->offPrev, PRTHEAPOFFSETFREE)->offNext = pNew->Core.offSelf;
600 pHeapInt->offFreeHead = pNew->Core.offSelf;
601 pNew->cb = (pNew->Core.offNext ? pNew->Core.offNext : pHeapInt->cbHeap) \
602 - pNew->Core.offSelf - sizeof(RTHEAPOFFSETBLOCK);
603 ASSERT_BLOCK_FREE(pHeapInt, pNew);
609 pFree->Core.offNext = pNew->Core.offSelf;
611 pHeapInt->cbFree += pNew->cb;