Home
last modified time | relevance | path

Searched refs:mmu_ptob (Results 1 – 25 of 45) sorted by relevance

12

/titanic_41/usr/src/uts/sun4u/os/
H A Dcpr_impl.c673 mmu_ptob(NHMENTS), mmu_ptob(NHMENTS), in i_cpr_map_setup()
720 vmem_free(heap_arena, cpr_vaddr, mmu_ptob(NHMENTS)); in i_cpr_map_destroy()
858 mmu_ptob(i_cpr_storage_data_sz)); in i_cpr_save_sensitive_kpages()
872 addr + mmu_ptob(i_cpr_storage_data_sz); in i_cpr_save_sensitive_kpages()
973 addr = kmem_alloc(mmu_ptob(*alloc_pages), KM_NOSLEEP); in i_cpr_storage_data_alloc()
985 mmu_ptob(i_cpr_storage_desc_pgcnt)); in i_cpr_storage_free()
994 mmu_ptob(i_cpr_storage_data_sz)); in i_cpr_storage_free()
1076 test_usum = checksum32(CPR->c_mapping_area, mmu_ptob(pages)); in i_cpr_compress_and_save()
1142 (size_t)mmu_ptob(i_cpr_storage_desc_pgcnt), in i_cpr_count_storage_pages()
1147 (size_t)mmu_ptob(i_cpr_storage_data_sz), in i_cpr_count_storage_pages()
[all …]
/titanic_41/usr/src/uts/sun4v/vm/
H A Dmach_kpm.c246 hat_devload(kas.a_hat, kpm_vbase + mmu_ptob(base), in hat_kpm_addmem_mseg_update()
247 mmu_ptob(end - base), base, PROT_READ | PROT_WRITE, in hat_kpm_addmem_mseg_update()
287 hat_unload(kas.a_hat, kpm_vbase + mmu_ptob(base), mmu_ptob(end - base), in hat_kpm_delmem_mseg_update()
/titanic_41/usr/src/lib/libbc/inc/include/sun4/
H A Dparam.h122 #define mmu_ptob(x) ((x) << MMU_PAGESHIFT) macro
186 #define ctob(x) mmu_ptob(x)
/titanic_41/usr/src/psm/stand/cpr/sparcv9/sun4u/
H A Dpages.c84 dst_off = mmu_ptob(dst_ppn - sfile.low_ppn); in shuffle_pages()
157 len = mmu_ptob(descp->cpd_pages); in kdata_cksum()
205 size = mmu_ptob(descp->cpd_pages); in restore_page_group()
/titanic_41/usr/src/uts/common/cpr/
H A Dcpr_dump.c157 cpr_pagedata_size = mmu_ptob(CPR_MAXCONTIG + 1); in cpr_alloc_bufs()
249 mmu_ptob(cdump.cdd_dumppgsize + bitmap_pages); in cpr_write_header()
709 kas_cnt, mmu_ptob(kas_cnt)); in cpr_count_kpages()
828 dcnt, mmu_ptob(dcnt)); in cpr_count_upages()
848 nbytes = mmu_ptob(pages); in cpr_compress_pages()
930 STAT->cs_dumped_statefsz += mmu_ptob(npg); in cpr_compress_and_write()
1180 count, mmu_ptob(count)); in cpr_count_volatile_pages()
H A Dcpr_misc.c657 ksize = ndvram + mmu_ptob(npages); in cpr_statefile_ok()
661 nback = mmu_ptob(STAT->cs_nosw_pages); in cpr_statefile_ok()
/titanic_41/usr/src/uts/i86pc/os/
H A Dstartup.c1189 uint64_t kpm_resv_amount = mmu_ptob(physmax + 1); in startup_memlist()
1191 if (kpm_resv_amount < mmu_ptob(plat_dr_physmax)) { in startup_memlist()
1192 kpm_resv_amount = mmu_ptob(plat_dr_physmax); in startup_memlist()
1785 kpm_size = ROUND_UP_LPAGE(mmu_ptob(plat_dr_physmax)); in layout_kernel_va()
1787 kpm_size = ROUND_UP_LPAGE(mmu_ptob(physmax + 1)); in layout_kernel_va()
1800 size_t sz = mmu_ptob(segkpsize); in layout_kernel_va()
1811 sz = MIN(sz, MAX(SEGKPMINSIZE, mmu_ptob(physmem))); in layout_kernel_va()
1830 size_t physmem_size = mmu_ptob(physmem); in layout_kernel_va()
1832 physmem_size : mmu_ptob(segziosize); in layout_kernel_va()
1851 ROUND_UP_LPAGE((uintptr_t)segzio_base + mmu_ptob(segziosize)); in layout_kernel_va()
[all …]
H A Dmemscrub.c359 if (address + mmu_ptob(pages) >= mlp_last_addr) { in memscrubber()
369 mlp_next_addr += mmu_ptob(pages); in memscrubber()
H A Dxpv_platform.c167 msrval = mmu_ptob(pfn); in xen_hvm_init()
H A Dfastboot.c521 start_addr_pa = mmu_ptob((uint64_t)hat_getpfnum(kas.a_hat, in fastboot_build_mbi()
1072 fb->fb_pte_list_pa = mmu_ptob((uint64_t)hat_getpfnum(kas.a_hat, in fastboot_load_kernel()
1079 paddr = mmu_ptob((uint64_t)hat_getpfnum(kas.a_hat, in fastboot_load_kernel()
1262 mmu_ptob((uint64_t)hat_getpfnum(kas.a_hat, in fastboot_load_kernel()
H A Dmp_implfuncs.c234 hat_devload(kas.a_hat, cvaddr, mmu_ptob(npages), mmu_btop(base), in psm_map_phys_new()
/titanic_41/usr/src/uts/i86pc/vm/
H A Dhat_pte.h159 #define MAKECR3(pfn) mmu_ptob(pfn)
286 #define pfn_to_pa(pfn) (mmu_ptob((paddr_t)(pfn)))
H A Dhat_kdi.c230 pte = kdi_ptom(mmu_ptob(mmu_btop(pa))) | PT_VALID; in kdi_prw()
H A Di86_mmu.c71 addr1 = addr = vmem_alloc(heap_arena, mmu_ptob(pgcnt), VM_SLEEP); in i86devmap()
/titanic_41/usr/src/cmd/mdb/i86pc/modules/unix/
H A Di86mmu.c327 return (mmu_ptob((paddr_t)pfn) | (ma & (MMU_PAGESIZE - 1))); in mdb_ma_to_pa()
548 paddr_t paddr = mmu_ptob((paddr_t)htable->ht_pfn); in get_pte()
784 paddr = mmu_ptob((physaddr_t)htable.ht_pfn); in do_report_maps()
925 paddr = mmu_ptob((physaddr_t)pfn); in do_ptable_dcmd()
/titanic_41/usr/src/uts/i86pc/io/gfx_private/
H A Dgfxp_devmap.c139 dhp->dh_len = mmu_ptob(mmu_btopr(length)); in gfxp_map_devmem()
H A Dgfxp_vm.c104 if (start == mmu_ptob(mmu_btop(getcr3()))) in gfxp_map_kernel_space()
/titanic_41/usr/src/uts/sun4/os/
H A Dstartup.c2010 size_t physmem_b = mmu_ptob(physmem); in startup_vm()
2016 size = mmu_ptob(segziosize); in startup_vm()
2041 va += mmu_ptob(segziosize); in startup_vm()
2054 (void) seg_attach(&kas, segzio_base, mmu_ptob(segziosize), in startup_vm()
2059 segkmem_zio_init(segzio_base, mmu_ptob(segziosize)); in startup_vm()
2120 i = mmu_ptob((freemem * segmap_percent) / 100); in startup_vm()
2125 if (i > MIN(SEGMAPSIZE, mmu_ptob(freemem))) in startup_vm()
2126 i = MIN(SEGMAPSIZE, mmu_ptob(freemem)); in startup_vm()
/titanic_41/usr/src/uts/i86xpv/boot/
H A Dboot_xconsole.c89 mmu_ptob((x86pte_t)xen_info->console.domU.mfn) | PTE_BITS, in bcons_init_xen()
/titanic_41/usr/src/uts/common/sys/
H A Dparam.h419 #define mmu_ptob(x) ((x) << MMU_PAGESHIFT) macro
/titanic_41/usr/src/uts/common/avs/ns/
H A Dcontract.h192 int mmu_ptob(void arg) { } in mmu_ptob() function
/titanic_41/usr/src/uts/i86xpv/os/
H A Dmp_xen.c301 pa_to_ma(mmu_ptob(kas.a_hat->hat_htable->ht_pfn)); in mp_set_cpu_context()
353 mmu_ptob(hat_getpfnum(kas.a_hat, (caddr_t)cp->cpu_gdt)); in mach_cpucontext_alloc()
/titanic_41/usr/src/uts/i86xpv/io/
H A Dprivcmd.c174 addr + mmu_ptob(mme->npages) > seg->s_base + seg->s_size) in do_privcmd_mmap()
/titanic_41/usr/src/uts/common/vm/
H A Dpage_retire.c493 pa = mmu_ptob((uint64_t)pp->p_pagenum); in page_retire_done()
1131 " page 0x%08x.%08x", mmu_ptob((uint64_t)pp->p_pagenum)); in page_unretire_pp()
/titanic_41/usr/src/uts/sun4u/starfire/cvc/
H A Dcvc.c1166 hat_devload(kas.a_hat, cvaddr, mmu_ptob(num_pages), pfn, in cvc_iobuf_mapin()
1196 hat_unload(kas.a_hat, cvaddr, mmu_ptob(num_pages), HAT_UNLOAD_UNLOCK); in cvc_iobuf_mapout()

12