Home | History | Annotate | Download | only in src

Lines Matching refs:pMemory

22 #include "pmemory.h"
53 void* pMemory;
245 memoryPool[i].poolInfo[j].pMemory = NULL;
261 if (memoryPool[i].poolInfo[j].pMemory != NULL)
266 PORT_ASSERT_GOOD_WRITE_POINTER(memoryPool[i].poolInfo[j].pMemory);
267 free(memoryPool[i].poolInfo[j].pMemory);
270 memoryPool[i].poolInfo[j].pMemory = NULL;
286 void* pMemory = NULL;
307 pMemory = malloc(poolSize * (1 << whichPool) + PARTITION_CONTROL_BLOCK_SIZE);
308 PORT_ASSERT_GOOD_WRITE_POINTER(pMemory);
311 if (pMemory == NULL)
320 retval = pt_create(name, pMemory, 0, poolSize * (1 << whichPool) + PARTITION_CONTROL_BLOCK_SIZE,
330 memoryPool[whichPool].poolInfo[currentNumberOfPools].pMemory = pMemory;
341 if (memoryPool[whichPool].poolInfo[0].pMemory == NULL)
350 void* pMemory;
354 retval = pt_getbuf(memoryPool[whichPool].poolInfo[poolIndex].poolId, &pMemory);
359 PORT_ASSERT_GOOD_WRITE_POINTER(pMemory);
360 *((unsigned long *)pMemory) = (whichPool << 27) + (poolIndex << 24) + size;
361 return (unsigned long *)pMemory + 1;
369 void* pMemory;
374 pMemory = malloc(size);
377 if (pMemory == NULL)
383 PORT_ASSERT_GOOD_WRITE_POINTER(pMemory);
384 *((unsigned long *)pMemory) = (whichPool << 27) + size;
385 return (unsigned long *)pMemory + 1;
391 pMemory = AllocateFromPsos(whichPool, poolIndex, size);
392 if (pMemory != NULL)
393 return pMemory;
404 pMemory = AllocateFromPsos(whichPool, memoryPool[whichPool].currentNumberOfPools - 1, size);
405 if (pMemory != NULL)
406 return pMemory;
417 void* pMemory = NULL;
430 if (memoryPool[poolIndex].poolInfo[0].pMemory != NULL)
442 pMemory = SearchPoolsForMemory(whichPool, size);
443 PORT_ASSERT_GOOD_WRITE_POINTER(pMemory);
444 return pMemory;
447 void PortMemBlockDeleteFromPool(void* pMemory)
449 unsigned long *pRealMemory = (unsigned long *)pMemory - 1;
454 PORT_ASSERT_GOOD_WRITE_POINTER(pMemory);