Home
last modified time | relevance | path

Searched refs:MMU_PAGESHIFT (Results 1 – 25 of 93) sorted by relevance

1234

/titanic_50/usr/src/lib/libbc/inc/include/sun4/
H A Dparam.h101 #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_50/usr/src/uts/sun4u/vm/
H A Dmach_vm_dep.c83 {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 Dmach_sfmmu.h248 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 Dmach_kpm.c190 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_50/usr/src/uts/sun4v/vm/
H A Dmach_sfmmu.h136 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 Dmach_vm_dep.c82 {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_50/usr/src/uts/common/sys/
H A Dparam.h387 #define MMU_PAGESHIFT _mmu_pageshift macro
412 #define mmu_ptob(x) ((x) << MMU_PAGESHIFT)
413 #define mmu_btop(x) (((x)) >> MMU_PAGESHIFT)
414 #define mmu_btopr(x) ((((x) + MMU_PAGEOFFSET) >> MMU_PAGESHIFT))
419 #define mmu_ptod(x) ((x) << (MMU_PAGESHIFT - DEV_BSHIFT))
/titanic_50/usr/src/uts/sun4/vm/
H A Dmach_kpm.h108 v = ((uintptr_t)(vaddr) >> MMU_PAGESHIFT) & \
112 (paddr) += (r - v) << MMU_PAGESHIFT; \
114 (paddr) -= r << MMU_PAGESHIFT; \
H A Dsfmmu.c136 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_50/usr/src/psm/stand/boot/sparc/sun4/sys/
H A Dmachparam.h54 #define MMU_PAGESHIFT 13 macro
55 #define MMU_PAGESIZE (1<<MMU_PAGESHIFT)
/titanic_50/usr/src/uts/sfmmu/ml/
H A Dsfmmu_kdi.s120 add %g5, MMU_PAGESHIFT, %g5; \
124 sub %g5, MMU_PAGESHIFT, %g5; \
217 srlx %g1, MMU_PAGESHIFT, %g1; \
318 add %g4, MMU_PAGESHIFT, %g4
/titanic_50/usr/src/uts/sun4u/sys/
H A Dcpr_impl.h150 #define PN_TO_ADDR(pn) ((u_longlong_t)(pn) << MMU_PAGESHIFT)
151 #define ADDR_TO_PN(pa) ((pa) >> MMU_PAGESHIFT)
H A Dpte.h143 #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 Dmachparam.h137 #define MMU_PAGESHIFT 13 macro
138 #define MMU_PAGESIZE (1<<MMU_PAGESHIFT)
/titanic_50/usr/src/uts/i86pc/io/amd_iommu/
H A Damd_iommu_page_tables.c1346 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 Damd_iommu_page_tables.h48 ((v) >> (MMU_PAGESHIFT + (AMD_IOMMU_VA_NBITS(l - 1) * (l - 1))))
52 (((l) == 6 ? 7 + (l - 1) * 9: l*9) + MMU_PAGESHIFT)
/titanic_50/usr/src/uts/sun4v/os/
H A Dppage.c112 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_50/usr/src/uts/sun4v/sys/
H A Dpte.h116 #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 Dmachparam.h97 #define MMU_PAGESHIFT 13 macro
98 #define MMU_PAGESIZE (1<<MMU_PAGESHIFT)
/titanic_50/usr/src/uts/sun4u/os/
H A Dppage.c111 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_50/usr/src/uts/sfmmu/vm/
H A Dhat_kdi.c51 *pap = (TTE_TO_PFN((caddr_t)va, &tte) << MMU_PAGESHIFT) | in kdi_vtop()
/titanic_50/usr/src/uts/sun4u/io/
H A Dmach_rootnex.c448 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_50/usr/src/uts/common/vm/
H A Dhat_refmod.c408 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_50/usr/src/cmd/mdb/common/mdb/
H A Dmdb_param.h124 #define MMU_PAGESHIFT _mdb_ks_mmu_pageshift macro
/titanic_50/usr/src/uts/i86xpv/sys/
H A Dxen_mmu.h46 #define mfn_to_ma(mfn) ((maddr_t)(mfn) << MMU_PAGESHIFT)

1234