Home
last modified time | relevance | path

Searched refs:round_page (Results 1 – 25 of 69) sorted by relevance

123

/xnu-8020.121.3/osfmk/arm/
H A Dio_map.c94 virtual_space_start += round_page(size); in io_map_with_prot()
99 (void) pmap_map_bd_with_options(start, phys_addr, phys_addr + round_page(size), in io_map_with_prot()
102 (void) pmap_map_bd(start, phys_addr, phys_addr + round_page(size), in io_map_with_prot()
106 kmem_alloc(kernel_map, &start, round_page(size), in io_map_with_prot()
108 (void) pmap_map(start, phys_addr, phys_addr + round_page(size), in io_map_with_prot()
H A Darm_vm_init.c516 end_kern = round_page(getlastaddr()); /* Force end to next page */ in arm_vm_init()
535 sectCONSTB = round_page(sectCONSTB); in arm_vm_init()
592 off_end += (unsigned int) round_page(args->Video.v_height * args->Video.v_rowBytes); in arm_vm_init()
/xnu-8020.121.3/osfmk/i386/
H A Dio_map.c82 virtual_avail += round_page(size); in io_map()
87 (void) pmap_map_bd(start, phys_addr, phys_addr + round_page(size), in io_map()
91 kmem_alloc(kernel_map, &start, round_page(size), in io_map()
93 (void) pmap_map(start, phys_addr, phys_addr + round_page(size), in io_map()
H A Dmp.h262 vm_size_t log_size = round_page(sizeof(cpu_signal_event_log_t)); \
/xnu-8020.121.3/tests/
H A Dvoucher_traps.c68 alloc_sz = (mach_vm_size_t)round_page(MACH_VOUCHER_TRAP_STACK_LIMIT + 1);
75 alloc_addr = (mach_vm_address_t)round_page(MACH_VOUCHER_ATTR_MAX_RAW_RECIPE_ARRAY_SIZE + 1);
/xnu-8020.121.3/libsyscall/mach/
H A Dmach_msg.c484 request_alloc = (mach_msg_size_t)round_page(max_size + trailer_alloc); in mach_msg_server_once()
489 reply_alloc = (mach_msg_size_t)round_page((options & MACH_SEND_TRAILER) ? in mach_msg_server_once()
523 new_request_alloc = (mach_msg_size_t)round_page(bufRequest->Head.msgh_size + in mach_msg_server_once()
616 reply_alloc = (mach_msg_size_t)round_page((options & MACH_SEND_TRAILER) ? in mach_msg_server()
629 new_request_alloc = (mach_msg_size_t)round_page(max_size + trailer_alloc); in mach_msg_server()
744 new_request_alloc = (mach_msg_size_t)round_page(bufRequest->Head.msgh_size + in mach_msg_server()
/xnu-8020.121.3/osfmk/kern/
H A Dgzalloc.c160 vm_size_t gzfcsz = round_page(sizeof(*z->gz.gzfc) * gzfc_size); in gzalloc_zone_init()
189 vm_offset_t rounded_size = round_page(zone_elem_size(zone) + GZHEADER_SIZE); in gzalloc_empty_free_cache()
190 vm_offset_t gzfcsz = round_page(sizeof(*zone->gz.gzfc) * gzfc_size); in gzalloc_empty_free_cache()
339 vm_offset_t rounded_size = round_page(zone_elem_size(zone) + GZHEADER_SIZE); in gzalloc_alloc()
421 vm_offset_t rounded_size = round_page(zone_elem_size(zone) + GZHEADER_SIZE); in gzalloc_free()
H A Dstack.c128 if (kernel_stack_size < round_page(kernel_stack_size)) { in stack_init()
439 *residentp = *spacep = total * round_page(kernel_stack_size); in processor_set_stack_usage()
/xnu-8020.121.3/libkern/kxld/
H A Dkxld_util.c204 size = round_page(size); in kxld_page_alloc_untracked()
227 bytes_allocated += round_page(size); in kxld_page_alloc()
257 kheap_free(KHEAP_DEFAULT, ptr, round_page(size)); in kxld_page_free_untracked()
271 bytes_freed += round_page(size); in kxld_page_free()
861 return round_page(offset); in kxld_round_page_cross_safe()
868 return round_page(offset); in kxld_round_page_cross_safe()
H A Dkxld_array.c155 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-8020.121.3/libkern/os/
H A Dlog_mem.c255 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-8020.121.3/osfmk/mach/
H A Dvm_param.h145 #define round_page(x) (((vm_offset_t)(x) + PAGE_MASK) & ~((vm_offset_t)PAGE_MASK)) macro
361 #undef round_page
375 round_page(vm_offset_t x) in round_page() function
/xnu-8020.121.3/libsyscall/mach/mach/
H A Dvm_page_size.h50 #define round_page(x) trunc_page((x) + (vm_page_size - 1)) macro
/xnu-8020.121.3/tests/vm/
H A Dvm_allocation.c465 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-8020.121.3/iokit/Kernel/
H A DIODataQueue.cpp102 allocSize = round_page(size + DATA_QUEUE_MEMORY_HEADER_SIZE); in initWithCapacity()
147 round_page(((IODataQueueInternal *)notifyMsg)->queueSize + in free()
H A DIOSharedDataQueue.cpp97 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 DIOGuardPageMemoryDescriptor.cpp57 size = round_page(size); in initWithSize()
H A DIOBufferMemoryDescriptor.cpp379 vm_size_t size = round_page(capacity); in initWithPhysicalMask()
680 size = round_page(size); in free()
693 size = round_page(size); in free()
/xnu-8020.121.3/libkern/
H A DOSKextLib.cpp366 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-8020.121.3/osfmk/kdp/
H A Dprocessor_core.c338 …core_context->core_file_length = round_page(core_context->core_header_size) + core_context->core_s… in coredump_save_summary()
339 core_context->core_cur_foffset = round_page(core_context->core_header_size); in coredump_save_summary()
838 …ret = kdp_core_output(context.core_outvars, (round_page(context.core_header_size) - context.core_h… in kern_coredump_routine()
841 …context.core_segment_bytes_remaining, context.core_outvars, (round_page(context.core_header_size) … in kern_coredump_routine()
846 context.core_cur_foffset = round_page(context.core_header_size); in kern_coredump_routine()
/xnu-8020.121.3/osfmk/mach/i386/
H A Dvm_param.h302 #define round_i386_to_vm(p) (atop(round_page(i386_ptob(p))))
/xnu-8020.121.3/libkern/kxld/tests/
H A Dkxld_array_test.c120 titems = (u_int) (round_page(titems * sizeof(u_int)) / sizeof(u_int)); in main()
/xnu-8020.121.3/osfmk/arm/pmap/
H A Dpmap_data.c619 const vm_size_t pv_head_size = round_page(npages * sizeof(pv_entry_t *)); in pmap_data_bootstrap()
653 avail_start = round_page(avail_start + pv_head_size); in pmap_data_bootstrap()
656 avail_start = round_page(avail_start + ptd_root_table_size); in pmap_data_bootstrap()
675 avail_start += round_page(PMAP_PTR_ARRAY_SIZE * sizeof(*pmap_ptr_array)); in pmap_data_bootstrap()
682 avail_start += round_page(LEDGER_PTR_ARRAY_SIZE * sizeof(*pmap_ledger_ptr_array)); in pmap_data_bootstrap()
687 avail_start += round_page(pmap_ledger_ptr_array_count * sizeof(*pmap_ledger_refcnt)); in pmap_data_bootstrap()
3707 assert(avail_start == round_page(avail_start)); in pmap_cpu_data_array_init()
/xnu-8020.121.3/osfmk/arm64/
H A Dhibernate_arm64.c155 *page_count = atop_64(round_page(stack_end) - trunc_page(stack_begin)); in pal_hib_get_stack_pages()
/xnu-8020.121.3/bsd/dev/
H A Dunix_startup.c136 size = round_page(size); in bsd_get_bufferhdr_map_size()

123