/arch/powerpc/include/asm/ |
D | pkeys.h | 33 static inline u64 pkey_to_vmflag_bits(u16 pkey) in pkey_to_vmflag_bits() 50 #define pkey_alloc_mask(pkey) (0x1 << pkey) argument 54 #define __mm_pkey_allocated(mm, pkey) { \ argument 58 #define __mm_pkey_free(mm, pkey) { \ argument 62 #define __mm_pkey_is_allocated(mm, pkey) \ argument 65 #define __mm_pkey_is_reserved(pkey) (reserved_allocation_mask & \ argument 68 static inline bool mm_pkey_is_allocated(struct mm_struct *mm, int pkey) in mm_pkey_is_allocated() 110 static inline int mm_pkey_free(struct mm_struct *mm, int pkey) in mm_pkey_free() 131 int prot, int pkey) in arch_override_mprotect_pkey() 148 static inline int arch_set_user_pkey_access(struct task_struct *tsk, int pkey, in arch_set_user_pkey_access()
|
D | mman.h | 17 unsigned long pkey) in arch_calc_vm_prot_bits() 25 #define arch_calc_vm_prot_bits(prot, pkey) arch_calc_vm_prot_bits(prot, pkey) argument
|
/arch/x86/include/asm/ |
D | pkeys.h | 38 int prot, int pkey) in arch_override_mprotect_pkey() 52 #define mm_set_pkey_allocated(mm, pkey) do { \ argument 55 #define mm_set_pkey_free(mm, pkey) do { \ argument 60 bool mm_pkey_is_allocated(struct mm_struct *mm, int pkey) in mm_pkey_is_allocated() 113 int mm_pkey_free(struct mm_struct *mm, int pkey) in mm_pkey_free()
|
D | pgtable.h | 1373 static inline bool __pkru_allows_read(u32 pkru, u16 pkey) in __pkru_allows_read() 1379 static inline bool __pkru_allows_write(u32 pkru, u16 pkey) in __pkru_allows_write() 1399 static inline bool __pkru_allows_pkey(u16 pkey, bool write) in __pkru_allows_pkey()
|
/arch/powerpc/mm/book3s64/ |
D | pkeys.c | 44 #define pkeyshift(pkey) (PKEY_REG_BITS - ((pkey+1) * AMR_BITS_PER_PKEY)) argument 260 static inline void init_amr(int pkey, u8 init_bits) in init_amr() 268 static inline void init_iamr(int pkey, u8 init_bits) in init_iamr() 280 int __arch_set_user_pkey_access(struct task_struct *tsk, int pkey, in __arch_set_user_pkey_access() 370 int pkey) in __arch_override_mprotect_pkey() 393 static bool pkey_access_permitted(int pkey, bool write, bool execute) in pkey_access_permitted()
|
/arch/x86/mm/ |
D | pkeys.c | 76 int __arch_override_mprotect_pkey(struct vm_area_struct *vma, int prot, int pkey) in __arch_override_mprotect_pkey() 113 #define PKRU_AD_KEY(pkey) (PKRU_AD_BIT << ((pkey) * PKRU_BITS_PER_PKEY)) argument
|
D | fault.c | 801 unsigned long address, u32 pkey, int si_code) in __bad_area_nosemaphore() 860 unsigned long address, u32 pkey, int si_code) in __bad_area() 925 u32 pkey = vma_pkey(vma); in bad_area_access_error() local
|
/arch/arm64/include/asm/ |
D | mman.h | 22 #define arch_calc_vm_prot_bits(prot, pkey) arch_calc_vm_prot_bits(prot, pkey) argument
|
/arch/sparc/include/asm/ |
D | mman.h | 30 #define arch_calc_vm_prot_bits(prot, pkey) sparc_calc_vm_prot_bits(prot) argument
|
/arch/powerpc/mm/ |
D | fault.c | 94 int pkey; in bad_access_pkey() local
|
/arch/x86/kernel/fpu/ |
D | xstate.c | 1037 int arch_set_user_pkey_access(struct task_struct *tsk, int pkey, in arch_set_user_pkey_access()
|
/arch/s390/crypto/ |
D | paes_s390.c | 141 struct pkey_protkey pkey; in __paes_convert_key() local
|
/arch/s390/include/uapi/asm/ |
D | pkey.h | 443 __u8 __user *pkey; /* in: pkey blob buffer space ptr */ member
|