/titanic_41/usr/src/lib/libbc/inc/include/sun4/ |
H A D | param.h | 101 #define MMU_PAGESHIFT 13 /* log2(MMU_PAGESIZE) */ macro 122 #define mmu_ptob(x) ((x) << MMU_PAGESHIFT) 123 #define mmu_btop(x) (((unsigned)(x)) >> MMU_PAGESHIFT) 124 #define mmu_btopr(x) ((((unsigned)(x) + MMU_PAGEOFFSET) >> MMU_PAGESHIFT)) 136 #define mmu_ptod(x) ((x) << (MMU_PAGESHIFT - DEV_BSHIFT)) 194 #define PGSHIFT MMU_PAGESHIFT
|
/titanic_41/usr/src/uts/sun4u/vm/ |
H A D | mach_vm_dep.c | 83 {MMU_PAGESIZE, MMU_PAGESHIFT, 0, MMU_PAGESIZE >> MMU_PAGESHIFT}, 85 MMU_PAGESIZE64K >> MMU_PAGESHIFT}, 87 MMU_PAGESIZE512K >> MMU_PAGESHIFT}, 88 {MMU_PAGESIZE4M, MMU_PAGESHIFT4M, 0, MMU_PAGESIZE4M >> MMU_PAGESHIFT}, 90 MMU_PAGESIZE32M >> MMU_PAGESHIFT}, 92 MMU_PAGESIZE256M >> MMU_PAGESHIFT},
|
H A D | mach_sfmmu.h | 248 add scr2, MMU_PAGESHIFT + TTE_PA_LSHIFT, scr3; \ 255 add scr2, MMU_PAGESHIFT, scr3; \ 259 srln scr2, MMU_PAGESHIFT, scr2; \ 301 sllx tmp2, MMU_PAGESHIFT, tmp2; \ 354 sllx tmp2, MMU_PAGESHIFT, tmp2; \ 541 srlx tmp, (TSBREG_SECTSB_RSHIFT + MMU_PAGESHIFT), tmp ;\ 543 sllx tmp, MMU_PAGESHIFT, tmp ;\
|
H A D | mach_kpm.c | 190 uint_t shift = kpm_smallpages ? MMU_PAGESHIFT : MMU_PAGESHIFT4M; in hat_kpm_mapin_pfn() 241 vaddr += ((uintptr_t)(vcolor - vcolor_pa) << MMU_PAGESHIFT); in hat_kpm_page2va() 337 uint_t shift = kpm_smallpages ? MMU_PAGESHIFT : MMU_PAGESHIFT4M; in hat_kpm_fault() 761 sfmmu_kpm_load_tsb(vaddr, &tte, MMU_PAGESHIFT); in sfmmu_kpm_mapin() 814 sfmmu_kpm_load_tsb(vaddr, &tte, MMU_PAGESHIFT); in sfmmu_kpm_mapin() 850 sfmmu_kpm_load_tsb(vaddr, &tte, MMU_PAGESHIFT); in sfmmu_kpm_mapin() 934 sfmmu_kpm_unload_tsb(vaddr, MMU_PAGESHIFT); in sfmmu_kpm_mapout() 1062 sfmmu_kpm_unload_tsb(vaddr, MMU_PAGESHIFT); in sfmmu_kpm_mapout() 1134 vaddr += ((uintptr_t)(vcolor - vcolor_pa) << MMU_PAGESHIFT); in sfmmu_kpm_getvaddr() 1496 sfmmu_kpm_load_tsb(vaddr, &tte, MMU_PAGESHIFT); in sfmmu_kpm_fault() [all …]
|
/titanic_41/usr/src/uts/sun4v/vm/ |
H A D | mach_sfmmu.h | 136 srlx ptagacc, MMU_PAGESHIFT, ptagacc; /* align to page boundary */ \ 138 sllx ptagacc, MMU_PAGESHIFT, ptagacc; \ 183 srlx scr2, MMU_PAGESHIFT, scr2; /* align to page boundary */ \ 185 sllx scr2, MMU_PAGESHIFT, scr2; \ 190 srlx scr2, MMU_PAGESHIFT, scr2; /* align to page boundry */ \ 192 sllx scr2, MMU_PAGESHIFT, scr2; \ 223 srlx ptagacc, MMU_PAGESHIFT, ptagacc; /* align to page boundary */ \ 225 sllx ptagacc, MMU_PAGESHIFT, ptagacc; \ 298 add scr2, MMU_PAGESHIFT + TTE_PA_LSHIFT, scr3; \ 304 add scr2, MMU_PAGESHIFT, scr3; \ [all …]
|
H A D | mach_vm_dep.c | 82 {MMU_PAGESIZE, MMU_PAGESHIFT, 0, MMU_PAGESIZE >> MMU_PAGESHIFT}, 84 MMU_PAGESIZE64K >> MMU_PAGESHIFT}, 86 MMU_PAGESIZE512K >> MMU_PAGESHIFT}, 87 {MMU_PAGESIZE4M, MMU_PAGESHIFT4M, 0, MMU_PAGESIZE4M >> MMU_PAGESHIFT}, 89 MMU_PAGESIZE32M >> MMU_PAGESHIFT}, 91 MMU_PAGESIZE256M >> MMU_PAGESHIFT}, 343 pa = (uint64_t)(pp->p_pagenum << MMU_PAGESHIFT + off); in pagescrub()
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | param.h | 394 #define MMU_PAGESHIFT _mmu_pageshift macro 419 #define mmu_ptob(x) ((x) << MMU_PAGESHIFT) 420 #define mmu_btop(x) (((x)) >> MMU_PAGESHIFT) 421 #define mmu_btopr(x) ((((x) + MMU_PAGEOFFSET) >> MMU_PAGESHIFT)) 426 #define mmu_ptod(x) ((x) << (MMU_PAGESHIFT - DEV_BSHIFT))
|
/titanic_41/usr/src/uts/sun4/vm/ |
H A D | mach_kpm.h | 108 v = ((uintptr_t)(vaddr) >> MMU_PAGESHIFT) & \ 112 (paddr) += (r - v) << MMU_PAGESHIFT; \ 114 (paddr) -= r << MMU_PAGESHIFT; \
|
H A D | sfmmu.c | 136 return ((pfn_t)physaddr >> MMU_PAGESHIFT); in va_to_pfn() 142 return ((pfn_t)(physaddr >> MMU_PAGESHIFT)); in va_to_pfn() 154 return (((uint64_t)pfn << MMU_PAGESHIFT) | in va_to_pa() 415 basepfn = kmem64_pabase >> MMU_PAGESHIFT; in sfmmu_map_prom_mappings() 864 (HMENT_HASHAVELEN * (HMEBLK_SPAN(TTE8K) >> MMU_PAGESHIFT)); in calc_hmehash_sz() 878 hme_buckets = npages / (HMEBLK_SPAN(TTE8K) >> MMU_PAGESHIFT); in calc_hmehash_sz()
|
/titanic_41/usr/src/psm/stand/boot/sparc/sun4/sys/ |
H A D | machparam.h | 54 #define MMU_PAGESHIFT 13 macro 55 #define MMU_PAGESIZE (1<<MMU_PAGESHIFT)
|
/titanic_41/usr/src/uts/sfmmu/ml/ |
H A D | sfmmu_kdi.s | 120 add %g5, MMU_PAGESHIFT, %g5; \ 124 sub %g5, MMU_PAGESHIFT, %g5; \ 217 srlx %g1, MMU_PAGESHIFT, %g1; \ 318 add %g4, MMU_PAGESHIFT, %g4
|
/titanic_41/usr/src/uts/sun4u/sys/ |
H A D | cpr_impl.h | 150 #define PN_TO_ADDR(pn) ((u_longlong_t)(pn) << MMU_PAGESHIFT) 151 #define ADDR_TO_PN(pa) ((pa) >> MMU_PAGESHIFT)
|
H A D | pte.h | 143 #define TTE_PAGE_SHIFT(sz) (MMU_PAGESHIFT + TTE_BSZS_SHIFT(sz)) 146 #define TTE_PFNMASK(sz) (~(TTE_PAGE_OFFSET(sz) >> MMU_PAGESHIFT)) 335 (TTE_BSZS_SHIFT(tte_sz) + MMU_PAGESHIFT)) | \ 342 (TTE_BSZS_SHIFT(tte_sz) + MMU_PAGESHIFT)) | \
|
H A D | machparam.h | 137 #define MMU_PAGESHIFT 13 macro 138 #define MMU_PAGESIZE (1<<MMU_PAGESHIFT)
|
/titanic_41/usr/src/uts/i86pc/io/amd_iommu/ |
H A D | amd_iommu_page_tables.c | 1346 ASSERT(pageva == (pa_4K << MMU_PAGESHIFT)); in amd_iommu_destroy_pgtables() 1506 pfn_start = start_pa >> MMU_PAGESHIFT; in amd_iommu_map_pa2va() 1512 (void *)(uintptr_t)(start_pa >> MMU_PAGESHIFT), in amd_iommu_map_pa2va() 1513 (void *)(uintptr_t)pfn_start, MMU_PAGESHIFT); in amd_iommu_map_pa2va() 1517 pfn_end = end_pa >> MMU_PAGESHIFT; in amd_iommu_map_pa2va() 1545 pg_start = start_va >> MMU_PAGESHIFT; in amd_iommu_map_pa2va() 1546 pg_end = end_va >> MMU_PAGESHIFT; in amd_iommu_map_pa2va() 1554 f, (void *)(uintptr_t)(pfn << MMU_PAGESHIFT), in amd_iommu_map_pa2va() 1555 (void *)(uintptr_t)(pg << MMU_PAGESHIFT), path); in amd_iommu_map_pa2va() 1564 pg << MMU_PAGESHIFT, in amd_iommu_map_pa2va() [all …]
|
H A D | amd_iommu_page_tables.h | 48 ((v) >> (MMU_PAGESHIFT + (AMD_IOMMU_VA_NBITS(l - 1) * (l - 1)))) 52 (((l) == 6 ? 7 + (l - 1) * 9: l*9) + MMU_PAGESHIFT)
|
/titanic_41/usr/src/uts/sun4v/os/ |
H A D | ppage.c | 112 ppmap_shift = MMU_PAGESHIFT; in ppmapinit() 241 fm_pa = (uint64_t)(fm_pp->p_pagenum) << MMU_PAGESHIFT; in ppcopy_kernel__relocatable() 242 to_pa = (uint64_t)(to_pp->p_pagenum) << MMU_PAGESHIFT; in ppcopy_kernel__relocatable()
|
/titanic_41/usr/src/uts/sun4v/sys/ |
H A D | pte.h | 116 #define TTE_PAGE_SHIFT(sz) (MMU_PAGESHIFT + TTE_BSZS_SHIFT(sz)) 119 #define TTE_PFNMASK(sz) (~(TTE_PAGE_OFFSET(sz) >> MMU_PAGESHIFT)) 290 (TTE_BSZS_SHIFT(tte_sz) + MMU_PAGESHIFT)) | \ 297 (TTE_BSZS_SHIFT(tte_sz) + MMU_PAGESHIFT)) | \
|
H A D | machparam.h | 97 #define MMU_PAGESHIFT 13 macro 98 #define MMU_PAGESIZE (1<<MMU_PAGESHIFT)
|
/titanic_41/usr/src/uts/sun4u/os/ |
H A D | ppage.c | 111 ppmap_shift = MMU_PAGESHIFT; in ppmapinit() 123 ppmap_shift = MMU_PAGESHIFT; in ppmapinit() 421 fm_pa = (uint64_t)(fm_pp->p_pagenum) << MMU_PAGESHIFT; in ppcopy_kernel__relocatable() 422 to_pa = (uint64_t)(to_pp->p_pagenum) << MMU_PAGESHIFT; in ppcopy_kernel__relocatable()
|
/titanic_41/usr/src/uts/sfmmu/vm/ |
H A D | hat_kdi.c | 51 *pap = (TTE_TO_PFN((caddr_t)va, &tte) << MMU_PAGESHIFT) | in kdi_vtop()
|
/titanic_41/usr/src/uts/sun4u/io/ |
H A D | mach_rootnex.c | 448 tmplopfn = (pfn_t)(addr >> MMU_PAGESHIFT); in rootnex_ctl_initchild_impl() 450 tmphipfn = (pfn_t)(addr >> MMU_PAGESHIFT); in rootnex_ctl_initchild_impl() 479 pfn = (pfn_t)(addr >> MMU_PAGESHIFT); in rootnex_ctl_uninitchild_impl()
|
/titanic_41/usr/src/uts/common/vm/ |
H A D | hat_refmod.c | 408 po = ((uintptr_t)addr & HRM_BASEOFFSET) >> MMU_PAGESHIFT; /* pg off */ in hrm_setbits() 462 (((uintptr_t)a & HRM_PAGEMASK) >> MMU_PAGESHIFT)); in hat_getstat() 465 po = ((uintptr_t)a & HRM_BASEOFFSET) >> MMU_PAGESHIFT; in hat_getstat()
|
/titanic_41/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_param.h | 124 #define MMU_PAGESHIFT _mdb_ks_mmu_pageshift macro
|
/titanic_41/usr/src/uts/i86xpv/sys/ |
H A D | xen_mmu.h | 46 #define mfn_to_ma(mfn) ((maddr_t)(mfn) << MMU_PAGESHIFT)
|