Home
last modified time | relevance | path

Searched refs:pkey (Results 101 - 125 of 360) sorted by relevance

12345678910>>...15

/kernel/linux/linux-5.10/drivers/infiniband/ulp/ipoib/
H A Dipoib_netlink.c55 if (nla_put_u16(skb, IFLA_IPOIB_PKEY, priv->pkey)) in ipoib_fill_info()
125 ipoib_dbg(ppriv, "no pkey specified, using parent pkey\n"); in ipoib_new_child_link()
126 child_pkey = ppriv->pkey; in ipoib_new_child_link()
132 ipoib_warn(ppriv, "failed to initialize pkey device\n"); in ipoib_new_child_link()
/kernel/linux/linux-6.6/arch/s390/crypto/
H A Dpaes_s390.c29 #include <asm/pkey.h>
75 /* clear key value, prepare pkey clear key token in keybuf */ in _key_to_kb()
86 /* other key material, let pkey handle this */ in _key_to_kb()
147 struct pkey_protkey pkey; in __paes_convert_key() local
149 pkey.len = sizeof(pkey.protkey); in __paes_convert_key()
150 ret = __paes_keyblob2pkey(&ctx->kb, &pkey); in __paes_convert_key()
155 memcpy(&ctx->pk, &pkey, sizeof(pkey)); in __paes_convert_key()
/kernel/linux/linux-5.10/arch/powerpc/mm/
H A Dfault.c94 int pkey; in bad_access_pkey() local
97 * We don't try to fetch the pkey from page table because reading in bad_access_pkey()
99 * Hence the pkey value that we return to userspace can be different in bad_access_pkey()
100 * from the pkey that actually caused access error. in bad_access_pkey()
105 * 1. T1 : mprotect_key(foo, PAGE_SIZE, pkey=4); in bad_access_pkey()
106 * 2. T1 : set AMR to deny access to pkey=4, touches, page in bad_access_pkey()
108 * 4. T2: mprotect_key(foo, PAGE_SIZE, pkey=5); in bad_access_pkey()
111 * faulted on a pte with its pkey=4. in bad_access_pkey()
113 pkey = vma_pkey(vma); in bad_access_pkey()
125 _exception_pkey(regs, address, pkey); in bad_access_pkey()
[all...]
/kernel/linux/linux-5.10/drivers/crypto/virtio/
H A Dvirtio_crypto_akcipher_algs.c109 uint8_t *pkey; in virtio_crypto_alg_akcipher_init_session() local
116 pkey = kmemdup(key, keylen, GFP_ATOMIC); in virtio_crypto_alg_akcipher_init_session()
117 if (!pkey) in virtio_crypto_alg_akcipher_init_session()
135 sg_init_one(&key_sg, pkey, keylen); in virtio_crypto_alg_akcipher_init_session()
158 kfree_sensitive(pkey); in virtio_crypto_alg_akcipher_init_session()
/kernel/linux/linux-6.6/drivers/crypto/virtio/
H A Dvirtio_crypto_akcipher_algs.c113 uint8_t *pkey; in virtio_crypto_alg_akcipher_init_session() local
120 pkey = kmemdup(key, keylen, GFP_KERNEL); in virtio_crypto_alg_akcipher_init_session()
121 if (!pkey) in virtio_crypto_alg_akcipher_init_session()
139 sg_init_one(&key_sg, pkey, keylen); in virtio_crypto_alg_akcipher_init_session()
162 kfree_sensitive(pkey); in virtio_crypto_alg_akcipher_init_session()
/kernel/linux/linux-5.10/net/ipv4/
H A Darp.c122 static u32 arp_hash(const void *pkey, const struct net_device *dev, __u32 *hash_rnd);
123 static bool arp_key_eq(const struct neighbour *n, const void *pkey);
128 static int arp_is_multicast(const void *pkey);
210 static u32 arp_hash(const void *pkey, in arp_hash() argument
214 return arp_hashfn(pkey, dev, hash_rnd); in arp_hash()
217 static bool arp_key_eq(const struct neighbour *neigh, const void *pkey) in arp_key_eq() argument
219 return neigh_key_eq32(neigh, pkey); in arp_key_eq()
933 static int arp_is_multicast(const void *pkey) in arp_is_multicast() argument
935 return ipv4_is_multicast(*((__be32 *)pkey)); in arp_is_multicast()
H A Dfib_trie.c1494 t_key pkey = pn->key; in fib_table_lookup() local
1510 cindex = get_index(pkey, pn); in fib_table_lookup()
1762 t_key pkey = pn->key; in leaf_walk_rcu() local
1765 cindex = get_index(pkey, pn) + 1; in leaf_walk_rcu()
1804 t_key pkey = pn->key; in fib_trie_free() local
1816 cindex = get_index(pkey, pn); in fib_trie_free()
1922 t_key pkey = pn->key; in fib_table_flush_external() local
1934 cindex = get_index(pkey, pn); in fib_table_flush_external()
1993 t_key pkey = pn->key; in fib_table_flush() local
2005 cindex = get_index(pkey, p in fib_table_flush()
2078 t_key pkey = pn->key; __fib_info_notify_update() local
2416 t_key pkey; fib_trie_get_next() local
[all...]
/kernel/linux/linux-6.6/net/ipv4/
H A Darp.c122 static u32 arp_hash(const void *pkey, const struct net_device *dev, __u32 *hash_rnd);
123 static bool arp_key_eq(const struct neighbour *n, const void *pkey);
128 static int arp_is_multicast(const void *pkey);
211 static u32 arp_hash(const void *pkey, in arp_hash() argument
215 return arp_hashfn(pkey, dev, hash_rnd); in arp_hash()
218 static bool arp_key_eq(const struct neighbour *neigh, const void *pkey) in arp_key_eq() argument
220 return neigh_key_eq32(neigh, pkey); in arp_key_eq()
954 static int arp_is_multicast(const void *pkey) in arp_is_multicast() argument
956 return ipv4_is_multicast(*((__be32 *)pkey)); in arp_is_multicast()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/ptrace/
H A Dcore-pkey.c38 #define pkeyshift(pkey) (PKEY_REG_BITS - ((pkey + 1) * AMR_BITS_PER_PKEY))
69 static int sys_pkey_free(int pkey) in sys_pkey_free() argument
71 return syscall(__NR_pkey_free, pkey); in sys_pkey_free()
297 ret = snprintf(filename[0], PATH_MAX, "core-pkey.%d", pid); in parent()
398 ret = write_core_pattern("core-pkey.%p"); in setup_core_pattern()
/kernel/linux/linux-5.10/drivers/infiniband/ulp/opa_vnic/
H A Dopa_vnic_vema_iface.c172 info->pkey = cpu_to_be16(src->pkey); in opa_vnic_get_vesw_info()
206 dst->pkey = be16_to_cpu(info->pkey); in opa_vnic_set_vesw_info()
/kernel/linux/linux-6.6/drivers/infiniband/ulp/opa_vnic/
H A Dopa_vnic_vema_iface.c172 info->pkey = cpu_to_be16(src->pkey); in opa_vnic_get_vesw_info()
206 dst->pkey = be16_to_cpu(info->pkey); in opa_vnic_set_vesw_info()
/kernel/linux/linux-6.6/tools/perf/util/
H A Dexpr.c92 zfree(&cur->pkey); in ids__free()
236 if (expr__get_id(haystack, cur->pkey, &data)) in expr__subset_of_ids()
317 zfree(&cur->pkey); in expr__ctx_clear()
333 zfree(&cur->pkey); in expr__ctx_free()
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/ptrace/
H A Dcore-pkey.c38 #define pkeyshift(pkey) (PKEY_REG_BITS - ((pkey + 1) * AMR_BITS_PER_PKEY))
69 static int sys_pkey_free(int pkey) in sys_pkey_free() argument
71 return syscall(__NR_pkey_free, pkey); in sys_pkey_free()
297 ret = snprintf(filename[0], PATH_MAX, "core-pkey.%d", pid); in parent()
388 ret = write_core_pattern("core-pkey.%p"); in setup_core_pattern()
/kernel/linux/linux-5.10/include/uapi/rdma/
H A Dib_user_sa.h64 __be16 pkey; member
/kernel/linux/linux-6.6/include/uapi/rdma/
H A Dib_user_sa.h64 __be16 pkey; member
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/rdma/
H A Dib_user_sa.h45 __be16 pkey; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/rdma/
H A Dib_user_sa.h45 __be16 pkey; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/rdma/
H A Dib_user_sa.h32 __be16 pkey; member
/kernel/linux/linux-5.10/net/core/
H A Dneighbour.c205 void *pkey = ndel->primary_key; in neigh_remove_one() local
212 hash_val = tbl->hash(pkey, ndel->dev, nht->hash_rnd); in neigh_remove_one()
562 struct neighbour *neigh_lookup(struct neigh_table *tbl, const void *pkey, in neigh_lookup() argument
570 n = __neigh_lookup_noref(tbl, pkey, dev); in neigh_lookup()
583 ___neigh_create(struct neigh_table *tbl, const void *pkey, in ___neigh_create() argument
593 trace_neigh_create(tbl, dev, pkey, n, exempt_from_gc); in ___neigh_create()
599 memcpy(n->primary_key, pkey, key_len); in ___neigh_create()
677 struct neighbour *__neigh_create(struct neigh_table *tbl, const void *pkey, in __neigh_create() argument
680 return ___neigh_create(tbl, pkey, dev, 0, false, want_ref); in __neigh_create()
684 static u32 pneigh_hash(const void *pkey, unsigne argument
694 __pneigh_lookup_1(struct pneigh_entry *n, struct net *net, const void *pkey, unsigned int key_len, struct net_device *dev) __pneigh_lookup_1() argument
710 __pneigh_lookup(struct neigh_table *tbl, struct net *net, const void *pkey, struct net_device *dev) __pneigh_lookup() argument
721 pneigh_lookup(struct neigh_table *tbl, struct net *net, const void *pkey, struct net_device *dev, int creat) pneigh_lookup() argument
767 pneigh_delete(struct neigh_table *tbl, struct net *net, const void *pkey, struct net_device *dev) pneigh_delete() argument
[all...]
/kernel/linux/linux-5.10/arch/x86/mm/
H A Dfault.c795 unsigned long address, u32 pkey, int si_code) in __bad_area_nosemaphore()
830 force_sig_pkuerr((void __user *)address, pkey); in __bad_area_nosemaphore()
854 unsigned long address, u32 pkey, int si_code) in __bad_area()
863 __bad_area_nosemaphore(regs, error_code, address, pkey, si_code); in __bad_area()
902 * from the XSAVE state. This function captures the pkey from in bad_area_access_error()
911 * 1. T1 : mprotect_key(foo, PAGE_SIZE, pkey=4); in bad_area_access_error()
912 * 2. T1 : set PKRU to deny access to pkey=4, touches page in bad_area_access_error()
914 * 4. T2: mprotect_key(foo, PAGE_SIZE, pkey=5); in bad_area_access_error()
917 * faulted on a pte with its pkey=4. in bad_area_access_error()
919 u32 pkey in bad_area_access_error() local
794 __bad_area_nosemaphore(struct pt_regs *regs, unsigned long error_code, unsigned long address, u32 pkey, int si_code) __bad_area_nosemaphore() argument
853 __bad_area(struct pt_regs *regs, unsigned long error_code, unsigned long address, u32 pkey, int si_code) __bad_area() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
H A Dvport.c581 u16 *pkey) in mlx5_query_hca_vport_pkey()
605 out_sz += nout * MLX5_ST_SZ_BYTES(pkey); in mlx5_query_hca_vport_pkey()
633 pkarr = MLX5_ADDR_OF(query_hca_vport_pkey_out, out, pkey); in mlx5_query_hca_vport_pkey()
634 for (i = 0; i < nout; i++, pkey++, pkarr += MLX5_ST_SZ_BYTES(pkey)) in mlx5_query_hca_vport_pkey()
635 *pkey = MLX5_GET_PR(pkey, pkarr, pkey); in mlx5_query_hca_vport_pkey()
579 mlx5_query_hca_vport_pkey(struct mlx5_core_dev *dev, u8 other_vport, u8 port_num, u16 vf_num, u16 pkey_index, u16 *pkey) mlx5_query_hca_vport_pkey() argument
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/
H A Dvport.c585 u16 *pkey) in mlx5_query_hca_vport_pkey()
609 out_sz += nout * MLX5_ST_SZ_BYTES(pkey); in mlx5_query_hca_vport_pkey()
637 pkarr = MLX5_ADDR_OF(query_hca_vport_pkey_out, out, pkey); in mlx5_query_hca_vport_pkey()
638 for (i = 0; i < nout; i++, pkey++, pkarr += MLX5_ST_SZ_BYTES(pkey)) in mlx5_query_hca_vport_pkey()
639 *pkey = MLX5_GET_PR(pkey, pkarr, pkey); in mlx5_query_hca_vport_pkey()
583 mlx5_query_hca_vport_pkey(struct mlx5_core_dev *dev, u8 other_vport, u8 port_num, u16 vf_num, u16 pkey_index, u16 *pkey) mlx5_query_hca_vport_pkey() argument
/kernel/linux/linux-5.10/arch/sparc/include/asm/
H A Dmman.h30 #define arch_calc_vm_prot_bits(prot, pkey) sparc_calc_vm_prot_bits(prot)
/kernel/linux/linux-6.6/arch/sparc/include/asm/
H A Dmman.h30 #define arch_calc_vm_prot_bits(prot, pkey) sparc_calc_vm_prot_bits(prot)
/kernel/linux/linux-5.10/include/crypto/
H A Dpublic_key.h84 int public_key_verify_signature(const struct public_key *pkey,

Completed in 25 milliseconds

12345678910>>...15