/titanic_44/usr/src/psm/stand/cpr/sparcv9/sun4u/ |
H A D | cprboot.h | 67 #define CB_MAX_KPAGES mmu_btop(CPR_MAX_BLOCK) 112 #define SF_BUF_PPN(off) *(sfile.buf_map + mmu_btop(off)) 113 #define SF_ORIG_PPN(off) sfile.low_ppn + mmu_btop(off)
|
H A D | bitmap.c | 240 for (pages = mmu_btop(size); pages--; virt += MMU_PAGESIZE) { in map_free_phys() 386 pages = mmu_btop(sfile.size); in cb_tracking_setup() 438 ppn, ppn + mmu_btop(size) - 1, err)); in cb_get_physavail() 487 pages = mmu_btop(pap->size); in cb_get_physavail() 596 str, ppn, ppn + mmu_btop(CB_STACK_SIZE) - 1)); in cb_relocate()
|
H A D | cprboot.c | 390 sfile.high_ppn = sfile.low_ppn + mmu_btop(sfile.size) - 1; in cb_read_statefile() 450 str, mmu_btop(len), in cb_read_statefile()
|
/titanic_44/usr/src/uts/i86pc/vm/ |
H A D | i86_mmu.c | 179 pfn += mmu_btop(des_va - va); in va_to_pfn() 209 window_size = mmu_btop(map_len) * mmu.pte_size; in hat_kmap_init() 278 pfn_t gdtpfn = mmu_btop(CPU->cpu_m.mcpu_gdtpa); in xen_kpm_finish_init() 494 mmu_btop(xen_info->pt_base - ONE_GIG)); in hat_kern_setup() 496 mmu_btop(getcr3())); in hat_kern_setup()
|
H A D | hat_kdi.c | 119 ulong_t mfn = mfn_list[mmu_btop(pa)]; in kdi_ptom() 170 pfn += mmu_btop(va - vaddr); in kdi_vtop() 230 pte = kdi_ptom(mmu_ptob(mmu_btop(pa))) | PT_VALID; in kdi_prw()
|
H A D | vm_machdep.c | 362 #define PFN_16M (mmu_btop((uint64_t)0x1000000)) 1119 lo = mmu_btop((mattr->dma_attr_addr_lo + MMU_PAGEOFFSET)); in page_get_contigpage() 1120 hi = mmu_btop(mattr->dma_attr_addr_hi); in page_get_contigpage() 1124 pfnseg = mmu_btop(mattr->dma_attr_seg); in page_get_contigpage() 1128 pfnalign = mmu_btop(align); in page_get_contigpage() 2545 lo_mfn = mmu_btop(mattr->dma_attr_addr_lo); in page_io_pool_alloc() 2546 hi_mfn = mmu_btop(mattr->dma_attr_addr_hi); in page_io_pool_alloc() 2547 pfnseg = mmu_btop(mattr->dma_attr_seg); in page_io_pool_alloc() 2550 pfnalign = mmu_btop(align); in page_io_pool_alloc() 2816 lo_mfn = mmu_btop(mattr->dma_attr_addr_lo); in page_get_contigpages() [all …]
|
H A D | hat_i86.c | 571 mmu.highest_pfn = mmu_btop((1ull << pa_bits) - 1); in mmu_init() 1033 t[0].arg1.mfn = mmu_btop(pa_to_ma(newcr3)); in hat_switch() 1042 t[1].arg1.mfn = mmu_btop(pa_to_ma(newcr3)); in hat_switch() 1507 pgcnt_t pg_off = mmu_btop(va - mmu.kmap_addr); in hat_kmap_load() 1681 for (i = 0; i < mmu_btop(pgsize); ++i) { in hat_memload_array() 1690 if (i == mmu_btop(pgsize)) { in hat_memload_array() 1717 pgindx += mmu_btop(pgsize); in hat_memload_array() 1798 IS_P2ALIGNED(pfn, mmu_btop(pgsize))) { in hat_devload() 1859 pfn += mmu_btop(pgsize); in hat_devload() 2288 pg_index = mmu_btop(va - mmu.kmap_addr); in hat_kmap_unload() [all …]
|
/titanic_44/usr/src/uts/i86pc/io/gfx_private/ |
H A D | gfxp_devmap.c | 133 pfn = xen_assign_pfn(mmu_btop(maddr)); in gfxp_map_devmem() 135 pfn = mmu_btop(maddr); in gfxp_map_devmem()
|
H A D | gfxp_vm.c | 104 if (start == mmu_ptob(mmu_btop(getcr3()))) in gfxp_map_kernel_space() 124 pfn = xen_assign_pfn(mmu_btop(base)); in gfxp_map_kernel_space()
|
/titanic_44/usr/src/uts/i86xpv/os/ |
H A D | xen_mmu.c | 193 sz2 = P2ROUNDUP(mmu_btop(sz) * sizeof (mfn_t), MMU_PAGESIZE); in xen_relocate_start_info() 198 j = mmu_btop(off); in xen_relocate_start_info() 377 mfn_t mfn = pfn_to_mfn(mmu_btop(pa)); in pa_to_ma() 390 pfn_t pfn = mfn_to_pfn(mmu_btop(ma)); in ma_to_pa()
|
H A D | xen_machdep.c | 363 size_t j = mmu_btop(off); in rebuild_mfn_list() 1134 err = xen_kpm_page(mmu_btop(cp->cpu_m.mcpu_gdtpa), pt_bits); in xen_gdt_setprot() 1165 npgs = mmu_btop(lsize); in xen_ldt_setprot()
|
/titanic_44/usr/src/uts/i86pc/os/ |
H A D | pci_cfgacc_x86.c | 64 phys_addr = pfn_to_pa(xen_assign_pfn(mmu_btop(phys_addr))) | in pci_cfgacc_map() 68 pfn_t pfn = mmu_btop(phys_addr); in pci_cfgacc_map()
|
H A D | memscrub.c | 360 pages = mmu_btop(mlp_last_addr - address); in memscrubber() 548 memscrub_phys_pages += mmu_btop(bytes); in memscrub_add_span()
|
H A D | mp_implfuncs.c | 222 base = pfn_to_pa(xen_assign_pfn(mmu_btop(addr))) | in psm_map_phys_new() 234 hat_devload(kas.a_hat, cvaddr, mmu_ptob(npages), mmu_btop(base), in psm_map_phys_new()
|
H A D | fastboot.c | 1208 MMU_PAGESIZE, mmu_btop(fb->fb_dest_pa), in fastboot_load_kernel() 1305 MMU_PAGESIZE, mmu_btop(fb->fb_dest_pa), in fastboot_xc_func() 1317 MMU_PAGESIZE, mmu_btop(fb->fb_dest_pa), in fastboot_xc_func() 1351 MMU_PAGESIZE, mmu_btop(fb->fb_dest_pa), in fast_reboot()
|
H A D | startup.c | 224 #define PHYSMEM_MAX64 mmu_btop(64 * TERABYTE) 1187 if (physmax + 1 > mmu_btop(TERABYTE) || in startup_memlist() 1188 plat_dr_physmax > mmu_btop(TERABYTE)) { in startup_memlist() 1809 mmu_btop(sz)); in layout_kernel_va() 1813 segkpsize = mmu_btop(ROUND_UP_LPAGE(sz)); in layout_kernel_va() 1841 segziosize = mmu_btop(ROUND_UP_LPAGE(size)); in layout_kernel_va()
|
/titanic_44/usr/src/uts/sun4/io/px/ |
H A D | px_pec.c | 105 *pfnbp = mmu_btop(rng_addr); in px_pec_attach() 106 *pfnlp = mmu_btop(rng_addr + rng_size); in px_pec_attach()
|
/titanic_44/usr/src/lib/libbc/inc/include/sun4/ |
H A D | param.h | 123 #define mmu_btop(x) (((unsigned)(x)) >> MMU_PAGESHIFT) macro
|
/titanic_44/usr/src/cmd/mdb/i86pc/modules/unix/ |
H A D | i86mmu.c | 323 pfn_t pfn = mdb_mfn_to_pfn(mmu_btop(ma)); in mdb_ma_to_pa() 395 mfn = mmu_btop(pte & PT_PADDR_LGPG); in pte2mfn() 397 mfn = mmu_btop(pte & PT_PADDR); in pte2mfn() 814 if (mmu_btop(mdb_ma_to_pa(pte)) != pfn) in do_report_maps()
|
/titanic_44/usr/src/uts/sun4u/io/pci/ |
H A D | pci_pbm.c | 108 pbm_p->pbm_base_pfn = mmu_btop(base_addr); in pbm_create() 109 pbm_p->pbm_last_pfn = mmu_btop(last_addr); in pbm_create()
|
/titanic_44/usr/src/uts/sun4u/os/ |
H A D | cpr_impl.c | 1522 npages = mmu_btop(pmem->ml_size); in i_cpr_find_ppages() 1523 ppn = mmu_btop(pmem->ml_address); in i_cpr_find_ppages() 1578 npages = mmu_btop(pmem->ml_size); in i_cpr_find_ppages() 1579 ppn = mmu_btop(pmem->ml_address); in i_cpr_find_ppages() 1879 dp->cbd_spfn = mmu_btop(pmem->ml_address); in i_cpr_bitmap_setup() 1880 dp->cbd_epfn = mmu_btop(pmem->ml_address + pmem->ml_size) - 1; in i_cpr_bitmap_setup()
|
H A D | ppage.c | 108 ppmap_pages = mmu_btop(shm_alignment); in ppmapinit() 121 nsets = mmu_btop(PPMAPSIZE); in ppmapinit()
|
H A D | ecc.c | 262 page_t *pp = page_numtopp_nolock(mmu_btop(pa)); in ecc_page_zero()
|
/titanic_44/usr/src/uts/common/vm/ |
H A D | page_retire.c | 1037 pp = page_numtopp_nolock(mmu_btop(pa)); in page_retire() 1184 pp = page_numtopp_nolock(mmu_btop(pa)); in page_unretire() 1250 pp = page_numtopp_nolock(mmu_btop(pa)); in page_retire_check()
|
/titanic_44/usr/src/uts/sun4v/vm/ |
H A D | mach_kpm.c | 64 end - start, mmu_btop(start), in mach_kpm_init()
|