Home
last modified time | relevance | path

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

1234

/linux/tools/testing/selftests/mm/
H A Dprotection_keys.c184 static u32 hw_pkey_get(int pkey, unsigned long flags) in hw_pkey_get()
195 static int hw_pkey_set(int pkey, unsigned long rights, unsigned long flags) in hw_pkey_set()
216 static void pkey_disable_set(int pkey, int flags) in pkey_disable_set()
254 static void pkey_disable_clear(int pkey, int flags) in pkey_disable_clear()
280 __maybe_unused static void pkey_write_allow(int pkey) in pkey_write_allow()
284 __maybe_unused static void pkey_write_deny(int pkey) in pkey_write_deny()
288 __maybe_unused static void pkey_access_allow(int pkey) in pkey_access_allow()
292 __maybe_unused static void pkey_access_deny(int pkey) in pkey_access_deny()
555 unsigned long pkey) in mprotect_pkey()
662 static void *malloc_pkey_with_mprotect(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect()
[all …]
H A Dpkey_util.c16 int sys_pkey_free(unsigned long pkey) in sys_pkey_free()
24 unsigned long pkey) in sys_mprotect_pkey()
H A Dpkey-powerpc.h39 static inline u32 pkey_bit_position(int pkey) in pkey_bit_position()
96 static inline void expect_fault_on_read_execonly_key(void *p1, int pkey) in expect_fault_on_read_execonly_key()
120 static inline void *malloc_pkey_with_mprotect_subpage(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect_subpage()
/linux/drivers/infiniband/core/
H A 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
/linux/security/selinux/
H A Dibpkey.c55 static unsigned int sel_ib_pkey_hashfn(u16 pkey) in sel_ib_pkey_hashfn() argument
73 struct sel_ib_pkey *pkey; in sel_ib_pkey_find() local
93 sel_ib_pkey_insert(struct sel_ib_pkey * pkey) sel_ib_pkey_insert() argument
132 struct sel_ib_pkey *pkey; sel_ib_pkey_sid_slow() local
183 struct sel_ib_pkey *pkey; sel_ib_pkey_sid() local
207 struct sel_ib_pkey *pkey, *pkey_tmp; sel_ib_pkey_flush() local
[all...]
/linux/arch/arm64/include/asm/
H A Dpkeys.h29 int prot, int pkey) in arch_override_mprotect_pkey()
44 #define mm_set_pkey_allocated(mm, pkey) do { \ argument
47 #define mm_set_pkey_free(mm, pkey) do { \ argument
51 static inline bool mm_pkey_is_allocated(struct mm_struct *mm, int pkey) in mm_pkey_is_allocated()
96 static inline int mm_pkey_free(struct mm_struct *mm, int pkey) in mm_pkey_free()
/linux/arch/x86/include/asm/
H A Dpkeys.h36 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()
H A Dpkru.h19 static inline bool __pkru_allows_read(u32 pkru, u16 pkey) in __pkru_allows_read()
25 static inline bool __pkru_allows_write(u32 pkru, u16 pkey) in __pkru_allows_write()
/linux/include/linux/
H A Dpkeys.h14 #define arch_override_mprotect_pkey(vma, prot, pkey) (0) argument
23 static inline bool mm_pkey_is_allocated(struct mm_struct *mm, int pkey) in mm_pkey_is_allocated()
33 static inline int mm_pkey_free(struct mm_struct *mm, int pkey) in mm_pkey_free()
38 static inline int arch_set_user_pkey_access(struct task_struct *tsk, int pkey, in arch_set_user_pkey_access()
/linux/arch/powerpc/mm/book3s64/
H A Dpkeys.c49 #define pkeyshift(pkey) (PKEY_REG_BITS - ((pkey+1) * AMR_BITS_PER_PKEY)) argument
315 static inline void init_amr(int pkey, u8 init_bits) in init_amr()
323 static inline void init_iamr(int pkey, u8 init_bits) in init_iamr()
338 int __arch_set_user_pkey_access(struct task_struct *tsk, int pkey, in __arch_set_user_pkey_access()
392 int pkey) in __arch_override_mprotect_pkey()
415 static bool pkey_access_permitted(int pkey, bool write, bool execute) in pkey_access_permitted()
/linux/drivers/infiniband/hw/hfi1/
H A Dud.c70 u16 pkey; in ud_loopback() local
226 u16 *pkey, u32 extra_bytes, bool bypass) in hfi1_make_bth_deth()
265 u16 len, slid, dlid, pkey; in hfi1_make_ud_req_9B() local
343 u16 len, pkey; in hfi1_make_ud_req_16B() local
555 int hfi1_lookup_pkey_idx(struct hfi1_ibport *ibp, u16 pkey) in hfi1_lookup_pkey_idx()
592 u32 remote_qpn, u16 pkey, u32 slid, u32 dlid, in return_cnp_16B()
654 u16 pkey, u32 slid, u32 dlid, u8 sc5, in return_cnp()
726 static int opa_smp_check(struct hfi1_ibport *ibp, u16 pkey, u8 sc5, in opa_smp_check()
813 u16 pkey; in hfi1_ud_rcv() local
H A Druc.c37 u16 pkey = packet->pkey; in hfi1_ruc_check_hdr() local
241 u16 pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); in hfi1_make_ruc_header_16B() local
328 u16 pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); in hfi1_make_ruc_header_9B() local
H A Dtrace.c120 u16 *pkey, u32 *psn, u32 *qpn) in hfi1_trace_parse_9b_bth()
171 u16 *entropy, u16 *len, u16 *pkey, in hfi1_trace_parse_16b_hdr()
195 u16 len, u16 pkey, u32 dlid, u32 slid) in hfi1_trace_fmt_lrh()
224 u8 tver, u16 pkey, u32 psn, u32 qpn, in hfi1_trace_fmt_rest()
H A Dverbs.c440 u16 pkey; in hfi1_do_pkey_check() local
1084 static inline int egress_pkey_matches_entry(u16 pkey, u16 ent) in egress_pkey_matches_entry()
1116 int egress_pkey_check(struct hfi1_pportdata *ppd, u32 slid, u16 pkey, in egress_pkey_check()
1220 u16 pkey; in hfi1_verbs_send() local
/linux/include/net/
H A Dndisc.h347 static inline u32 ndisc_hashfn(const void *pkey, const struct net_device *dev, __u32 *hash_rnd) in ndisc_hashfn()
357 static inline struct neighbour *__ipv6_neigh_lookup_noref(struct net_device *dev, const void *pkey) in __ipv6_neigh_lookup_noref()
364 const void *pkey) in __ipv6_neigh_lookup_noref_stub()
370 static inline struct neighbour *__ipv6_neigh_lookup(struct net_device *dev, const void *pkey) in __ipv6_neigh_lookup()
384 const void *pkey) in __ipv6_confirm_neigh()
395 const void *pkey) in __ipv6_confirm_neigh_stub()
H A Dneighbour.h287 static inline bool neigh_key_eq32(const struct neighbour *n, const void *pkey) in neigh_key_eq32()
292 static inline bool neigh_key_eq128(const struct neighbour *n, const void *pkey) in neigh_key_eq128()
303 bool (*key_eq)(const struct neighbour *n, const void *pkey), in ___neigh_lookup_noref()
304 __u32 (*hash)(const void *pkey, in ___neigh_lookup_noref()
323 const void *pkey, in __neigh_lookup_noref()
347 const void *pkey, in neigh_create()
551 __neigh_lookup(struct neigh_table *tbl, const void *pkey, struct net_device *dev, int creat) in __neigh_lookup()
563 __neigh_lookup_errno(struct neigh_table *tbl, const void *pkey, in __neigh_lookup_errno()
H A Darp.h13 static inline u32 arp_hashfn(const void *pkey, const struct net_device *dev, u32 *hash_rnd) in arp_hashfn()
/linux/arch/x86/mm/
H A Dpkeys.c76 int __arch_override_mprotect_pkey(struct vm_area_struct *vma, int prot, int pkey) in __arch_override_mprotect_pkey()
113 #define PKRU_AD_MASK(pkey) (PKRU_AD_BIT << ((pkey) * PKRU_BITS_PER_PKEY)) argument
H A Dfault.c721 u32 pkey) in kernelmode_fixup_or_oops()
778 unsigned long address, u32 pkey, int si_code) in __bad_area_nosemaphore()
838 struct vm_area_struct *vma, u32 pkey, int si_code) in __bad_area()
900 u32 pkey = vma_pkey(vma); in bad_area_access_error() local
/linux/crypto/asymmetric_keys/
H A Drestrict.c135 const struct public_key *pkey; in restrict_link_by_ca() local
176 const struct public_key *pkey; in restrict_link_by_digsig() local
/linux/security/selinux/include/
H A Dibpkey.h28 static inline int sel_ib_pkey_sid(u64 subnet_prefix, u16 pkey, u32 *sid) in sel_ib_pkey_sid()
/linux/mm/
H A Dmprotect.c862 unsigned long prot, int pkey) in do_mprotect_pkey()
1016 SYSCALL_DEFINE4(pkey_mprotect, unsigned long, start, size_t, len, in SYSCALL_DEFINE4() argument
1024 int pkey; in SYSCALL_DEFINE2() local
1052 SYSCALL_DEFINE1(pkey_free, int, pkey) in SYSCALL_DEFINE1() argument
/linux/net/ipv6/
H A Dndisc.c313 static u32 ndisc_hash(const void *pkey, in ndisc_hash()
320 static bool ndisc_key_eq(const struct neighbour *n, const void *pkey) in ndisc_key_eq()
765 static int pndisc_is_router(const void *pkey, in pndisc_is_router()
1782 static int ndisc_is_multicast(const void *pkey) in ndisc_is_multicast()
/linux/net/ipv4/
H A Darp.c211 static u32 arp_hash(const void *pkey, in arp_hash()
218 static bool arp_key_eq(const struct neighbour *neigh, const void *pkey) in arp_key_eq()
957 static int arp_is_multicast(const void *pkey) in arp_is_multicast()
H A Dfib_trie.c1517 t_key pkey = pn->key; in fib_table_lookup() local
1785 t_key pkey = pn->key; in leaf_walk_rcu() local
1827 t_key pkey = pn->key; in fib_trie_free() local
1945 t_key pkey = pn->key; in fib_table_flush_external() local
2016 t_key pkey = pn->key; in fib_table_flush() local
2101 t_key pkey = pn->key; in __fib_info_notify_update() local
2431 t_key pkey; in fib_trie_get_next() local

1234