| /xnu-8020.121.3/osfmk/mach/i386/ |
| H A D | vm_param.h | 301 #define trunc_i386_to_vm(p) (atop(trunc_page(i386_ptob(p)))) 302 #define round_i386_to_vm(p) (atop(round_page(i386_ptob(p))))
|
| /xnu-8020.121.3/osfmk/i386/ |
| H A D | hibernate_i386.c | 85 if (atop(shadow_ptop) > pnmax) { in hibernate_page_list_allocate() 86 pnmax = (ppnum_t)atop(shadow_ptop); in hibernate_page_list_allocate()
|
| /xnu-8020.121.3/osfmk/mach/ |
| H A D | vm_param.h | 112 #define atop(x) ((vm_address_t)(x) >> PAGE_SHIFT) macro 115 #define atop(x) (0UL = 0) macro
|
| /xnu-8020.121.3/osfmk/kern/ |
| H A D | stack.c | 117 uint32_t kernel_stack_pages = atop(KERNEL_STACK_SIZE); in stack_init()
|
| H A D | zalloc.c | 1196 struct zone_page_metadata *to = from + atop(size); in zone_meta_populate() 1408 if (oob_offs && meta->zm_guarded && atop(addr ^ end)) { in zone_element_size() 2339 (&((uint32_t *)zone_tagbase_range.min_address)[atop((element) - \ 2667 pages = atop(size); in ztMemoryAdd() 2706 pages = atop(size); in ztMemoryRemove() 3640 zleak_pages_global_wired_threshold = atop(value); in zleak_update_threshold() 3649 zleak_pages_per_zone_wired_threshold = atop(value); in zleak_update_threshold() 4075 uint32_t pages = (uint32_t)atop(size); in zone_cram_early() 4373 pages = atop(ZONE_CHUNK_ALLOC_SIZE); in zone_allocate_va_locked() 4738 min_pages = (uint32_t)atop(round_page(zone_oob_offs(z) + in zone_expand_locked() [all …]
|
| H A D | zalloc_internal.h | 560 return atop(addr ^ (addr + size - 1)) != 0; in zone_addr_size_crosses_page()
|
| H A D | kern_stackshot.c | 3388 if (!pmap_valid_page((ppnum_t) atop(cur_phys_addr))) { in kdp_find_phys() 3414 if (!pmap_valid_page((ppnum_t) atop(cur_phys_addr))) { in kdp_find_phys() 3431 unsigned int cur_wimg_bits = pmap_cache_attributes((ppnum_t) atop(cur_phys_addr)); in kdp_find_phys()
|
| /xnu-8020.121.3/osfmk/kdp/ |
| H A D | kdp_core.c | 363 ppn = (ppnum_t)atop(avail_end); in pmap_traverse_present_mappings() 366 if (VM_PAGE_GET_PHYS_PAGE(m) >= atop(avail_start)) { in pmap_traverse_present_mappings() 373 if (ppn == atop(avail_end)) { in pmap_traverse_present_mappings()
|
| /xnu-8020.121.3/osfmk/arm/ |
| H A D | pmap.c | 1671 kr = pmap_enter(kernel_pmap, virt, (ppnum_t)atop(start), in pmap_map() 2608 avail_page_count = atop(end - first); in initialize_ram_ranges() 2660 return (unsigned int)atop(avail_end - first_avail); in pmap_free_pages_span() 2693 *pnum = (ppnum_t)atop(first_avail); in pmap_next_page() 4178 unsigned int cacheattr = pmap_cache_attributes((ppnum_t)atop(pa)); 4824 if (__improbable((pmap == NULL) || (atop(pte_to_pa(*pte_p)) != ppnum))) { 4874 assertf(atop(pte_to_pa(spte)) == ppnum, "unexpected value 0x%llx for pte %p mapping ppnum 0x%x", 6008 ppnum_t pn = (ppnum_t)atop(pa); 6686 ppn = atop(pmap_find_pa_nofault(pmap, va)); 6696 ppn = atop(pmap_find_pa(pmap, va)); [all …]
|
| /xnu-8020.121.3/osfmk/vm/ |
| H A D | vm_kern.c | 453 kr = vm_page_alloc_list(atop(fill_size), flags, in kernel_memory_allocate() 559 atop(fill_size), 0, 0, 0); in kernel_memory_allocate() 698 vm_page_wire_count += atop(size); in kernel_memory_populate_object_and_unlock()
|
| H A D | vm_object.c | 4861 size = (unsigned int)atop(object->vo_size); in vm_object_collapse() 4902 if ((int)backing_rcount - (int)(atop(backing_object->vo_size) - size) > (int)rcount) { in vm_object_collapse() 7861 io_upl_reprio_info = kalloc_data(sizeof(uint64_t) * atop(io_upl_size), Z_WAITOK); in vm_decmp_upl_reprioritize() 7877 sizeof(uint64_t) * atop(io_upl_size)); in vm_decmp_upl_reprioritize() 7899 blkno = io_upl_reprio_info[atop(offset)] & UPL_REPRIO_INFO_MASK; in vm_decmp_upl_reprioritize() 7900 len = (io_upl_reprio_info[atop(offset)] >> UPL_REPRIO_INFO_SHIFT) & UPL_REPRIO_INFO_MASK; in vm_decmp_upl_reprioritize() 7932 kfree_data(io_upl_reprio_info, sizeof(uint64_t) * atop(io_upl_size)); in vm_decmp_upl_reprioritize()
|
| H A D | vm_pageout.c | 5247 page_field_size = (atop(size) + 7) >> 3; in upl_create() 5253 upl_size += sizeof(struct upl_page_info) * atop(size); in upl_create() 5270 upl->upl_reprio_info = kalloc_data(sizeof(uint64_t) * atop(size), Z_WAITOK | Z_ZERO); in upl_create()
|
| H A D | vm_resident.c | 1656 vm_page_zone_pages = atop(round_page((vm_offset_t)vm_page_array_zone_data_size)); in vm_page_module_init_delayed() 3020 if (cpm_allocate(PAGE_SIZE, &mem, atop(PPNUM_MAX), 0, FALSE, KMA_LOMEM) != KERN_SUCCESS) { in vm_page_grablo()
|
| H A D | vm_compressor.c | 981 kdp_compressor_decompressed_page_ppnum = (ppnum_t) atop(kdp_compressor_decompressed_page_paddr); in vm_compressor_init()
|
| /xnu-8020.121.3/bsd/kern/ |
| H A D | kern_exit.c | 1343 atop(bt[0]) != atop(bt[1]) && /* don't recheck PC page */ in proc_prepareexit() 1344 atop(bt[0]) - 1 != atop(bt[1])) { /* don't recheck page before */ in proc_prepareexit()
|
| /xnu-8020.121.3/iokit/Kernel/ |
| H A D | IOLib.cpp | 773 alignMask, (ppnum_t) atop(maxPhys), (ppnum_t) atop(alignMask), in IOKernelAllocateWithPhysicalRestrict()
|
| /xnu-8020.121.3/osfmk/arm/pmap/ |
| H A D | pmap_data.h | 103 return (unsigned int)atop(pa - vm_first_phys); in pa_index()
|
| H A D | pmap_data.c | 615 const unsigned int npages = (unsigned int)atop(mem_size); in pmap_data_bootstrap() 1048 if (!pmap_verify_free((ppnum_t)atop(pa))) { in pmap_mark_page_as_ppl_page_internal()
|
| /xnu-8020.121.3/iokit/Tests/ |
| H A D | TestIOMemoryDescriptor.cpp | 90 data[i] = ((uint8_t) atop(i)) | 0xD0; in IOMultMemoryDescriptorTest()
|
| /xnu-8020.121.3/osfmk/x86_64/ |
| H A D | pmap.c | 3633 pai = ppn_to_pai(atop(pa)); in pmap_test_text_corruption()
|