| /xnu-12377.1.9/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.1.9/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.1.9/osfmk/kdp/ ! |
| H A D | kdp_common.c | 157 if (!pmap_valid_page((ppnum_t) atop(cur_phys_addr))) { in kdp_find_phys() 184 if (!pmap_valid_page((ppnum_t) atop(cur_phys_addr))) { in kdp_find_phys() 199 unsigned int cur_wimg_bits = pmap_cache_attributes((ppnum_t) atop(cur_phys_addr)); in kdp_find_phys()
|
| H A D | kdp_core.c | 470 ppn = (ppnum_t)atop(avail_end); in pmap_traverse_present_mappings() 473 if (VM_PAGE_GET_PHYS_PAGE(m) >= atop(avail_start)) { in pmap_traverse_present_mappings() 480 if (ppn == atop(avail_end)) { in pmap_traverse_present_mappings()
|
| /xnu-12377.1.9/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.1.9/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.1.9/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 | 1028 struct zone_page_metadata *to = from + atop(size); in zone_meta_populate() 1271 if (oob_offs && meta->zm_guarded && atop(addr ^ end)) { in zone_element_size() 3433 zleak_pages_per_zone_wired_threshold = atop(value); in zleak_update_threshold() 4027 uint32_t pages = (uint32_t)atop(size); in zone_cram_early() 4792 min_pages = (uint32_t)atop(round_page(zone_elem_outer_offs(z) + in zone_expand_locked() 8929 z->z_chunk_pages = (uint16_t)atop(alloc); 9683 atop(early_sz) * sizeof(struct zone_page_metadata)); in zone_metadata_init() 9684 for (uint32_t i = 0; i < atop(early_sz); i++) { in zone_metadata_init() 9699 zba_meta()->zbam_right = (uint32_t)atop(zone_bits_size); in zone_metadata_init() 9729 for (uint32_t i = 0; i < atop(early_sz); i++) { in zone_metadata_init() [all …]
|
| H A D | exclaves_resource.c | 1922 pages[idx++] = (uint32_t)atop(pa); in shared_memory_map()
|
| /xnu-12377.1.9/osfmk/vm/ ! |
| H A D | vm_kern.c | 893 kmr.kmr_return = vm_page_alloc_list(atop(fill_size), flags, 1003 atop(fill_size), 0, 0, 0); 1528 vm_page_wire_count -= atop(size); in kernel_memory_populate_object_and_unlock() 1530 vm_page_gobble_count -= atop(size); in kernel_memory_populate_object_and_unlock() 1534 vm_page_wire_count += atop(size); in kernel_memory_populate_object_and_unlock() 1921 kmr.kmr_return = vm_page_alloc_list(atop(newsize - oldsize), in kmem_realloc_guard() 2299 atop(newsize - oldsize), 0, 0, 0); in kmem_realloc_guard() 4384 pte_sz = round_page(atop(va - used) * 8); in kmem_get_gobj_stats()
|
| H A D | vm_upl.c | 496 uint32_t pages = (uint32_t)atop(upl_adjusted_size(upl, PAGE_MASK)); in upl_abort_range() 1282 uint32_t pages = (uint32_t)atop(upl_adjusted_size(upl, PAGE_MASK)); in upl_commit_range()
|
| H A D | vm_object.c | 8069 io_upl_reprio_info = kalloc_data(sizeof(uint64_t) * atop(io_upl_size), Z_WAITOK); 8085 sizeof(uint64_t) * atop(io_upl_size)); 8107 blkno = io_upl_reprio_info[atop(offset)] & UPL_REPRIO_INFO_MASK; 8108 len = (io_upl_reprio_info[atop(offset)] >> UPL_REPRIO_INFO_SHIFT) & UPL_REPRIO_INFO_MASK; 8135 kfree_data(io_upl_reprio_info, sizeof(uint64_t) * atop(io_upl_size));
|
| H A D | vm_compressor.c | 1180 …vm_compressor_kdp_state.kc_panic_decompressed_page_ppnum = (ppnum_t) atop(vm_compressor_kdp_state.… in vm_compressor_init() 1307 …vm_compressor_kdp_state.kc_decompressed_pages_ppnum[i] = (ppnum_t) atop(vm_compressor_kdp_state.kc… in vm_compressor_kdp_init() 6452 uncompressed_file0_free_pages = (uint32_t)atop(size); in vm_uncompressed_put() 6464 uncompressed_file1_free_pages = (uint32_t)atop(size); in vm_uncompressed_put()
|
| /xnu-12377.1.9/osfmk/arm/ ! |
| H A D | arm_init.c | 559 pmap_first_pnum = (ppnum_t)atop(gDramBase); in arm_init()
|
| /xnu-12377.1.9/osfmk/arm64/sptm/pmap/ ! |
| H A D | pmap.c | 1387 kr = pmap_enter(kernel_pmap, virt, (ppnum_t)atop(start), in pmap_map() 2183 avail_page_count = atop(end - first_avail); in initialize_ram_ranges() 2203 return (unsigned int)atop(avail_end - first_avail); in pmap_free_pages_span() 2226 *pnum = (ppnum_t)atop(first_avail); in pmap_next_page() 4611 (pte_is_valid(spte) && (atop(pte_to_pa(spte)) != ppnum)))) { 5723 pmap_page_protect_options_with_flush_range((ppnum_t)atop(pa), VM_PROT_NONE, 5914 ppnum_t pn = (ppnum_t)atop(pa); 6462 ppn = atop(pmap_find_pa_nofault(pmap, va)); 6472 ppn = atop(pmap_find_pa(pmap, va)); 7033 const ppnum_t pn = (ppnum_t) atop(pa); [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.1.9/osfmk/arm/pmap/ ! |
| H A D | pmap.c | 1876 kr = pmap_enter(kernel_pmap, virt, (ppnum_t)atop(start), in pmap_map() 1908 const unsigned int wimg_bits = pmap_cache_attributes((ppnum_t)atop(paddr)); in pmap_construct_io_pte() 2759 avail_page_count = atop(end - first); in initialize_ram_ranges() 2781 return (unsigned int)atop(avail_end - first_avail); in pmap_free_pages_span() 2804 *pnum = (ppnum_t)atop(first_avail); in pmap_next_page() 4264 unsigned int cacheattr = pmap_cache_attributes((ppnum_t)atop(pa)); 4978 if (__improbable((pmap == NULL) || (atop(pte_to_pa(*pte_p)) != ppnum))) { 5041 assertf(atop(pte_to_pa(spte)) == ppnum, "unexpected value 0x%llx for pte %p mapping ppnum 0x%x", 6183 ppnum_t pn = (ppnum_t)atop(pa); 6919 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.1.9/bsd/kern/ ! |
| H A D | kern_exit.c | 2021 atop(bt[0]) != atop(bt[1]) && /* don't recheck PC page */ in proc_prepareexit() 2022 atop(bt[0]) - 1 != atop(bt[1])) { /* don't recheck page before */ in proc_prepareexit()
|
| /xnu-12377.1.9/iokit/Tests/ ! |
| H A D | TestIOMemoryDescriptor.cpp | 92 data[i] = ((uint8_t) atop(i)) | 0xD0; in IOMultMemoryDescriptorTest()
|
| /xnu-12377.1.9/osfmk/arm64/sptm/ ! |
| H A D | arm_init_sptm.c | 949 pmap_first_pnum = (ppnum_t)atop(gDramBase); in arm_init()
|