Home
last modified time | relevance | path

Searched refs:mach_vm_address_t (Results 1 – 25 of 164) sorted by relevance

1234567

/xnu-8792.61.2/tests/vm/
H A Dvm_allocation.c325 #define MACH_VM_ADDRESS_T(address) (*((mach_vm_address_t *)(uintptr_t)(address)))
327 static int vm_address_size = sizeof(mach_vm_address_t);
397 typedef kern_return_t (*allocate_fn_t)(vm_map_t, mach_vm_address_t *, mach_vm_size_t, int);
403 static mach_vm_address_t fixed_vm_address = 0x0;
407 void assert_deallocate_success(mach_vm_address_t address, mach_vm_size_t size);
413 check_fixed_address(mach_vm_address_t *address, mach_vm_size_t size) in check_fixed_address()
425 wrapper_mach_vm_allocate(vm_map_t map, mach_vm_address_t * address, mach_vm_size_t size, int flags) in wrapper_mach_vm_allocate()
432 wrapper_mach_vm_map(vm_map_t map, mach_vm_address_t * address, mach_vm_size_t size, int flags) in wrapper_mach_vm_map()
441 wrapper_mach_vm_map_4kB(vm_map_t map, mach_vm_address_t * address, mach_vm_size_t size, int flags) in wrapper_mach_vm_map_4kB()
449 wrapper_mach_vm_map_2MB(vm_map_t map, mach_vm_address_t * address, mach_vm_size_t size, int flags) in wrapper_mach_vm_map_2MB()
[all …]
H A Dvm_ranges.c110 static mach_vm_address_t
111 assert_allocate(mach_vm_address_t dst, int vm_flags) in assert_allocate()
146 assert_allocate_eq(mach_vm_address_t dst, int vm_flags) in assert_allocate_eq()
148 mach_vm_address_t target = dst; in assert_allocate_eq()
156 static mach_vm_address_t
157 assert_allocate_in_range(int target_range, mach_vm_address_t dst, int vm_flags) in assert_allocate_in_range()
289 mach_vm_address_t target = range.min_address - _allocation_size;
301 mach_vm_address_t target = range.min_address + 0x100000000;
306 T_EXPECT_EQ((mach_vm_address_t)dst, target, "unexpected allocation address");
315 mach_vm_address_t target = range.max_address + 0x100000000;
[all …]
H A Dvm_user.c44 static mach_vm_address_t
48 mach_vm_address_t addr; in get_permanent_mapping()
75 mach_vm_address_t addr, addr2;
104 mach_vm_address_t addr;
131 mach_vm_address_t addr, remap_addr, addr2;
167 mach_vm_address_t addr;
H A Dvm_reclaim.c44 …ize, mach_vm_reclaim_ringbuffer_v1_t ringbuffer, unsigned char val, mach_vm_address_t *addr /* OUT… in allocate_and_defer_free()
64 mach_vm_address_t addr;
110 check_buffer(mach_vm_address_t addr, size_t size, unsigned char expected) in check_buffer()
126 assert_buffer_has_changed_and_crash(mach_vm_address_t addr, size_t size, unsigned char expected) in assert_buffer_has_changed_and_crash()
150 mach_vm_address_t addr;
176 mach_vm_address_t addr = 0; in allocate_and_suspend()
197 …kr = mach_vm_deallocate(mach_task_self(), (mach_vm_address_t) ringbuffer.buffer, ringbuffer.buffer… in allocate_and_suspend()
378 mach_vm_address_t addr = 0;
406 mach_vm_address_t addr = 0;
421 mach_vm_address_t addr;
[all …]
/xnu-8792.61.2/tools/tests/superpages/
H A Dtestsp.c60 check_addr0(mach_vm_address_t addr, char *fn) in check_addr0()
70 check_addr(mach_vm_address_t addr1, mach_vm_address_t addr2, char *fn) in check_addr()
80 check_align(mach_vm_address_t addr) in check_align()
90 check_r(mach_vm_address_t addr, mach_vm_size_t size, int *res) in check_r()
113 check_nr(mach_vm_address_t addr, mach_vm_size_t size, int *res) in check_nr()
127 check_w(mach_vm_address_t addr, mach_vm_size_t size) in check_w()
145 check_nw(mach_vm_address_t addr, mach_vm_size_t size) in check_nw()
160 check_rw(mach_vm_address_t addr, mach_vm_size_t size) in check_rw()
178 mach_vm_address_t global_addr = 0;
252 mach_vm_address_t addr = 0; in test_allocate_size_any()
[all …]
/xnu-8792.61.2/osfmk/kern/
H A Dkern_cdata.h84 mach_vm_address_t kcd_cd_totalout_addr;
85 mach_vm_address_t kcd_cd_totalin_addr;
120 mach_vm_address_t kcd_addr_begin;
121 mach_vm_address_t kcd_addr_end;
141 kcdata_descriptor_t kcdata_memory_alloc_init(mach_vm_address_t crash_data_p, unsigned data_type, un…
143 …kcdata_descriptor_t data, mach_vm_address_t buffer_addr_p, unsigned data_type, unsigned size, unsi…
187 kern_return_t kcdata_memcpy(kcdata_descriptor_t data, mach_vm_address_t dst_addr, const void * src_…
188 kern_return_t kcdata_bzero(kcdata_descriptor_t data, mach_vm_address_t dst_addr, uint32_t size);
189 …memory_addr(kcdata_descriptor_t data, uint32_t type, uint32_t size, mach_vm_address_t * user_addr);
191 …uint32_t type_of_element, uint32_t size_of_element, uint32_t count, mach_vm_address_t * user_addr);
H A Dkern_cdata.c42 …ata_descriptor_t data, uint32_t type, uint32_t size, uint64_t flags, mach_vm_address_t *user_addr);
305 kcdata_memory_alloc_init(mach_vm_address_t buffer_addr_p, unsigned data_type, unsigned size, unsign… in kcdata_memory_alloc_init()
308 mach_vm_address_t user_addr = 0; in kcdata_memory_alloc_init()
328 kcdata_memory_static_init(kcdata_descriptor_t data, mach_vm_address_t buffer_addr_p, unsigned data_… in kcdata_memory_static_init()
330 mach_vm_address_t user_addr = 0; in kcdata_memory_static_init()
350 mach_vm_address_t curend = data->kcd_addr_begin + data->kcd_length; in kcdata_endalloc()
366 mach_vm_address_t curend = data->kcd_addr_begin + data->kcd_length; in kcdata_release_endallocs()
469 …y_f)(void *, const void *, size_t), uint64_t type, mach_vm_address_t totalout_addr, mach_vm_addres… in kcdata_init_compress_state()
527 mach_vm_address_t user_addr, totalout_addr, totalin_addr; in kcdata_init_compress()
803 …data->kcd_addr_end = (mach_vm_address_t) space_start + (total_uncompressed_size - total_uncompress… in kcdata_compress_chunk_with_flags()
[all …]
/xnu-8792.61.2/tests/
H A Dkernel_inspection.c103 (mach_vm_address_t)(uintptr_t)threads, in attempt_kernel_inspection()
117 (mach_vm_address_t)(uintptr_t)table, in attempt_kernel_inspection()
122 (mach_vm_address_t)(uintptr_t)tree, in attempt_kernel_inspection()
138mach_vm_address_t addr = 0x10000000; /* can be whatever, the call should fail before getting to VM… in attempt_kernel_inspection()
140 kr = mach_vm_read(task, (mach_vm_address_t)addr, 8, &data, &cnt); in attempt_kernel_inspection()
183 (mach_vm_address_t)(uintptr_t)tasks,
195 (mach_vm_address_t)(uintptr_t)tasks,
202 (mach_vm_address_t)(uintptr_t)psets,
/xnu-8792.61.2/libsyscall/mach/
H A Dmach_vm.c49 mach_vm_address_t *address, in mach_vm_allocate()
72 mach_vm_address_t address, in mach_vm_deallocate()
93 mach_vm_address_t address, in mach_vm_protect()
119 mach_vm_address_t mach_addr; in vm_allocate()
121 mach_addr = (mach_vm_address_t)*address; in vm_allocate()
163 mach_vm_address_t *address, in mach_vm_map()
199 mach_vm_address_t *address, in mach_vm_remap()
204 mach_vm_address_t src_address, in mach_vm_remap()
228 mach_vm_address_t *address, in mach_vm_remap_new()
233 mach_vm_address_t src_address, in mach_vm_remap_new()
[all …]
H A Dvm_reclaim.c82 construct_entry(mach_vm_address_t start_addr, uint32_t size) in construct_entry()
98 kr = mach_vm_map(mach_task_self(), (mach_vm_address_t *)&ring_buffer->buffer, in mach_vm_reclaim_ringbuffer_init()
106 (mach_vm_address_t) ring_buffer->buffer, buffer_size, &ring_buffer->indices); in mach_vm_reclaim_ringbuffer_init()
109 mach_vm_deallocate(current_task(), (mach_vm_address_t) ring_buffer->buffer, in mach_vm_reclaim_ringbuffer_init()
119 mach_vm_reclaim_ringbuffer_v1_t ring_buffer, mach_vm_address_t start_addr, uint32_t size, in mach_vm_reclaim_mark_free()
157 …mach_vm_reclaim_ringbuffer_v1_t ring_buffer, uint64_t id, mach_vm_address_t start_addr, uint32_t s… in mach_vm_reclaim_mark_used()
/xnu-8792.61.2/osfmk/mach/
H A Dmach_vm.defs109 inout address : mach_vm_address_t;
120 inout address : mach_vm_address_t;
136 address : mach_vm_address_t;
146 address : mach_vm_address_t;
165 address : mach_vm_address_t;
179 address : mach_vm_address_t;
201 address : mach_vm_address_t;
218 address : mach_vm_address_t;
248 address : mach_vm_address_t;
267 source_address : mach_vm_address_t;
[all …]
H A Dvm_reclaim.h42 mach_vm_address_t address;
86 mach_vm_address_t start_addr,
98 mach_vm_address_t start_addr,
/xnu-8792.61.2/iokit/IOKit/
H A DIOBufferMemoryDescriptor.h103 mach_vm_address_t alignment,
104 mach_vm_address_t physicalMask);
119 mach_vm_address_t alignment,
120 mach_vm_address_t physicalMask);
189 mach_vm_address_t source,
268 mach_vm_address_t physicalMask);
H A DIOKitServer.h202 extern kern_return_t IOMapPages(vm_map_t map, mach_vm_address_t va, mach_vm_address_t pa,
205 extern kern_return_t IOUnmapPages(vm_map_t map, mach_vm_address_t va, mach_vm_size_t length);
207 extern kern_return_t IOProtectCacheMode(vm_map_t map, mach_vm_address_t va,
/xnu-8792.61.2/bsd/tests/
H A Dbsd_tests.c147 kern_return_t xnupost_copyout_test(xnupost_test_t t, mach_vm_address_t outaddr);
150 xnupost_copyout_test(xnupost_test_t t, mach_vm_address_t outaddr) in xnupost_copyout_test()
219 mach_vm_address_t user_addr = 0; in xnupost_export_testdata()
220 mach_vm_address_t tmp_entry_addr = 0; in xnupost_export_testdata()
239 …kret = kcdata_memory_static_init(&kcd, (mach_vm_address_t)outp, KCDATA_BUFFER_BEGIN_XNUPOST_CONFIG… in xnupost_export_testdata()
276 tmp_entry_addr = (mach_vm_address_t)((uint64_t)(user_addr) + (uint64_t)(i * elem_size)); in xnupost_export_testdata()
280 user_addr = (mach_vm_address_t)((uint64_t)(user_addr) + (uint64_t)(i * elem_size)); in xnupost_export_testdata()
283 tmp_entry_addr = (mach_vm_address_t)((uint64_t)(user_addr) + (uint64_t)(i * elem_size)); in xnupost_export_testdata()
/xnu-8792.61.2/osfmk/ipc/
H A Dmach_msg.c127 mach_vm_address_t rcv_addr,
129 mach_vm_address_t aux_addr,
201 mach_vm_address_t context; in mach_msg_receive_results_kevent()
214 mach_vm_address_t msg_rcv_addr = self->ith_msg_addr; in mach_msg_receive_results_kevent()
218 mach_vm_address_t aux_rcv_addr = self->ith_aux_addr; in mach_msg_receive_results_kevent()
476 mach_vm_address_t rcv_addr = aux_vec->msgv_rcv_addr ? in mach_msg_validate_data_vectors()
647 mach_vm_address_t msg_addr, in mach_msg_copyin_user_header()
727 mach_vm_address_t msg_addr, in mach_msg_trap_send()
728 mach_vm_address_t aux_addr, in mach_msg_trap_send()
836 mach_vm_address_t msg_addr, in mach_msg_trap_receive()
[all …]
/xnu-8792.61.2/iokit/Kernel/
H A DIOLib.cpp436 mach_vm_address_t allocationStart, in IOMallocAlignedSetHdr()
437 mach_vm_address_t alignedStart) in IOMallocAlignedSetHdr()
455 mach_vm_address_t alignedStart, in IOMallocAlignedHdrCorruptionPanic()
458 mach_vm_address_t address = 0; in IOMallocAlignedHdrCorruptionPanic()
459 mach_vm_address_t recalAlignedStart = 0; in IOMallocAlignedHdrCorruptionPanic()
483 static __header_always_inline mach_vm_address_t
486 mach_vm_address_t alignedStart, in IOMallocAlignedGetAddress()
489 mach_vm_address_t address = 0; in IOMallocAlignedGetAddress()
490 mach_vm_address_t recalAlignedStart = 0; in IOMallocAlignedGetAddress()
624 (mach_vm_address_t)address, &adjustedSize); in IOFreeAligned_internal()
[all …]
H A DIOBufferMemoryDescriptor.cpp115 mach_vm_address_t physicalMask = 0; in initWithOptions()
125 mach_vm_address_t source, in withCopy()
179 mach_vm_address_t alignment, in initWithPhysicalMask()
180 mach_vm_address_t physicalMask) in initWithPhysicalMask()
184 mach_vm_address_t highestMask = 0; in initWithPhysicalMask()
413 _ranges.v64->address = (mach_vm_address_t) pgz_decode(_buffer, _capacity); in initWithPhysicalMask()
450 mach_vm_address_t buffer = reserved->map->getAddress(); in initWithPhysicalMask()
467 mach_vm_address_t alignment, in initControlWithPhysicalMask()
468 mach_vm_address_t physicalMask) in initControlWithPhysicalMask()
490 (mach_vm_address_t)0); in initWithGuardPages()
[all …]
/xnu-8792.61.2/tests/vm_memory_tests_src/
H A Dcommon.c57 …kr = mach_vm_allocate(mach_task_self(), (mach_vm_address_t *)buffer, (mach_vm_size_t)sb.st_size, V… in mach_server_data_setup()
64 mach_server_data_cleanup(void *buffer, mach_vm_address_t src, mach_vm_size_t size) in mach_server_data_cleanup()
71 mach_vm_deallocate(mach_task_self(), (mach_vm_address_t)buffer, (mach_vm_size_t)sb.st_size); in mach_server_data_cleanup()
96 mach_vm_address_t src, in mach_server_contruct_payload()
120 mach_server_create_allocation(mach_vm_address_t *src, mach_vm_size_t size, void *buffer) in mach_server_create_allocation()
125 mach_vm_address_t localsrc = 0; in mach_server_create_allocation()
H A Dmach_vm_tests.h55 void mach_server_data_cleanup(void *, mach_vm_address_t, mach_vm_size_t);
57 void mach_server_create_allocation(mach_vm_address_t *, mach_vm_size_t, void *);
58 void mach_server_contruct_payload(ipc_message_t *, mach_vm_address_t, mach_port_t, mach_vm_size_t, …
/xnu-8792.61.2/osfmk/arm64/
H A Dalternate_debugger.c73 static mach_vm_address_t alt_code;
75 static mach_vm_address_t alt_pages;
79 typedef void (*t_call_altdbg_fn)(mach_vm_size_t size, mach_vm_address_t pages, mach_vm_size_t pages…
82 extern void alternate_debugger_just_return(__unused mach_vm_size_t size, __unused mach_vm_address_t
/xnu-8792.61.2/osfmk/mach/arm/
H A Dvm_types.h107 typedef uint64_t mach_vm_address_t __kernel_ptr_semantics;
131 typedef uint32_t mach_vm_address_t; typedef
135 typedef uint64_t mach_vm_address_t __kernel_ptr_semantics;
/xnu-8792.61.2/bsd/kern/
H A Dmach_loader.h64 mach_vm_address_t all_image_info_addr;
84 mach_vm_address_t min_vm_addr;
85 mach_vm_address_t max_vm_addr;
/xnu-8792.61.2/bsd/skywalk/channel/
H A Dos_channel_private.h484 mach_vm_address_t cinfo_mem_base; /* VM mapping for task */
570 const mach_vm_address_t chrd_shmem_base_addr;
571 const mach_vm_address_t chrd_def_buf_base_addr;
572 const mach_vm_address_t chrd_large_buf_base_addr;
573 const mach_vm_address_t chrd_md_base_addr;
574 const mach_vm_address_t chrd_sd_base_addr;
575 const mach_vm_address_t chrd_bft_base_addr;
/xnu-8792.61.2/iokit/IOKit/skywalk/
H A DIOSkywalkSupport.h94 mach_vm_address_t * kvaddr );
103 mach_vm_address_t * mapAddr,
107 mach_vm_address_t * mapAddr,
157 mach_vm_address_t * address, mach_vm_size_t * size );

1234567