Home
last modified time | relevance | path

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

12345

/Linux-v5.4/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.h21 unsigned long pkey) in arch_calc_vm_prot_bits()
29 #define arch_calc_vm_prot_bits(prot, pkey) arch_calc_vm_prot_bits(prot, pkey) argument
/Linux-v5.4/tools/testing/selftests/x86/
Dprotection_keys.c402 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 …]
Dpkey-helpers.h109 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-v5.4/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
182 struct sel_ib_pkey *pkey; in sel_ib_pkey_sid() local
206 struct sel_ib_pkey *pkey, *pkey_tmp; in sel_ib_pkey_flush() local
/Linux-v5.4/arch/x86/include/asm/
Dpkeys.h33 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-v5.4/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
551 struct pkey_index_qp_list *pkey; in ib_security_cache_change() local
564 struct pkey_index_qp_list *pkey, *tmp_pkey; in ib_security_release_port_pkey_list() local
664 u16 pkey; in ib_security_pkey_access() local
/Linux-v5.4/arch/powerpc/mm/book3s64/
Dpkeys.c31 #define pkeyshift(pkey) (PKEY_REG_BITS - ((pkey+1) * AMR_BITS_PER_PKEY)) argument
209 static bool is_pkey_enabled(int pkey) in is_pkey_enabled()
223 static inline void init_amr(int pkey, u8 init_bits) in init_amr()
231 static inline void init_iamr(int pkey, u8 init_bits) in init_iamr()
243 int __arch_set_user_pkey_access(struct task_struct *tsk, int pkey, in __arch_set_user_pkey_access()
310 static inline bool pkey_allows_readwrite(int pkey) in pkey_allows_readwrite()
338 int pkey) in __arch_override_mprotect_pkey()
361 static bool pkey_access_permitted(int pkey, bool write, bool execute) in pkey_access_permitted()
/Linux-v5.4/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()
Dmman.h81 #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-v5.4/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
Druc.c79 u16 pkey = packet->pkey; in hfi1_ruc_check_hdr() local
282 u16 pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); in hfi1_make_ruc_header_16B() local
368 u16 pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); in hfi1_make_ruc_header_9B() local
Dtrace.c160 u16 *pkey, u32 *psn, u32 *qpn) in hfi1_trace_parse_9b_bth()
206 u16 *entropy, u16 *len, u16 *pkey, in hfi1_trace_parse_16b_hdr()
230 u16 len, u16 pkey, u32 dlid, u32 slid) in hfi1_trace_fmt_lrh()
259 u8 tver, u16 pkey, u32 psn, u32 qpn, in hfi1_trace_fmt_rest()
/Linux-v5.4/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
/Linux-v5.4/crypto/asymmetric_keys/
Dpublic_key.c65 const struct public_key *pkey, in software_key_determine_akcipher()
107 struct public_key *pkey = params->key->payload.data[asym_crypto]; in software_key_query() local
166 const struct public_key *pkey = params->key->payload.data[asym_crypto]; in software_key_eds_op() local
250 int public_key_verify_signature(const struct public_key *pkey, in public_key_verify_signature()
/Linux-v5.4/drivers/infiniband/ulp/ipoib/
Dipoib_vlan.c96 u16 pkey, int type) in __ipoib_vlan_add()
165 int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey) in ipoib_vlan_add()
243 int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey) in ipoib_vlan_delete()
/Linux-v5.4/include/net/
Dndisc.h370 static inline u32 ndisc_hashfn(const void *pkey, const struct net_device *dev, __u32 *hash_rnd) in ndisc_hashfn()
380 static inline struct neighbour *__ipv6_neigh_lookup_noref(struct net_device *dev, const void *pkey) in __ipv6_neigh_lookup_noref()
387 const void *pkey) in __ipv6_neigh_lookup_noref_stub()
393 static inline struct neighbour *__ipv6_neigh_lookup(struct net_device *dev, const void *pkey) in __ipv6_neigh_lookup()
407 const void *pkey) in __ipv6_confirm_neigh()
424 const void *pkey) in __ipv6_confirm_neigh_stub()
Dneighbour.h262 static inline bool neigh_key_eq16(const struct neighbour *n, const void *pkey) in neigh_key_eq16()
267 static inline bool neigh_key_eq32(const struct neighbour *n, const void *pkey) in neigh_key_eq32()
272 static inline bool neigh_key_eq128(const struct neighbour *n, const void *pkey) in neigh_key_eq128()
283 bool (*key_eq)(const struct neighbour *n, const void *pkey), in ___neigh_lookup_noref()
284 __u32 (*hash)(const void *pkey, in ___neigh_lookup_noref()
306 const void *pkey, in __neigh_lookup_noref()
321 const void *pkey, in neigh_create()
515 __neigh_lookup(struct neigh_table *tbl, const void *pkey, struct net_device *dev, int creat) in __neigh_lookup()
527 __neigh_lookup_errno(struct neigh_table *tbl, const void *pkey, in __neigh_lookup_errno()
Darp.h13 static inline u32 arp_hashfn(const void *pkey, const struct net_device *dev, u32 *hash_rnd) in arp_hashfn()
/Linux-v5.4/arch/x86/mm/
Dpkeys.c77 int __arch_override_mprotect_pkey(struct vm_area_struct *vma, int prot, int pkey) in __arch_override_mprotect_pkey()
114 #define PKRU_AD_KEY(pkey) (PKRU_AD_BIT << ((pkey) * PKRU_BITS_PER_PKEY)) argument
/Linux-v5.4/mm/
Dmprotect.c453 unsigned long prot, int pkey) in do_mprotect_pkey()
583 SYSCALL_DEFINE4(pkey_mprotect, unsigned long, start, size_t, len, in SYSCALL_DEFINE4() argument
591 int pkey; in SYSCALL_DEFINE2() local
619 SYSCALL_DEFINE1(pkey_free, int, pkey) in SYSCALL_DEFINE1() argument
/Linux-v5.4/tools/testing/selftests/powerpc/ptrace/
Dptrace-pkey.c29 #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()
Dcore-pkey.c38 #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-v5.4/drivers/infiniband/hw/bnxt_re/
Dqplib_sp.c411 u16 *pkey) in bnxt_qplib_get_pkey()
428 struct bnxt_qplib_pkey_tbl *pkey_tbl, u16 *pkey, in bnxt_qplib_del_pkey()
460 struct bnxt_qplib_pkey_tbl *pkey_tbl, u16 *pkey, in bnxt_qplib_add_pkey()
/Linux-v5.4/arch/sparc/include/asm/
Dmman.h30 #define arch_calc_vm_prot_bits(prot, pkey) sparc_calc_vm_prot_bits(prot) argument

12345