/linux/arch/powerpc/include/asm/book3s/64/ |
A D | kup.h | 237 if (!mmu_has_feature(MMU_FTR_PKEY)) 240 if (!mmu_has_feature(MMU_FTR_BOOK3S_KUAP)) { 248 if (!mmu_has_feature(MMU_FTR_BOOK3S_KUEP)) { 274 if (mmu_has_feature(MMU_FTR_BOOK3S_KUAP)) { 292 if (mmu_has_feature(MMU_FTR_BOOK3S_KUAP)) { 303 if (IS_ENABLED(CONFIG_PPC_KUAP_DEBUG) && mmu_has_feature(MMU_FTR_BOOK3S_KUAP)) 322 if (!mmu_has_feature(MMU_FTR_BOOK3S_KUAP)) 330 if (!mmu_has_feature(MMU_FTR_BOOK3S_KUAP)) 345 if (!mmu_has_feature(MMU_FTR_BOOK3S_KUAP)) 373 if (mmu_has_feature(MMU_FTR_PKEY))
|
A D | hash-pkey.h | 27 if (mmu_has_feature(MMU_FTR_BOOK3S_KUAP) || in pte_to_hpte_pkey_bits() 28 mmu_has_feature(MMU_FTR_BOOK3S_KUEP)) { in pte_to_hpte_pkey_bits()
|
A D | pkeys.h | 10 if (!mmu_has_feature(MMU_FTR_PKEY)) in vmflag_to_pte_pkey_bits()
|
/linux/arch/powerpc/include/asm/ |
A D | pkeys.h | 40 if (!mmu_has_feature(MMU_FTR_PKEY)) in vma_pkey() 95 if (!mmu_has_feature(MMU_FTR_PKEY)) in mm_pkey_alloc() 112 if (!mmu_has_feature(MMU_FTR_PKEY)) in mm_pkey_free() 133 if (!mmu_has_feature(MMU_FTR_PKEY)) in arch_override_mprotect_pkey() 151 if (!mmu_has_feature(MMU_FTR_PKEY)) in arch_set_user_pkey_access() 168 return mmu_has_feature(MMU_FTR_PKEY); in arch_pkeys_enabled()
|
A D | mmu.h | 248 static __always_inline bool mmu_has_feature(unsigned long feature) in mmu_has_feature() function 289 static __always_inline bool mmu_has_feature(unsigned long feature) in mmu_has_feature() function 329 return mmu_has_feature(MMU_FTR_TYPE_RADIX); in radix_enabled()
|
/linux/arch/powerpc/include/asm/book3s/32/ |
A D | tlbflush.h | 30 if (!mmu_has_feature(MMU_FTR_HPTE_TABLE)) in tlb_flush() 37 if (mmu_has_feature(MMU_FTR_HPTE_TABLE)) in flush_range() 47 if (mmu_has_feature(MMU_FTR_HPTE_TABLE)) in flush_tlb_mm() 55 if (mmu_has_feature(MMU_FTR_HPTE_TABLE)) in flush_tlb_page()
|
A D | kup.h | 40 if (mmu_has_feature(MMU_FTR_HPTE_TABLE)) in kuep_lock() 57 if (mmu_has_feature(MMU_FTR_HPTE_TABLE)) in kuep_unlock()
|
/linux/arch/powerpc/mm/book3s32/ |
A D | mmu.c | 82 int n = mmu_has_feature(MMU_FTR_USE_HIGH_BATS) ? 8 : 4; in find_free_bat() 196 int nb = mmu_has_feature(MMU_FTR_USE_HIGH_BATS) ? 8 : 4; in mmu_mark_initmem_nx() 236 int nb = mmu_has_feature(MMU_FTR_USE_HIGH_BATS) ? 8 : 4; in mmu_mark_rodata_ro() 306 if (!mmu_has_feature(MMU_FTR_HPTE_TABLE)) in hash_preload() 324 if (!mmu_has_feature(MMU_FTR_HPTE_TABLE)) in update_mmu_cache() 353 if (!mmu_has_feature(MMU_FTR_HPTE_TABLE)) in MMU_init_hw() 402 if (!mmu_has_feature(MMU_FTR_HPTE_TABLE)) in MMU_init_hw_patch()
|
A D | mmu_context.c | 129 if (!mmu_has_feature(MMU_FTR_HPTE_TABLE)) in switch_mmu_context()
|
/linux/arch/powerpc/mm/nohash/ |
A D | tlb.c | 309 if (mmu_has_feature(MMU_FTR_USE_TLBIVAX_BCAST)) { in __flush_tlb_page() 310 int lock = mmu_has_feature(MMU_FTR_LOCK_BCAST_INVAL); in __flush_tlb_page() 445 int fsl_mmu = mmu_has_feature(MMU_FTR_TYPE_FSL_E); in setup_page_sizes() 630 if (mmu_has_feature(MMU_FTR_TYPE_FSL_E)) { in early_init_this_mmu() 674 if (mmu_has_feature(MMU_FTR_TYPE_FSL_E)) in early_init_mmu_global() 691 if (mmu_has_feature(MMU_FTR_TYPE_FSL_E)) { in early_init_mmu_global() 712 if (mmu_has_feature(MMU_FTR_TYPE_FSL_E)) { in early_mmu_set_memory_limit()
|
A D | book3e_hugetlbpage.c | 106 if (mmu_has_feature(MMU_FTR_USE_TLBRSRV)) { in book3e_tlb_exists() 172 if (mmu_has_feature(MMU_FTR_USE_PAIRED_MAS)) { in book3e_hugetlb_preload() 175 if (mmu_has_feature(MMU_FTR_BIG_PHYS)) in book3e_hugetlb_preload()
|
A D | 44x.c | 178 if (mmu_has_feature(MMU_FTR_TYPE_47x)) in mmu_mapin_ram() 183 if (mmu_has_feature(MMU_FTR_TYPE_47x)) { in mmu_mapin_ram() 236 if (mmu_has_feature(MMU_FTR_TYPE_47x)) in mmu_init_secondary()
|
/linux/arch/powerpc/mm/book3s64/ |
A D | pkeys.c | 307 if (!mmu_has_feature(MMU_FTR_PKEY)) in pkey_mm_init() 431 if (!mmu_has_feature(MMU_FTR_PKEY)) in arch_pte_access_permitted() 448 if (!mmu_has_feature(MMU_FTR_PKEY)) in arch_vma_access_permitted() 461 if (!mmu_has_feature(MMU_FTR_PKEY)) in arch_dup_pkeys()
|
A D | hash_native.c | 170 if (mmu_has_feature(MMU_FTR_TLBIE_CROP_VA)) in ___tlbie() 260 if (mmu_has_feature(MMU_FTR_TLBIE_CROP_VA)) in __tlbiel() 302 int lock_tlbie = !mmu_has_feature(MMU_FTR_LOCKLESS_TLBIE); in tlbie() 304 use_local = local && mmu_has_feature(MMU_FTR_TLBIEL) && !cxl_ctx_in_use(); in tlbie() 844 use_local = local && mmu_has_feature(MMU_FTR_TLBIEL) && in native_flush_hash_range() 891 int lock_tlbie = !mmu_has_feature(MMU_FTR_LOCKLESS_TLBIE); in native_flush_hash_range()
|
A D | radix_tlb.c | 954 if (!mmu_has_feature(MMU_FTR_GTSE)) { in radix__flush_tlb_mm() 989 if (!mmu_has_feature(MMU_FTR_GTSE)) { in __flush_all_mm() 1028 if (!mmu_has_feature(MMU_FTR_GTSE)) { in radix__flush_tlb_page_psize() 1085 if (!mmu_has_feature(MMU_FTR_GTSE)) { in radix__flush_tlb_kernel_range() 1148 if (!mmu_has_feature(MMU_FTR_GTSE) && type == FLUSH_TYPE_GLOBAL) { in __radix__flush_tlb_range() 1343 if (!mmu_has_feature(MMU_FTR_GTSE) && type == FLUSH_TYPE_GLOBAL) { in __radix__flush_tlb_range_psize() 1419 if (!mmu_has_feature(MMU_FTR_GTSE)) { in radix__flush_tlb_collapsed_pmd()
|
A D | slb.c | 302 if (mmu_has_feature(MMU_FTR_1T_SEGMENT)) { in preload_add() 476 if (!mmu_has_feature(MMU_FTR_NO_SLBIE_B) && in switch_slb() 778 if (!mmu_has_feature(MMU_FTR_1T_SEGMENT)) in slb_allocate_kernel()
|
A D | mmu_context.c | 45 if (mmu_has_feature(MMU_FTR_68_BIT_VA)) in hash__alloc_context_id()
|
/linux/arch/powerpc/mm/ptdump/ |
A D | bats.c | 68 if (mmu_has_feature(MMU_FTR_USE_HIGH_BATS)) { in bats_show() 81 if (mmu_has_feature(MMU_FTR_USE_HIGH_BATS)) { in bats_show()
|
/linux/arch/powerpc/kernel/ |
A D | interrupt.c | 101 if (mmu_has_feature(MMU_FTR_PKEY)) { in system_call_exception() 112 if (mmu_has_feature(MMU_FTR_BOOK3S_KUAP)) { in system_call_exception() 116 if (mmu_has_feature(MMU_FTR_BOOK3S_KUEP)) { in system_call_exception()
|
/linux/arch/powerpc/mm/ |
A D | pgtable.c | 115 if (mmu_has_feature(MMU_FTR_HPTE_TABLE)) in set_pte_filter() 147 if (mmu_has_feature(MMU_FTR_HPTE_TABLE)) in set_access_flags_filter()
|
A D | pgtable_64.c | 137 if (!mmu_has_feature(MMU_FTR_KERNEL_RO)) { in mark_rodata_ro()
|
A D | cacheflush.c | 145 if (mmu_has_feature(MMU_FTR_TYPE_44x))
|
/linux/arch/powerpc/platforms/44x/ |
A D | iss4xx.c | 130 if (mmu_has_feature(MMU_FTR_TYPE_47x)) in iss4xx_smp_init()
|
A D | ppc476.c | 200 if (mmu_has_feature(MMU_FTR_TYPE_47x)) in ppc47x_smp_init()
|
/linux/arch/powerpc/platforms/pseries/ |
A D | lpar.c | 896 if (mmu_has_feature(MMU_FTR_KERNEL_RO)) in pSeries_lpar_hpte_updatepp() 985 if (mmu_has_feature(MMU_FTR_KERNEL_RO)) in pSeries_lpar_hpte_updateboltedpp() 1192 int lock_tlbie = !mmu_has_feature(MMU_FTR_LOCKLESS_TLBIE); in __pSeries_lpar_hugepage_invalidate() 1510 int lock_tlbie = !mmu_has_feature(MMU_FTR_LOCKLESS_TLBIE); in pSeries_lpar_flush_hash_range() 1693 if (mmu_has_feature(MMU_FTR_GTSE)) in pseries_lpar_register_process_table() 1942 if (!mmu_has_feature(MMU_FTR_68_BIT_VA)) in vsid_unscramble()
|