Home
last modified time | relevance | path

Searched refs:mmu_psize_defs (Results 1 – 25 of 28) sorted by relevance

12

/arch/powerpc/include/asm/
Dkvm_book3s_64.h98 if (mmu_psize_defs[psize].penc[i] == -1) in __hpte_actual_psize()
109 shift = mmu_psize_defs[i].shift - LP_SHIFT; in __hpte_actual_psize()
113 if ((lp & mask) == mmu_psize_defs[psize].penc[i]) in __hpte_actual_psize()
131 if (!mmu_psize_defs[b_psize].shift) in compute_tlbie_rb()
173 sllp = ((mmu_psize_defs[a_psize].sllp & SLB_VSID_L) >> 6) | in compute_tlbie_rb()
174 ((mmu_psize_defs[a_psize].sllp & SLB_VSID_LP) >> 4); in compute_tlbie_rb()
185 rb |= (va_low << mmu_psize_defs[b_psize].shift) & 0x7ff000; in compute_tlbie_rb()
189 rb &= ~((1ul << mmu_psize_defs[a_psize].shift) - 1); in compute_tlbie_rb()
195 aval_shift = 64 - (77 - mmu_psize_defs[b_psize].shift) + 1; in compute_tlbie_rb()
199 penc = mmu_psize_defs[b_psize].penc[a_psize]; in compute_tlbie_rb()
[all …]
Dmmu-hash64.h144 extern struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT];
151 if (mmu_psize_defs[psize].shift == shift) in shift_to_mmu_psize()
158 if (mmu_psize_defs[mmu_psize].shift) in mmu_psize_to_shift()
159 return mmu_psize_defs[mmu_psize].shift; in mmu_psize_to_shift()
245 v = (vpn >> (23 - VPN_SHIFT)) & ~(mmu_psize_defs[psize].avpnm); in hpte_encode_avpn()
277 unsigned int penc = mmu_psize_defs[base_psize].penc[actual_psize]; in hpte_encode_r()
278 unsigned int shift = mmu_psize_defs[actual_psize].shift; in hpte_encode_r()
Dmmu-book3e.h258 extern struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT];
265 if (mmu_psize_defs[psize].shift == shift) in shift_to_mmu_psize()
272 if (mmu_psize_defs[mmu_psize].shift) in mmu_psize_to_shift()
273 return mmu_psize_defs[mmu_psize].shift; in mmu_psize_to_shift()
Dpte-hash64-64k.h86 shift = mmu_psize_defs[psize].shift; \
Dpage_64.h141 (mm)->context.sllp = SLB_VSID_USER | mmu_psize_defs[(psize)].sllp; \
Dpgtable-ppc64.h133 shift = mmu_psize_defs[psize].shift; \
/arch/powerpc/mm/
Dhash_native_64.c74 sllp = ((mmu_psize_defs[apsize].sllp & SLB_VSID_L) >> 6) | in __tlbie()
75 ((mmu_psize_defs[apsize].sllp & SLB_VSID_LP) >> 4); in __tlbie()
83 penc = mmu_psize_defs[psize].penc[apsize]; in __tlbie()
84 va &= ~((1ul << mmu_psize_defs[apsize].shift) - 1); in __tlbie()
123 sllp = ((mmu_psize_defs[apsize].sllp & SLB_VSID_L) >> 6) | in __tlbiel()
124 ((mmu_psize_defs[apsize].sllp & SLB_VSID_LP) >> 4); in __tlbiel()
131 penc = mmu_psize_defs[psize].penc[apsize]; in __tlbiel()
132 va &= ~((1ul << mmu_psize_defs[apsize].shift) - 1); in __tlbiel()
160 use_local = mmu_psize_defs[psize].tlbiel; in tlbie()
332 hash = hpt_hash(vpn, mmu_psize_defs[psize].shift, ssize); in native_hpte_find()
[all …]
Dslb.c101 linear_llp = mmu_psize_defs[mmu_linear_psize].sllp; in __slb_flush_and_rebolt()
102 vmalloc_llp = mmu_psize_defs[mmu_vmalloc_psize].sllp; in __slb_flush_and_rebolt()
153 vflags = SLB_VSID_KERNEL | mmu_psize_defs[mmu_vmalloc_psize].sllp; in slb_vmalloc_update()
281 linear_llp = mmu_psize_defs[mmu_linear_psize].sllp; in slb_initialize()
282 io_llp = mmu_psize_defs[mmu_io_psize].sllp; in slb_initialize()
283 vmalloc_llp = mmu_psize_defs[mmu_vmalloc_psize].sllp; in slb_initialize()
286 vmemmap_llp = mmu_psize_defs[mmu_vmemmap_psize].sllp; in slb_initialize()
Dtlb_nohash.c57 struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT] = { variable
88 struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT] = { variable
125 return mmu_psize_defs[psize].enc; in mmu_get_tsize()
392 int tsize = mmu_psize_defs[mmu_pte_psize].enc; in tlb_flush_pgtable()
397 unsigned long size = 1UL << mmu_psize_defs[mmu_pte_psize].shift; in tlb_flush_pgtable()
444 def = &mmu_psize_defs[psize]; in setup_page_sizes()
480 struct mmu_psize_def *def = &mmu_psize_defs[psize]; in setup_page_sizes()
500 struct mmu_psize_def *def = &mmu_psize_defs[psize]; in setup_page_sizes()
528 struct mmu_psize_def *def = &mmu_psize_defs[psize]; in setup_page_sizes()
541 struct mmu_psize_def *def = &mmu_psize_defs[psize]; in setup_page_sizes()
Dhash_utils_64.c94 struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT]; variable
95 EXPORT_SYMBOL_GPL(mmu_psize_defs);
189 shift = mmu_psize_defs[psize].shift; in htab_bolt_mapping()
255 shift = mmu_psize_defs[psize].shift; in htab_remove_mapping()
359 def = &mmu_psize_defs[base_idx]; in htab_dt_scan_page_sizes()
451 mmu_psize_defs[bpsize].penc[apsize] = -1; in mmu_psize_set_default_penc()
480 memcpy(mmu_psize_defs, mmu_psize_defaults_old, in htab_init_page_sizes()
495 memcpy(mmu_psize_defs, mmu_psize_defaults_gp, in htab_init_page_sizes()
503 if (mmu_psize_defs[MMU_PAGE_16M].shift) in htab_init_page_sizes()
505 else if (mmu_psize_defs[MMU_PAGE_1M].shift) in htab_init_page_sizes()
[all …]
Dinit_64.c204 BUG_ON(mmu_psize_defs[mmu_vmemmap_psize].enc > 0xf); in vmemmap_create_mapping()
207 flags |= mmu_psize_defs[mmu_vmemmap_psize].enc << 8; in vmemmap_create_mapping()
301 unsigned long page_size = 1 << mmu_psize_defs[mmu_vmemmap_psize].shift; in vmemmap_populate()
364 unsigned long page_size = 1 << mmu_psize_defs[mmu_vmemmap_psize].shift; in vmemmap_free()
432 unsigned long page_size = 1 << mmu_psize_defs[mmu_vmemmap_psize].shift; in realmode_pfn_to_page()
Dhugetlbpage.c387 if (mmu_psize_defs[i].shift == 0 || gpage_npages[i] == 0) in reserve_hugetlb_gpages()
800 BUG_ON(mmu_psize_defs[mmu_psize].shift != shift); in add_huge_page_size()
833 if (!mmu_psize_defs[psize].shift) in hugetlbpage_init()
855 if (mmu_psize_defs[MMU_PAGE_4M].shift) in hugetlbpage_init()
856 HPAGE_SHIFT = mmu_psize_defs[MMU_PAGE_4M].shift; in hugetlbpage_init()
875 if (!mmu_psize_defs[psize].shift) in hugetlbpage_init()
904 if (mmu_psize_defs[MMU_PAGE_16M].shift) in hugetlbpage_init()
905 HPAGE_SHIFT = mmu_psize_defs[MMU_PAGE_16M].shift; in hugetlbpage_init()
906 else if (mmu_psize_defs[MMU_PAGE_1M].shift) in hugetlbpage_init()
907 HPAGE_SHIFT = mmu_psize_defs[MMU_PAGE_1M].shift; in hugetlbpage_init()
Dhugetlbpage-book3e.c51 return mmu_psize_defs[psize].enc; in mmu_get_tsize()
99 shift = mmu_psize_defs[psize].shift; in book3e_hugetlb_preload()
Dhugepage-hash64.c45 shift = mmu_psize_defs[psize].shift; in invalidate_old_hpte()
134 shift = mmu_psize_defs[psize].shift; in __hash_page_thp()
Dpgtable_64.c780 shift = mmu_psize_defs[psize].shift; in hpte_do_hugepage_flush()
883 if (mmu_psize_defs[MMU_PAGE_16M].shift != PMD_SHIFT) in has_transparent_hugepage()
893 if (mmu_psize_defs[MMU_PAGE_64K].shift && in has_transparent_hugepage()
894 (mmu_psize_defs[MMU_PAGE_64K].penc[MMU_PAGE_16M] == -1)) in has_transparent_hugepage()
899 if (mmu_psize_defs[MMU_PAGE_4K].penc[MMU_PAGE_16M] == -1) in has_transparent_hugepage()
Dhugetlbpage-hash64.c30 BUG_ON(shift != mmu_psize_defs[mmu_psize].shift); in __hash_page_huge()
Dcopro_fault.c133 vsid |= mmu_psize_defs[psize].sllp | in copro_calculate_slb()
Dslice.c270 int pshift = max_t(int, mmu_psize_defs[psize].shift, PAGE_SHIFT); in slice_find_area_bottomup()
313 int pshift = max_t(int, mmu_psize_defs[psize].shift, PAGE_SHIFT); in slice_find_area_topdown()
393 int pshift = max_t(int, mmu_psize_defs[psize].shift, PAGE_SHIFT); in slice_get_unmapped_area()
Dtlb_hash64.c67 addr &= ~((1UL << mmu_psize_defs[psize].shift) - 1); in hpte_need_flush()
Dslb_low.S165 ld r11,mmu_psize_defs@got(r11)
/arch/powerpc/platforms/cell/
Dbeat_htab.c231 hash = hpt_hash(vpn, mmu_psize_defs[psize].shift, MMU_SEGSIZE_256M); in beat_lpar_hpte_find()
379 pss = (psize == MMU_PAGE_4K) ? -1UL : mmu_psize_defs[psize].penc[psize]; in beat_lpar_hpte_updatepp_v3()
410 pss = (psize == MMU_PAGE_4K) ? -1UL : mmu_psize_defs[psize].penc[psize]; in beat_lpar_hpte_invalidate_v3()
Dspu_base.c132 return mmu_psize_defs[MMU_PAGE_64K].shift != 0; in spu_64k_pages_available()
225 llp = mmu_psize_defs[mmu_linear_psize].sllp; in __spu_kernel_slb()
227 llp = mmu_psize_defs[mmu_virtual_psize].sllp; in __spu_kernel_slb()
/arch/powerpc/kvm/
Dbook3s_64_mmu_host.c156 hash = hpt_hash(vpn, mmu_psize_defs[hpsize].shift, MMU_SEGSIZE_256M); in kvmppc_mmu_map_page()
341 slb_vsid |= mmu_psize_defs[MMU_PAGE_64K].sllp; in kvmppc_mmu_map_segment()
/arch/powerpc/kernel/
Dmachine_kexec.c82 VMCOREINFO_SYMBOL(mmu_psize_defs); in arch_crash_save_vmcoreinfo()
/arch/powerpc/platforms/pseries/
Dlpar.c338 hash = hpt_hash(vpn, mmu_psize_defs[psize].shift, ssize); in pSeries_lpar_hpte_find()
454 shift = mmu_psize_defs[psize].shift; in pSeries_lpar_hugepage_invalidate()

12