Lines Matching refs:ptr
92 void *ptr; in DEMOGfxAllocMEM1() local
103 ptr = MEMAllocFromExpHeapEx(gDEMOMem1Heap, size, align); in DEMOGfxAllocMEM1()
104 GX2NotifyMemAlloc(ptr, size, align); in DEMOGfxAllocMEM1()
106 DEMOAssert(ptr&&"Failed MEM1 alloc"); in DEMOGfxAllocMEM1()
108 return ptr; in DEMOGfxAllocMEM1()
111 void DEMOGfxFreeMEM1(void * ptr) in DEMOGfxFreeMEM1() argument
113 if (gDemoGfxInForeground) MEMFreeToExpHeap(gDEMOMem1Heap, ptr); in DEMOGfxFreeMEM1()
114 GX2NotifyMemFree(ptr); in DEMOGfxFreeMEM1()
121 void * ptr = MEMAllocFromExpHeapEx(gDEMOBucketHeap, size, align); in DEMOGfxAllocBucket() local
122 GX2NotifyMemAlloc(ptr, size, align); in DEMOGfxAllocBucket()
124 DEMOAssert(ptr); in DEMOGfxAllocBucket()
126 return ptr; in DEMOGfxAllocBucket()
129 void DEMOGfxFreeBucket(void * ptr) in DEMOGfxFreeBucket() argument
131 if (gDemoGfxInForeground) MEMFreeToExpHeap(gDEMOBucketHeap, ptr); in DEMOGfxFreeBucket()
132 GX2NotifyMemFree(ptr); in DEMOGfxFreeBucket()
137 void *ptr; in DEMOGfxAllocMEM2() local
144 ptr = DEMOAllocEx(size, align); in DEMOGfxAllocMEM2()
145 GX2NotifyMemAlloc(ptr, size, align); in DEMOGfxAllocMEM2()
147 DEMOAssert(ptr&&"Failed MEM2 alloc"); in DEMOGfxAllocMEM2()
149 return ptr; in DEMOGfxAllocMEM2()
153 void DEMOGfxFreeMEM2(void * ptr) in DEMOGfxFreeMEM2() argument
156 DEMOFree(ptr); in DEMOGfxFreeMEM2()
157 GX2NotifyMemFree(ptr); in DEMOGfxFreeMEM2()
178 void *ptr; in DEMOGfxInit() local
431 ptr = DEMOGfxAllocMEM1(DEMOColorBuffer.surface.imageSize, in DEMOGfxInit()
433 DEMOCheck(ptr!=NULL, "Color buffer alloc failed"); in DEMOGfxInit()
434 GX2Invalidate(GX2_INVALIDATE_CPU, ptr, DEMOColorBuffer.surface.imageSize); in DEMOGfxInit()
436 GX2InitColorBufferPtr(&DEMOColorBuffer, ptr); in DEMOGfxInit()
442 ptr = DEMOGfxAllocMEM1(size, align); in DEMOGfxInit()
443 DEMOCheck(ptr!=NULL, "Color aux buffer alloc failed"); in DEMOGfxInit()
444 GX2InitColorBufferAuxPtr(&DEMOColorBuffer, ptr); in DEMOGfxInit()
445 GX2Invalidate(GX2_INVALIDATE_CPU, ptr, size); in DEMOGfxInit()
455 ptr = DEMOGfxAllocMEM1(DEMODepthBuffer.surface.imageSize, in DEMOGfxInit()
457 DEMOCheck(ptr!=NULL, "Depth buffer alloc failed"); in DEMOGfxInit()
458 GX2Invalidate(GX2_INVALIDATE_CPU, ptr, DEMODepthBuffer.surface.imageSize); in DEMOGfxInit()
459 GX2InitDepthBufferPtr(&DEMODepthBuffer, ptr); in DEMOGfxInit()
465 ptr = DEMOGfxAllocMEM1(size, align); in DEMOGfxInit()
466 DEMOCheck(ptr!=NULL, "Depth Hi-Z buffer alloc failed"); in DEMOGfxInit()
467 GX2Invalidate(GX2_INVALIDATE_CPU, ptr, size); in DEMOGfxInit()
468 GX2InitDepthBufferHiZPtr(&DEMODepthBuffer, ptr); in DEMOGfxInit()
589 void *ptr; in DEMOGfxAcquiredForeground() local
607 ptr = DEMOGfxAllocMEM1(DEMOColorBuffer.surface.imageSize, in DEMOGfxAcquiredForeground()
609 GX2Invalidate(GX2_INVALIDATE_CPU, ptr, DEMOColorBuffer.surface.imageSize); in DEMOGfxAcquiredForeground()
611 GX2InitColorBufferPtr(&DEMOColorBuffer, ptr); in DEMOGfxAcquiredForeground()
617 ptr = DEMOGfxAllocMEM1(size, align); in DEMOGfxAcquiredForeground()
618 GX2InitColorBufferAuxPtr(&DEMOColorBuffer, ptr); in DEMOGfxAcquiredForeground()
619 GX2Invalidate(GX2_INVALIDATE_CPU, ptr, size); in DEMOGfxAcquiredForeground()
625 ptr = DEMOGfxAllocMEM1(DEMODepthBuffer.surface.imageSize, in DEMOGfxAcquiredForeground()
627 GX2Invalidate(GX2_INVALIDATE_CPU, ptr, DEMODepthBuffer.surface.imageSize); in DEMOGfxAcquiredForeground()
628 GX2InitDepthBufferPtr(&DEMODepthBuffer, ptr); in DEMOGfxAcquiredForeground()
634 ptr = DEMOGfxAllocMEM1(size, align); in DEMOGfxAcquiredForeground()
635 GX2Invalidate(GX2_INVALIDATE_CPU, ptr, size); in DEMOGfxAcquiredForeground()
636 GX2InitDepthBufferHiZPtr(&DEMODepthBuffer, ptr); in DEMOGfxAcquiredForeground()