Lines Matching refs:pBestFit
803 PVCIBLKRANGEDESC pBestFit = NULL;
817 if ( !pBestFit
818 || pCur->cBlocks < pBestFit->cBlocks)
820 pBestFit = pCur;
822 if (pBestFit->cBlocks == cBlocks)
829 Assert(!pBestFit || pBestFit->fFree);
831 if (pBestFit)
833 pBestFit->fFree = false;
835 if (pBestFit->cBlocks > cBlocks)
843 pFree->cBlocks = pBestFit->cBlocks - cBlocks;
844 pBestFit->cBlocks -= pFree->cBlocks;
845 pFree->offAddrStart = pBestFit->offAddrStart + cBlocks;
848 pFree->pNext = pBestFit->pNext;
849 pBestFit->pNext = pFree;
850 pFree->pPrev = pBestFit;
854 *poffBlockAddr = pBestFit->offAddrStart;
859 pBestFit->fFree = true;