/Linux-v4.19/arch/powerpc/include/asm/ |
D | pkeys.h | 28 static inline u64 pkey_to_vmflag_bits(u16 pkey) in pkey_to_vmflag_bits() 72 #define pkey_alloc_mask(pkey) (0x1 << pkey) argument 76 #define __mm_pkey_allocated(mm, pkey) { \ argument 80 #define __mm_pkey_free(mm, pkey) { \ argument 84 #define __mm_pkey_is_allocated(mm, pkey) \ argument 87 #define __mm_pkey_is_reserved(pkey) (reserved_allocation_mask & \ argument 90 static inline bool mm_pkey_is_allocated(struct mm_struct *mm, int pkey) in mm_pkey_is_allocated() 133 static inline int mm_pkey_free(struct mm_struct *mm, int pkey) in mm_pkey_free() 162 int prot, int pkey) in arch_override_mprotect_pkey() 179 static inline int arch_set_user_pkey_access(struct task_struct *tsk, int pkey, in arch_set_user_pkey_access()
|
D | mman.h | 24 unsigned long pkey) in arch_calc_vm_prot_bits() 32 #define arch_calc_vm_prot_bits(prot, pkey) arch_calc_vm_prot_bits(prot, pkey) argument
|
/Linux-v4.19/tools/testing/selftests/x86/ |
D | protection_keys.c | 402 static u32 hw_pkey_get(int pkey, unsigned long flags) in hw_pkey_get() 424 static int hw_pkey_set(int pkey, unsigned long rights, unsigned long flags) in hw_pkey_set() 447 void pkey_disable_set(int pkey, int flags) in pkey_disable_set() 485 void pkey_disable_clear(int pkey, int flags) in pkey_disable_clear() 514 void pkey_write_allow(int pkey) in pkey_write_allow() 518 void pkey_write_deny(int pkey) in pkey_write_deny() 522 void pkey_access_allow(int pkey) in pkey_access_allow() 526 void pkey_access_deny(int pkey) in pkey_access_deny() 532 unsigned long pkey) in sys_mprotect_pkey() 594 int sys_pkey_free(unsigned long pkey) in sys_pkey_free() [all …]
|
D | pkey-helpers.h | 109 static inline void __pkey_access_allow(int pkey, int do_allow) in __pkey_access_allow() 123 static inline void __pkey_write_allow(int pkey, int do_allow_write) in __pkey_write_allow()
|
/Linux-v4.19/security/selinux/ |
D | ibpkey.c | 66 static unsigned int sel_ib_pkey_hashfn(u16 pkey) in sel_ib_pkey_hashfn() 84 struct sel_ib_pkey *pkey; in sel_ib_pkey_find() local 104 static void sel_ib_pkey_insert(struct sel_ib_pkey *pkey) in sel_ib_pkey_insert() 143 struct sel_ib_pkey *pkey; in sel_ib_pkey_sid_slow() local 192 struct sel_ib_pkey *pkey; in sel_ib_pkey_sid() local 216 struct sel_ib_pkey *pkey, *pkey_tmp; in sel_ib_pkey_flush() local
|
/Linux-v4.19/arch/x86/include/asm/ |
D | pkeys.h | 33 int prot, int pkey) in arch_override_mprotect_pkey() 47 #define mm_set_pkey_allocated(mm, pkey) do { \ argument 50 #define mm_set_pkey_free(mm, pkey) do { \ argument 55 bool mm_pkey_is_allocated(struct mm_struct *mm, int pkey) in mm_pkey_is_allocated() 108 int mm_pkey_free(struct mm_struct *mm, int pkey) in mm_pkey_free()
|
/Linux-v4.19/drivers/infiniband/core/ |
D | security.c | 44 struct pkey_index_qp_list *pkey = NULL; in get_pkey_idx_qp_list() local 62 u16 *pkey, in get_pkey_and_subnet_prefix() 77 static int enforce_qp_pkey_security(u16 pkey, in enforce_qp_pkey_security() 112 u16 pkey; in check_qp_port_pkey_settings() local 191 static inline void check_pkey_qps(struct pkey_index_qp_list *pkey, in check_pkey_qps() 243 struct pkey_index_qp_list *pkey; in port_pkey_list_insert() local 301 struct pkey_index_qp_list *pkey; in port_pkey_list_remove() local 545 struct pkey_index_qp_list *pkey; in ib_security_cache_change() local 559 struct pkey_index_qp_list *pkey, *tmp_pkey; in ib_security_destroy_port_pkey_list() local 661 u16 pkey; in ib_security_pkey_access() local
|
/Linux-v4.19/arch/powerpc/mm/ |
D | pkeys.c | 29 #define pkeyshift(pkey) (PKEY_REG_BITS - ((pkey+1) * AMR_BITS_PER_PKEY)) argument 207 static bool is_pkey_enabled(int pkey) in is_pkey_enabled() 221 static inline void init_amr(int pkey, u8 init_bits) in init_amr() 229 static inline void init_iamr(int pkey, u8 init_bits) in init_iamr() 241 int __arch_set_user_pkey_access(struct task_struct *tsk, int pkey, in __arch_set_user_pkey_access() 308 static inline bool pkey_allows_readwrite(int pkey) in pkey_allows_readwrite() 336 int pkey) in __arch_override_mprotect_pkey() 359 static bool pkey_access_permitted(int pkey, bool write, bool execute) in pkey_access_permitted()
|
D | fault.c | 107 int pkey) in __bad_area_nosemaphore() 128 int pkey) in __bad_area() 147 int pkey) in bad_key_fault_exception() 551 int pkey = vma_pkey(vma); in __do_page_fault() local
|
/Linux-v4.19/include/linux/ |
D | pkeys.h | 12 #define arch_override_mprotect_pkey(vma, prot, pkey) (0) argument 21 static inline bool mm_pkey_is_allocated(struct mm_struct *mm, int pkey) in mm_pkey_is_allocated() 31 static inline int mm_pkey_free(struct mm_struct *mm, int pkey) in mm_pkey_free() 36 static inline int arch_set_user_pkey_access(struct task_struct *tsk, int pkey, in arch_set_user_pkey_access()
|
D | mman.h | 81 #define arch_calc_vm_prot_bits(prot, pkey) 0 argument 117 calc_vm_prot_bits(unsigned long prot, unsigned long pkey) in calc_vm_prot_bits()
|
/Linux-v4.19/crypto/ |
D | rsa.c | 89 const struct rsa_mpi_key *pkey = rsa_get_key(tfm); in rsa_enc() local 128 const struct rsa_mpi_key *pkey = rsa_get_key(tfm); in rsa_dec() local 166 const struct rsa_mpi_key *pkey = rsa_get_key(tfm); in rsa_sign() local 205 const struct rsa_mpi_key *pkey = rsa_get_key(tfm); in rsa_verify() local 341 struct rsa_mpi_key *pkey = akcipher_tfm_ctx(tfm); in rsa_max_size() local 348 struct rsa_mpi_key *pkey = akcipher_tfm_ctx(tfm); in rsa_exit_tfm() local
|
/Linux-v4.19/drivers/infiniband/hw/hfi1/ |
D | ud.c | 111 u16 pkey; in ud_loopback() local 288 u16 *pkey, u32 extra_bytes, bool bypass) in hfi1_make_bth_deth() 326 u16 len, slid, dlid, pkey; in hfi1_make_ud_req_9B() local 404 u16 len, pkey; in hfi1_make_ud_req_16B() local 615 int hfi1_lookup_pkey_idx(struct hfi1_ibport *ibp, u16 pkey) in hfi1_lookup_pkey_idx() 652 u32 remote_qpn, u16 pkey, u32 slid, u32 dlid, in return_cnp_16B() 711 u16 pkey, u32 slid, u32 dlid, u8 sc5, in return_cnp() 780 static int opa_smp_check(struct hfi1_ibport *ibp, u16 pkey, u8 sc5, in opa_smp_check() 872 u16 pkey; in hfi1_ud_rcv() local
|
D | trace.c | 150 u16 *pkey, u32 *psn, u32 *qpn) in hfi1_trace_parse_9b_bth() 196 u16 *entropy, u16 *len, u16 *pkey, in hfi1_trace_parse_16b_hdr() 220 u16 len, u16 pkey, u32 dlid, u32 slid) in hfi1_trace_fmt_lrh() 249 u8 tver, u16 pkey, u32 psn, u32 qpn, in hfi1_trace_fmt_rest()
|
D | ruc.c | 79 u16 pkey = packet->pkey; in hfi1_ruc_check_hdr() local 610 u16 pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); in hfi1_make_ruc_header_16B() local 696 u16 pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); in hfi1_make_ruc_header_9B() local
|
/Linux-v4.19/drivers/infiniband/ulp/ipoib/ |
D | ipoib_vlan.c | 96 u16 pkey, int type) in __ipoib_vlan_add() 162 int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey) in ipoib_vlan_add() 240 int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey) in ipoib_vlan_delete()
|
/Linux-v4.19/arch/x86/mm/ |
D | fault.c | 177 u32 *pkey) in fill_sig_info_pkey() 208 struct task_struct *tsk, u32 *pkey, int fault) in force_sig_info_fault() 845 unsigned long address, u32 *pkey, int si_code) in __bad_area_nosemaphore() 906 unsigned long address, u32 *pkey) in bad_area_nosemaphore() 916 u32 pkey; in __bad_area() local 971 u32 *pkey, unsigned int fault) in do_sigbus() 1003 unsigned long address, u32 *pkey, vm_fault_t fault) in mm_fault_error() 1219 u32 pkey; in __do_page_fault() local
|
D | pkeys.c | 89 int __arch_override_mprotect_pkey(struct vm_area_struct *vma, int prot, int pkey) in __arch_override_mprotect_pkey() 126 #define PKRU_AD_KEY(pkey) (PKRU_AD_BIT << ((pkey) * PKRU_BITS_PER_PKEY)) argument
|
/Linux-v4.19/include/net/ |
D | neighbour.h | 254 static inline bool neigh_key_eq16(const struct neighbour *n, const void *pkey) in neigh_key_eq16() 259 static inline bool neigh_key_eq32(const struct neighbour *n, const void *pkey) in neigh_key_eq32() 264 static inline bool neigh_key_eq128(const struct neighbour *n, const void *pkey) in neigh_key_eq128() 275 bool (*key_eq)(const struct neighbour *n, const void *pkey), in ___neigh_lookup_noref() 276 __u32 (*hash)(const void *pkey, in ___neigh_lookup_noref() 298 const void *pkey, in __neigh_lookup_noref() 313 const void *pkey, in neigh_create() 487 __neigh_lookup(struct neigh_table *tbl, const void *pkey, struct net_device *dev, int creat) in __neigh_lookup() 499 __neigh_lookup_errno(struct neigh_table *tbl, const void *pkey, in __neigh_lookup_errno()
|
D | ndisc.h | 367 static inline u32 ndisc_hashfn(const void *pkey, const struct net_device *dev, __u32 *hash_rnd) in ndisc_hashfn() 377 static inline struct neighbour *__ipv6_neigh_lookup_noref(struct net_device *dev, const void *pkey) in __ipv6_neigh_lookup_noref() 382 static inline struct neighbour *__ipv6_neigh_lookup(struct net_device *dev, const void *pkey) in __ipv6_neigh_lookup() 396 const void *pkey) in __ipv6_confirm_neigh()
|
D | arp.h | 13 static inline u32 arp_hashfn(const void *pkey, const struct net_device *dev, u32 *hash_rnd) in arp_hashfn()
|
/Linux-v4.19/mm/ |
D | mprotect.c | 457 unsigned long prot, int pkey) in do_mprotect_pkey() 585 SYSCALL_DEFINE4(pkey_mprotect, unsigned long, start, size_t, len, in SYSCALL_DEFINE4() argument 593 int pkey; in SYSCALL_DEFINE2() local 621 SYSCALL_DEFINE1(pkey_free, int, pkey) in SYSCALL_DEFINE1() argument
|
/Linux-v4.19/tools/testing/selftests/powerpc/ptrace/ |
D | ptrace-pkey.c | 29 #define pkeyshift(pkey) (PKEY_REG_BITS - ((pkey + 1) * AMR_BITS_PER_PKEY)) argument 69 static int sys_pkey_free(int pkey) in sys_pkey_free()
|
D | core-pkey.c | 38 #define pkeyshift(pkey) (PKEY_REG_BITS - ((pkey + 1) * AMR_BITS_PER_PKEY)) argument 69 static int sys_pkey_free(int pkey) in sys_pkey_free()
|
/Linux-v4.19/arch/sparc/include/asm/ |
D | mman.h | 30 #define arch_calc_vm_prot_bits(prot, pkey) sparc_calc_vm_prot_bits(prot) argument
|