Home
last modified time | relevance | path

Searched refs:addr2 (Results 1 – 5 of 5) sorted by relevance

/xnu-8792.81.2/tests/vm/
H A Dvm_user.c75 mach_vm_address_t addr, addr2;
82 addr2 = addr;
83 kr2 = mach_vm_allocate(mach_task_self(), &addr2, size,
131 mach_vm_address_t addr, remap_addr, addr2;
138 addr2 = 0;
139 kr2 = mach_vm_allocate(mach_task_self(), &addr2, size,
146 mach_task_self(), addr2, TRUE,
/xnu-8792.81.2/tests/
H A Drestrict_jit.c16 void *addr2; variable
23addr2 = mmap(NULL, size, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_ANON | MAP_PRIVATE | MAP_JIT, -1,…
24 if (addr2 == MAP_FAILED) {
/xnu-8792.81.2/tools/tests/superpages/
H A Dtestsp.c70 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()
[all …]
/xnu-8792.81.2/osfmk/ipc/
H A Dmach_port.c242 vm_offset_t addr2 = 0; /* allocated memory, for types */ in mach_port_names() local
264 kmem_free(ipc_kernel_map, addr2, size); in mach_port_names()
283 kmem_free(ipc_kernel_map, addr2, size); in mach_port_names()
293 kr = kmem_alloc(ipc_kernel_map, &addr2, size, in mach_port_names()
303 types = (mach_port_type_t *) addr2; in mach_port_names()
332 kmem_free(ipc_kernel_map, addr2, size); in mach_port_names()
350 bzero((char *)addr2 + size_used, vm_size_used - size_used); in mach_port_names()
356 kr = vm_map_unwire(ipc_kernel_map, addr2, addr2 + vm_size_used, FALSE); in mach_port_names()
363 kr = vm_map_copyin(ipc_kernel_map, (vm_map_address_t)addr2, in mach_port_names()
371 addr2 + vm_size_used, size - vm_size_used); in mach_port_names()
/xnu-8792.81.2/bsd/net/
H A Dbridgestp.c2184 u_char addr2[ETHER_ADDR_LEN]; in bstp_same_bridgeid() local
2187 PV2ADDR(id2, addr2); in bstp_same_bridgeid()
2189 if (bstp_addr_cmp(addr1, addr2) == 0) { in bstp_same_bridgeid()