Home
last modified time | relevance | path

Searched refs:atop (Results 1 – 22 of 22) sorted by relevance

/xnu-8796.141.3/osfmk/mach/i386/
H A Dvm_param.h298 #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-8796.141.3/osfmk/i386/
H A Dhibernate_i386.c85 if (atop(shadow_ptop) > pnmax) { in hibernate_page_list_allocate()
86 pnmax = (ppnum_t)atop(shadow_ptop); in hibernate_page_list_allocate()
/xnu-8796.141.3/osfmk/kdp/
H A Dkdp_common.c156 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 Dkdp_core.c470 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-8796.141.3/osfmk/mach/
H A Dvm_param.h112 #define atop(x) ((vm_address_t)(x) >> PAGE_SHIFT) macro
115 #define atop(x) (0UL = 0) macro
/xnu-8796.141.3/iokit/Kernel/
H A DIOKitDebug.cpp651 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 DIOLib.cpp776 alignMask, (ppnum_t) atop(maxPhys), (ppnum_t) atop(alignMask), in IOKernelAllocateWithPhysicalRestrict()
/xnu-8796.141.3/osfmk/kern/
H A Dstack.c112 uint32_t kernel_stack_pages = atop(KERNEL_STACK_SIZE); in stack_init()
H A Dzalloc.c1101 struct zone_page_metadata *to = from + atop(size); in zone_meta_populate()
1350 if (oob_offs && meta->zm_guarded && atop(addr ^ end)) { in zone_element_size()
3510 zleak_pages_global_wired_threshold = atop(value); in zleak_update_threshold()
3519 zleak_pages_per_zone_wired_threshold = atop(value); in zleak_update_threshold()
4043 uint32_t pages = (uint32_t)atop(size); in zone_cram_early()
4319 pages = atop(ZONE_CHUNK_ALLOC_SIZE); in zone_allocate_va_locked()
4707 min_pages = (uint32_t)atop(round_page(zone_elem_outer_offs(z) + in zone_expand_locked()
9254 z->z_chunk_pages = (uint16_t)atop(alloc);
9939 atop(early_sz) * sizeof(struct zone_page_metadata)); in zone_metadata_init()
9940 for (uint32_t i = 0; i < atop(early_sz); i++) { in zone_metadata_init()
[all …]
H A Dzalloc_internal.h626 return atop(addr ^ (addr + size - 1)) != 0; in zone_addr_size_crosses_page()
H A Dkalloc.c2113 return addr | atop(size); in __kalloc_array_encode_vm()
/xnu-8796.141.3/osfmk/vm/
H A Dvm_kern.c871 kmr.kmr_return = vm_page_alloc_list(atop(fill_size), flags,
973 atop(fill_size), 0, 0, 0);
1366 vm_page_wire_count -= atop(size); in kernel_memory_populate_object_and_unlock()
1368 vm_page_gobble_count -= atop(size); in kernel_memory_populate_object_and_unlock()
1372 vm_page_wire_count += atop(size); in kernel_memory_populate_object_and_unlock()
1724 kmr.kmr_return = vm_page_alloc_list(atop(newsize - oldsize), in kmem_realloc_guard()
1990 atop(newsize - oldsize), 0, 0, 0); in kmem_realloc_guard()
3745 pte_sz = round_page(atop(va - used) * 8); in kmem_get_gobj_stats()
H A Dvm_object.c7746 io_upl_reprio_info = kalloc_data(sizeof(uint64_t) * atop(io_upl_size), Z_WAITOK); in vm_decmp_upl_reprioritize()
7762 sizeof(uint64_t) * atop(io_upl_size)); in vm_decmp_upl_reprioritize()
7784 blkno = io_upl_reprio_info[atop(offset)] & UPL_REPRIO_INFO_MASK; in vm_decmp_upl_reprioritize()
7785 len = (io_upl_reprio_info[atop(offset)] >> UPL_REPRIO_INFO_SHIFT) & UPL_REPRIO_INFO_MASK; in vm_decmp_upl_reprioritize()
7817 kfree_data(io_upl_reprio_info, sizeof(uint64_t) * atop(io_upl_size)); in vm_decmp_upl_reprioritize()
H A Dvm_pageout.c5484 uint32_t pages = (uint32_t)atop(round_page_32(size)); in upl_create()
5595 pages = (uint32_t)atop(upl_adjusted_size(upl, PAGE_MASK)); in upl_destroy()
8252 uint32_t pages = (uint32_t)atop(upl_adjusted_size(upl, PAGE_MASK)); in upl_commit_range()
8659 uint32_t pages = (uint32_t)atop(upl_adjusted_size(upl, PAGE_MASK)); in upl_abort_range()
10480 kfree_type(struct upl_page_info, atop(vector_upl->size), vector_upl->pagelist); in vector_upl_deallocate()
10551 atop(vector_upl->size), Z_WAITOK); in vector_upl_set_pagelist()
H A Dvm_resident.c1635 vm_page_zone_pages = atop(round_page((vm_offset_t)vm_page_array_zone_data_size)); in vm_page_module_init_delayed()
3070 if (cpm_allocate(PAGE_SIZE, &mem, atop(PPNUM_MAX), 0, FALSE, KMA_LOMEM) != KERN_SUCCESS) { in vm_page_grablo()
H A Dvm_compressor.c1172 kdp_compressor_decompressed_page_ppnum = (ppnum_t) atop(kdp_compressor_decompressed_page_paddr); in vm_compressor_init()
/xnu-8796.141.3/osfmk/arm/pmap/
H A Dpmap.c1772 kr = pmap_enter(kernel_pmap, virt, (ppnum_t)atop(start), in pmap_map()
2601 avail_page_count = atop(end - first); in initialize_ram_ranges()
2623 return (unsigned int)atop(avail_end - first_avail); in pmap_free_pages_span()
2646 *pnum = (ppnum_t)atop(first_avail); in pmap_next_page()
4055 unsigned int cacheattr = pmap_cache_attributes((ppnum_t)atop(pa));
4689 if (__improbable((pmap == NULL) || (atop(pte_to_pa(*pte_p)) != ppnum))) {
4739 assertf(atop(pte_to_pa(spte)) == ppnum, "unexpected value 0x%llx for pte %p mapping ppnum 0x%x",
5830 ppnum_t pn = (ppnum_t)atop(pa);
5985 (pmap_cache_attributes((ppnum_t)atop(pte_to_pa(spte))) & PP_ATTR_MONITOR))) {
6568 ppn = atop(pmap_find_pa_nofault(pmap, va));
[all …]
H A Dpmap_data.h100 return (unsigned int)atop(pa - vm_first_phys); in pa_index()
H A Dpmap_data.c634 const unsigned int npages = (unsigned int)atop(mem_size); in pmap_data_bootstrap()
1125 if (!pmap_verify_free((ppnum_t)atop(pa))) { in pmap_mark_page_as_ppl_page_internal()
/xnu-8796.141.3/bsd/kern/
H A Dkern_exit.c1953 atop(bt[0]) != atop(bt[1]) && /* don't recheck PC page */ in proc_prepareexit()
1954 atop(bt[0]) - 1 != atop(bt[1])) { /* don't recheck page before */ in proc_prepareexit()
/xnu-8796.141.3/iokit/Tests/
H A DTestIOMemoryDescriptor.cpp90 data[i] = ((uint8_t) atop(i)) | 0xD0; in IOMultMemoryDescriptorTest()
/xnu-8796.141.3/osfmk/x86_64/
H A Dpmap.c3454 pai = ppn_to_pai(atop(pa)); in pmap_test_text_corruption()