| /f-stack/freebsd/kern/ |
| H A D | subr_physmem.c | 171 totalmem += atop((vm_offset_t)(end - start)); in regions_to_avail() 227 availmem += atop((vm_offset_t)(xstart - start)); in regions_to_avail() 260 availmem += atop((vm_offset_t)(end - start)); in regions_to_avail() 415 Maxmem = atop(phys_avail[nextidx - 1]); in physmem_init_kernel_globals()
|
| /f-stack/freebsd/vm/ |
| H A D | vm_phys.c | 525 npages += atop(seg->end - seg->start); in vm_phys_init() 551 npages += atop(seg->end - seg->start); in vm_phys_init() 890 return (&seg->first_page[atop(pa - seg->start)]); in vm_phys_paddr_to_vm_page() 911 m = &seg->first_page[atop(pa - seg->start)]; in vm_phys_fictitious_to_vm_page() 950 pi = atop(start); in vm_phys_fictitious_reg_range() 951 pe = atop(end); in vm_phys_fictitious_reg_range() 1029 pi = atop(start); in vm_phys_fictitious_unreg_range() 1030 pe = atop(end); in vm_phys_fictitious_unreg_range() 1116 m = &seg->first_page[atop(pa - seg->start)]; in vm_phys_free_pages() 1316 m_set = &seg->first_page[atop(pa - seg->start)]; in vm_phys_unfree_page() [all …]
|
| H A D | vm_glue.c | 185 npages = atop(end - start); in vslock() 341 pindex = atop(ks - VM_MIN_KERNEL_ADDRESS); in vm_thread_stack_dispose() 421 pindex = atop(ks - VM_MIN_KERNEL_ADDRESS); in vm_thread_stack_back() 474 atop(VM_MAX_KERNEL_ADDRESS - VM_MIN_KERNEL_ADDRESS)); in kstack_cache_init()
|
| H A D | vm_kern.c | 231 m = kmem_alloc_contig_pages(object, atop(offset + i), in kmem_alloc_attr_domain() 307 npages = atop(size); in kmem_alloc_contig_domain() 309 m = kmem_alloc_contig_pages(object, atop(offset), domain, in kmem_alloc_contig_domain() 475 mpred = vm_radix_lookup_le(&object->rtree, atop(offset + i)); in kmem_back_domain() 477 m = vm_page_alloc_domain_after(object, atop(offset + i), in kmem_back_domain() 575 m = vm_page_lookup(object, atop(offset)); in _kmem_unback()
|
| H A D | vm_fault.c | 510 for (i = 0; i < atop(pagesizes[bdry_idx]); i++) in vm_fault_populate() 554 npages = atop(pagesizes[psind]); in vm_fault_populate() 1122 vm_object_color(fs->object, atop(fs->vaddr) - fs->pindex); in vm_fault_allocate() 1217 atop(fs->vaddr - e_start)); in vm_fault_getpages() 1220 ahead = ulmin(ahead, atop(e_end - fs->vaddr) - 1); in vm_fault_getpages() 1675 pstart = OFF_TO_IDX(entry->offset) + atop(start - in vm_fault_dontneed() 1678 pend = OFF_TO_IDX(entry->offset) + atop(end - in vm_fault_dontneed() 1812 if (atop(end - addr) > max_count) in vm_fault_quick_hold_pages() 1814 count = atop(end - addr); in vm_fault_quick_hold_pages() 1916 dst_object = vm_object_allocate_anon(atop(dst_entry->end - in vm_fault_copy_entry() [all …]
|
| H A D | vm_pager.h | 119 #define PBUF_PAGES (atop(maxphys) + 1)
|
| H A D | vnode_pager.c | 820 KASSERT(count <= atop(maxphys), in vnode_pager_generic_getpages() 920 if (rbehind + rahead + count > atop(maxphys)) { in vnode_pager_generic_getpages() 923 trim = rbehind + rahead + count - atop(maxphys) + 1; in vnode_pager_generic_getpages() 934 KASSERT(rbehind + rahead + count <= atop(maxphys), in vnode_pager_generic_getpages() 1018 KASSERT(bp->b_npages <= atop(maxphys), in vnode_pager_generic_getpages()
|
| H A D | vm_object.c | 283 _vm_object_allocate(OBJT_PHYS, atop(VM_MAX_KERNEL_ADDRESS - in vm_object_init() 287 kernel_object->pg_color = (u_short)atop(VM_MIN_KERNEL_ADDRESS); in vm_object_init() 1210 atop(size) == object->size) { in vm_object_sync() 1441 result = vm_object_allocate_anon(atop(length), source, cred, length); in vm_object_shadow() 1515 size = atop(entry->end - entry->start); in vm_object_split() 2369 end_pindex = pindex + atop(length); in vm_object_unwire()
|
| H A D | vm_map.c | 2384 object = vm_object_allocate_anon(atop(entry->end - entry->start), NULL, in vm_map_entry_back() 2673 psize = atop(size); in vm_map_pmap_enter() 2714 mask = atop(pagesizes[p->psind]) - 1; in vm_map_pmap_enter() 3083 pend = pstart + atop(entry->end - entry->start); in vm_map_madvise() 3088 pstart += atop(start - entry->start); in vm_map_madvise() 3092 pend -= atop(entry->end - end); in vm_map_madvise() 3534 npages = atop(entry->end - entry->start); in vm_map_wire_locked() 3674 atop(entry->end - entry->start)); in vm_map_wire_locked() 3831 vm_map_wire_user_count_sub(atop(size)); in vm_map_entry_unwire() 3886 offidxend = offidxstart + atop(size); in vm_map_entry_delete() [all …]
|
| H A D | vm_mmap.c | 977 vecindex = atop(addr - first_addr); in kern_mincore() 1022 vecindex = atop(end - first_addr); in kern_mincore() 1077 npages = atop(end - start); in kern_mlock()
|
| H A D | vm_map.h | 400 #define VM_FAULT_READ_AHEAD_MAX min(atop(maxphys) - 1, UINT8_MAX)
|
| H A D | device_pager.c | 462 *color = atop(paddr) - OFF_TO_IDX(off - PAGE_SIZE); in old_dev_pager_ctor()
|
| H A D | vm_page.c | 787 pagecount = (u_long)atop(seg->end - seg->start); in vm_page_startup() 1235 pi = atop(pa); in PHYS_TO_VM_PAGE() 2604 m_inc = atop(roundup2(pa, alignment) - pa); in vm_page_scan_contig() 2609 m_inc = atop(roundup2(pa, boundary) - pa); in vm_page_scan_contig() 2625 m_inc = atop(roundup2(pa + 1, vm_reserv_size(level)) - in vm_page_scan_contig() 2651 m_inc = atop(roundup2(pa + 1, in vm_page_scan_contig() 5344 npages = atop(pagesizes[m->psind]); in vm_page_ps_test()
|
| /f-stack/freebsd/arm/include/ |
| H A D | param.h | 138 #define atop(x) ((unsigned)(x) >> PAGE_SHIFT) macro
|
| /f-stack/freebsd/arm64/include/ |
| H A D | param.h | 117 #define atop(x) ((unsigned long)(x) >> PAGE_SHIFT) macro
|
| /f-stack/freebsd/i386/include/ |
| H A D | param.h | 155 #define atop(x) ((x) >> PAGE_SHIFT) macro
|
| /f-stack/freebsd/i386/i386/ |
| H A D | machdep.c | 275 realmem = atop(memsize); 1978 Maxmem = atop(physmap[physmap_idx + 1]); in getmemsize() 1985 Maxmem = atop(physmem_tunable); in getmemsize() 1992 Maxmem = atop(physmap[physmap_idx + 1]); in getmemsize() 2014 if (atop(physmap[physmap_idx + 1]) < Maxmem) in getmemsize() 2169 Maxmem = atop(phys_avail[pa_indx]); in getmemsize() 2355 gdt_segs[GCODE_SEL].ssd_limit = atop(0 - 1); in init386() 2356 gdt_segs[GDATA_SEL].ssd_limit = atop(0 - 1); in init386() 2359 gdt_segs[GUFS_SEL].ssd_limit = atop(0 - 1); in init386() 2360 gdt_segs[GUGS_SEL].ssd_limit = atop(0 - 1); in init386() [all …]
|
| H A D | pmap.c | 409 for (pt = (pt_entry_t *)KPTphys + atop(va); cnt > 0; in pmap_cold_map() 510 pmap_cold_mapident(0, atop(NBPDR) * LOWPTDI); in __CONCAT() 511 pmap_cold_map(0, NBPDR * LOWPTDI, atop(NBPDR) * LOWPTDI); in __CONCAT() 512 pmap_cold_mapident(KERNBASE, atop(KERNend - KERNBASE)); in __CONCAT() 534 for (pt = (pt_entry_t *)vm86pa + atop(ISA_HOLE_START), a = 0; in __CONCAT() 535 a < atop(ISA_HOLE_LENGTH); a++, pt++) in __CONCAT() 627 res = atop(firstaddr - (vm_paddr_t)KERNLOAD); in __CONCAT() 4064 psize = atop(end - start); in __CONCAT() 4231 if (!vm_object_populate(object, pindex, pindex + atop(size))) in __CONCAT() 5536 pmap_qremove(va, atop(size)); in __CONCAT() [all …]
|
| /f-stack/freebsd/mips/include/ |
| H A D | param.h | 183 #define atop(x) ((x) >> PAGE_SHIFT) macro
|
| /f-stack/freebsd/amd64/include/ |
| H A D | param.h | 150 #define atop(x) ((unsigned long)(x) >> PAGE_SHIFT) macro
|
| /f-stack/freebsd/amd64/amd64/ |
| H A D | machdep.c | 282 realmem = atop(memsize); 1265 Maxmem = atop(physmap[physmap_idx + 1]); in getmemsize() 1272 Maxmem = atop(physmem_tunable); in getmemsize() 1290 if (Maxmem > atop(physmap[physmap_idx + 1])) in getmemsize() 1291 Maxmem = atop(physmap[physmap_idx + 1]); in getmemsize() 1293 if (atop(physmap[physmap_idx + 1]) != Maxmem && in getmemsize() 1482 physmem -= atop(phys_avail[pa_indx] - phys_avail[pa_indx - 1]); in getmemsize() 1487 Maxmem = atop(phys_avail[pa_indx]); in getmemsize()
|
| /f-stack/freebsd/x86/x86/ |
| H A D | busdma_bounce.c | 60 #define MAX_BPAGES (Maxmem > atop(0x100000000ULL) ? 8192 : 512) 168 pages = atop(dmat->common.maxsize) - bz->total_bpages; in bounce_bus_dma_zone_setup() 346 atop(dmat->common.lowaddr)); in bounce_bus_dmamap_create() 349 pages = MAX(atop(dmat->common.maxsize), 1); in bounce_bus_dmamap_create()
|
| /f-stack/freebsd/arm/nvidia/drm2/ |
| H A D | tegra_bo.c | 181 bo->npages = atop(size); in tegra_bo_alloc()
|
| /f-stack/freebsd/arm64/arm64/ |
| H A D | busdma_bounce.c | 317 pages = atop(maxsize) + 1 - bz->total_bpages; in bounce_bus_dma_tag_create() 454 atop(dmat->common.lowaddr)); in bounce_bus_dmamap_create() 457 pages = atop(roundup2(dmat->common.maxsize, PAGE_SIZE)) + 1; in bounce_bus_dmamap_create()
|
| /f-stack/freebsd/x86/xen/ |
| H A D | pv.c | 309 xatp.gpfn = atop(physfree); in hammer_time_xen()
|