Lines Matching refs:addr
184 uintptr_t addr;
187 vmo, 0, size, &addr);
199 return reinterpret_cast<void *>(addr);
248 uintptr_t addr;
252 offset, vmo, 0, map_size, &addr);
261 return addr;
276 void UnmapOrDieVmar(void *addr, uptr size, zx_handle_t target_vmar) {
277 if (!addr || !size) return;
281 _zx_vmar_unmap(target_vmar, reinterpret_cast<uintptr_t>(addr), size);
284 SanitizerToolName, size, size, addr);
291 void ReservedAddressRange::Unmap(uptr addr, uptr size) {
294 if (addr == reinterpret_cast<uptr>(base_)) {
304 CHECK_EQ(addr + size, reinterpret_cast<uptr>(base_) + size_);
308 UnmapOrDieVmar(reinterpret_cast<void *>(addr), size, vmar);
339 uintptr_t addr;
342 vmo, 0, map_size, &addr);
344 uintptr_t map_addr = addr;
346 addr = RoundUpTo(map_addr, alignment);
347 uintptr_t end = addr + size;
348 if (addr != map_addr) {
357 addr - info.base, vmo, 0, size, &new_addr);
358 if (status == ZX_OK) CHECK_EQ(new_addr, addr);
361 if (status == ZX_OK && addr != map_addr)
362 status = _zx_vmar_unmap(_zx_vmar_root_self(), map_addr, addr - map_addr);
376 return reinterpret_cast<void *>(addr);
379 void UnmapOrDie(void *addr, uptr size) {
380 UnmapOrDieVmar(addr, size, _zx_vmar_root_self());
416 uintptr_t addr;
418 map_size, &addr);
420 *buff = reinterpret_cast<char *>(addr);