Lines Matching refs:addr2
70 check_addr(mach_vm_address_t addr1, mach_vm_address_t addr2, char *fn) in check_addr() argument
72 if (addr1 != addr2) { in check_addr()
73 sprintf(error, "%s() returned address %llx instead of %llx", fn, addr1, addr2); in check_addr()
388 mach_vm_address_t addr = 0, addr2; in test_reallocate() local
400 addr2 = addr + i * PAGE_SIZE; in test_reallocate()
402 kr = mach_vm_allocate(mach_task_self(), &addr2, size, 0); in test_reallocate()
621 mach_vm_address_t addr2 = 0; in test_fileio() local
634 kr = mach_vm_allocate(mach_task_self(), &addr2, size, VM_FLAGS_ANYWHERE); in test_fileio()
651 if ((bytes = read(fd, (void*)(uintptr_t)addr2, SUPERPAGE_SIZE)) < SUPERPAGE_SIZE) { in test_fileio()
658 if (memcmp((void*)(uintptr_t)addr1, (void*)(uintptr_t)addr2, bytes)) { in test_fileio()
667 kr = mach_vm_deallocate(mach_task_self(), addr2, size); in test_fileio()