sys/arch/aarch64/aarch64/aarch64_machdep.c
304
if (bootconfig.dram[i].pages < atop(round_page(MSGBUFSIZE)))
sys/arch/aarch64/aarch64/aarch64_machdep.c
308
bootconfig.dram[i].pages -= atop(round_page(MSGBUFSIZE));
sys/arch/aarch64/aarch64/aarch64_machdep.c
383
start = atop(bootconfig.dram[i].address);
sys/arch/aarch64/aarch64/aarch64_machdep.c
429
physmem = atop(memsize_total);
sys/arch/aarch64/aarch64/bus_space.c
677
return (atop(bpa + (offset << ((struct bus_space *)t)->bs_stride)) |
sys/arch/aarch64/aarch64/db_interface.c
110
if (lastpage != atop(va) && !db_accessible_address(va, true)) {
sys/arch/aarch64/aarch64/db_interface.c
115
lastpage = atop(va);
sys/arch/aarch64/aarch64/db_interface.c
156
if (atop(addr) != atop(addr + size - 1)) {
sys/arch/aarch64/aarch64/db_interface.c
224
if (lastpage != atop(va) && !db_accessible_address(va, false)) {
sys/arch/aarch64/aarch64/db_interface.c
228
lastpage = atop(va);
sys/arch/aarch64/aarch64/pmap.c
519
npage = atop(size);
sys/arch/aarch64/aarch64/pmap.c
537
uvm_physseg_unplug(atop(pa), npage);
sys/arch/aarch64/aarch64/vm_machdep.c
224
taddr = uvm_km_alloc(phys_map, len, atop(faddr) & uvmexp.colormask,
sys/arch/acorn32/acorn32/rpc_machdep.c
935
uvm_page_physload(atop(start), atop(end),
sys/arch/acorn32/acorn32/rpc_machdep.c
936
atop(start), atop(end), VM_FREELIST_DEFAULT);
sys/arch/acorn32/acorn32/rpc_machdep.c
938
uvm_page_physload(atop(start), atop(end),
sys/arch/acorn32/acorn32/rpc_machdep.c
939
atop(start), atop(end), VM_FREELIST_RPCDMA);
sys/arch/acorn32/eb7500atx/eb7500atx_machdep.c
871
uvm_page_physload(atop(start), atop(end),
sys/arch/acorn32/eb7500atx/eb7500atx_machdep.c
872
atop(start), atop(end), VM_FREELIST_DEFAULT);
sys/arch/algor/algor/machdep.c
462
physmem += atop(mem_clusters[i].size);
sys/arch/alpha/alpha/dec_550.c
79
uvmexp.ncolors = atop(2 * 1024 * 1024);
sys/arch/alpha/alpha/dec_eb164.c
74
uvmexp.ncolors = atop(2 * 1024 * 1024);
sys/arch/alpha/alpha/dec_eb64plus.c
85
uvmexp.ncolors = atop(1 * 1024 * 1024);
sys/arch/alpha/alpha/dec_kn300.c
120
uvmexp.ncolors = atop(cachesize);
sys/arch/alpha/alpha/machdep.c
1160
n += atop(mem_clusters[i].size);
sys/arch/alpha/alpha/machdep.c
513
kernstartpfn = atop(ALPHA_K0SEG_TO_PHYS(kernstart));
sys/arch/alpha/alpha/machdep.c
514
kernendpfn = atop(ALPHA_K0SEG_TO_PHYS(kernend));
sys/arch/alpha/alpha/machdep.c
681
if (uvm_physseg_get_avail_end(bank) - uvm_physseg_get_avail_start(bank) < atop(sz))
sys/arch/alpha/alpha/machdep.c
685
end -= atop(sz);
sys/arch/alpha/alpha/machdep.c
687
uvm_physseg_unplug(end, atop(sz));
sys/arch/alpha/alpha/pmap.c
1497
npgs = atop(size);
sys/arch/alpha/alpha/pmap.c
1532
uvm_physseg_unplug(atop(pa), npgs);
sys/arch/alpha/alpha/pmap.c
3557
pte = (atop(ptaddr) << PG_SHIFT) |
sys/arch/alpha/alpha/pmap.c
3592
*l2pte = (atop(ptaddr) << PG_SHIFT) |
sys/arch/alpha/alpha/vm_machdep.c
215
len = atop(len);
sys/arch/alpha/pci/cia_dma.c
155
atop(CIA_DIRECT_MAPPED_SIZE)) {
sys/arch/alpha/pci/lca.c
143
uvmexp.ncolors = atop(lca_configuration.lc_bcache_size);
sys/arch/alpha/pci/tsp_dma.c
215
atop(TSP_DIRECT_MAPPED_SIZE)) {
sys/arch/amd64/amd64/machdep.c
1152
n += atop(mem_clusters[i].size);
sys/arch/amd64/amd64/machdep.c
1923
uvm_page_physload(atop(avail_start), atop(avail_end),
sys/arch/amd64/amd64/machdep.c
1924
atop(avail_start), atop(avail_end), VM_FREELIST_DEFAULT);
sys/arch/amiga/amiga/pmap_bootstrap.c
132
uvm_page_physload(atop(fromads), atop(toads),
sys/arch/amiga/amiga/pmap_bootstrap.c
133
atop(fromads), atop(toads), VM_FREELIST_DEFAULT);
sys/arch/amiga/amiga/pmap_bootstrap.c
173
uvm_page_physload(atop(fromads), atop(toads),
sys/arch/amiga/amiga/pmap_bootstrap.c
174
atop(fromads), atop(toads), (fromads & 0xff000000) ?
sys/arch/arc/arc/machdep.c
370
kernendpfn = atop(round_page(MIPS_KSEG0_TO_PHYS(kernend)));
sys/arch/arc/arc/machdep.c
372
kernstartpfn = atop(trunc_page(
sys/arch/arc/arc/machdep.c
379
first = atop(round_page(mem_clusters[i].start));
sys/arch/arc/arc/machdep.c
380
last = atop(trunc_page(mem_clusters[i].start +
sys/arch/arc/arc/machdep.c
399
first = atop(round_page(mem_clusters[i].start));
sys/arch/arc/arc/machdep.c
400
last = atop(trunc_page(mem_clusters[i].start +
sys/arch/arm/arm32/arm32_boot.c
254
paddr_t start = atop(pv->pv_pa);
sys/arch/arm/arm32/arm32_boot.c
255
const paddr_t end = start + atop(pv->pv_size);
sys/arch/arm/arm32/arm32_machdep.c
881
*colorp = atop(pa & arm_cache_prefer_mask);
sys/arch/arm/arm32/bus_dma.c
1498
uvm_physseg_t upm = uvm_physseg_find(atop(pa), NULL);
sys/arch/arm/arm32/pmap.c
8147
if (spn == atop(pv->pv_pa + pv->pv_size)
sys/arch/arm/arm32/pmap.c
8160
uvm_physseg_unplug(spn, atop(amount - pv->pv_size));
sys/arch/arm/arm32/vm_machdep.c
224
taddr = uvm_km_alloc(phys_map, len, atop(faddr) & uvmexp.colormask,
sys/arch/arm/at91/at91bus.c
508
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
sys/arch/arm/at91/at91bus.c
509
atop(physical_freestart), atop(physical_freeend),
sys/arch/arm/at91/at91bus.c
511
uvm_page_physload(atop(physical_start), atop(physical_freeend_low),
sys/arch/arm/at91/at91bus.c
512
atop(physical_start), atop(physical_freeend_low),
sys/arch/arm/broadcom/bcm283x_platform.c
756
bootconfig.dram[0].pages = atop(BCM283x_MINIMUM_SPLIT);
sys/arch/arm/broadcom/bcm283x_platform.c
772
atop(le32toh(vptp_mem->mem[i].size));
sys/arch/atari/atari/pmap_bootstrap.c
136
uvm_page_physload(atop(usable_segs[i].start),
sys/arch/atari/atari/pmap_bootstrap.c
137
atop(usable_segs[i].end),
sys/arch/atari/atari/pmap_bootstrap.c
138
atop(usable_segs[i].start),
sys/arch/atari/atari/pmap_bootstrap.c
139
atop(usable_segs[i].end),
sys/arch/cats/cats/cats_machdep.c
409
bp->bp_start = atop(istart);
sys/arch/cats/cats/cats_machdep.c
410
bp->bp_pages = atop(isize);
sys/arch/cats/cats/cats_machdep.c
422
bp->bp_start = atop(start);
sys/arch/cats/cats/cats_machdep.c
423
bp->bp_pages = atop(istart - start);
sys/arch/cats/cats/cats_machdep.c
436
bp->bp_start = atop(istart + isize);
sys/arch/cats/cats/cats_machdep.c
437
bp->bp_pages = atop(end - (istart + isize));
sys/arch/cats/cats/cats_machdep.c
443
bp->bp_start = atop(start);
sys/arch/cats/cats/cats_machdep.c
444
bp->bp_pages = atop(end - start);
sys/arch/cats/cats/cats_machdep.c
450
bp->bp_start = atop(start);
sys/arch/cats/cats/cats_machdep.c
451
bp->bp_pages = atop(end - start);
sys/arch/cobalt/cobalt/machdep.c
298
uvm_page_physload(atop(first), atop(last), atop(first), atop(last),
sys/arch/dreamcast/dreamcast/machdep.c
131
physmem = atop(IOM_RAM_SIZE);
sys/arch/dreamcast/dreamcast/machdep.c
132
kernend = atop(round_page(SH3_P1SEG_TO_PHYS(end)));
sys/arch/dreamcast/dreamcast/machdep.c
134
kernend, atop(IOM_RAM_BEGIN + IOM_RAM_SIZE),
sys/arch/dreamcast/dreamcast/machdep.c
135
kernend, atop(IOM_RAM_BEGIN + IOM_RAM_SIZE),
sys/arch/emips/emips/machdep.c
297
physmem += atop(mem_clusters[i].size);
sys/arch/emips/emips/machdep.c
303
uvm_page_physload(atop(first), atop(last), atop(first),
sys/arch/emips/emips/machdep.c
304
atop(last), VM_FREELIST_DEFAULT);
sys/arch/epoc32/epoc32/machdep.c
439
atop(_end_physical), atop(physical_end),
sys/arch/epoc32/epoc32/machdep.c
440
atop(_end_physical), atop(physical_end),
sys/arch/epoc32/epoc32/machdep.c
451
uvm_page_physload(atop(start), atop(start + size),
sys/arch/epoc32/epoc32/machdep.c
452
atop(start), atop(start + size), VM_FREELIST_DEFAULT);
sys/arch/evbarm/adi_brh/brh_machdep.c
733
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/adi_brh/brh_machdep.c
734
atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/armadillo/armadillo9_machdep.c
812
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/armadillo/armadillo9_machdep.c
813
atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/armadillo/armadillo9_machdep.c
815
uvm_page_physload(atop(0xc0000000), atop(physical_freeend_low),
sys/arch/evbarm/armadillo/armadillo9_machdep.c
816
atop(0xc0000000), atop(physical_freeend_low),
sys/arch/evbarm/armadillo/armadillo9_machdep.c
822
uvm_page_physload(atop(start), atop(start + size),
sys/arch/evbarm/armadillo/armadillo9_machdep.c
823
atop(start), atop(start + size),
sys/arch/evbarm/fdt/fdt_machdep.c
201
bp->bp_start = atop(saddr);
sys/arch/evbarm/fdt/fdt_machdep.c
202
bp->bp_pages = atop(eaddr) - bp->bp_start;
sys/arch/evbarm/fdt/fdt_machdep.c
207
if (atop(memory_size) > bp->bp_pages) {
sys/arch/evbarm/fdt/fdt_machdep.c
420
const paddr_t spg = atop(spa);
sys/arch/evbarm/fdt/fdt_machdep.c
421
const paddr_t epg = atop(epa);
sys/arch/evbarm/g42xxeb/g42xxeb_machdep.c
812
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/g42xxeb/g42xxeb_machdep.c
813
atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/gemini/gemini_machdep.c
686
uvm_page_physload(atop(physical_freestart), atop(GEMINI_RAM_RESV_PBASE),
sys/arch/evbarm/gemini/gemini_machdep.c
687
atop(physical_freestart), atop(GEMINI_RAM_RESV_PBASE),
sys/arch/evbarm/gemini/gemini_machdep.c
689
uvm_page_physload(atop(GEMINI_RAM_RESV_PEND), atop(physical_freeend),
sys/arch/evbarm/gemini/gemini_machdep.c
690
atop(GEMINI_RAM_RESV_PEND), atop(physical_freeend),
sys/arch/evbarm/gemini/gemini_machdep.c
693
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/gemini/gemini_machdep.c
694
atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/gemini/gemini_machdep.c
697
uvm_page_physload(atop(GEMINI_DRAM_BASE), atop(KERNEL_BASE_phys),
sys/arch/evbarm/gemini/gemini_machdep.c
698
atop(GEMINI_DRAM_BASE), atop(KERNEL_BASE_phys),
sys/arch/evbarm/hdl_g/hdlg_machdep.c
580
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/hdl_g/hdlg_machdep.c
581
atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/imx31/imx31lk_machdep.c
687
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/imx31/imx31lk_machdep.c
688
atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/iq80310/iq80310_machdep.c
700
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/iq80310/iq80310_machdep.c
701
atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/iq80321/iq80321_machdep.c
726
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/iq80321/iq80321_machdep.c
727
atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/ixdp425/ixdp425_machdep.c
706
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/ixdp425/ixdp425_machdep.c
707
atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/ixm1200/ixm1200_machdep.c
659
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/ixm1200/ixm1200_machdep.c
660
atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/iyonix/iyonix_machdep.c
791
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/iyonix/iyonix_machdep.c
792
atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/lubbock/lubbock_machdep.c
884
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/lubbock/lubbock_machdep.c
885
atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/mini2440/mini2440_machdep.c
877
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/mini2440/mini2440_machdep.c
878
atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/mini2440/mini2440_machdep.c
880
uvm_page_physload(atop(SDRAM_START), atop(physical_freeend_low),
sys/arch/evbarm/mini2440/mini2440_machdep.c
881
atop(SDRAM_START), atop(physical_freeend_low),
sys/arch/evbarm/npwr_fc/npwr_fc_machdep.c
709
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/npwr_fc/npwr_fc_machdep.c
710
atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/nslu2/nslu2_machdep.c
767
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/nslu2/nslu2_machdep.c
768
atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/smdk2xx0/smdk2410_machdep.c
836
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/smdk2xx0/smdk2410_machdep.c
837
atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/smdk2xx0/smdk2800_machdep.c
760
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/smdk2xx0/smdk2800_machdep.c
761
atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/tsarm/tsarm_machdep.c
713
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/tsarm/tsarm_machdep.c
714
atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/tsarm/tsarm_machdep.c
716
uvm_page_physload(0, atop(physical_freeend_low),
sys/arch/evbarm/tsarm/tsarm_machdep.c
717
0, atop(physical_freeend_low),
sys/arch/evbarm/tsarm/tsarm_machdep.c
724
uvm_page_physload(atop(0x1000000), atop(0x1800000),
sys/arch/evbarm/tsarm/tsarm_machdep.c
725
atop(0x1000000), atop(0x1800000),
sys/arch/evbarm/tsarm/tsarm_machdep.c
727
uvm_page_physload(atop(0x4000000), atop(0x4800000),
sys/arch/evbarm/tsarm/tsarm_machdep.c
728
atop(0x4000000), atop(0x4800000),
sys/arch/evbarm/tsarm/tsarm_machdep.c
730
uvm_page_physload(atop(0x5000000), atop(0x5800000),
sys/arch/evbarm/tsarm/tsarm_machdep.c
731
atop(0x5000000), atop(0x5800000),
sys/arch/evbarm/viper/viper_machdep.c
743
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
sys/arch/evbarm/viper/viper_machdep.c
744
atop(physical_freestart), atop(physical_freeend),
sys/arch/evbmips/loongson/loongson2_machdep.c
309
fp = atop(pa);
sys/arch/evbmips/loongson/loongson2_machdep.c
310
lp = atop(round_page(pa + len));
sys/arch/evbmips/loongson/loongson2_machdep.c
312
if (limit != 0 && lp > atop(limit))
sys/arch/evbppc/mpc85xx/machdep.c
626
physmem += atop(physmemr[i].size);
sys/arch/evbppc/mpc85xx/machdep.c
691
uvm_page_recolor(atop(curcpu()->ci_ci.dcache_size / dcache_assoc));
sys/arch/evbsh3/evbsh3/machdep.c
306
kernend = atop(round_page(SH3_P1SEG_TO_PHYS(end)));
sys/arch/evbsh3/evbsh3/machdep.c
307
physmem = atop(IOM_RAM_SIZE);
sys/arch/evbsh3/evbsh3/machdep.c
309
kernend, atop(IOM_RAM_BEGIN + IOM_RAM_SIZE),
sys/arch/evbsh3/evbsh3/machdep.c
310
kernend, atop(IOM_RAM_BEGIN + IOM_RAM_SIZE),
sys/arch/ews4800mips/ews4800mips/machdep.c
145
uvm_page_physload(atop(start), atop(start + size),
sys/arch/ews4800mips/ews4800mips/machdep.c
146
atop(start), atop(start + size), VM_FREELIST_DEFAULT);
sys/arch/ews4800mips/ews4800mips/sbd.c
137
physmem = atop(mem_clusters[0].size);
sys/arch/hpcarm/hpcarm/pxa2x0_hpc_machdep.c
604
uvm_page_physload(atop(dblk_start), atop(dblk_end),
sys/arch/hpcarm/hpcarm/pxa2x0_hpc_machdep.c
605
atop(dblk_start), atop(dblk_end), VM_FREELIST_DEFAULT);
sys/arch/hpcarm/hpcarm/sa11x0_hpc_machdep.c
557
uvm_page_physload(atop(dblk_start), atop(dblk_end),
sys/arch/hpcarm/hpcarm/sa11x0_hpc_machdep.c
558
atop(dblk_start), atop(dblk_end), VM_FREELIST_DEFAULT);
sys/arch/hpcmips/hpcmips/machdep.c
435
physmem += atop(mem_clusters[i].size);
sys/arch/hpcsh/hpcsh/machdep.c
501
end = atop(start + size);
sys/arch/hpcsh/hpcsh/machdep.c
502
start = atop(start);
sys/arch/hppa/dev/astro.c
375
ims = iommu_iomap_create(atop(round_page(size)), flags);
sys/arch/hppa/dev/uturn.c
513
ums = uturn_iomap_create(atop(round_page(size)), flags);
sys/arch/hppa/hppa/machdep.c
2123
if (atop(paddr) > physmem) {
sys/arch/hppa/hppa/machdep.c
2135
return (atop(pa) > physmem) ? EFAULT : 0;
sys/arch/hppa/hppa/machdep.c
2156
} else if (v >= kend && atop((paddr_t)v) < physmem) {
sys/arch/hppa/hppa/machdep.c
515
totalphysmem = atop(avail_end);
sys/arch/hppa/hppa/machdep.c
518
physmem = atop(avail_end);
sys/arch/hppa/hppa/machdep.c
519
resvmem = atop(resvmem); /* XXXNH */
sys/arch/hppa/hppa/pmap.c
1095
pmap_page_physload(resvmem, atop(ksrx));
sys/arch/hppa/hppa/pmap.c
1096
pmap_page_physload(atop(kero), atop(ksrw));
sys/arch/hppa/hppa/pmap.c
1097
pmap_page_physload(atop(kerw), physmem);
sys/arch/hppa/hppa/pmap.c
764
#define FIRST_16M atop(16 * 1024 * 1024)
sys/arch/hppa/hppa/pmap.c
907
npdes = nkpdes + (physmem + atop(PDE_SIZE) - 1) / atop(PDE_SIZE);
sys/arch/hppa/hppa/pmap.c
931
resvphysmem = atop(addr);
sys/arch/i386/i386/dumpsys.c
594
n += atop(mem_clusters[i].size);
sys/arch/i386/i386/machdep.c
1353
uvmexp.wired += atop(avail_start);
sys/arch/i386/i386/machdep.c
1404
uvm_page_physload(atop(avail_start), atop(avail_end),
sys/arch/i386/i386/machdep.c
1405
atop(avail_start), atop(avail_end),
sys/arch/ia64/ia64/machdep.c
502
kernstartpfn = atop(IA64_RR_MASK(kernstart));
sys/arch/ia64/ia64/machdep.c
503
kernendpfn = atop(IA64_RR_MASK(kernend));
sys/arch/ia64/ia64/pmap.c
1324
npgs = atop(size);
sys/arch/ia64/ia64/pmap.c
1344
uvm_physseg_unplug(atop(pa), npgs);
sys/arch/ia64/ia64/pmap.c
1375
npgs = atop(size);
sys/arch/ia64/ia64/pmap.c
338
VM_ALLOC_WIRED, atop(size), 0UL, ~0UL, size, 0UL,
sys/arch/iyonix/iyonix/iyonix_machdep.c
763
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
sys/arch/iyonix/iyonix/iyonix_machdep.c
764
atop(physical_freestart), atop(physical_freeend),
sys/arch/landisk/landisk/machdep.c
215
physmem = atop(IOM_RAM_SIZE);
sys/arch/landisk/landisk/machdep.c
216
kernend = atop(round_page(SH3_P1SEG_TO_PHYS(kernend)));
sys/arch/landisk/landisk/machdep.c
218
kernend, atop(IOM_RAM_BEGIN + IOM_RAM_SIZE),
sys/arch/landisk/landisk/machdep.c
219
kernend, atop(IOM_RAM_BEGIN + IOM_RAM_SIZE),
sys/arch/m68k/m68k/dumpsys.c
95
n += atop(size);
sys/arch/m68k/m68k/m68k_machdep.c
248
uvm_page_physload(atop(phys_seg_list[i].ps_avail_start),
sys/arch/m68k/m68k/m68k_machdep.c
249
atop(phys_seg_list[i].ps_avail_end),
sys/arch/m68k/m68k/m68k_machdep.c
250
atop(phys_seg_list[i].ps_avail_start),
sys/arch/m68k/m68k/m68k_machdep.c
251
atop(phys_seg_list[i].ps_avail_end),
sys/arch/m68k/m68k/pmap_motorola.c
315
bank = uvm_physseg_find(atop((pa)), &pg);
sys/arch/m68k/m68k/pmap_motorola.c
547
npages = uimin(atop(M68K_MAX_KPTSIZE), maxproc+16);
sys/arch/m68k/m68k/pmap_motorola.c
583
atop(s), addr, addr + s));
sys/arch/mac68k/mac68k/machdep.c
256
uvm_page_physload(atop(avail_start), atop(high[i]),
sys/arch/mac68k/mac68k/machdep.c
257
atop(avail_start), atop(high[i]),
sys/arch/mac68k/mac68k/machdep.c
260
uvm_page_physload(atop(low[i]), atop(high[i]),
sys/arch/mac68k/mac68k/machdep.c
261
atop(low[i]), atop(high[i]),
sys/arch/mips/mips/cache.c
1111
uvmexp.ncolors = atop(mci->mci_pdcache_way_size);
sys/arch/mips/mips/cache.c
1521
atop(mci->mci_pdcache_size) / mci->mci_pdcache_ways;
sys/arch/mips/mips/cache.c
295
uvmexp.ncolors = atop(mci->mci_pdcache_size);
sys/arch/mips/mips/cache.c
379
atop(mci->mci_pdcache_size) / mci->mci_pdcache_ways;
sys/arch/mips/mips/mips_machdep.c
1864
n += atop(mem_clusters[i].size);
sys/arch/mips/mips/mips_machdep.c
2100
if (uvm_physseg_get_avail_start(bank) + atop(sz) <= atop(MIPS_PHYS_MASK))
sys/arch/mips/mips/mips_machdep.c
2109
if ((end - start) < atop(sz))
sys/arch/mips/mips/mips_machdep.c
2112
end -= atop(sz);
sys/arch/mips/mips/mips_machdep.c
2113
uvm_physseg_unplug(end, atop(sz));
sys/arch/mips/mips/mips_machdep.c
2319
paddr_t first = atop(segstart);
sys/arch/mips/mips/mips_machdep.c
2320
paddr_t last = atop(segend);
sys/arch/mips/mips/mips_machdep.c
2493
*colorp = atop(mdpg->mdpg_first.pv_va);
sys/arch/mips/mips/pmap_machdep.c
328
if (uvm_physseg_get_avail_start(bank) + npgs >= atop(MIPS_PHYS_MASK + 1)) {
sys/arch/mips/mips/vm_machdep.c
303
kva = uvm_km_alloc(phys_map, len, atop(uva) & uvmexp.colormask,
sys/arch/mips/mips/vm_machdep.c
305
KASSERT((atop(kva ^ uva) & uvmexp.colormask) == 0);
sys/arch/mipsco/mipsco/machdep.c
277
uvm_page_physload(atop(first), atop(last), atop(first), atop(last),
sys/arch/mmeye/mmeye/machdep.c
305
physmem = atop(IOM_RAM_SIZE);
sys/arch/mmeye/mmeye/machdep.c
306
kernend = atop(round_page(SH3_P1SEG_TO_PHYS(kernend)));
sys/arch/mmeye/mmeye/machdep.c
308
kernend, atop(IOM_RAM_BEGIN + IOM_RAM_SIZE),
sys/arch/mmeye/mmeye/machdep.c
309
kernend, atop(IOM_RAM_BEGIN + IOM_RAM_SIZE),
sys/arch/netwinder/netwinder/netwinder_machdep.c
770
uvm_page_physload(atop(istart),
sys/arch/netwinder/netwinder/netwinder_machdep.c
771
atop(istart + isize), atop(istart),
sys/arch/netwinder/netwinder/netwinder_machdep.c
772
atop(istart + isize), VM_FREELIST_ISADMA);
sys/arch/netwinder/netwinder/netwinder_machdep.c
783
uvm_page_physload(atop(start),
sys/arch/netwinder/netwinder/netwinder_machdep.c
784
atop(istart), atop(start),
sys/arch/netwinder/netwinder/netwinder_machdep.c
785
atop(istart), VM_FREELIST_DEFAULT);
sys/arch/netwinder/netwinder/netwinder_machdep.c
797
uvm_page_physload(atop(istart + isize),
sys/arch/netwinder/netwinder/netwinder_machdep.c
798
atop(end), atop(istart + isize),
sys/arch/netwinder/netwinder/netwinder_machdep.c
799
atop(end), VM_FREELIST_DEFAULT);
sys/arch/netwinder/netwinder/netwinder_machdep.c
802
uvm_page_physload(atop(start), atop(end),
sys/arch/netwinder/netwinder/netwinder_machdep.c
803
atop(start), atop(end), VM_FREELIST_DEFAULT);
sys/arch/netwinder/netwinder/netwinder_machdep.c
806
uvm_page_physload(atop(start), atop(end),
sys/arch/netwinder/netwinder/netwinder_machdep.c
807
atop(start), atop(end), VM_FREELIST_DEFAULT);
sys/arch/newsmips/newsmips/machdep.c
300
uvm_page_physload(atop(first), atop(last), atop(first), atop(last),
sys/arch/playstation2/playstation2/machdep.c
116
physmem = atop(PS2_MEMORY_SIZE);
sys/arch/playstation2/playstation2/machdep.c
140
uvm_page_physload(atop(start), atop(start + size),
sys/arch/playstation2/playstation2/machdep.c
141
atop(start), atop(start + size), VM_FREELIST_DEFAULT);
sys/arch/pmax/pmax/machdep.c
341
physmem += atop(mem_clusters[i].size);
sys/arch/powerpc/booke/booke_pmap.c
285
atop(avail[i].start),
sys/arch/powerpc/booke/booke_pmap.c
286
atop(avail[i].start + avail[i].size) - 1,
sys/arch/powerpc/booke/booke_pmap.c
287
atop(avail[i].start),
sys/arch/powerpc/booke/booke_pmap.c
288
atop(avail[i].start + avail[i].size) - 1,
sys/arch/powerpc/booke/booke_pmap.c
291
atop(avail[i].start),
sys/arch/powerpc/booke/booke_pmap.c
292
atop(avail[i].start + avail[i].size) - 1,
sys/arch/powerpc/booke/booke_pmap.c
293
atop(avail[i].start),
sys/arch/powerpc/booke/booke_pmap.c
294
atop(avail[i].start + avail[i].size) - 1,
sys/arch/powerpc/booke/e500_tlb.c
621
assoc, atop(epn),
sys/arch/powerpc/ibm4xx/pmap.c
223
bank = uvm_physseg_find(atop(pa), &pg);
sys/arch/powerpc/ibm4xx/pmap.c
235
bank = uvm_physseg_find(atop(pa), &pg);
sys/arch/powerpc/ibm4xx/pmap.c
434
uvm_page_physload(atop(mp->start), atop(mp->start + mp->size),
sys/arch/powerpc/ibm4xx/pmap.c
435
atop(mp->start), atop(mp->start + mp->size),
sys/arch/powerpc/oea/cpu_subr.c
522
uvm_page_recolor(atop(curcpu()->ci_ci.dcache_size / assoc));
sys/arch/powerpc/oea/pmap.c
2947
npgs = atop(size);
sys/arch/powerpc/oea/pmap.c
3383
paddr_t pfstart = atop(mp->start);
sys/arch/powerpc/oea/pmap.c
3384
paddr_t pfend = atop(mp->start + mp->size);
sys/arch/powerpc/oea/pmap.c
3394
pfend = atop(PMAP_DIRECT_MAPPED_LEN);
sys/arch/powerpc/oea/pmap.c
3397
pfstart = atop(PMAP_DIRECT_MAPPED_LEN);
sys/arch/powerpc/oea/pmap.c
3398
pfend = atop(mp->start + mp->size);
sys/arch/powerpc/powerpc/powerpc_machdep.c
890
if (atop(pa) < physmem) {
sys/arch/powerpc/powerpc/powerpc_machdep.c
902
return (atop(pa) < physmem) ? 0 : EFAULT;
sys/arch/powerpc/powerpc/powerpc_machdep.c
908
if (atop((paddr_t)va) < physmem) {
sys/arch/riscv/riscv/bus_space.c
407
return (atop(bpa + (offset << ((struct bus_space *)t)->bs_stride)) |
sys/arch/riscv/riscv/pmap_machdep.c
326
pm->pm_md.md_ppn = atop(KERN_VTOPHYS((vaddr_t)bootstrap_pde));
sys/arch/riscv/riscv/riscv_machdep.c
544
paddr_t first = atop(m->start);
sys/arch/riscv/riscv/riscv_machdep.c
545
paddr_t last = atop(m->end);
sys/arch/riscv/riscv/vm_machdep.c
224
kva = uvm_km_alloc(phys_map, len, atop(uva) & uvmexp.colormask,
sys/arch/riscv/riscv/vm_machdep.c
226
KASSERT((atop(kva ^ uva) & uvmexp.colormask) == 0);
sys/arch/riscv/riscv/vm_machdep.c
267
return (atop(pa) < physmem) ? 0 : EFAULT;
sys/arch/sh3/sh3/pmap.c
138
npage = atop(size);
sys/arch/sh3/sh3/pmap.c
152
uvm_physseg_unplug(atop(pa), npage);
sys/arch/sh3/sh3/vm_machdep.c
387
if (atop(pa) < uvm_physseg_get_start(uvm_physseg_get_first()) || PHYS_TO_VM_PAGE(pa) != NULL) {
sys/arch/shark/ofw/ofw.c
906
uvm_page_physload(atop(istart),
sys/arch/shark/ofw/ofw.c
907
atop(istart + isize), atop(istart),
sys/arch/shark/ofw/ofw.c
908
atop(istart + isize), VM_FREELIST_ISADMA);
sys/arch/shark/ofw/ofw.c
919
uvm_page_physload(atop(start),
sys/arch/shark/ofw/ofw.c
920
atop(istart), atop(start),
sys/arch/shark/ofw/ofw.c
921
atop(istart), VM_FREELIST_DEFAULT);
sys/arch/shark/ofw/ofw.c
933
uvm_page_physload(atop(istart + isize),
sys/arch/shark/ofw/ofw.c
934
atop(end), atop(istart + isize),
sys/arch/shark/ofw/ofw.c
935
atop(end), VM_FREELIST_DEFAULT);
sys/arch/shark/ofw/ofw.c
938
uvm_page_physload(atop(start), atop(end),
sys/arch/shark/ofw/ofw.c
939
atop(start), atop(end), VM_FREELIST_DEFAULT);
sys/arch/shark/ofw/ofw.c
942
uvm_page_physload(atop(start), atop(end),
sys/arch/shark/ofw/ofw.c
943
atop(start), atop(end), VM_FREELIST_DEFAULT);
sys/arch/sparc/sparc/iommu.c
412
pte = atop(pa) << IOPTE_PPNSHFT;
sys/arch/sparc/sparc/iommu.c
415
sc->sc_ptes[atop(dva - sc->sc_dvmabase)] = pte;
sys/arch/sparc/sparc/iommu.c
436
if ((sc->sc_ptes[atop(dva - base)] & IOPTE_V) == 0)
sys/arch/sparc/sparc/iommu.c
441
sc->sc_ptes[atop(dva - base)] = 0;
sys/arch/sparc/sparc/iommu.c
482
pte = atop(pa) << IOMMU_PPNSHIFT;
sys/arch/sparc/sparc/iommu.c
484
sta(sc->sc_ptes + atop(tva - sc->sc_dvmabase), ASI_BYPASS, pte);
sys/arch/sparc/sparc/pmap.c
1143
atop(pstart),
sys/arch/sparc/sparc/pmap.c
1144
atop(pend),
sys/arch/sparc/sparc/pmap.c
1145
atop(pstart),
sys/arch/sparc/sparc/pmap.c
1146
atop(pend), VM_FREELIST_DEFAULT);
sys/arch/sparc/sparc/pmap.c
1181
atop(pstart),
sys/arch/sparc/sparc/pmap.c
1182
atop(chop),
sys/arch/sparc/sparc/pmap.c
1183
atop(pstart),
sys/arch/sparc/sparc/pmap.c
1184
atop(chop),
sys/arch/sparc/sparc/pmap.c
1203
atop(pstart),
sys/arch/sparc/sparc/pmap.c
1204
atop(pend),
sys/arch/sparc/sparc/pmap.c
1205
atop(pstart),
sys/arch/sparc/sparc/pmap.c
1206
atop(pend), VM_FREELIST_DEFAULT);
sys/arch/sparc/sparc/pmap.c
1216
uvm_page_physload(atop(PMAP_BOOTSTRAP_VA2PA(cpi->ci_free_sva1)),
sys/arch/sparc/sparc/pmap.c
1217
atop(PMAP_BOOTSTRAP_VA2PA(cpi->ci_free_eva1)),
sys/arch/sparc/sparc/pmap.c
1218
atop(PMAP_BOOTSTRAP_VA2PA(cpi->ci_free_sva1)),
sys/arch/sparc/sparc/pmap.c
1219
atop(PMAP_BOOTSTRAP_VA2PA(cpi->ci_free_eva1)),
sys/arch/sparc/sparc/pmap.c
1222
uvm_page_physload(atop(PMAP_BOOTSTRAP_VA2PA(cpi->ci_free_sva2)),
sys/arch/sparc/sparc/pmap.c
1223
atop(PMAP_BOOTSTRAP_VA2PA(cpi->ci_free_eva2)),
sys/arch/sparc/sparc/pmap.c
1224
atop(PMAP_BOOTSTRAP_VA2PA(cpi->ci_free_sva2)),
sys/arch/sparc/sparc/pmap.c
1225
atop(PMAP_BOOTSTRAP_VA2PA(cpi->ci_free_eva2)),
sys/arch/sparc/sparc/pmap.c
5623
pteproto |= atop(pa) & PG_PFNUM;
sys/arch/sparc/sparc/pmap.c
5955
pteproto |= atop(pa) & PG_PFNUM;
sys/arch/sparc/sparc/pmap.c
6229
pteproto |= (atop(pa) << SRMMU_PPNSHIFT);
sys/arch/sparc/sparc/pmap.c
6543
pteproto |= (atop(pa & ~PMAP_TNC_SRMMU) << SRMMU_PPNSHIFT);
sys/arch/sparc/sparc/pmap.c
7034
pte = PG_V | PG_S | PG_W | PG_NC | (atop(pa) & PG_PFNUM);
sys/arch/sparc/sparc/pmap.c
7062
spte = PG_V | PG_S | (atop(src) & PG_PFNUM);
sys/arch/sparc/sparc/pmap.c
7069
dpte = PG_V | PG_S | PG_W | PG_NC | (atop(dst) & PG_PFNUM);
sys/arch/sparc64/sparc64/cpu.c
668
uvm_page_recolor(atop(bigcache)); /* XXX */
sys/arch/sparc64/sparc64/machdep.c
1528
return (atop(segs[i].ds_addr + off));
sys/arch/sparc64/sparc64/pmap.c
1019
atop(mp->start),
sys/arch/sparc64/sparc64/pmap.c
1020
atop(mp->start+mp->size),
sys/arch/sparc64/sparc64/pmap.c
1021
atop(mp->start),
sys/arch/sparc64/sparc64/pmap.c
1022
atop(mp->start+mp->size),
sys/arch/usermode/dev/vncfb.c
521
return atop(pa);
sys/arch/usermode/usermode/pmap.c
1009
slpn = atop(sva - VM_MIN_ADDRESS); /* V->L */
sys/arch/usermode/usermode/pmap.c
1010
elpn = atop(eva - VM_MIN_ADDRESS); /* V->L */
sys/arch/usermode/usermode/pmap.c
1072
slpn = atop(sva - VM_MIN_ADDRESS); /* V->L */
sys/arch/usermode/usermode/pmap.c
1073
elpn = atop(eva - VM_MIN_ADDRESS); /* V->L */
sys/arch/usermode/usermode/pmap.c
1101
lpn = atop(va - VM_MIN_ADDRESS); /* V->L */
sys/arch/usermode/usermode/pmap.c
1130
lpn = atop(va - VM_MIN_ADDRESS); /* V->L */
sys/arch/usermode/usermode/pmap.c
1292
ppn = atop(VM_PAGE_TO_PHYS(page));
sys/arch/usermode/usermode/pmap.c
1344
ppn = atop(VM_PAGE_TO_PHYS(page));
sys/arch/usermode/usermode/pmap.c
1369
ppn = atop(VM_PAGE_TO_PHYS(page));
sys/arch/usermode/usermode/pmap.c
1387
ppn = atop(VM_PAGE_TO_PHYS(page));
sys/arch/usermode/usermode/pmap.c
1400
ppn = atop(VM_PAGE_TO_PHYS(page));
sys/arch/usermode/usermode/pmap.c
176
kmem_k_start = (vaddr_t) PAGE_SIZE * (atop(_start) );
sys/arch/usermode/usermode/pmap.c
177
kmem_k_end = (vaddr_t) PAGE_SIZE * (atop(&etext) + 1);
sys/arch/usermode/usermode/pmap.c
440
uvm_page_physload(atop(0),
sys/arch/usermode/usermode/pmap.c
441
atop(free_end),
sys/arch/usermode/usermode/pmap.c
442
atop(free_start + fpos), /* mark used till fpos */
sys/arch/usermode/usermode/pmap.c
443
atop(free_end),
sys/arch/usermode/usermode/pmap.c
687
lpn = atop(va - VM_MIN_ADDRESS); /* V->L */
sys/arch/usermode/usermode/pmap.c
894
ppn = atop(pa);
sys/arch/usermode/usermode/pmap.c
895
lpn = atop(va - VM_MIN_ADDRESS); /* V->L */
sys/arch/usermode/usermode/vm_machdep.c
63
len = atop(len);
sys/arch/vax/vax/vm_machdep.c
257
len = atop(len);
sys/arch/x86/x86/cpu.c
293
tcolors = atop(cai->cai_totalsize);
sys/arch/x86/x86/hyperv.c
267
(atop(hyperv_ref_tsc.tsc_paddr) << MSR_HV_REFTSC_PGSHIFT);
sys/arch/x86/x86/hyperv.c
710
hc = (atop(hyperv_hypercall_ctx.hc_paddr) << MSR_HV_HYPERCALL_PGSHIFT) |
sys/arch/x86/x86/hyperv.c
842
(atop(hyperv_dma_get_paddr(&pd->simp_dma)) << MSR_HV_SIMP_PGSHIFT);
sys/arch/x86/x86/hyperv.c
850
(atop(hyperv_dma_get_paddr(&pd->siep_dma)) << MSR_HV_SIEFP_PGSHIFT);
sys/arch/x86/x86/pmap.c
3210
"(%#"PRIxPADDR")", __func__, va, pa, atop(pa));
sys/arch/x86/x86/pmap.c
4274
__func__, va, pa, atop(pa));
sys/arch/x86/x86/pmap.c
5227
__func__, va, oldpa, atop(pa));
sys/arch/x86/x86/pmap.c
6463
__func__, va, oldpa, atop(pa));
sys/arch/x86/x86/pmap.c
6633
__func__, va, pa, atop(pa));
sys/arch/x86/x86/x86_machdep.c
1183
if (uvm_physseg_get_avail_end(x) - uvm_physseg_get_avail_start(x) < atop(sz))
sys/arch/x86/x86/x86_machdep.c
1188
uvm_physseg_unplug(uvm_physseg_get_end(x) - atop(sz), atop(sz));
sys/arch/x86/x86/x86_machdep.c
716
new_physmem = physmem + atop(seg_end - seg_start);
sys/arch/x86/x86/x86_machdep.c
720
if (physmem >= atop(MBTOB(PHYSMEM_MAX_SIZE)))
sys/arch/x86/x86/x86_machdep.c
722
if (new_physmem > atop(MBTOB(PHYSMEM_MAX_SIZE))) {
sys/arch/x86/x86/x86_machdep.c
724
new_physmem = atop(MBTOB(PHYSMEM_MAX_SIZE));
sys/arch/x86/x86/x86_machdep.c
838
physmem += atop(cluster->size);
sys/arch/x86/x86/x86_machdep.c
871
physmem += atop(cluster->size);
sys/arch/x86/x86/x86_machdep.c
903
seg_start, tmp, (uint64_t)atop(seg_start),
sys/arch/x86/x86/x86_machdep.c
904
(uint64_t)atop(tmp));
sys/arch/x86/x86/x86_machdep.c
907
uvm_page_physload(atop(seg_start), atop(tmp), atop(seg_start),
sys/arch/x86/x86/x86_machdep.c
908
atop(tmp), x86_freelists[i].freelist);
sys/arch/x86/x86/x86_machdep.c
916
(uint64_t)atop(seg_start), (uint64_t)atop(seg_end));
sys/arch/x86/x86/x86_machdep.c
918
uvm_page_physload(atop(seg_start), atop(seg_end),
sys/arch/x86/x86/x86_machdep.c
919
atop(seg_start), atop(seg_end), VM_FREELIST_DEFAULT);
sys/arch/xen/x86/cpu.c
337
tcolors = atop(cai->cai_totalsize);
sys/arch/xen/xen/balloon.c
506
if (uvm_physseg_plug(atop(pa), 1, NULL) == false) {
sys/arch/xen/xen/hypervisor.c
269
.gpfn = atop(HYPERVISOR_shared_info_pa)
sys/arch/xen/xen/hypervisor.c
402
.gpfn = atop(HYPERVISOR_shared_info_pa)
sys/arch/xen/xen/xen_machdep.c
309
atop(xpmap_mtop(ptoa(xen_start_info.store_mfn)));
sys/arch/xen/xen/xen_machdep.c
311
atop(xpmap_mtop(ptoa(xen_start_info.console_mfn)));
sys/arch/xen/xen/xengnt.c
272
pages[i] = atop(uvm_vm_page_to_phys(pg));
sys/arch/xen/xen/xengnt.c
330
pages[gnt_nr_grant_frames] = atop(uvm_vm_page_to_phys(pg));
sys/arch/zaurus/zaurus/machdep.c
1113
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
sys/arch/zaurus/zaurus/machdep.c
1114
atop(physical_freestart), atop(physical_freeend),
sys/dev/dtv/dtv_scatter.c
139
return atop(pa);
sys/dev/hyperv/hvs.c
566
atop(ccb->ccb_dmap->dm_segs[i].ds_addr);
sys/dev/hyperv/if_hvn.c
1654
txd->txd_sgl[1 + i].gpa_page = atop(seg->ds_addr);
sys/dev/hyperv/if_hvn.c
2021
txd->txd_gpa.gpa_page = atop(pa);
sys/dev/hyperv/if_hvn.c
3995
rc->rc_gpa = atop(rc->rc_dmap->dm_segs[0].ds_addr);
sys/dev/hyperv/vmbus.c
1489
cmd.chm_txbr_pgcnt = atop(ch->ch_wrd.rd_size);
sys/dev/hyperv/vmbus.c
2065
int total = atop(buflen);
sys/dev/hyperv/vmbus.c
2084
frames[j++] = atop(addr);
sys/dev/ic/ssdfb.c
596
return atop(pa);
sys/dev/isa/isv.c
440
return atop(pa);
sys/dev/pci/bktr/bktr_os.c
811
return(atop(vtophys(bktr->bigbuf) + offset));
sys/dev/pci/if_iwi.c
2086
nsegs = atop((vaddr_t)fw+size-1) - atop((vaddr_t)fw) + 1;
sys/dev/usb/udl.c
715
#define PTOMMAP(paddr) atop(paddr)
sys/dev/video.c
2841
return atop(pa);
sys/kern/exec_subr.c
347
curproc->p_vmspace->vm_issize += atop(round_page(cmd->ev_len));
sys/kern/kern_proc.c
2847
ki->p_vm_vsize = atop(vm->vm_map.size);
sys/kern/kern_proc.c
2854
atop(vm->vm_map.size) - vm->vm_issize + vm->vm_ssize;
sys/kern/subr_physmap.c
144
const size_t maxsegs = atop(round_page(va + len) - trunc_page(va));
sys/kern/subr_physmap.c
169
maxsegs += atop(round_page(end) - trunc_page(start));
sys/kern/subr_physmap.c
325
atop(pa) & uvmexp.colormask,
sys/kern/subr_pool.c
1822
return atop(total);
sys/kern/uipc_socket.c
229
lva = uvm_km_alloc(kernel_map, len, atop(sva) & uvmexp.colormask,
sys/kern/vfs_bio.c
491
use_std = (physmem < atop(16*1024*1024));
sys/miscfs/genfs/genfs_io.c
1928
kva = uvm_km_alloc(kernel_map, klen, atop(puva) & uvmexp.colormask,
sys/modules/examples/mapper/mapper.c
112
return (paddr_t)atop(pa);
sys/uvm/pmap/pmap.c
2182
colors |= __BIT(atop(pv->pv_va) & colormask);
sys/uvm/pmap/pmap.c
579
npgs = atop(size);
sys/uvm/pmap/pmap.c
629
uvm_physseg_unplug(atop(pa), npgs);
sys/uvm/uvm_amap.c
853
if (canchunk && atop(len) >= UVM_AMAP_LARGE) {
sys/uvm/uvm_map.c
1793
vaddr_t hint = atop(*start);
sys/uvm/uvm_map.c
2772
atop(start) & uvmexp.colormask, &dstaddr,
sys/uvm/uvm_map.c
2775
KASSERT((atop(start ^ dstaddr) & uvmexp.colormask) == 0);
sys/uvm/uvm_map.c
3822
if (atop(size) + uvmexp.wired > uvmexp.wiredmax) {
sys/uvm/uvm_mmap.c
785
if (atop(size) + uvmexp.wired > uvmexp.wiredmax)
sys/uvm/uvm_mmap.c
994
if (atop(size) + uvmexp.wired > uvmexp.wiredmax ||
sys/uvm/uvm_page.c
1155
color = atop(off) & uvmexp.colormask;
sys/uvm/uvm_page.c
2002
return (uvm_physseg_find(atop(pa), NULL) != UVM_PHYSSEG_TYPE_INVALID);
sys/uvm/uvm_page.c
2014
upm = uvm_physseg_find(atop(VM_PAGE_TO_PHYS(pg)), NULL);
sys/uvm/uvm_page.c
552
uvmexp.bootpages += atop(size);
sys/uvm/uvm_page.c
814
nb = atop(VM_PAGE_TO_PHYS(pg))
sys/uvm/uvm_page.h
416
(atop(VM_PAGE_TO_PHYS((pg))) & uvmexp.colormask)
sys/uvm/uvm_pglist.c
127
low = atop(low);
sys/uvm/uvm_pglist.c
128
high = atop(high);
sys/uvm/uvm_pglist.c
141
alignment = atop(alignment);
sys/uvm/uvm_pglist.c
318
acnt = atop(alignment);
sys/uvm/uvm_pglist.c
337
upm = uvm_physseg_find(atop(pa), &off);
sys/uvm/uvm_pglist.c
540
low = atop(low);
sys/uvm/uvm_pglist.c
541
high = atop(high);
sys/uvm/uvm_pglist.c
709
num = atop(round_page(size));
sys/uvm/uvm_physseg.c
1155
if (atop(paddr) >= seg->avail_start &&
sys/uvm/uvm_physseg.c
1156
atop(paddr) < seg->avail_end) {
sys/uvm/uvm_physseg.c
964
paddr_t pframe = atop(pa);
sys/uvm/uvm_physseg.c
973
paddr_t pf = atop(pa);
sys/uvm/uvm_unix.c
119
vm->vm_dsize += atop(nbreak - obreak);
sys/uvm/uvm_unix.c
122
vm->vm_dsize -= atop(obreak - nbreak);
tests/sys/uvm/t_uvm_physseg.c
1659
ATF_CHECK_EQ(true, uvm_physseg_set_start_hint(upm, atop(128)));
tests/sys/uvm/t_uvm_physseg.c
1662
ATF_CHECK_EQ(atop(128), uvm_physseg_get_start_hint(upm));
tests/sys/uvm/t_uvm_physseg.c
1685
ATF_CHECK_EQ(false, uvm_physseg_set_start_hint(upm, atop(128)));
tests/sys/uvm/t_uvm_physseg.c
1836
result = uvm_physseg_find(atop(ONE_MEGABYTE - 1024), NULL);
tests/sys/uvm/t_uvm_physseg.c
1852
result = uvm_physseg_find(atop(ONE_MEGABYTE + 8192), &offset);
tests/sys/uvm/t_uvm_physseg.c
1868
result = uvm_physseg_find(atop(ONE_MEGABYTE - 12288), &offset);
tests/sys/uvm/t_uvm_physseg.c
1906
uvm_physseg_find(atop(ONE_MEGABYTE * 3), NULL));
tests/sys/uvm/t_uvm_physseg.c
1912
uvm_physseg_find(atop(ONE_MEGABYTE * 3), &offset));
tests/sys/uvm/t_uvm_physseg.c
1953
ATF_CHECK_EQ(VALID_START_PFN_2, atop(p));
tests/sys/uvm/t_uvm_physseg.c
2004
ATF_CHECK_EQ(VALID_END_PFN_2 - 1, atop(p));
tests/sys/uvm/t_uvm_physseg.c
205
#define VALID_START_PFN_1 atop(0)
tests/sys/uvm/t_uvm_physseg.c
206
#define VALID_END_PFN_1 atop(ONE_MEGABYTE)
tests/sys/uvm/t_uvm_physseg.c
207
#define VALID_AVAIL_START_PFN_1 atop(0)
tests/sys/uvm/t_uvm_physseg.c
208
#define VALID_AVAIL_END_PFN_1 atop(ONE_MEGABYTE)
tests/sys/uvm/t_uvm_physseg.c
210
#define VALID_START_PFN_2 atop(ONE_MEGABYTE + 1)
tests/sys/uvm/t_uvm_physseg.c
211
#define VALID_END_PFN_2 atop(ONE_MEGABYTE * 2)
tests/sys/uvm/t_uvm_physseg.c
212
#define VALID_AVAIL_START_PFN_2 atop(ONE_MEGABYTE + 1)
tests/sys/uvm/t_uvm_physseg.c
2121
ATF_CHECK_EQ(VALID_END_PFN_1 - 1, atop(p));
tests/sys/uvm/t_uvm_physseg.c
213
#define VALID_AVAIL_END_PFN_2 atop(ONE_MEGABYTE * 2)
tests/sys/uvm/t_uvm_physseg.c
215
#define VALID_START_PFN_3 atop((ONE_MEGABYTE * 2) + 1)
tests/sys/uvm/t_uvm_physseg.c
216
#define VALID_END_PFN_3 atop(ONE_MEGABYTE * 3)
tests/sys/uvm/t_uvm_physseg.c
217
#define VALID_AVAIL_START_PFN_3 atop((ONE_MEGABYTE * 2) + 1)
tests/sys/uvm/t_uvm_physseg.c
218
#define VALID_AVAIL_END_PFN_3 atop(ONE_MEGABYTE * 3)
tests/sys/uvm/t_uvm_physseg.c
2180
ATF_CHECK_EQ(VALID_START_PFN_1, atop(p));
tests/sys/uvm/t_uvm_physseg.c
2186
ATF_CHECK_EQ(VALID_START_PFN_1 + 1, atop(p));
tests/sys/uvm/t_uvm_physseg.c
220
#define VALID_START_PFN_4 atop((ONE_MEGABYTE * 3) + 1)
tests/sys/uvm/t_uvm_physseg.c
221
#define VALID_END_PFN_4 atop(ONE_MEGABYTE * 4)
tests/sys/uvm/t_uvm_physseg.c
222
#define VALID_AVAIL_START_PFN_4 atop((ONE_MEGABYTE * 3) + 1)
tests/sys/uvm/t_uvm_physseg.c
223
#define VALID_AVAIL_END_PFN_4 atop(ONE_MEGABYTE * 4)
tests/sys/uvm/t_uvm_physseg.c
2276
ATF_CHECK_EQ(i, atop(p));
tests/sys/uvm/t_uvm_physseg.c
554
ATF_REQUIRE_EQ(true, uvm_physseg_plug(atop(0), atop(ONE_MEGABYTE), NULL));
tests/sys/uvm/t_uvm_physseg.c
557
uvm_physseg_find(atop(TWOFIFTYSIX_KILO), &pa);
tests/sys/uvm/t_uvm_physseg.c
558
ATF_REQUIRE_EQ(pa, atop(TWOFIFTYSIX_KILO));
tests/sys/uvm/t_uvm_physseg.c
575
ATF_REQUIRE_EQ(true, uvm_physseg_unplug(atop(TWOFIFTYSIX_KILO), atop(FIVEONETWO_KILO)));
tests/sys/uvm/t_uvm_physseg.c
578
uvm_physseg_find(atop(TWOFIFTYSIX_KILO), &pa);
tests/sys/uvm/t_uvm_physseg.c
584
ATF_CHECK_EQ(atop(FIVEONETWO_KILO), uvmexp.npages);
tests/sys/uvm/t_uvm_physseg.c
589
upm = uvm_physseg_find(atop(TWOFIFTYSIX_KILO + FIVEONETWO_KILO), NULL);
tests/sys/uvm/t_uvm_physseg.c
594
ATF_REQUIRE_EQ(true, uvm_physseg_unplug(atop(TWOFIFTYSIX_KILO + FIVEONETWO_KILO), atop(TWOFIFTYSIX_KILO)));
tests/sys/uvm/t_uvm_physseg.c
603
ATF_REQUIRE_EQ(true, uvm_physseg_unplug(atop(ONETWENTYEIGHT_KILO), atop(ONETWENTYEIGHT_KILO)));
tests/sys/uvm/t_uvm_physseg.c
608
ATF_REQUIRE_EQ(true, uvm_physseg_unplug(0, atop(SIXTYFOUR_KILO)));
tests/sys/uvm/t_uvm_physseg.c
614
ATF_REQUIRE_EQ(true, uvm_physseg_unplug(atop(SIXTYFOUR_KILO), atop(SIXTYFOUR_KILO)));
tests/sys/uvm/t_uvm_physseg_load.c
178
#define VALID_START_PFN_1 atop(0)
tests/sys/uvm/t_uvm_physseg_load.c
179
#define VALID_END_PFN_1 atop(ONE_MEGABYTE)
tests/sys/uvm/t_uvm_physseg_load.c
180
#define VALID_AVAIL_START_PFN_1 atop(0)
tests/sys/uvm/t_uvm_physseg_load.c
181
#define VALID_AVAIL_END_PFN_1 atop(ONE_MEGABYTE)
tests/sys/uvm/t_uvm_physseg_load.c
183
#define VALID_START_PFN_2 atop(ONE_MEGABYTE + 1)
tests/sys/uvm/t_uvm_physseg_load.c
184
#define VALID_END_PFN_2 atop(ONE_MEGABYTE * 2)
tests/sys/uvm/t_uvm_physseg_load.c
185
#define VALID_AVAIL_START_PFN_2 atop(ONE_MEGABYTE + 1)
tests/sys/uvm/t_uvm_physseg_load.c
186
#define VALID_AVAIL_END_PFN_2 atop(ONE_MEGABYTE * 2)
tests/sys/uvm/t_uvm_physseg_load.c
188
#define VALID_START_PFN_3 atop((ONE_MEGABYTE * 2) + 1)
tests/sys/uvm/t_uvm_physseg_load.c
189
#define VALID_END_PFN_3 atop(ONE_MEGABYTE * 3)
tests/sys/uvm/t_uvm_physseg_load.c
190
#define VALID_AVAIL_START_PFN_3 atop((ONE_MEGABYTE * 2) + 1)
tests/sys/uvm/t_uvm_physseg_load.c
191
#define VALID_AVAIL_END_PFN_3 atop(ONE_MEGABYTE * 3)
tests/sys/uvm/t_uvm_physseg_load.c
193
#define VALID_START_PFN_4 atop(ONE_MEGABYTE + 1)
tests/sys/uvm/t_uvm_physseg_load.c
194
#define VALID_END_PFN_4 atop(ONE_MEGABYTE * 128)
tests/sys/uvm/t_uvm_physseg_load.c
195
#define VALID_AVAIL_START_PFN_4 atop(ONE_MEGABYTE + 1)
tests/sys/uvm/t_uvm_physseg_load.c
196
#define VALID_AVAIL_END_PFN_4 atop(ONE_MEGABYTE * 128)
tests/sys/uvm/t_uvm_physseg_load.c
198
#define VALID_START_PFN_5 atop(ONE_MEGABYTE + 1)
tests/sys/uvm/t_uvm_physseg_load.c
199
#define VALID_END_PFN_5 atop(ONE_MEGABYTE * 256)
tests/sys/uvm/t_uvm_physseg_load.c
200
#define VALID_AVAIL_START_PFN_5 atop(ONE_MEGABYTE + 1)
tests/sys/uvm/t_uvm_physseg_load.c
201
#define VALID_AVAIL_END_PFN_5 atop(ONE_MEGABYTE * 256)
tests/sys/uvm/t_uvm_physseg_load.c
284
paddr_t pf = atop(pa);