Lines Matching refs:ptr

99     void *ptr;  in DEMOGfxAllocMEM1()  local
110 ptr = MEMAllocFromExpHeapEx(gDEMOMem1Heap, size, align); in DEMOGfxAllocMEM1()
111 GX2NotifyMemAlloc(ptr, size, align); in DEMOGfxAllocMEM1()
113 DEMOAssert(ptr&&"Failed MEM1 alloc"); in DEMOGfxAllocMEM1()
115 return ptr; in DEMOGfxAllocMEM1()
118 void DEMOGfxFreeMEM1(void * ptr) in DEMOGfxFreeMEM1() argument
120 if (gDemoGfxInForeground) MEMFreeToExpHeap(gDEMOMem1Heap, ptr); in DEMOGfxFreeMEM1()
121 GX2NotifyMemFree(ptr); in DEMOGfxFreeMEM1()
128 void * ptr = MEMAllocFromExpHeapEx(gDEMOBucketHeap, size, align); in DEMOGfxAllocBucket() local
129 GX2NotifyMemAlloc(ptr, size, align); in DEMOGfxAllocBucket()
131 DEMOAssert(ptr); in DEMOGfxAllocBucket()
133 return ptr; in DEMOGfxAllocBucket()
136 void DEMOGfxFreeBucket(void * ptr) in DEMOGfxFreeBucket() argument
138 if (gDemoGfxInForeground) MEMFreeToExpHeap(gDEMOBucketHeap, ptr); in DEMOGfxFreeBucket()
139 GX2NotifyMemFree(ptr); in DEMOGfxFreeBucket()
144 void *ptr; in DEMOGfxAllocMEM2() local
151 ptr = DEMOAllocEx(size, align); in DEMOGfxAllocMEM2()
152 GX2NotifyMemAlloc(ptr, size, align); in DEMOGfxAllocMEM2()
154 DEMOAssert(ptr&&"Failed MEM2 alloc"); in DEMOGfxAllocMEM2()
156 return ptr; in DEMOGfxAllocMEM2()
160 void DEMOGfxFreeMEM2(void * ptr) in DEMOGfxFreeMEM2() argument
163 DEMOFree(ptr); in DEMOGfxFreeMEM2()
164 GX2NotifyMemFree(ptr); in DEMOGfxFreeMEM2()
185 void *ptr; in DEMOGfxInit() local
446 ptr = DEMOGfxAllocMEM1(DEMOColorBuffer.surface.imageSize, in DEMOGfxInit()
448 DEMOCheck(ptr!=NULL, "Color buffer alloc failed"); in DEMOGfxInit()
449 GX2Invalidate(GX2_INVALIDATE_CPU, ptr, DEMOColorBuffer.surface.imageSize); in DEMOGfxInit()
451 GX2InitColorBufferPtr(&DEMOColorBuffer, ptr); in DEMOGfxInit()
457 ptr = DEMOGfxAllocMEM1(size, align); in DEMOGfxInit()
458 DEMOCheck(ptr!=NULL, "Color aux buffer alloc failed"); in DEMOGfxInit()
459 GX2InitColorBufferAuxPtr(&DEMOColorBuffer, ptr); in DEMOGfxInit()
460 GX2Invalidate(GX2_INVALIDATE_CPU, ptr, size); in DEMOGfxInit()
470 ptr = DEMOGfxAllocMEM1(DEMODepthBuffer.surface.imageSize, in DEMOGfxInit()
472 DEMOCheck(ptr!=NULL, "Depth buffer alloc failed"); in DEMOGfxInit()
473 GX2Invalidate(GX2_INVALIDATE_CPU, ptr, DEMODepthBuffer.surface.imageSize); in DEMOGfxInit()
474 GX2InitDepthBufferPtr(&DEMODepthBuffer, ptr); in DEMOGfxInit()
480 ptr = DEMOGfxAllocMEM1(size, align); in DEMOGfxInit()
481 DEMOCheck(ptr!=NULL, "Depth Hi-Z buffer alloc failed"); in DEMOGfxInit()
482 GX2Invalidate(GX2_INVALIDATE_CPU, ptr, size); in DEMOGfxInit()
483 GX2InitDepthBufferHiZPtr(&DEMODepthBuffer, ptr); in DEMOGfxInit()
616 void *ptr; in DEMOGfxAcquiredForeground() local
634 ptr = DEMOGfxAllocMEM1(DEMOColorBuffer.surface.imageSize, in DEMOGfxAcquiredForeground()
636 GX2Invalidate(GX2_INVALIDATE_CPU, ptr, DEMOColorBuffer.surface.imageSize); in DEMOGfxAcquiredForeground()
638 GX2InitColorBufferPtr(&DEMOColorBuffer, ptr); in DEMOGfxAcquiredForeground()
644 ptr = DEMOGfxAllocMEM1(size, align); in DEMOGfxAcquiredForeground()
645 GX2InitColorBufferAuxPtr(&DEMOColorBuffer, ptr); in DEMOGfxAcquiredForeground()
646 GX2Invalidate(GX2_INVALIDATE_CPU, ptr, size); in DEMOGfxAcquiredForeground()
652 ptr = DEMOGfxAllocMEM1(DEMODepthBuffer.surface.imageSize, in DEMOGfxAcquiredForeground()
654 GX2Invalidate(GX2_INVALIDATE_CPU, ptr, DEMODepthBuffer.surface.imageSize); in DEMOGfxAcquiredForeground()
655 GX2InitDepthBufferPtr(&DEMODepthBuffer, ptr); in DEMOGfxAcquiredForeground()
661 ptr = DEMOGfxAllocMEM1(size, align); in DEMOGfxAcquiredForeground()
662 GX2Invalidate(GX2_INVALIDATE_CPU, ptr, size); in DEMOGfxAcquiredForeground()
663 GX2InitDepthBufferHiZPtr(&DEMODepthBuffer, ptr); in DEMOGfxAcquiredForeground()