Home
last modified time | relevance | path

Searched defs:pkey (Results 1 – 25 of 251) sorted by relevance

1234567891011

/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dpkeys.h33 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()
Dmman.h17 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
/kernel/linux/linux-4.19/arch/powerpc/include/asm/
Dpkeys.h28 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()
Dmman.h24 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
/kernel/linux/linux-5.10/tools/testing/selftests/vm/
Dprotection_keys.c177 static u32 hw_pkey_get(int pkey, unsigned long flags) in hw_pkey_get()
188 static int hw_pkey_set(int pkey, unsigned long rights, unsigned long flags) in hw_pkey_set()
209 void pkey_disable_set(int pkey, int flags) in pkey_disable_set()
250 void pkey_disable_clear(int pkey, int flags) in pkey_disable_clear()
279 void pkey_write_allow(int pkey) in pkey_write_allow()
283 void pkey_write_deny(int pkey) in pkey_write_deny()
287 void pkey_access_allow(int pkey) in pkey_access_allow()
291 void pkey_access_deny(int pkey) in pkey_access_deny()
470 unsigned long pkey) in sys_mprotect_pkey()
543 int sys_pkey_free(unsigned long pkey) in sys_pkey_free()
[all …]
Dpkey-powerpc.h37 static inline u32 pkey_bit_position(int pkey) in pkey_bit_position()
94 void expect_fault_on_read_execonly_key(void *p1, int pkey) in expect_fault_on_read_execonly_key()
108 void *malloc_pkey_with_mprotect_subpage(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect_subpage()
/kernel/linux/linux-4.19/tools/testing/selftests/x86/
Dprotection_keys.c403 static u32 hw_pkey_get(int pkey, unsigned long flags) in hw_pkey_get()
425 static int hw_pkey_set(int pkey, unsigned long rights, unsigned long flags) in hw_pkey_set()
448 void pkey_disable_set(int pkey, int flags) in pkey_disable_set()
486 void pkey_disable_clear(int pkey, int flags) in pkey_disable_clear()
515 void pkey_write_allow(int pkey) in pkey_write_allow()
519 void pkey_write_deny(int pkey) in pkey_write_deny()
523 void pkey_access_allow(int pkey) in pkey_access_allow()
527 void pkey_access_deny(int pkey) in pkey_access_deny()
533 unsigned long pkey) in sys_mprotect_pkey()
595 int sys_pkey_free(unsigned long pkey) in sys_pkey_free()
[all …]
/kernel/linux/linux-5.10/security/selinux/
Dibpkey.c56 static unsigned int sel_ib_pkey_hashfn(u16 pkey) in sel_ib_pkey_hashfn()
74 struct sel_ib_pkey *pkey; in sel_ib_pkey_find() local
94 static void sel_ib_pkey_insert(struct sel_ib_pkey *pkey) in sel_ib_pkey_insert()
133 struct sel_ib_pkey *pkey; in sel_ib_pkey_sid_slow() local
184 struct sel_ib_pkey *pkey; in sel_ib_pkey_sid() local
208 struct sel_ib_pkey *pkey, *pkey_tmp; in sel_ib_pkey_flush() local
/kernel/linux/linux-4.19/security/selinux/
Dibpkey.c66 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
/kernel/linux/linux-4.19/arch/x86/include/asm/
Dpkeys.h38 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()
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dpkeys.h38 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()
/kernel/linux/linux-4.19/drivers/infiniband/core/
Dsecurity.c44 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
538 struct pkey_index_qp_list *pkey; in ib_security_cache_change() local
552 struct pkey_index_qp_list *pkey, *tmp_pkey; in ib_security_destroy_port_pkey_list() local
654 u16 pkey; in ib_security_pkey_access() local
/kernel/linux/linux-5.10/drivers/infiniband/core/
Dsecurity.c48 struct pkey_index_qp_list *pkey = NULL; in get_pkey_idx_qp_list() local
65 u16 *pkey, in get_pkey_and_subnet_prefix()
80 static int enforce_qp_pkey_security(u16 pkey, in enforce_qp_pkey_security()
115 u16 pkey; in check_qp_port_pkey_settings() local
194 static inline void check_pkey_qps(struct pkey_index_qp_list *pkey, in check_pkey_qps()
246 struct pkey_index_qp_list *pkey; in port_pkey_list_insert() local
304 struct pkey_index_qp_list *pkey; in port_pkey_list_remove() local
544 struct pkey_index_qp_list *pkey; in ib_security_cache_change() local
557 struct pkey_index_qp_list *pkey, *tmp_pkey; in ib_security_release_port_pkey_list() local
657 u16 pkey; in ib_security_pkey_access() local
/kernel/linux/linux-4.19/arch/powerpc/mm/
Dpkeys.c29 #define pkeyshift(pkey) (PKEY_REG_BITS - ((pkey+1) * AMR_BITS_PER_PKEY)) argument
211 static bool is_pkey_enabled(int pkey) in is_pkey_enabled()
225 static inline void init_amr(int pkey, u8 init_bits) in init_amr()
233 static inline void init_iamr(int pkey, u8 init_bits) in init_iamr()
245 int __arch_set_user_pkey_access(struct task_struct *tsk, int pkey, in __arch_set_user_pkey_access()
312 static inline bool pkey_allows_readwrite(int pkey) in pkey_allows_readwrite()
340 int pkey) in __arch_override_mprotect_pkey()
363 static bool pkey_access_permitted(int pkey, bool write, bool execute) in pkey_access_permitted()
/kernel/linux/linux-4.19/include/linux/
Dpkeys.h12 #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()
/kernel/linux/linux-5.10/include/linux/
Dpkeys.h12 #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()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/include/
Dpkeys.h52 void pkey_set_rights(int pkey, unsigned long rights) in pkey_set_rights()
63 int sys_pkey_mprotect(void *addr, size_t len, int prot, int pkey) in sys_pkey_mprotect()
73 int sys_pkey_free(int pkey) in sys_pkey_free()
81 int pkey; in pkeys_unsupported() local
/kernel/linux/linux-4.19/crypto/
Drsa.c89 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
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/
Dpkeys.c44 #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()
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dud.c112 u16 pkey; in ud_loopback() local
268 u16 *pkey, u32 extra_bytes, bool bypass) in hfi1_make_bth_deth()
307 u16 len, slid, dlid, pkey; in hfi1_make_ud_req_9B() local
385 u16 len, pkey; in hfi1_make_ud_req_16B() local
596 int hfi1_lookup_pkey_idx(struct hfi1_ibport *ibp, u16 pkey) in hfi1_lookup_pkey_idx()
633 u32 remote_qpn, u16 pkey, u32 slid, u32 dlid, in return_cnp_16B()
695 u16 pkey, u32 slid, u32 dlid, u8 sc5, in return_cnp()
767 static int opa_smp_check(struct hfi1_ibport *ibp, u16 pkey, u8 sc5, in opa_smp_check()
859 u16 pkey; in hfi1_ud_rcv() local
/kernel/linux/linux-4.19/drivers/infiniband/hw/hfi1/
Dud.c112 u16 pkey; in ud_loopback() local
289 u16 *pkey, u32 extra_bytes, bool bypass) in hfi1_make_bth_deth()
327 u16 len, slid, dlid, pkey; in hfi1_make_ud_req_9B() local
405 u16 len, pkey; in hfi1_make_ud_req_16B() local
616 int hfi1_lookup_pkey_idx(struct hfi1_ibport *ibp, u16 pkey) in hfi1_lookup_pkey_idx()
653 u32 remote_qpn, u16 pkey, u32 slid, u32 dlid, in return_cnp_16B()
715 u16 pkey, u32 slid, u32 dlid, u8 sc5, in return_cnp()
787 static int opa_smp_check(struct hfi1_ibport *ibp, u16 pkey, u8 sc5, in opa_smp_check()
879 u16 pkey; in hfi1_ud_rcv() local
/kernel/linux/linux-5.10/crypto/
Drsa.c57 const struct rsa_mpi_key *pkey = rsa_get_key(tfm); in rsa_enc() local
96 const struct rsa_mpi_key *pkey = rsa_get_key(tfm); in rsa_dec() local
230 struct rsa_mpi_key *pkey = akcipher_tfm_ctx(tfm); in rsa_max_size() local
237 struct rsa_mpi_key *pkey = akcipher_tfm_ctx(tfm); in rsa_exit_tfm() local
/kernel/linux/linux-5.10/crypto/asymmetric_keys/
Dpublic_key.c67 const struct public_key *pkey, in software_key_determine_akcipher()
109 struct public_key *pkey = params->key->payload.data[asym_crypto]; in software_key_query() local
169 const struct public_key *pkey = params->key->payload.data[asym_crypto]; in software_key_eds_op() local
309 int public_key_verify_signature(const struct public_key *pkey, in public_key_verify_signature()
/kernel/linux/linux-4.19/drivers/infiniband/ulp/ipoib/
Dipoib_vlan.c96 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()
/kernel/linux/linux-5.10/drivers/infiniband/ulp/ipoib/
Dipoib_vlan.c96 u16 pkey, int type) in __ipoib_vlan_add()
168 int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey) in ipoib_vlan_add()
248 int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey) in ipoib_vlan_delete()

1234567891011