Lines Matching refs:TgtPtr
141 void *TgtPtr = allocateOnDevice(Size, HstPtr); in allocateOrFreeAndAllocateOnDevice() local
144 if (TgtPtr == nullptr) { in allocateOrFreeAndAllocateOnDevice()
147 TgtPtr = freeAndAllocate(Size, HstPtr); in allocateOrFreeAndAllocateOnDevice()
151 if (TgtPtr == nullptr) in allocateOrFreeAndAllocateOnDevice()
156 return TgtPtr; in allocateOrFreeAndAllocateOnDevice()
174 void *TgtPtr = allocateOrFreeAndAllocateOnDevice(Size, HstPtr); in allocate() local
176 DP("Got target pointer " DPxMOD ". Return directly.\n", DPxPTR(TgtPtr)); in allocate()
178 return TgtPtr; in allocate()
208 void *TgtPtr = allocateOrFreeAndAllocateOnDevice(Size, HstPtr); in allocate() local
210 if (TgtPtr == nullptr) in allocate()
216 auto Itr = PtrToNodeTable.emplace(TgtPtr, NodeTy(Size, TgtPtr)); in allocate()
221 DPxPTR(NodePtr), DPxPTR(TgtPtr), Size); in allocate()
229 int MemoryManagerTy::free(void *TgtPtr) { in free() argument
230 DP("MemoryManagerTy::free: target memory " DPxMOD ".\n", DPxPTR(TgtPtr)); in free()
237 auto Itr = PtrToNodeTable.find(TgtPtr); in free()
248 return deleteOnDevice(TgtPtr); in free()