| /xnu-8792.61.2/osfmk/mach/i386/ |
| H A D | vm_param.h | 298 #define trunc_i386_to_vm(p) (atop(trunc_page(i386_ptob(p)))) 299 #define round_i386_to_vm(p) (atop(round_page(i386_ptob(p))))
|
| /xnu-8792.61.2/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-8792.61.2/osfmk/kdp/ |
| H A D | kdp_common.c | 156 if (!pmap_valid_page((ppnum_t) atop(cur_phys_addr))) { in kdp_find_phys() 183 if (!pmap_valid_page((ppnum_t) atop(cur_phys_addr))) { in kdp_find_phys() 198 unsigned int cur_wimg_bits = pmap_cache_attributes((ppnum_t) atop(cur_phys_addr)); in kdp_find_phys()
|
| H A D | kdp_core.c | 464 ppn = (ppnum_t)atop(avail_end); in pmap_traverse_present_mappings() 467 if (VM_PAGE_GET_PHYS_PAGE(m) >= atop(avail_start)) { in pmap_traverse_present_mappings() 474 if (ppn == atop(avail_end)) { in pmap_traverse_present_mappings()
|
| /xnu-8792.61.2/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-8792.61.2/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 | 776 alignMask, (ppnum_t) atop(maxPhys), (ppnum_t) atop(alignMask), in IOKernelAllocateWithPhysicalRestrict()
|
| /xnu-8792.61.2/osfmk/kern/ |
| H A D | stack.c | 112 uint32_t kernel_stack_pages = atop(KERNEL_STACK_SIZE); in stack_init()
|
| H A D | zalloc.c | 1178 struct zone_page_metadata *to = from + atop(size); in zone_meta_populate() 1459 if (oob_offs && meta->zm_guarded && atop(addr ^ end)) { in zone_element_size() 2367 (&((uint32_t *)zone_tagbase_range.min_address)[atop((element) - \ 2695 pages = atop(size); in ztMemoryAdd() 2734 pages = atop(size); in ztMemoryRemove() 3684 zleak_pages_global_wired_threshold = atop(value); in zleak_update_threshold() 3693 zleak_pages_per_zone_wired_threshold = atop(value); in zleak_update_threshold() 4119 uint32_t pages = (uint32_t)atop(size); in zone_cram_early() 4417 pages = atop(ZONE_CHUNK_ALLOC_SIZE); in zone_allocate_va_locked() 4796 min_pages = (uint32_t)atop(round_page(zone_elem_offs(z) + in zone_expand_locked() [all …]
|
| H A D | zalloc_internal.h | 599 return atop(addr ^ (addr + size - 1)) != 0; in zone_addr_size_crosses_page()
|
| H A D | kalloc.c | 1751 return addr | atop(size); in __kalloc_array_encode_vm()
|
| /xnu-8792.61.2/osfmk/vm/ |
| H A D | vm_kern.c | 851 kmr.kmr_return = vm_page_alloc_list(atop(fill_size), flags, in kmem_alloc_guard() 957 atop(fill_size), 0, 0, 0); in kmem_alloc_guard() 1280 vm_page_wire_count += atop(size); in kernel_memory_populate_object_and_unlock() 1549 kmr.kmr_return = vm_page_alloc_list(atop(newsize - oldsize), in kmem_realloc_guard() 1774 atop(newsize - oldsize), 0, 0, 0); in kmem_realloc_guard()
|
| H A D | vm_object.c | 7721 io_upl_reprio_info = kalloc_data(sizeof(uint64_t) * atop(io_upl_size), Z_WAITOK); in vm_decmp_upl_reprioritize() 7737 sizeof(uint64_t) * atop(io_upl_size)); in vm_decmp_upl_reprioritize() 7759 blkno = io_upl_reprio_info[atop(offset)] & UPL_REPRIO_INFO_MASK; in vm_decmp_upl_reprioritize() 7760 len = (io_upl_reprio_info[atop(offset)] >> UPL_REPRIO_INFO_SHIFT) & UPL_REPRIO_INFO_MASK; in vm_decmp_upl_reprioritize() 7792 kfree_data(io_upl_reprio_info, sizeof(uint64_t) * atop(io_upl_size)); in vm_decmp_upl_reprioritize()
|
| H A D | vm_pageout.c | 5448 page_field_size = (atop(size) + 7) >> 3; in upl_create() 5454 upl_size += sizeof(struct upl_page_info) * atop(size); in upl_create() 5476 upl->upl_reprio_info = kalloc_data(sizeof(uint64_t) * atop(size), Z_WAITOK | Z_ZERO); in upl_create()
|
| H A D | vm_resident.c | 1647 vm_page_zone_pages = atop(round_page((vm_offset_t)vm_page_array_zone_data_size)); in vm_page_module_init_delayed() 3082 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 | 1175 kdp_compressor_decompressed_page_ppnum = (ppnum_t) atop(kdp_compressor_decompressed_page_paddr); in vm_compressor_init()
|
| /xnu-8792.61.2/osfmk/arm/pmap/ |
| H A D | pmap.c | 1723 kr = pmap_enter(kernel_pmap, virt, (ppnum_t)atop(start), in pmap_map() 2572 avail_page_count = atop(end - first); in initialize_ram_ranges() 2594 return (unsigned int)atop(avail_end - first_avail); in pmap_free_pages_span() 2617 *pnum = (ppnum_t)atop(first_avail); in pmap_next_page() 4037 unsigned int cacheattr = pmap_cache_attributes((ppnum_t)atop(pa)); 4671 if (__improbable((pmap == NULL) || (atop(pte_to_pa(*pte_p)) != ppnum))) { 4721 assertf(atop(pte_to_pa(spte)) == ppnum, "unexpected value 0x%llx for pte %p mapping ppnum 0x%x", 5824 ppnum_t pn = (ppnum_t)atop(pa); 6524 ppn = atop(pmap_find_pa_nofault(pmap, va)); 6534 ppn = atop(pmap_find_pa(pmap, va)); [all …]
|
| H A D | pmap_data.h | 100 return (unsigned int)atop(pa - vm_first_phys); in pa_index()
|
| H A D | pmap_data.c | 634 const unsigned int npages = (unsigned int)atop(mem_size); in pmap_data_bootstrap() 1091 if (!pmap_verify_free((ppnum_t)atop(pa))) { in pmap_mark_page_as_ppl_page_internal()
|
| /xnu-8792.61.2/bsd/kern/ |
| H A D | kern_exit.c | 1924 atop(bt[0]) != atop(bt[1]) && /* don't recheck PC page */ in proc_prepareexit() 1925 atop(bt[0]) - 1 != atop(bt[1])) { /* don't recheck page before */ in proc_prepareexit()
|
| /xnu-8792.61.2/iokit/Tests/ |
| H A D | TestIOMemoryDescriptor.cpp | 90 data[i] = ((uint8_t) atop(i)) | 0xD0; in IOMultMemoryDescriptorTest()
|
| /xnu-8792.61.2/osfmk/x86_64/ |
| H A D | pmap.c | 3600 pai = ppn_to_pai(atop(pa)); in pmap_test_text_corruption()
|