Lines Matching refs:ptr

141 bool MemMap::ContainedWithinExistingMap(uint8_t* ptr, size_t size, std::string* error_msg) {  in ContainedWithinExistingMap()  argument
142 uintptr_t begin = reinterpret_cast<uintptr_t>(ptr); in ContainedWithinExistingMap()
264 static inline void* TryMemMapLow4GB(void* ptr, in TryMemMapLow4GB() argument
270 void* actual = mmap(ptr, page_aligned_byte_count, prot, flags, fd, offset); in TryMemMapLow4GB()
840 for (uintptr_t ptr = next_mem_pos_; ptr < 4 * GB; ptr += kPageSize) { in MapInternal() local
843 auto it = gMaps->upper_bound(reinterpret_cast<void*>(ptr)); in MapInternal()
848 ptr = std::max(ptr, reinterpret_cast<uintptr_t>(before_it->second->BaseEnd())); in MapInternal()
849 CHECK_ALIGNED(ptr, kPageSize); in MapInternal()
853 size_t delta = reinterpret_cast<uintptr_t>(it->first) - ptr; in MapInternal()
859 ptr = reinterpret_cast<uintptr_t>(it->second->BaseEnd()); in MapInternal()
860 CHECK_ALIGNED(ptr, kPageSize); in MapInternal()
865 actual = TryMemMapLow4GB(reinterpret_cast<void*>(ptr), length, prot, flags, fd, offset); in MapInternal()
871 if (4U * GB - ptr < length) { in MapInternal()
875 ptr = LOW_MEM_START - kPageSize; in MapInternal()
888 for (tail_ptr = ptr; tail_ptr < ptr + length; tail_ptr += kPageSize) { in MapInternal()
900 actual = TryMemMapLow4GB(reinterpret_cast<void*>(ptr), length, prot, flags, fd, offset); in MapInternal()
906 ptr = tail_ptr; in MapInternal()
947 for (volatile uint8_t* ptr = begin; ptr < end; ptr += kPageSize) { in TryReadable() local
949 uint8_t value = *ptr; in TryReadable()