| /xnu-8792.81.2/osfmk/i386/ |
| H A D | io_map.c | 98 vm_offset_t alloc_size = round_page(size + start_offset); in io_map() 108 virtual_avail += round_page(size); in io_map()
|
| H A D | mp.h | 262 vm_size_t log_size = round_page(sizeof(cpu_signal_event_log_t)); \
|
| /xnu-8792.81.2/osfmk/arm/ |
| H A D | io_map.c | 96 vm_offset_t alloc_size = round_page(size + start_offset); in io_map() 106 virtual_space_start += round_page(size); in io_map()
|
| /xnu-8792.81.2/tests/ |
| H A D | voucher_traps.c | 72 alloc_sz = (mach_vm_size_t)round_page(MACH_VOUCHER_TRAP_STACK_LIMIT + 1); 79 alloc_addr = (mach_vm_address_t)round_page(MACH_VOUCHER_ATTR_MAX_RAW_RECIPE_ARRAY_SIZE + 1);
|
| /xnu-8792.81.2/libsyscall/mach/ |
| H A D | mach_msg.c | 580 request_alloc = (mach_msg_size_t)round_page(max_size + trailer_alloc); in mach_msg_server_once() 585 reply_alloc = (mach_msg_size_t)round_page((options & MACH_SEND_TRAILER) ? in mach_msg_server_once() 619 new_request_alloc = (mach_msg_size_t)round_page(bufRequest->Head.msgh_size + in mach_msg_server_once() 712 reply_alloc = (mach_msg_size_t)round_page((options & MACH_SEND_TRAILER) ? in mach_msg_server() 725 new_request_alloc = (mach_msg_size_t)round_page(max_size + trailer_alloc); in mach_msg_server() 840 new_request_alloc = (mach_msg_size_t)round_page(bufRequest->Head.msgh_size + in mach_msg_server()
|
| /xnu-8792.81.2/libkern/kxld/ |
| H A D | kxld_util.c | 208 size = round_page(size); in kxld_page_alloc_untracked() 231 bytes_allocated += round_page(size); in kxld_page_alloc() 261 kheap_free(KHEAP_DEFAULT, ptr, round_page(size)); in kxld_page_free_untracked() 275 bytes_freed += round_page(size); in kxld_page_free() 865 return round_page(offset); in kxld_round_page_cross_safe() 872 return round_page(offset); in kxld_round_page_cross_safe()
|
| H A D | kxld_array.c | 155 array->pool_capacity = round_page(array->itemsize * nitems); in array_init() 228 needed_capacity = round_page(srcarray->nitems * srcarray->itemsize); in kxld_array_copy()
|
| /xnu-8792.81.2/libkern/os/ |
| H A D | log_mem.c | 255 return round_page(BLOCK_SIZE(size_order)) + round_page(MAP_SIZE(size_order, min_order)); in logmem_required_size() 288 lm->lm_mem_map = (uint8_t *)((uintptr_t)lm_mem + round_page(BLOCK_SIZE(size_order))); in logmem_init()
|
| /xnu-8792.81.2/libsyscall/mach/mach/ |
| H A D | vm_page_size.h | 50 #define round_page(x) trunc_page((x) + (vm_page_size - 1)) macro
|
| /xnu-8792.81.2/osfmk/mach/ |
| H A D | vm_param.h | 145 #define round_page(x) (((vm_offset_t)(x) + PAGE_MASK) & ~((vm_offset_t)PAGE_MASK)) macro 362 #undef round_page 392 round_page(vm_offset_t x) in round_page() function
|
| /xnu-8792.81.2/tests/vm/ |
| H A D | vm_allocation.c | 465 T_QUIET; T_ASSERT_EQ(*size, round_page(original_size), in memory_entry() 825 return round_page(address - mach_vm_trunc_page(address) + size); in aligned_size() 1043 size = round_page(size + 2 * vm_page_size); in get_fixed_address() 1175 (uintmax_t)round_page(size), (uintmax_t)round_page(size), (uintmax_t)address); in allocate() 1199 (uintmax_t)round_page(buffer_size), (uintmax_t)round_page(buffer_size), (uintmax_t)data); in allocate_buffer() 1561 …write_and_verify_pattern(empty, TRUE, get_vm_address(), round_page(get_vm_size()), "address-filled… in test_write_address_filled() 1567 …write_and_verify_pattern(checkerboard, FALSE, get_vm_address(), round_page(get_vm_size()), "checke… in test_write_checkerboard() 1573 …write_and_verify_pattern(checkerboard, TRUE, get_vm_address(), round_page(get_vm_size()), "reverse… in test_write_reverse_checkerboard() 1579 …write_and_verify_pattern(page_ends, FALSE, get_vm_address(), round_page(get_vm_size()), "page ends… in test_write_page_ends() 1585 …write_and_verify_pattern(page_ends, TRUE, get_vm_address(), round_page(get_vm_size()), "page inter… in test_write_page_interiors() [all …]
|
| /xnu-8792.81.2/iokit/Kernel/ |
| H A D | IODataQueue.cpp | 102 allocSize = round_page(size + DATA_QUEUE_MEMORY_HEADER_SIZE); in initWithCapacity() 147 round_page(((IODataQueueInternal *)notifyMsg)->queueSize + in free()
|
| H A D | IOSharedDataQueue.cpp | 97 allocSize = round_page(size + DATA_QUEUE_MEMORY_HEADER_SIZE + DATA_QUEUE_MEMORY_APPENDIX_SIZE); in initWithCapacity() 137 kmem_free(kernel_map, (vm_offset_t)dataQueue, round_page(getQueueSize() + in free()
|
| H A D | IOGuardPageMemoryDescriptor.cpp | 57 size = round_page(size); in initWithSize()
|
| H A D | IOBufferMemoryDescriptor.cpp | 383 vm_size_t size = round_page(capacity); in initWithPhysicalMask() 684 size = round_page(size); in free() 697 size = round_page(size); in free()
|
| /xnu-8792.81.2/osfmk/kern/ |
| H A D | stack.c | 123 if (kernel_stack_size < round_page(kernel_stack_size)) { in stack_init() 432 *residentp = *spacep = total * round_page(kernel_stack_size); in processor_set_stack_usage()
|
| H A D | kalloc.c | 1827 step = round_page(1ul << (scale - kalloc_log2down(period))); in kalloc_next_good_size() 1933 req_size = round_page(req_size); in kalloc_large() 1936 size = round_page(kasan_alloc_resize(req_size) + ptoa(2)); in kalloc_large() 1938 size = round_page(req_size); in kalloc_large() 2680 new_size = round_page(kasan_alloc_resize(new_req_size) + ptoa(2)); in krealloc_large() 2682 new_size = round_page(new_req_size); in krealloc_large() 2683 old_size = round_page(old_req_size); in krealloc_large() 2726 vm_size_t needs_zero_end = PAGE_SIZE + round_page(old_req_size); in krealloc_large() 2830 new_bucket_size = new_z ? zone_elem_size(new_z) : round_page(adj_new_size); in krealloc_ext() 2850 old_bucket_size = round_page(adj_old_size); in krealloc_ext() [all …]
|
| /xnu-8792.81.2/bsd/kern/ |
| H A D | kern_codesigning.c | 92 payload_size_aligned = round_page(payload_size); in ppl_register_provisioning_profile() 140 payload_size = round_page(payload_size); in ppl_unregister_provisioning_profile()
|
| H A D | kern_trustcache.c | 116 payload_len_aligned = round_page(payload_len); in ppl_load_trust_cache() 117 manifest_len_aligned = round_page(img4_manifest_len); in ppl_load_trust_cache() 118 aux_manifest_len_aligned = round_page(img4_aux_manifest_len); in ppl_load_trust_cache()
|
| /xnu-8792.81.2/libkern/ |
| H A D | OSKextLib.cpp | 366 kmem_free(kernel_map, (vm_offset_t)response, round_page(responseLength)); in kext_request() 370 kmem_free(kernel_map, (vm_offset_t)logData, round_page(logDataLength)); in kext_request()
|
| /xnu-8792.81.2/osfmk/kdp/ |
| H A D | processor_core.c | 456 …core_context->core_file_length = round_page(core_context->core_header_size) + core_context->core_s… in coredump_save_summary() 457 core_context->core_cur_foffset = round_page(core_context->core_header_size); in coredump_save_summary() 950 …ret = kdp_core_output(context.core_outvars, (round_page(context.core_header_size) - context.core_h… in kern_coredump_routine() 953 …context.core_segment_bytes_remaining, context.core_outvars, (round_page(context.core_header_size) … in kern_coredump_routine() 958 context.core_cur_foffset = round_page(context.core_header_size); in kern_coredump_routine()
|
| /xnu-8792.81.2/libkern/kxld/tests/ |
| H A D | kxld_array_test.c | 120 titems = (u_int) (round_page(titems * sizeof(u_int)) / sizeof(u_int)); in main()
|
| /xnu-8792.81.2/osfmk/mach/i386/ |
| H A D | vm_param.h | 299 #define round_i386_to_vm(p) (atop(round_page(i386_ptob(p))))
|
| /xnu-8792.81.2/osfmk/arm64/ |
| H A D | hibernate_arm64.c | 155 *page_count = atop_64(round_page(stack_end) - trunc_page(stack_begin)); in pal_hib_get_stack_pages()
|
| /xnu-8792.81.2/bsd/dev/ |
| H A D | unix_startup.c | 136 size = round_page(size); in bsd_get_bufferhdr_map_size()
|