/linux-6.3-rc2/arch/powerpc/mm/book3s64/ |
A D | hugetlbpage.c | 30 BUG_ON(shift != mmu_psize_defs[mmu_psize].shift); in __hash_page_huge() 158 if (mmu_psize_defs[MMU_PAGE_16M].shift) in hugetlbpage_init_defaultsize() 159 hpage_shift = mmu_psize_defs[MMU_PAGE_16M].shift; in hugetlbpage_init_defaultsize() 160 else if (mmu_psize_defs[MMU_PAGE_1M].shift) in hugetlbpage_init_defaultsize() 161 hpage_shift = mmu_psize_defs[MMU_PAGE_1M].shift; in hugetlbpage_init_defaultsize() 162 else if (mmu_psize_defs[MMU_PAGE_2M].shift) in hugetlbpage_init_defaultsize() 163 hpage_shift = mmu_psize_defs[MMU_PAGE_2M].shift; in hugetlbpage_init_defaultsize()
|
A D | hash_utils.c | 355 shift = mmu_psize_defs[psize].shift; in htab_bolt_mapping() 442 shift = mmu_psize_defs[psize].shift; in htab_remove_mapping() 606 def = &mmu_psize_defs[base_idx]; in htab_dt_scan_page_sizes() 731 memcpy(mmu_psize_defs, mmu_psize_defaults, in htab_scan_page_sizes() 783 if (!mmu_psize_defs[bp].shift) in init_hpte_page_sizes() 786 penc = mmu_psize_defs[bp].penc[ap]; in init_hpte_page_sizes() 817 if (mmu_psize_defs[MMU_PAGE_16M].shift) in htab_init_page_sizes() 838 if (mmu_psize_defs[MMU_PAGE_64K].shift) { in htab_init_page_sizes() 861 if (mmu_psize_defs[MMU_PAGE_16M].shift && in htab_init_page_sizes() 876 mmu_psize_defs[mmu_io_psize].shift in htab_init_page_sizes() [all …]
|
A D | hash_native.c | 105 penc = mmu_psize_defs[psize].penc[apsize]; in ___tlbie() 106 va &= ~((1ul << mmu_psize_defs[apsize].shift) - 1); in ___tlbie() 195 penc = mmu_psize_defs[psize].penc[apsize]; in __tlbiel() 196 va &= ~((1ul << mmu_psize_defs[apsize].shift) - 1); in __tlbiel() 226 use_local = mmu_psize_defs[psize].tlbiel; in tlbie() 453 hash = hpt_hash(vpn, mmu_psize_defs[psize].shift, ssize); in native_hpte_find() 603 shift = mmu_psize_defs[psize].shift; in native_hugepage_invalidate() 683 shift = mmu_psize_defs[size].shift; in hpte_decode() 685 avpn = (HPTE_V_AVPN_VAL(hpte_v) & ~mmu_psize_defs[size].avpnm); in hpte_decode() 790 mmu_psize_defs[psize].tlbiel && !cxl_ctx_in_use(); in native_flush_hash_range()
|
A D | slb.c | 551 linear_llp = mmu_psize_defs[mmu_linear_psize].sllp; in slb_initialize() 552 io_llp = mmu_psize_defs[mmu_io_psize].sllp; in slb_initialize() 553 vmalloc_llp = mmu_psize_defs[mmu_vmalloc_psize].sllp; in slb_initialize() 556 vmemmap_llp = mmu_psize_defs[mmu_vmemmap_psize].sllp; in slb_initialize() 748 flags = SLB_VSID_KERNEL | mmu_psize_defs[mmu_linear_psize].sllp; in slb_allocate_kernel() 756 flags = SLB_VSID_KERNEL | mmu_psize_defs[mmu_vmemmap_psize].sllp; in slb_allocate_kernel() 770 flags = SLB_VSID_KERNEL | mmu_psize_defs[mmu_io_psize].sllp; in slb_allocate_kernel() 811 flags = SLB_VSID_USER | mmu_psize_defs[bpsize].sllp; in slb_allocate_user()
|
A D | hash_pgtable.c | 378 if (mmu_psize_defs[MMU_PAGE_16M].shift != PMD_SHIFT) in hash__has_transparent_hugepage() 388 if (mmu_psize_defs[MMU_PAGE_64K].shift && in hash__has_transparent_hugepage() 389 (mmu_psize_defs[MMU_PAGE_64K].penc[MMU_PAGE_16M] == -1)) in hash__has_transparent_hugepage() 394 if (mmu_psize_defs[MMU_PAGE_4K].penc[MMU_PAGE_16M] == -1) in hash__has_transparent_hugepage() 505 shift = mmu_psize_defs[mmu_linear_psize].shift; in hash__change_memory_range()
|
A D | radix_pgtable.c | 321 mmu_psize_defs[MMU_PAGE_1G].shift) { in create_physical_mapping() 325 mmu_psize_defs[MMU_PAGE_2M].shift) { in create_physical_mapping() 494 def = &mmu_psize_defs[idx]; in radix_dt_scan_page_sizes() 570 mmu_psize_defs[MMU_PAGE_4K].shift = 12; in radix__early_init_devtree() 571 mmu_psize_defs[MMU_PAGE_4K].ap = 0x0; in radix__early_init_devtree() 572 mmu_psize_defs[MMU_PAGE_4K].h_rpt_pgsize = in radix__early_init_devtree() 575 mmu_psize_defs[MMU_PAGE_64K].shift = 16; in radix__early_init_devtree() 576 mmu_psize_defs[MMU_PAGE_64K].ap = 0x5; in radix__early_init_devtree() 577 mmu_psize_defs[MMU_PAGE_64K].h_rpt_pgsize = in radix__early_init_devtree() 607 if (mmu_psize_defs[MMU_PAGE_2M].shift) { in radix__early_init_mmu()
|
A D | pgtable.c | 27 struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT]; variable 28 EXPORT_SYMBOL_GPL(mmu_psize_defs); 545 unsigned int shift = mmu_psize_defs[mmu_linear_psize].shift; in memremap_compat_align()
|
A D | hash_64k.c | 48 unsigned long shift = mmu_psize_defs[MMU_PAGE_4K].shift; in __hash_page_4K() 237 unsigned long shift = mmu_psize_defs[MMU_PAGE_64K].shift; in __hash_page_64K()
|
A D | radix_tlb.c | 1131 unsigned int page_shift = mmu_psize_defs[mmu_virtual_psize].shift; in __radix__flush_tlb_range() 1242 if (page_size == (1UL << mmu_psize_defs[mmu_virtual_psize].shift)) in radix_get_mmu_psize() 1244 else if (page_size == (1UL << mmu_psize_defs[MMU_PAGE_2M].shift)) in radix_get_mmu_psize() 1246 else if (page_size == (1UL << mmu_psize_defs[MMU_PAGE_1G].shift)) in radix_get_mmu_psize() 1327 unsigned int page_shift = mmu_psize_defs[psize].shift; in __radix__flush_tlb_range_psize() 1511 def = &mmu_psize_defs[psize]; in do_h_rpt_invalidate_prt()
|
A D | hash_4k.c | 30 unsigned long shift = mmu_psize_defs[MMU_PAGE_4K].shift; in __hash_page_4K()
|
A D | slice.c | 283 int pshift = max_t(int, mmu_psize_defs[psize].shift, PAGE_SHIFT); in slice_find_area_bottomup() 327 int pshift = max_t(int, mmu_psize_defs[psize].shift, PAGE_SHIFT); in slice_find_area_topdown() 434 int pshift = max_t(int, mmu_psize_defs[psize].shift, PAGE_SHIFT); in slice_get_unmapped_area()
|
A D | hash_hugepage.c | 75 shift = mmu_psize_defs[psize].shift; in __hash_page_thp()
|
/linux-6.3-rc2/arch/powerpc/mm/nohash/ |
A D | tlb.c | 53 struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT] = { variable 86 return mmu_psize_defs[psize].enc; in mmu_get_tsize() 97 struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT] = { variable 385 int tsize = mmu_psize_defs[mmu_pte_psize].enc; in tlb_flush_pgtable() 390 unsigned long size = 1UL << mmu_psize_defs[mmu_pte_psize].shift; in tlb_flush_pgtable() 433 def = &mmu_psize_defs[psize]; in setup_page_sizes() 469 struct mmu_psize_def *def = &mmu_psize_defs[psize]; in setup_page_sizes() 492 struct mmu_psize_def *def = &mmu_psize_defs[psize]; in setup_page_sizes() 520 struct mmu_psize_def *def = &mmu_psize_defs[psize]; in setup_page_sizes() 533 struct mmu_psize_def *def = &mmu_psize_defs[psize]; in setup_page_sizes()
|
A D | book3e_pgtable.c | 32 BUG_ON(mmu_psize_defs[mmu_vmemmap_psize].enc > 0xf); in vmemmap_create_mapping() 35 flags |= mmu_psize_defs[mmu_vmemmap_psize].enc << 8; in vmemmap_create_mapping()
|
/linux-6.3-rc2/arch/powerpc/include/asm/book3s/64/ |
A D | hugetlb.h | 24 if (shift == mmu_psize_defs[MMU_PAGE_2M].shift) in hstate_get_psize() 26 else if (shift == mmu_psize_defs[MMU_PAGE_1G].shift) in hstate_get_psize() 28 else if (shift == mmu_psize_defs[MMU_PAGE_16M].shift) in hstate_get_psize() 30 else if (shift == mmu_psize_defs[MMU_PAGE_16G].shift) in hstate_get_psize()
|
A D | mmu-hash.h | 190 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 …]
|
A D | tlbflush-radix.h | 30 return mmu_psize_defs[psize].ap; in mmu_get_ap()
|
/linux-6.3-rc2/arch/powerpc/include/asm/nohash/32/ |
A D | mmu-8xx.h | 208 extern struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT]; 215 if (mmu_psize_defs[psize].shift == shift) in shift_to_mmu_psize() 222 if (mmu_psize_defs[mmu_psize].shift) in mmu_psize_to_shift() 223 return mmu_psize_defs[mmu_psize].shift; in mmu_psize_to_shift()
|
/linux-6.3-rc2/arch/powerpc/include/asm/nohash/ |
A D | mmu-e500.h | 259 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()
|
/linux-6.3-rc2/arch/powerpc/mm/ptdump/ |
A D | hashpagetable.c | 212 unsigned long shift = mmu_psize_defs[psize].shift; in native_find() 248 unsigned long shift = mmu_psize_defs[psize].shift; in pseries_find() 299 entry = mmu_psize_defs[bps]; in decode_r() 302 if ((penc != -1) && (mmu_psize_defs[idx].shift)) { in decode_r() 303 shift = mmu_psize_defs[idx].shift - HPTE_R_RPN_SHIFT; in decode_r() 477 unsigned long psize = 1 << mmu_psize_defs[mmu_linear_psize].shift; in walk_linearmapping()
|
/linux-6.3-rc2/drivers/misc/lkdtm/ |
A D | powerpc.c | 13 flags = SLB_VSID_KERNEL | mmu_psize_defs[page_size].sllp; in insert_slb_entry()
|
/linux-6.3-rc2/arch/powerpc/mm/ |
A D | hugetlbpage.c | 523 BUG_ON(mmu_psize_defs[mmu_psize].shift != shift); in arch_hugetlb_valid_size() 557 if (!mmu_psize_defs[psize].shift) in hugetlbpage_init() 611 else if (!firmware_has_feature(FW_FEATURE_LPAR) && mmu_psize_defs[MMU_PAGE_16G].shift) in gigantic_hugetlb_cma_reserve()
|
A D | init_64.c | 205 unsigned long page_size = 1 << mmu_psize_defs[mmu_vmemmap_psize].shift; in vmemmap_populate() 309 unsigned long page_size = 1 << mmu_psize_defs[mmu_vmemmap_psize].shift; in vmemmap_free()
|
A D | copro_fault.c | 137 vsid |= mmu_psize_defs[psize].sllp | in copro_calculate_slb()
|
/linux-6.3-rc2/arch/powerpc/kvm/ |
A D | book3s_64_mmu_host.c | 149 hash = hpt_hash(vpn, mmu_psize_defs[hpsize].shift, MMU_SEGSIZE_256M); in kvmppc_mmu_map_page() 345 slb_vsid |= mmu_psize_defs[MMU_PAGE_64K].sllp; in kvmppc_mmu_map_segment()
|