/linux-6.12.1/arch/powerpc/mm/book3s64/ |
D | hugetlbpage.c | 30 BUG_ON(shift != mmu_psize_defs[mmu_psize].shift); in __hash_page_huge() 171 if (mmu_psize_defs[MMU_PAGE_16M].shift) in hugetlbpage_init_defaultsize() 172 hpage_shift = mmu_psize_defs[MMU_PAGE_16M].shift; in hugetlbpage_init_defaultsize() 173 else if (mmu_psize_defs[MMU_PAGE_1M].shift) in hugetlbpage_init_defaultsize() 174 hpage_shift = mmu_psize_defs[MMU_PAGE_1M].shift; in hugetlbpage_init_defaultsize() 175 else if (mmu_psize_defs[MMU_PAGE_2M].shift) in hugetlbpage_init_defaultsize() 176 hpage_shift = mmu_psize_defs[MMU_PAGE_2M].shift; in hugetlbpage_init_defaultsize()
|
D | hash_utils.c | 362 shift = mmu_psize_defs[psize].shift; in htab_bolt_mapping() 449 shift = mmu_psize_defs[psize].shift; in htab_remove_mapping() 613 def = &mmu_psize_defs[base_idx]; in htab_dt_scan_page_sizes() 708 mmu_psize_defs[bpsize].penc[apsize] = -1; in mmu_psize_set_default_penc() 738 memcpy(mmu_psize_defs, mmu_psize_defaults, in htab_scan_page_sizes() 750 memcpy(mmu_psize_defs, mmu_psize_defaults_gp, in htab_scan_page_sizes() 790 if (!mmu_psize_defs[bp].shift) in init_hpte_page_sizes() 793 penc = mmu_psize_defs[bp].penc[ap]; in init_hpte_page_sizes() 794 if (penc == -1 || !mmu_psize_defs[ap].shift) in init_hpte_page_sizes() 796 shift = mmu_psize_defs[ap].shift - LP_SHIFT; in init_hpte_page_sizes() [all …]
|
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() 458 hash = hpt_hash(vpn, mmu_psize_defs[psize].shift, ssize); in native_hpte_find() 608 shift = mmu_psize_defs[psize].shift; in native_hugepage_invalidate() 688 shift = mmu_psize_defs[size].shift; in hpte_decode() 690 avpn = (HPTE_V_AVPN_VAL(hpte_v) & ~mmu_psize_defs[size].avpnm); in hpte_decode() 795 mmu_psize_defs[psize].tlbiel && !cxl_ctx_in_use(); in native_flush_hash_range()
|
D | slb.c | 552 linear_llp = mmu_psize_defs[mmu_linear_psize].sllp; in slb_initialize() 553 io_llp = mmu_psize_defs[mmu_io_psize].sllp; in slb_initialize() 554 vmalloc_llp = mmu_psize_defs[mmu_vmalloc_psize].sllp; in slb_initialize() 557 vmemmap_llp = mmu_psize_defs[mmu_vmemmap_psize].sllp; in slb_initialize() 749 flags = SLB_VSID_KERNEL | mmu_psize_defs[mmu_linear_psize].sllp; in slb_allocate_kernel() 757 flags = SLB_VSID_KERNEL | mmu_psize_defs[mmu_vmemmap_psize].sllp; in slb_allocate_kernel() 771 flags = SLB_VSID_KERNEL | mmu_psize_defs[mmu_io_psize].sllp; in slb_allocate_kernel() 812 flags = SLB_VSID_USER | mmu_psize_defs[bpsize].sllp; in slb_allocate_user()
|
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()
|
D | radix_pgtable.c | 326 mmu_psize_defs[MMU_PAGE_1G].shift) { in create_physical_mapping() 330 mmu_psize_defs[MMU_PAGE_2M].shift) { in create_physical_mapping() 569 def = &mmu_psize_defs[idx]; in radix_dt_scan_page_sizes() 593 mmu_psize_defs[MMU_PAGE_4K].shift = 12; in radix__early_init_devtree() 594 mmu_psize_defs[MMU_PAGE_4K].ap = 0x0; in radix__early_init_devtree() 595 mmu_psize_defs[MMU_PAGE_4K].h_rpt_pgsize = in radix__early_init_devtree() 598 mmu_psize_defs[MMU_PAGE_64K].shift = 16; in radix__early_init_devtree() 599 mmu_psize_defs[MMU_PAGE_64K].ap = 0x5; in radix__early_init_devtree() 600 mmu_psize_defs[MMU_PAGE_64K].h_rpt_pgsize = in radix__early_init_devtree()
|
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()
|
D | pgtable.c | 28 struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT]; variable 29 EXPORT_SYMBOL_GPL(mmu_psize_defs); 635 unsigned int shift = mmu_psize_defs[mmu_linear_psize].shift; in memremap_compat_align()
|
D | radix_tlb.c | 1022 unsigned int page_shift = mmu_psize_defs[mmu_virtual_psize].shift; in __radix__flush_tlb_range() 1134 if (page_size == (1UL << mmu_psize_defs[mmu_virtual_psize].shift)) in radix_get_mmu_psize() 1136 else if (page_size == (1UL << mmu_psize_defs[MMU_PAGE_2M].shift)) in radix_get_mmu_psize() 1138 else if (page_size == (1UL << mmu_psize_defs[MMU_PAGE_1G].shift)) in radix_get_mmu_psize() 1240 unsigned int page_shift = mmu_psize_defs[psize].shift; in __radix__flush_tlb_range_psize() 1553 def = &mmu_psize_defs[psize]; in do_h_rpt_invalidate_prt()
|
D | hash_4k.c | 30 unsigned long shift = mmu_psize_defs[MMU_PAGE_4K].shift; in __hash_page_4K()
|
/linux-6.12.1/arch/powerpc/include/asm/book3s/64/ |
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()
|
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 …]
|
D | radix.h | 304 if (mmu_psize_defs[MMU_PAGE_2M].shift == PMD_SHIFT) in radix__has_transparent_hugepage() 312 if (mmu_psize_defs[MMU_PAGE_1G].shift == PUD_SHIFT) in radix__has_transparent_pud_hugepage()
|
D | tlbflush-radix.h | 30 return mmu_psize_defs[psize].ap; in mmu_get_ap()
|
/linux-6.12.1/arch/powerpc/mm/nohash/ |
D | tlb_64e.c | 56 int tsize = mmu_psize_defs[mmu_pte_psize].shift - 10; in tlb_flush_pgtable() 61 unsigned long size = 1UL << mmu_psize_defs[mmu_pte_psize].shift; in tlb_flush_pgtable() 101 def = &mmu_psize_defs[psize]; in setup_page_sizes() 137 struct mmu_psize_def *def = &mmu_psize_defs[psize]; in setup_page_sizes() 156 struct mmu_psize_def *def = &mmu_psize_defs[psize]; in setup_page_sizes()
|
D | tlb.c | 53 struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT] = { variable 79 return mmu_psize_defs[psize].shift - 10; in mmu_get_tsize() 90 struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT] = { variable
|
D | book3e_pgtable.c | 32 BUG_ON(mmu_psize_defs[mmu_vmemmap_psize].shift - 10 > 0xf); in vmemmap_create_mapping() 35 flags |= (mmu_psize_defs[mmu_vmemmap_psize].shift - 10) << 8; in vmemmap_create_mapping()
|
/linux-6.12.1/arch/powerpc/include/asm/nohash/32/ |
D | mmu-8xx.h | 203 extern struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT]; 210 if (mmu_psize_defs[psize].shift == shift) in shift_to_mmu_psize() 217 if (mmu_psize_defs[mmu_psize].shift) in mmu_psize_to_shift() 218 return mmu_psize_defs[mmu_psize].shift; in mmu_psize_to_shift()
|
/linux-6.12.1/arch/powerpc/include/asm/nohash/ |
D | mmu-e500.h | 256 extern struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT]; 263 if (mmu_psize_defs[psize].shift == shift) in shift_to_mmu_psize() 270 if (mmu_psize_defs[mmu_psize].shift) in mmu_psize_to_shift() 271 return mmu_psize_defs[mmu_psize].shift; in mmu_psize_to_shift()
|
/linux-6.12.1/arch/powerpc/mm/ |
D | hugetlbpage.c | 150 BUG_ON(mmu_psize_defs[mmu_psize].shift != shift); in arch_hugetlb_valid_size() 183 if (!mmu_psize_defs[psize].shift) in hugetlbpage_init() 208 else if (!firmware_has_feature(FW_FEATURE_LPAR) && mmu_psize_defs[MMU_PAGE_16G].shift) in gigantic_hugetlb_cma_reserve()
|
D | init_64.c | 206 unsigned long page_size = 1 << mmu_psize_defs[mmu_vmemmap_psize].shift; in __vmemmap_populate() 322 unsigned long page_size = 1 << mmu_psize_defs[mmu_vmemmap_psize].shift; in __vmemmap_free()
|
D | copro_fault.c | 129 vsid |= mmu_psize_defs[psize].sllp | in copro_calculate_slb()
|
/linux-6.12.1/arch/powerpc/mm/ptdump/ |
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.12.1/arch/powerpc/kexec/ |
D | vmcore_info.c | 19 VMCOREINFO_SYMBOL(mmu_psize_defs); in arch_crash_save_vmcoreinfo()
|
/linux-6.12.1/drivers/misc/lkdtm/ |
D | powerpc.c | 13 flags = SLB_VSID_KERNEL | mmu_psize_defs[page_size].sllp; in insert_slb_entry()
|