| /xnu-12377.61.12/osfmk/mach/i386/ |
| H A D | vm_param.h | 300 #define trunc_i386_to_vm(p) (atop(trunc_page(i386_ptob(p)))) 301 #define round_i386_to_vm(p) (atop(round_page(i386_ptob(p))))
|
| /xnu-12377.61.12/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-12377.61.12/osfmk/kdp/ |
| H A D | kdp_common.c | 168 if (!pmap_valid_page((ppnum_t) atop(cur_phys_addr))) { in kdp_find_phys() 195 if (!pmap_valid_page((ppnum_t) atop(cur_phys_addr))) { in kdp_find_phys() 210 unsigned int cur_wimg_bits = pmap_cache_attributes((ppnum_t) atop(cur_phys_addr)); in kdp_find_phys()
|
| H A D | kdp_core.c | 528 ppn = (ppnum_t)atop(avail_end); in pmap_traverse_present_mappings() 531 if (VM_PAGE_GET_PHYS_PAGE(m) >= atop(avail_start)) { in pmap_traverse_present_mappings() 538 if (ppn == atop(avail_end)) { in pmap_traverse_present_mappings()
|
| /xnu-12377.61.12/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-12377.61.12/iokit/Kernel/ |
| H A D | IOKitDebug.cpp | 651 hashIdx = atop(memAddr->address) % queue->numSiteQs; in IOTrackingAdd() 689 && (addressIdx != (atop(nextAddress->address) % queue->numSiteQs))) { in IOTrackingRemoveInternal() 732 addressIdx = atop(address) % queue->numSiteQs; in IOTrackingRemoveAddress() 774 hashIdx = atop(address) % queue->numSiteQs; in IOTrackingFree() 787 && (hashIdx != (atop(nextAddress->address) % queue->numSiteQs))) { in IOTrackingFree()
|
| H A D | IOLib.cpp | 772 alignMask, (ppnum_t) atop(maxPhys), (ppnum_t) atop(alignMask), in IOKernelAllocateWithPhysicalRestrict()
|
| /xnu-12377.61.12/osfmk/kern/ |
| H A D | stack.c | 112 uint32_t kernel_stack_pages = atop(KERNEL_STACK_SIZE); in stack_init()
|
| H A D | zalloc_internal.h | 642 return atop(addr ^ (addr + size - 1)) != 0; in zone_addr_size_crosses_page()
|
| H A D | zalloc.c | 1031 struct zone_page_metadata *to = from + atop(size); in zone_meta_populate() 1274 if (oob_offs && meta->zm_guarded && atop(addr ^ end)) { in zone_element_size() 3469 zleak_pages_per_zone_wired_threshold = atop(value); in zleak_update_threshold() 4098 uint32_t pages = (uint32_t)atop(size); in zone_cram_early() 4870 min_pages = (uint32_t)atop(round_page(zone_elem_outer_offs(z) + in zone_expand_locked() 9025 z->z_chunk_pages = (uint16_t)atop(alloc); 9821 atop(early_sz) * sizeof(struct zone_page_metadata)); in zone_metadata_init() 9822 for (uint32_t i = 0; i < atop(early_sz); i++) { in zone_metadata_init() 9837 zba_meta()->zbam_right = (uint32_t)atop(zone_bits_size); in zone_metadata_init() 9873 for (uint32_t i = 0; i < atop(early_sz); i++) { in zone_metadata_init() [all …]
|
| /xnu-12377.61.12/tests/vm/ |
| H A D | vm_mteinfo.c | 115 #define atop(x) ((unsigned long long)(x) >> 14) macro 152 static const ppnum_t mte_tag_storage_ecc_disabled = atop(mte_tag_storage_start) + 200;
|
| /xnu-12377.61.12/osfmk/arm64/sptm/pmap/ |
| H A D | pmap.c | 1387 kr = pmap_enter(kernel_pmap, virt, (ppnum_t)atop(start), in pmap_map() 2471 tag_page_index = atop(paddr - gDramBase) / MTE_PAGES_PER_TAG_PAGE; in map_paddr_to_tag_ppnum() 2485 return atop(ptoa(tag_page_index * MTE_PAGES_PER_TAG_PAGE) + gDramBase); in map_tag_ppnum_to_first_covered_ppnum() 2508 assert3u(atop(gDramSize) / MTE_PAGES_PER_TAG_PAGE, ==, in initialize_ram_ranges() 2514 mte_tag_storage_start_pnum = atop(mte_tag_storage_start); in initialize_ram_ranges() 2568 avail_page_count = atop(end - first_avail); in initialize_ram_ranges() 2588 return (unsigned int)atop(avail_end - first_avail); in pmap_free_pages_span() 2611 *pnum = (ppnum_t)atop(first_avail); in pmap_next_page() 5005 (pte_is_valid(spte) && (atop(pte_to_pa(spte)) != ppnum)))) { 6140 pmap_page_protect_options_with_flush_range((ppnum_t)atop(pa), VM_PROT_NONE, [all …]
|
| H A D | pmap_data.h | 112 return (unsigned int)atop(pa - vm_first_phys); in pa_index()
|
| H A D | pmap_data.c | 366 unsigned int npages = (unsigned int)atop(mem_size); in pmap_data_bootstrap()
|
| /xnu-12377.61.12/osfmk/vm/ |
| H A D | vm_kern.c | 906 kmr.kmr_return = vm_page_alloc_list(atop(fill_size), flags, 1029 atop(fill_size), 0, 0, 0); 1571 vm_page_wire_count -= atop(size); in kernel_memory_populate_object_and_unlock() 1573 vm_page_gobble_count -= atop(size); in kernel_memory_populate_object_and_unlock() 1577 vm_page_wire_count += atop(size); in kernel_memory_populate_object_and_unlock() 1975 kmr.kmr_return = vm_page_alloc_list(atop(newsize - oldsize), in kmem_realloc_guard() 2353 atop(newsize - oldsize), 0, 0, 0); in kmem_realloc_guard() 4473 pte_sz = round_page(atop(va - used) * 8); in kmem_get_gobj_stats()
|
| H A D | vm_upl.c | 510 uint32_t pages = (uint32_t)atop(upl_adjusted_size(upl, PAGE_MASK)); in upl_abort_range() 1324 uint32_t pages = (uint32_t)atop(upl_adjusted_size(upl, PAGE_MASK)); in upl_commit_range()
|
| H A D | vm_object.c | 8243 io_upl_reprio_info = kalloc_data(sizeof(uint64_t) * atop(io_upl_size), Z_WAITOK); 8259 sizeof(uint64_t) * atop(io_upl_size)); 8281 blkno = io_upl_reprio_info[atop(offset)] & UPL_REPRIO_INFO_MASK; 8282 len = (io_upl_reprio_info[atop(offset)] >> UPL_REPRIO_INFO_SHIFT) & UPL_REPRIO_INFO_MASK; 8309 kfree_data(io_upl_reprio_info, sizeof(uint64_t) * atop(io_upl_size));
|
| H A D | vm_compressor.c | 1202 …vm_compressor_kdp_state.kc_panic_decompressed_page_ppnum = (ppnum_t) atop(vm_compressor_kdp_state.… in vm_compressor_init() 1329 …vm_compressor_kdp_state.kc_decompressed_pages_ppnum[i] = (ppnum_t) atop(vm_compressor_kdp_state.kc… in vm_compressor_kdp_init() 6729 uncompressed_file0_free_pages = (uint32_t)atop(size); in vm_uncompressed_put() 6741 uncompressed_file1_free_pages = (uint32_t)atop(size); in vm_uncompressed_put()
|
| /xnu-12377.61.12/osfmk/arm/ |
| H A D | arm_init.c | 562 pmap_first_pnum = (ppnum_t)atop(gDramBase); in arm_init()
|
| /xnu-12377.61.12/osfmk/arm/pmap/ |
| H A D | pmap.c | 1879 kr = pmap_enter(kernel_pmap, virt, (ppnum_t)atop(start), in pmap_map() 1911 const unsigned int wimg_bits = pmap_cache_attributes((ppnum_t)atop(paddr)); in pmap_construct_io_pte() 2762 avail_page_count = atop(end - first); in initialize_ram_ranges() 2784 return (unsigned int)atop(avail_end - first_avail); in pmap_free_pages_span() 2807 *pnum = (ppnum_t)atop(first_avail); in pmap_next_page() 4267 unsigned int cacheattr = pmap_cache_attributes((ppnum_t)atop(pa)); 4981 if (__improbable((pmap == NULL) || (atop(pte_to_pa(*pte_p)) != ppnum))) { 5044 assertf(atop(pte_to_pa(spte)) == ppnum, "unexpected value 0x%llx for pte %p mapping ppnum 0x%x", 6208 ppnum_t pn = (ppnum_t)atop(pa); 6933 ppn = atop(pmap_find_pa_nofault(pmap, va)); [all …]
|
| H A D | pmap_data.h | 101 return (unsigned int)atop(pa - vm_first_phys); in pa_index()
|
| H A D | pmap_data.c | 639 unsigned int npages = (unsigned int)atop(mem_size); in pmap_data_bootstrap() 1136 if (__improbable(!pmap_verify_free((ppnum_t)atop(pa)))) { in pmap_mark_page_as_ppl_page_internal()
|
| /xnu-12377.61.12/bsd/kern/ |
| H A D | kern_exit.c | 2054 atop(bt[0]) != atop(bt[1]) && /* don't recheck PC page */ in proc_prepareexit() 2055 atop(bt[0]) - 1 != atop(bt[1])) { /* don't recheck page before */ in proc_prepareexit()
|
| /xnu-12377.61.12/osfmk/arm64/sptm/ |
| H A D | arm_init_sptm.c | 1013 pmap_first_pnum = (ppnum_t)atop(gDramBase); in arm_init()
|
| /xnu-12377.61.12/iokit/Tests/ |
| H A D | TestIOMemoryDescriptor.cpp | 92 data[i] = ((uint8_t) atop(i)) | 0xD0; in IOMultMemoryDescriptorTest()
|