| /xnu-10063.141.1/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-10063.141.1/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-10063.141.1/bsd/kern/code_signing/ |
| H A D | ppl.c | 113 payload_size_aligned = round_page(payload_size); in ppl_register_provisioning_profile() 162 payload_size = round_page(payload_size); in ppl_unregister_provisioning_profile() 514 payload_len_aligned = round_page(payload->i4b_len); in ppl_image4_execute_object() 516 manifest_len_aligned = round_page(manifest->i4b_len); in ppl_image4_execute_object() 615 object_len_aligned = round_page(*object_length); in ppl_image4_copy_object()
|
| /xnu-10063.141.1/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-10063.141.1/libkern/kxld/ |
| H A D | kxld_util.c | 209 size = round_page(size); in kxld_page_alloc_untracked() 232 bytes_allocated += round_page(size); in kxld_page_alloc() 262 kheap_free(KHEAP_DEFAULT, ptr, round_page(size)); in kxld_page_free_untracked() 276 bytes_freed += round_page(size); in kxld_page_free() 866 return round_page(offset); in kxld_round_page_cross_safe() 873 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-10063.141.1/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-10063.141.1/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-10063.141.1/libsyscall/mach/mach/ |
| H A D | vm_page_size.h | 50 #define round_page(x) trunc_page((x) + (vm_page_size - 1)) macro
|
| /xnu-10063.141.1/tests/vm/ |
| H A D | vm_allocation.c | 468 T_QUIET; T_ASSERT_EQ(*size, round_page(original_size), in memory_entry() 833 return round_page(address - mach_vm_trunc_page(address) + size); in aligned_size() 1051 size = round_page(size + 2 * vm_page_size); in get_fixed_address() 1183 (uintmax_t)round_page(size), (uintmax_t)round_page(size), (uintmax_t)address); in allocate() 1207 (uintmax_t)round_page(buffer_size), (uintmax_t)round_page(buffer_size), (uintmax_t)data); in allocate_buffer() 1569 …write_and_verify_pattern(empty, TRUE, get_vm_address(), round_page(get_vm_size()), "address-filled… in test_write_address_filled() 1575 …write_and_verify_pattern(checkerboard, FALSE, get_vm_address(), round_page(get_vm_size()), "checke… in test_write_checkerboard() 1581 …write_and_verify_pattern(checkerboard, TRUE, get_vm_address(), round_page(get_vm_size()), "reverse… in test_write_reverse_checkerboard() 1587 …write_and_verify_pattern(page_ends, FALSE, get_vm_address(), round_page(get_vm_size()), "page ends… in test_write_page_ends() 1593 …write_and_verify_pattern(page_ends, TRUE, get_vm_address(), round_page(get_vm_size()), "page inter… in test_write_page_interiors() [all …]
|
| /xnu-10063.141.1/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()
|
| /xnu-10063.141.1/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 416 #undef round_page 446 round_page(vm_offset_t x) in round_page() function
|
| /xnu-10063.141.1/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()
|
| /xnu-10063.141.1/libkern/ |
| H A D | OSKextLib.cpp | 367 kmem_free(kernel_map, (vm_offset_t)response, round_page(responseLength)); in kext_request() 371 kmem_free(kernel_map, (vm_offset_t)logData, round_page(logDataLength)); in kext_request()
|
| /xnu-10063.141.1/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-10063.141.1/osfmk/kdp/ |
| H A D | processor_core.c | 461 …core_context->core_file_length = round_page(core_context->core_header_size) + core_context->core_s… in coredump_save_summary() 462 core_context->core_cur_foffset = round_page(core_context->core_header_size); in coredump_save_summary() 957 …ret = kdp_core_output(context.core_outvars, (round_page(context.core_header_size) - context.core_h… in kern_coredump_routine() 960 …context.core_segment_bytes_remaining, context.core_outvars, (round_page(context.core_header_size) … in kern_coredump_routine() 965 context.core_cur_foffset = round_page(context.core_header_size); in kern_coredump_routine()
|
| /xnu-10063.141.1/osfmk/mach/i386/ |
| H A D | vm_param.h | 301 #define round_i386_to_vm(p) (atop(round_page(i386_ptob(p))))
|
| /xnu-10063.141.1/osfmk/vm/ |
| H A D | vm_kern.c | 829 map_size = round_page(size); 1548 vm_size_t oldsize = round_page(req_oldsize); in kmem_realloc_shrink_guard() 1549 vm_size_t newsize = round_page(req_newsize); in kmem_realloc_shrink_guard() 1712 oldsize = round_page(req_oldsize); in kmem_realloc_guard() 1713 newsize = round_page(req_newsize); in kmem_realloc_guard() 2201 size = round_page(req_size) + delta; in kmem_free_guard() 2213 size = round_page(req_size + delta); in kmem_free_guard() 3581 kmem_meta_size = round_page(kmem_meta_num * sizeof(struct kmem_page_meta)); in kmem_add_ptr_claims() 3645 ptr_range_size = round_page(ptr_range_size); in kmem_add_extra_claims() 3646 sprayqtn_range_size = round_page(sprayqtn_range_size); in kmem_add_extra_claims() [all …]
|
| /xnu-10063.141.1/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-10063.141.1/bsd/kern/ |
| H A D | kern_trustcache.c | 342 payload_len_aligned = round_page(payload_len); in ppl_load_trust_cache() 343 manifest_len_aligned = round_page(img4_manifest_len); in ppl_load_trust_cache() 344 aux_manifest_len_aligned = round_page(img4_aux_manifest_len); in ppl_load_trust_cache()
|
| /xnu-10063.141.1/bsd/dev/ |
| H A D | unix_startup.c | 138 size = round_page(size); in bsd_get_bufferhdr_map_size()
|
| /xnu-10063.141.1/osfmk/arm/pmap/ |
| H A D | pmap_data.c | 638 const vm_size_t pv_head_size = round_page(npages * sizeof(pv_entry_t *)); in pmap_data_bootstrap() 691 avail_start = round_page(avail_start + pv_head_size); in pmap_data_bootstrap() 694 avail_start = round_page(avail_start + ptd_root_table_size); in pmap_data_bootstrap() 718 avail_start += round_page(PMAP_PTR_ARRAY_SIZE * sizeof(*pmap_ptr_array)); in pmap_data_bootstrap() 725 avail_start += round_page(LEDGER_PTR_ARRAY_SIZE * sizeof(*pmap_ledger_ptr_array)); in pmap_data_bootstrap() 730 avail_start += round_page(pmap_ledger_ptr_array_count * sizeof(*pmap_ledger_refcnt)); in pmap_data_bootstrap() 4103 assert(avail_start == round_page(avail_start)); in pmap_cpu_data_array_init()
|