Home
last modified time | relevance | path

Searched refs:arch_max_pkey (Results 1 – 7 of 7) sorted by relevance

/linux/arch/arm64/include/asm/
H A Dpkeys.h13 #define arch_max_pkey() 8 macro
58 if (pkey < 0 || pkey >= arch_max_pkey()) in mm_pkey_is_allocated()
75 u8 all_pkeys_mask = GENMASK(arch_max_pkey() - 1, 0); in mm_pkey_alloc()
/linux/arch/x86/include/asm/
H A Dpkeys.h10 #define arch_max_pkey() (cpu_feature_enabled(X86_FEATURE_OSPKE) ? 16 : 1) macro
64 if (pkey >= arch_max_pkey()) in mm_pkey_is_allocated()
89 u16 all_pkeys_mask = ((1U << arch_max_pkey()) - 1); in mm_pkey_alloc()
/linux/arch/powerpc/include/asm/
H A Dpkeys.h45 static inline int arch_max_pkey(void) in arch_max_pkey() function
70 if (pkey < 0 || pkey >= arch_max_pkey()) in mm_pkey_is_allocated()
/linux/include/linux/
H A Dpkeys.h12 #define arch_max_pkey() (1) macro
/linux/arch/x86/kernel/fpu/
H A Dxstate.c1039 if (WARN_ON_ONCE(pkey >= arch_max_pkey())) in arch_set_user_pkey_access()
/linux/arch/arm64/mm/
H A Dmmu.c1569 if (WARN_ON_ONCE(pkey >= arch_max_pkey())) in arch_set_user_pkey_access()
/linux/arch/arm64/kernel/
H A Dsignal.c93 for (int pkey = 0; pkey < arch_max_pkey(); pkey++) in save_reset_user_access_state()