| /xnu-11215.1.10/osfmk/arm64/ |
| H A D | hibernate_arm64.c | 70 uint64_t first_page = atop_64(start_addr); in set_dram_range() 71 uint64_t page_count = atop_64(size); in set_dram_range() 162 *first_page = atop_64(SPTMArgs->hib_metadata->protected_metadata.hibtext_stack_top) - 1; in pal_hib_get_stack_pages() 168 *first_page = atop_64(kvtophys(stack_begin)); in pal_hib_get_stack_pages() 169 *page_count = atop_64(round_page(stack_end) - trunc_page(stack_begin)); in pal_hib_get_stack_pages() 185 vm_offset_t pmap_stack_page_count = atop_64(pmap_stacks_end_pa - pmap_stacks_start_pa); in hibernate_page_list_setall_machine() 203 atop_64(pmap_stacks_start_pa), pmap_stack_page_count, in hibernate_page_list_setall_machine()
|
| H A D | arm_vm_init.c | 2221 …vm_page_kernelcache_count = (unsigned int) (atop_64(arm_vm_kernelcache_phys_end - arm_vm_kernelcac… in arm_vm_init()
|
| /xnu-11215.1.10/iokit/Kernel/ |
| H A D | IOMemoryDescriptor.cpp | 2269 if (os_add_overflow(pages, atop_64(phys_size), &pages)) { in initWithOptions() 2276 if (!(kIOMemoryRemote & options) && (atop_64(endAddr) > UINT_MAX)) { in initWithOptions() 2279 if (os_add_overflow(pages, (atop_64(endAddr) - atop_64(addr)), &pages)) { in initWithOptions() 2287 uint64_t highPage = atop_64(addr + len - 1); in initWithOptions() 2311 if (_pages > atop_64(max_mem)) { in initWithOptions() 2861 ((uintptr_t) atop_64(segments_page[0]) << 32) | (ppnum_t) atop_64(segments_page[1]), in ktraceEmitPhysicalSegments() 2862 ((uintptr_t) atop_64(segments_page[2]) << 32) | (ppnum_t) atop_64(segments_page[3]), in ktraceEmitPhysicalSegments() 2863 ((uintptr_t) atop_64(segments_page[4]) << 32) | (ppnum_t) atop_64(segments_page[5]), in ktraceEmitPhysicalSegments() 2864 ((uintptr_t) atop_64(segments_page[6]) << 32) | (ppnum_t) atop_64(segments_page[7])); in ktraceEmitPhysicalSegments() 2883 ((uintptr_t) atop_64(segments_page[0]) << 32) | (ppnum_t) atop_64(segments_page[1]), in ktraceEmitPhysicalSegments() [all …]
|
| H A D | IOMapper.cpp | 251 dmaAddressPage64 = atop_64(dmaAddress); in IOMapperIOVMAlloc() 255 return (ppnum_t) atop_64(dmaAddress); in IOMapperIOVMAlloc()
|
| H A D | IODMACommand.cpp | 555 uint64_t numPages64 = atop_64(round_page_64((address & PAGE_MASK) + length)); in segmentOp() 569 vm_page_set_offset(lastPage, atop_64(address) + idx); in segmentOp() 660 …state->fCopyPageCount = (typeof(state->fCopyPageCount))(atop_64(round_page(state->fPreparedLength)… in walkAll() 865 if (atop_64(state->fPreparedLength) > UINT_MAX) { in prepare() 1494 ppnum_t addrPage = (ppnum_t) atop_64(addr); in genIOVMSegments()
|
| H A D | IOHibernateIO.cpp | 432 atop_64(phys64), atop_32(segLen), in hibernate_set_descriptor_page_state() 1992 vm_size_t shadow_pages_free = atop_64(shadow_ptop) - atop_64(shadow_pnext); in hibernate_write_image() 1996 atop_64(shadow_pnext), in hibernate_write_image()
|
| H A D | IOLib.cpp | 771 } else if (gIOLastPage && (atop_64(maxPhys) > gIOLastPage)) { in IOKernelAllocateWithPhysicalRestrict()
|
| /xnu-11215.1.10/osfmk/mach/ |
| H A D | vm_param.h | 101 #define atop_64(x) ((uint64_t)(x) >> PAGE_SHIFT) macro 189 #undef atop_64 224 #define atop_64(x) ((uint64_t)((x) + (uint8_t *)0))
|
| /xnu-11215.1.10/osfmk/device/ |
| H A D | iokit_rpc.c | 477 pagenum = (ppnum_t)atop_64(pa); in IOMapPages() 520 return pmap_map_block(pmap, va, pagenum, (uint32_t) atop_64(round_page_64(length)), prot, 0, 0); in IOMapPages()
|
| /xnu-11215.1.10/bsd/kern/ |
| H A D | kern_memorystatus_internal.h | 232 #define MEMSTAT_PERCENT_TOTAL_PAGES(p) (p * atop_64(max_mem) / 100)
|
| H A D | kern_memorystatus.c | 1553 …memorystatus_available_pages_critical_base = (unsigned int)atop_64((uint64_t)memorystatus_critical… in memorystatus_init() 1559 assert(memorystatus_available_pages_critical_base < (unsigned int)atop_64(max_mem)); in memorystatus_init() 1565 …memorystatus_available_pages_critical_idle = (unsigned int)atop_64((uint64_t)memorystatus_idle_thr… in memorystatus_init() 1576 assert(memorystatus_available_pages_critical_idle < (unsigned int)atop_64(max_mem)); in memorystatus_init() 1579 …memorystatus_available_pages_pressure = (unsigned int)atop_64((uint64_t)memorystatus_pressure_thre… in memorystatus_init() 1590 assert(memorystatus_available_pages_pressure < (unsigned int)atop_64(max_mem)); in memorystatus_init() 1593 …memorystatus_policy_more_free_offset_pages = (unsigned int)atop_64((uint64_t)memorystatus_more_fre… in memorystatus_init() 1597 assert(memorystatus_policy_more_free_offset_pages < (unsigned int)atop_64(max_mem)); in memorystatus_init() 1600 …memorystatus_swapin_trigger_pages = (unsigned int) atop_64(memorystatus_swapin_trigger_segments * … in memorystatus_init() 1644 …memorystatus_freeze_threshold = (unsigned int)atop_64((uint64_t)memorystatus_freeze_threshold_mb <… in memorystatus_init() [all …]
|
| H A D | ubc_subr.c | 6234 #define stob(s) (((atop_64(round_page_64(s))) + 07) >> 3) 6294 bit = atop_64( offset ); in ubc_cs_check_validation_bitmap()
|
| H A D | uipc_mbuf.c | 7449 base_phys = mcl_paddr[atop_64(addr - (char *)mbutl)];
|
| /xnu-11215.1.10/osfmk/vm/ |
| H A D | vm_page.h | 1029 #define VM_PAGE_DONATE_TARGET_HIGHWATER ((unsigned int)(atop_64(max_mem) / 8))
|
| H A D | vm_resident.c | 990 vm_page_background_target = (unsigned int)(atop_64(max_mem) / 25); in vm_page_bootstrap() 1209 assert((unsigned int) atop_64(max_mem) == atop_64(max_mem)); in vm_page_bootstrap() 1210 vm_page_wire_count = ((unsigned int) atop_64(max_mem)) - in vm_page_bootstrap() 1477 vm_page_secluded_target = (unsigned int)atop_64(secluded_mem_mb * 1024ULL * 1024ULL); in pmap_startup() 1733 …( (natural_t)((uintptr_t)object * vm_page_bucket_hash) + ((uint32_t)atop_64(offset) ^ vm_page_buck…
|
| H A D | memory_object.c | 927 (atop_64(size) > (unsigned)(object->resident_page_count / (8 * MAX_EXTENTS)))) { in vm_object_update()
|
| H A D | vm_pageout.c | 4716 total_pages = (unsigned int) atop_64(max_mem); 4826 const int64_t max_wire_pages = atop_64(vm_global_user_wire_limit);
|
| H A D | vm_kern.c | 1527 vm_size_t page_count = atop_64(size); in kernel_memory_populate()
|
| H A D | vm_object.c | 5272 if (atop_64(end - start) < (unsigned)object->resident_page_count / 16) {
|
| H A D | vm_map.c | 1326 …VM_PAGE_MOVE_STOLEN(atop_64(map_data_size) + atop_64(kentry_data_size) + atop_64(map_holes_data_si… in vm_map_init()
|
| /xnu-11215.1.10/osfmk/i386/ |
| H A D | i386_vm_init.c | 433 vm_page_kernelcache_count = (unsigned int) (atop_64(vm_kernel_top - vm_kernel_base)); in i386_vm_init()
|
| /xnu-11215.1.10/osfmk/arm64/sptm/ |
| H A D | arm_init_sptm.c | 1250 …bootkc_total_pages += (unsigned int) atop_64(bootkc_physranges[i].end_phys - bootkc_physranges[i].… in arm_get_bootkc_ranges_from_DT()
|