Lines Matching defs:Addr
48 void *map(void *Addr, uptr Size, UNUSED const char *Name, uptr Flags,
65 if (Addr)
67 void *P = mmap(Addr, Size, MmapProt, MmapFlags, -1, 0);
81 void unmap(void *Addr, uptr Size, UNUSED uptr Flags,
83 if (munmap(Addr, Size) != 0)
84 reportUnmapError(reinterpret_cast<uptr>(Addr), Size);
88 void setMemoryPermission(uptr Addr, uptr Size, uptr Flags,
91 if (mprotect(reinterpret_cast<void *>(Addr), Size, Prot) != 0)
92 reportProtectError(Addr, Size, Prot);
98 void *Addr = reinterpret_cast<void *>(BaseAddress + Offset);
100 while (madvise(Addr, Size, MADV_DONTNEED) == -1 && errno == EAGAIN) {