• Home
  • Raw
  • Download

Lines Matching refs:HstPtrBegin

58 int DeviceTy::associatePtr(void *HstPtrBegin, void *TgtPtrBegin, int64_t Size) {  in associatePtr()  argument
62 auto search = HostDataToTargetMap.find(HstPtrBeginTy{(uintptr_t)HstPtrBegin}); in associatePtr()
65 bool isValid = search->HstPtrEnd == (uintptr_t)HstPtrBegin + Size && in associatePtr()
80 HostDataToTargetTy newEntry((uintptr_t)HstPtrBegin /*HstPtrBase*/, in associatePtr()
81 (uintptr_t)HstPtrBegin /*HstPtrBegin*/, in associatePtr()
82 (uintptr_t)HstPtrBegin + Size /*HstPtrEnd*/, in associatePtr()
88 DPxPTR(newEntry.HstPtrBegin), DPxPTR(newEntry.HstPtrEnd), in associatePtr()
97 int DeviceTy::disassociatePtr(void *HstPtrBegin) { in disassociatePtr() argument
100 auto search = HostDataToTargetMap.find(HstPtrBeginTy{(uintptr_t)HstPtrBegin}); in disassociatePtr()
121 uint64_t DeviceTy::getMapEntryRefCnt(void *HstPtrBegin) { in getMapEntryRefCnt() argument
122 uintptr_t hp = (uintptr_t)HstPtrBegin; in getMapEntryRefCnt()
130 if (hp >= upper->HstPtrBegin && hp < upper->HstPtrEnd) { in getMapEntryRefCnt()
145 LookupResult DeviceTy::lookupMapping(void *HstPtrBegin, int64_t Size) { in lookupMapping() argument
146 uintptr_t hp = (uintptr_t)HstPtrBegin; in lookupMapping()
161 lr.Flags.IsContained = hp >= HT.HstPtrBegin && hp < HT.HstPtrEnd && in lookupMapping()
173 lr.Flags.ExtendsBefore = hp < HT.HstPtrBegin && (hp+Size) > HT.HstPtrBegin; in lookupMapping()
196 void *DeviceTy::getOrAllocTgtPtr(void *HstPtrBegin, void *HstPtrBase, in getOrAllocTgtPtr() argument
205 LookupResult lr = lookupMapping(HstPtrBegin, Size); in getOrAllocTgtPtr()
219 uintptr_t tp = HT.TgtPtrBegin + ((uintptr_t)HstPtrBegin - HT.HstPtrBegin); in getOrAllocTgtPtr()
224 (IsImplicit ? " (implicit)" : ""), DPxPTR(HstPtrBegin), DPxPTR(tp), in getOrAllocTgtPtr()
234 DPxPTR(HstPtrBegin), Size, DPxPTR(lr.Entry->HstPtrBegin), in getOrAllocTgtPtr()
235 lr.Entry->HstPtrEnd - lr.Entry->HstPtrBegin); in getOrAllocTgtPtr()
239 DPxPTR(HstPtrBegin), Size); in getOrAllocTgtPtr()
250 DPxPTR((uintptr_t)HstPtrBegin), Size, in getOrAllocTgtPtr()
253 rc = HstPtrBegin; in getOrAllocTgtPtr()
258 DPxPTR(HstPtrBegin), Size); in getOrAllocTgtPtr()
261 DPxPTR(HstPtrBegin), Size); in getOrAllocTgtPtr()
265 uintptr_t tp = (uintptr_t)allocData(Size, HstPtrBegin); in getOrAllocTgtPtr()
268 DPxPTR(HstPtrBase), DPxPTR(HstPtrBegin), in getOrAllocTgtPtr()
269 DPxPTR((uintptr_t)HstPtrBegin + Size), DPxPTR(tp)); in getOrAllocTgtPtr()
271 HostDataToTargetTy((uintptr_t)HstPtrBase, (uintptr_t)HstPtrBegin, in getOrAllocTgtPtr()
272 (uintptr_t)HstPtrBegin + Size, tp, HstPtrName)); in getOrAllocTgtPtr()
283 void *DeviceTy::getTgtPtrBegin(void *HstPtrBegin, int64_t Size, bool &IsLast, in getTgtPtrBegin() argument
290 LookupResult lr = lookupMapping(HstPtrBegin, Size); in getTgtPtrBegin()
300 uintptr_t tp = HT.TgtPtrBegin + ((uintptr_t)HstPtrBegin - HT.HstPtrBegin); in getTgtPtrBegin()
302 "Size=%" PRId64 ",%s RefCount=%s\n", DPxPTR(HstPtrBegin), DPxPTR(tp), in getTgtPtrBegin()
311 DPxPTR((uintptr_t)HstPtrBegin), Size, (UpdateRefCount ? " updated" : "")); in getTgtPtrBegin()
313 rc = HstPtrBegin; in getTgtPtrBegin()
322 void *DeviceTy::getTgtPtrBegin(void *HstPtrBegin, int64_t Size) { in getTgtPtrBegin() argument
323 uintptr_t hp = (uintptr_t)HstPtrBegin; in getTgtPtrBegin()
324 LookupResult lr = lookupMapping(HstPtrBegin, Size); in getTgtPtrBegin()
327 uintptr_t tp = HT.TgtPtrBegin + (hp - HT.HstPtrBegin); in getTgtPtrBegin()
334 int DeviceTy::deallocTgtPtr(void *HstPtrBegin, int64_t Size, bool ForceDelete, in deallocTgtPtr() argument
342 LookupResult lr = lookupMapping(HstPtrBegin, Size); in deallocTgtPtr()
353 DPxPTR(HT.HstPtrBegin), DPxPTR(HT.TgtPtrBegin), Size); in deallocTgtPtr()
360 DPxPTR(HstPtrBegin)); in deallocTgtPtr()
431 int32_t DeviceTy::submitData(void *TgtPtrBegin, void *HstPtrBegin, int64_t Size, in submitData() argument
434 return RTL->data_submit(RTLDeviceID, TgtPtrBegin, HstPtrBegin, Size); in submitData()
436 return RTL->data_submit_async(RTLDeviceID, TgtPtrBegin, HstPtrBegin, Size, in submitData()
441 int32_t DeviceTy::retrieveData(void *HstPtrBegin, void *TgtPtrBegin, in retrieveData() argument
444 return RTL->data_retrieve(RTLDeviceID, HstPtrBegin, TgtPtrBegin, Size); in retrieveData()
446 return RTL->data_retrieve_async(RTLDeviceID, HstPtrBegin, TgtPtrBegin, Size, in retrieveData()