Home
last modified time | relevance | path

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

12

/arch/powerpc/mm/book3s64/
Dhash_hugetlbpage.c33 BUG_ON(shift != mmu_psize_defs[mmu_psize].shift); in __hash_page_huge()
160 if (mmu_psize_defs[MMU_PAGE_16M].shift) in hugetlbpage_init_default()
161 hpage_shift = mmu_psize_defs[MMU_PAGE_16M].shift; in hugetlbpage_init_default()
162 else if (mmu_psize_defs[MMU_PAGE_1M].shift) in hugetlbpage_init_default()
163 hpage_shift = mmu_psize_defs[MMU_PAGE_1M].shift; in hugetlbpage_init_default()
164 else if (mmu_psize_defs[MMU_PAGE_2M].shift) in hugetlbpage_init_default()
165 hpage_shift = mmu_psize_defs[MMU_PAGE_2M].shift; in hugetlbpage_init_default()
Dhash_utils.c101 struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT]; variable
102 EXPORT_SYMBOL_GPL(mmu_psize_defs);
255 shift = mmu_psize_defs[psize].shift; in htab_bolt_mapping()
344 shift = mmu_psize_defs[psize].shift; in htab_remove_mapping()
474 def = &mmu_psize_defs[base_idx]; in htab_dt_scan_page_sizes()
569 mmu_psize_defs[bpsize].penc[apsize] = -1; in mmu_psize_set_default_penc()
599 memcpy(mmu_psize_defs, mmu_psize_defaults, in htab_scan_page_sizes()
611 memcpy(mmu_psize_defs, mmu_psize_defaults_gp, in htab_scan_page_sizes()
651 if (!mmu_psize_defs[bp].shift) in init_hpte_page_sizes()
654 penc = mmu_psize_defs[bp].penc[ap]; in init_hpte_page_sizes()
[all …]
Dhash_pgtable.c377 if (mmu_psize_defs[MMU_PAGE_16M].shift != PMD_SHIFT) in hash__has_transparent_hugepage()
387 if (mmu_psize_defs[MMU_PAGE_64K].shift && in hash__has_transparent_hugepage()
388 (mmu_psize_defs[MMU_PAGE_64K].penc[MMU_PAGE_16M] == -1)) in hash__has_transparent_hugepage()
393 if (mmu_psize_defs[MMU_PAGE_4K].penc[MMU_PAGE_16M] == -1) in hash__has_transparent_hugepage()
409 shift = mmu_psize_defs[mmu_linear_psize].shift; in hash__change_memory_range()
Dhash_native.c186 penc = mmu_psize_defs[psize].penc[apsize]; in ___tlbie()
187 va &= ~((1ul << mmu_psize_defs[apsize].shift) - 1); in ___tlbie()
276 penc = mmu_psize_defs[psize].penc[apsize]; in __tlbiel()
277 va &= ~((1ul << mmu_psize_defs[apsize].shift) - 1); in __tlbiel()
307 use_local = mmu_psize_defs[psize].tlbiel; in tlbie()
518 hash = hpt_hash(vpn, mmu_psize_defs[psize].shift, ssize); in native_hpte_find()
656 shift = mmu_psize_defs[psize].shift; in native_hugepage_invalidate()
738 shift = mmu_psize_defs[size].shift; in hpte_decode()
740 avpn = (HPTE_V_AVPN_VAL(hpte_v) & ~mmu_psize_defs[size].avpnm); in hpte_decode()
845 mmu_psize_defs[psize].tlbiel && !cxl_ctx_in_use(); in native_flush_hash_range()
Dslb.c576 linear_llp = mmu_psize_defs[mmu_linear_psize].sllp; in slb_initialize()
577 io_llp = mmu_psize_defs[mmu_io_psize].sllp; in slb_initialize()
578 vmalloc_llp = mmu_psize_defs[mmu_vmalloc_psize].sllp; in slb_initialize()
581 vmemmap_llp = mmu_psize_defs[mmu_vmemmap_psize].sllp; in slb_initialize()
773 flags = SLB_VSID_KERNEL | mmu_psize_defs[mmu_linear_psize].sllp; in slb_allocate_kernel()
781 flags = SLB_VSID_KERNEL | mmu_psize_defs[mmu_vmemmap_psize].sllp; in slb_allocate_kernel()
795 flags = SLB_VSID_KERNEL | mmu_psize_defs[mmu_io_psize].sllp; in slb_allocate_kernel()
836 flags = SLB_VSID_USER | mmu_psize_defs[bpsize].sllp; in slb_allocate_user()
Dradix_pgtable.c291 mmu_psize_defs[MMU_PAGE_1G].shift) { in create_physical_mapping()
295 mmu_psize_defs[MMU_PAGE_2M].shift) { in create_physical_mapping()
486 def = &mmu_psize_defs[idx]; in radix_dt_scan_page_sizes()
561 mmu_psize_defs[MMU_PAGE_4K].shift = 12; in radix__early_init_devtree()
562 mmu_psize_defs[MMU_PAGE_4K].ap = 0x0; in radix__early_init_devtree()
564 mmu_psize_defs[MMU_PAGE_64K].shift = 16; in radix__early_init_devtree()
565 mmu_psize_defs[MMU_PAGE_64K].ap = 0x5; in radix__early_init_devtree()
647 if (mmu_psize_defs[MMU_PAGE_2M].shift) { in radix__early_init_mmu()
Dhash_64k.c46 unsigned long shift = mmu_psize_defs[MMU_PAGE_4K].shift; in __hash_page_4K()
232 unsigned long shift = mmu_psize_defs[MMU_PAGE_64K].shift; in __hash_page_64K()
Dhash_4k.c28 unsigned long shift = mmu_psize_defs[MMU_PAGE_4K].shift; in __hash_page_4K()
Dhash_hugepage.c75 shift = mmu_psize_defs[psize].shift; in __hash_page_thp()
Dradix_tlb.c892 unsigned int page_shift = mmu_psize_defs[mmu_virtual_psize].shift; in __radix__flush_tlb_range()
993 if (page_size == (1UL << mmu_psize_defs[mmu_virtual_psize].shift)) in radix_get_mmu_psize()
995 else if (page_size == (1UL << mmu_psize_defs[MMU_PAGE_2M].shift)) in radix_get_mmu_psize()
997 else if (page_size == (1UL << mmu_psize_defs[MMU_PAGE_1G].shift)) in radix_get_mmu_psize()
1081 unsigned int page_shift = mmu_psize_defs[psize].shift; in __radix__flush_tlb_range_psize()
Dhash_tlb.c65 addr &= ~((1UL << mmu_psize_defs[psize].shift) - 1); in hpte_need_flush()
/arch/powerpc/include/asm/nohash/32/
Dmmu-8xx.h206 extern struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT];
213 if (mmu_psize_defs[psize].shift == shift) in shift_to_mmu_psize()
220 if (mmu_psize_defs[mmu_psize].shift) in mmu_psize_to_shift()
221 return mmu_psize_defs[mmu_psize].shift; in mmu_psize_to_shift()
/arch/powerpc/include/asm/book3s/64/
Dhugetlb.h25 if (shift == mmu_psize_defs[MMU_PAGE_2M].shift) in hstate_get_psize()
27 else if (shift == mmu_psize_defs[MMU_PAGE_1G].shift) in hstate_get_psize()
29 else if (shift == mmu_psize_defs[MMU_PAGE_16M].shift) in hstate_get_psize()
31 else if (shift == mmu_psize_defs[MMU_PAGE_16G].shift) in hstate_get_psize()
Dmmu-hash.h190 if (mmu_psize_defs[psize].shift == shift) in shift_to_mmu_psize()
197 if (mmu_psize_defs[mmu_psize].shift) in mmu_psize_to_shift()
198 return mmu_psize_defs[mmu_psize].shift; in mmu_psize_to_shift()
207 if (mmu_psize_defs[psize].ap == ap) in ap_to_shift()
208 return mmu_psize_defs[psize].shift; in ap_to_shift()
218 sllp = ((mmu_psize_defs[psize].sllp & SLB_VSID_L) >> 6) | in get_sllp_encoding()
219 ((mmu_psize_defs[psize].sllp & SLB_VSID_LP) >> 4); in get_sllp_encoding()
291 return 1ul << mmu_psize_defs[i & 0xf].shift; in __hpte_page_size()
337 v = (vpn >> (23 - VPN_SHIFT)) & ~(mmu_psize_defs[psize].avpnm); in hpte_encode_avpn()
411 unsigned int penc = mmu_psize_defs[base_psize].penc[actual_psize]; in hpte_encode_r()
[all …]
Dtlbflush-radix.h26 return mmu_psize_defs[psize].ap; in mmu_get_ap()
Dmmu.h27 extern struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT];
/arch/powerpc/mm/nohash/
Dtlb.c54 struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT] = { variable
85 struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT] = { variable
100 struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT] = { variable
137 return mmu_psize_defs[psize].enc; in mmu_get_tsize()
408 int tsize = mmu_psize_defs[mmu_pte_psize].enc; in tlb_flush_pgtable()
413 unsigned long size = 1UL << mmu_psize_defs[mmu_pte_psize].shift; in tlb_flush_pgtable()
456 def = &mmu_psize_defs[psize]; in setup_page_sizes()
492 struct mmu_psize_def *def = &mmu_psize_defs[psize]; in setup_page_sizes()
515 struct mmu_psize_def *def = &mmu_psize_defs[psize]; in setup_page_sizes()
543 struct mmu_psize_def *def = &mmu_psize_defs[psize]; in setup_page_sizes()
[all …]
Dbook3e_pgtable.c31 BUG_ON(mmu_psize_defs[mmu_vmemmap_psize].enc > 0xf); in vmemmap_create_mapping()
34 flags |= mmu_psize_defs[mmu_vmemmap_psize].enc << 8; in vmemmap_create_mapping()
/arch/powerpc/include/asm/nohash/
Dmmu-book3e.h259 extern struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT];
266 if (mmu_psize_defs[psize].shift == shift) in shift_to_mmu_psize()
273 if (mmu_psize_defs[mmu_psize].shift) in mmu_psize_to_shift()
274 return mmu_psize_defs[mmu_psize].shift; in mmu_psize_to_shift()
/arch/powerpc/mm/ptdump/
Dhashpagetable.c212 unsigned long shift = mmu_psize_defs[psize].shift; in native_find()
245 unsigned long shift = mmu_psize_defs[psize].shift; in pseries_find()
296 entry = mmu_psize_defs[bps]; in decode_r()
299 if ((penc != -1) && (mmu_psize_defs[idx].shift)) { in decode_r()
300 shift = mmu_psize_defs[idx].shift - HPTE_R_RPN_SHIFT; in decode_r()
474 unsigned long psize = 1 << mmu_psize_defs[mmu_linear_psize].shift; in walk_linearmapping()
/arch/powerpc/mm/
Dinit_64.c204 unsigned long page_size = 1 << mmu_psize_defs[mmu_vmemmap_psize].shift; in vmemmap_populate()
308 unsigned long page_size = 1 << mmu_psize_defs[mmu_vmemmap_psize].shift; in vmemmap_free()
Dioremap.c112 unsigned int shift = mmu_psize_defs[mmu_linear_psize].shift; in memremap_compat_align()
Dcopro_fault.c131 vsid |= mmu_psize_defs[psize].sllp | in copro_calculate_slb()
Dhugetlbpage.c600 BUG_ON(mmu_psize_defs[mmu_psize].shift != shift); in arch_hugetlb_valid_size()
634 if (!mmu_psize_defs[psize].shift) in hugetlbpage_init()
709 else if (!firmware_has_feature(FW_FEATURE_LPAR) && mmu_psize_defs[MMU_PAGE_16G].shift) in gigantic_hugetlb_cma_reserve()
Dslice.c283 int pshift = max_t(int, mmu_psize_defs[psize].shift, PAGE_SHIFT); in slice_find_area_bottomup()
329 int pshift = max_t(int, mmu_psize_defs[psize].shift, PAGE_SHIFT); in slice_find_area_topdown()
438 int pshift = max_t(int, mmu_psize_defs[psize].shift, PAGE_SHIFT); in slice_get_unmapped_area()

12