Searched refs:key (Results 51 - 75 of 3065) sorted by relevance

1234567891011>>

/linux-master/include/net/
H A Dtipc.h51 __be32 key; local
53 /* Return source node identity as key */
58 get_random_bytes(&key, sizeof(key));
59 return key;
/linux-master/tools/testing/selftests/bpf/progs/
H A Dfor_each_map_elem_write_key.c8 __type(key, __u32);
13 check_array_elem(struct bpf_map *map, __u32 *key, __u64 *val, argument
16 bpf_get_current_comm(key, sizeof(*key));
H A Dtest_sockmap_invalid_update.c9 __type(key, __u32);
16 __u32 key = 0; local
19 bpf_map_update_elem(&map, &key, skops->sk, 0);
H A Dtest_map_in_map.c12 __type(key, __u32);
20 __type(key, int);
30 __type(key, __u32);
37 __type(key, __u32);
45 __type(key, __u32);
55 int key = 0; local
58 map = bpf_map_lookup_elem(&mim_array, &key);
62 bpf_map_update_elem(map, &key, &value, 0);
63 value_p = bpf_map_lookup_elem(map, &key);
67 map = bpf_map_lookup_elem(&mim_hash, &key);
[all...]
H A Dtest_sockmap_update.c9 __type(key, __u32);
16 __type(key, __u32);
23 __type(key, __u32);
32 __u32 key = 0; local
34 sk = bpf_map_lookup_elem(&src, &key);
38 if (bpf_map_update_elem(&dst_sock_map, &key, sk, 0))
41 if (bpf_map_update_elem(&dst_sock_hash, &key, sk, 0))
H A Dtest_hash_large_key.c11 __type(key, struct bigelement);
18 __type(key, __u32);
32 struct bigelement *key; local
34 key = bpf_map_lookup_elem(&key_map, &zero);
35 if (!key)
38 key->c = 1;
39 if (bpf_map_update_elem(&hash_map, key, &value, BPF_ANY))
H A Dbpf_iter_bpf_percpu_hash_map.c18 __type(key, struct key_t);
32 struct key_t *key = ctx->key; local
37 if (key == (void *)0 || pptr == (void *)0)
40 key_sum_a += key->a;
41 key_sum_b += key->b;
42 key_sum_c += key->c;
H A Dbpf_iter_bpf_hash_map.c17 __type(key, struct key_t);
24 __type(key, __u64);
31 __type(key, struct key_t);
48 struct key_t *key = ctx->key; local
60 * should be rejected due to smaller key/value
63 if (key == (void *)0 || val == (void *)0)
66 /* update the value and then delete the <key, value> pair.
70 __builtin_memcpy(&tmp_key, key, sizeof(struct key_t));
78 key_sum_a += key
[all...]
/linux-master/tools/perf/arch/s390/util/
H A Dkvm-stat.c28 struct event_key *key)
33 key->key = icpt_insn_decoder(insn);
34 key->exit_reasons = sie_icpt_insn_codes;
39 struct event_key *key)
41 key->key = evsel__intval(evsel, sample, "order_code");
42 key->exit_reasons = sie_sigp_order_codes;
47 struct event_key *key)
49 key
26 event_icpt_insn_get_key(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) argument
37 event_sigp_get_key(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) argument
45 event_diag_get_key(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) argument
53 event_icpt_prog_get_key(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) argument
[all...]
/linux-master/arch/csky/include/asm/
H A Djump_label.h12 static __always_inline bool arch_static_branch(struct static_key *key, argument
22 : : "i"(&((char *)key)[branch]) : : label);
29 static __always_inline bool arch_static_branch_jump(struct static_key *key, argument
39 : : "i"(&((char *)key)[branch]) : : label);
/linux-master/arch/parisc/include/asm/
H A Djump_label.h13 static __always_inline bool arch_static_branch(struct static_key *key, bool branch) argument
22 : : "i" (&((char *)key)[branch]), "i" (sizeof(long))
30 static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch) argument
39 : : "i" (&((char *)key)[branch]), "i" (sizeof(long))
/linux-master/arch/s390/include/asm/
H A Djump_label.h26 static __always_inline bool arch_static_branch(struct static_key *key, bool branch) argument
34 : : JUMP_LABEL_STATIC_KEY_CONSTRAINT (key), "i" (branch) : : label);
40 static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch) argument
48 : : JUMP_LABEL_STATIC_KEY_CONSTRAINT (key), "i" (branch) : : label);
/linux-master/fs/nilfs2/
H A Ddirect.c24 nilfs_direct_get_ptr(const struct nilfs_bmap *direct, __u64 key) argument
26 return le64_to_cpu(*(nilfs_direct_dptrs(direct) + key));
30 __u64 key, __u64 ptr)
32 *(nilfs_direct_dptrs(direct) + key) = cpu_to_le64(ptr);
36 __u64 key, int level, __u64 *ptrp)
40 if (key > NILFS_DIRECT_KEY_MAX || level != 1)
42 ptr = nilfs_direct_get_ptr(direct, key);
51 __u64 key, __u64 *ptrp,
59 if (key > NILFS_DIRECT_KEY_MAX)
61 ptr = nilfs_direct_get_ptr(direct, key);
29 nilfs_direct_set_ptr(struct nilfs_bmap *direct, __u64 key, __u64 ptr) argument
35 nilfs_direct_lookup(const struct nilfs_bmap *direct, __u64 key, int level, __u64 *ptrp) argument
50 nilfs_direct_lookup_contig(const struct nilfs_bmap *direct, __u64 key, __u64 *ptrp, unsigned int maxblocks) argument
98 nilfs_direct_find_target_v(const struct nilfs_bmap *direct, __u64 key) argument
111 nilfs_direct_insert(struct nilfs_bmap *bmap, __u64 key, __u64 ptr) argument
147 nilfs_direct_delete(struct nilfs_bmap *bmap, __u64 key) argument
172 __u64 key; local
186 __u64 key, lastkey; local
202 nilfs_direct_check_insert(const struct nilfs_bmap *bmap, __u64 key) argument
210 __u64 key; local
228 nilfs_direct_delete_and_convert(struct nilfs_bmap *bmap, __u64 key, __u64 *keys, __u64 *ptrs, int n) argument
266 __u64 key; local
292 nilfs_direct_assign_v(struct nilfs_bmap *direct, __u64 key, __u64 ptr, struct buffer_head **bh, sector_t blocknr, union nilfs_binfo *binfo) argument
312 nilfs_direct_assign_p(struct nilfs_bmap *direct, __u64 key, __u64 ptr, struct buffer_head **bh, sector_t blocknr, union nilfs_binfo *binfo) argument
332 __u64 key; local
[all...]
/linux-master/security/keys/
H A Drequest_key.c2 /* Request a key from userspace
7 * See Documentation/security/keys/request-key.rst
20 #define key_negative_timeout 60 /* default timeout on a negative key's existence */
22 static struct key *check_cached_key(struct keyring_search_context *ctx)
25 struct key *key = current->cached_requested_key; local
27 if (key &&
28 ctx->match_data.cmp(key, &ctx->match_data) &&
29 !(key->flags & ((1 << KEY_FLAG_INVALIDATED) |
31 return key_get(key);
36 cache_requested_key(struct key *key) argument
62 struct key *key = rka->target_key; local
124 struct key *key = rka->target_key, *keyring, *session, *user_session; local
226 construct_key(struct key *key, const void *callout_info, size_t callout_len, void *aux, struct key *dest_keyring) argument
376 struct key *key; local
497 struct key *key; local
596 struct key *key; local
676 wait_for_key_construction(struct key *key, bool intr) argument
711 struct key *key; local
753 struct key *key; local
798 struct key *key; local
[all...]
/linux-master/fs/ubifs/
H A Dkey.h12 * This header contains various key-related definitions and helper function.
13 * UBIFS allows several key schemes, so we access key fields only via these
14 * helpers. At the moment only one key scheme is supported.
16 * Simple key scheme
20 * in case of direntry key). Next 3 bits are node type. The last 29 bits are
26 * Lot's of the key helpers require a struct ubifs_info *c as the first parameter.
28 * different c->key_format. But right now, there is only one key type, UBIFS_SIMPLE_KEY_FMT.
85 * ino_key_init - initialize inode key.
87 * @key
90 ino_key_init(const struct ubifs_info *c, union ubifs_key *key, ino_t inum) argument
106 union ubifs_key *key = k; local
119 lowest_ino_key(const struct ubifs_info *c, union ubifs_key *key, ino_t inum) argument
132 highest_ino_key(const struct ubifs_info *c, union ubifs_key *key, ino_t inum) argument
146 dent_key_init(const struct ubifs_info *c, union ubifs_key *key, ino_t inum, const struct fscrypt_name *nm) argument
165 dent_key_init_hash(const struct ubifs_info *c, union ubifs_key *key, ino_t inum, uint32_t hash) argument
185 union ubifs_key *key = k; local
201 lowest_dent_key(const struct ubifs_info *c, union ubifs_key *key, ino_t inum) argument
215 xent_key_init(const struct ubifs_info *c, union ubifs_key *key, ino_t inum, const struct fscrypt_name *nm) argument
236 union ubifs_key *key = k; local
252 lowest_xent_key(const struct ubifs_info *c, union ubifs_key *key, ino_t inum) argument
266 data_key_init(const struct ubifs_info *c, union ubifs_key *key, ino_t inum, unsigned int block) argument
281 highest_data_key(const struct ubifs_info *c, union ubifs_key *key, ino_t inum) argument
296 trun_key_init(const struct ubifs_info *c, union ubifs_key *key, ino_t inum) argument
310 invalid_key_init(const struct ubifs_info *c, union ubifs_key *key) argument
322 key_type(const struct ubifs_info *c, const union ubifs_key *key) argument
335 const union ubifs_key *key = k; local
347 const union ubifs_key *key = k; local
359 const union ubifs_key *key = k; local
369 key_hash(const struct ubifs_info *c, const union ubifs_key *key) argument
382 const union ubifs_key *key = k; local
392 key_block(const struct ubifs_info *c, const union ubifs_key *key) argument
406 const union ubifs_key *key = k; local
521 is_hash_key(const struct ubifs_info *c, const union ubifs_key *key) argument
[all...]
/linux-master/net/openvswitch/
H A Dflow.c385 static int parse_ipv6hdr(struct sk_buff *skb, struct sw_flow_key *key) argument
400 get_ipv6_ext_hdrs(skb, nh, &key->ipv6.exthdrs);
402 key->ip.proto = NEXTHDR_NONE;
403 key->ip.tos = ipv6_get_dsfield(nh);
404 key->ip.ttl = nh->hop_limit;
405 key->ipv6.label = *(__be32 *)nh & htonl(IPV6_FLOWINFO_FLOWLABEL);
406 key->ipv6.addr.src = nh->saddr;
407 key->ipv6.addr.dst = nh->daddr;
412 key->ip.frag = OVS_FRAG_TYPE_LATER;
413 key
486 clear_vlan(struct sw_flow_key *key) argument
494 parse_vlan(struct sk_buff *skb, struct sw_flow_key *key) argument
554 parse_icmpv6(struct sk_buff *skb, struct sw_flow_key *key, int nh_len) argument
628 parse_nsh(struct sk_buff *skb, struct sw_flow_key *key) argument
682 key_extract_l3l4(struct sk_buff *skb, struct sw_flow_key *key) argument
914 key_extract(struct sk_buff *skb, struct sw_flow_key *key) argument
970 ovs_flow_key_update_l3l4(struct sk_buff *skb, struct sw_flow_key *key) argument
975 ovs_flow_key_update(struct sk_buff *skb, struct sw_flow_key *key) argument
1000 ovs_flow_key_extract(const struct ip_tunnel_info *tun_info, struct sk_buff *skb, struct sw_flow_key *key) argument
1075 ovs_flow_key_extract_userspace(struct net *net, const struct nlattr *attr, struct sk_buff *skb, struct sw_flow_key *key, bool log) argument
[all...]
/linux-master/drivers/crypto/intel/qat/qat_common/
H A Dadf_gen4_config.c16 char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES]; local
32 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_BANK_NUM, i);
34 key, &bank, ADF_DEC);
39 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_BANK_NUM, i);
41 key, &bank, ADF_DEC);
45 snprintf(key, sizeof(key), ADF_CY "%d" ADF_ETRMGR_CORE_AFFINITY,
48 key,
122 char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES]; local
[all...]
H A Dadf_gen2_config.c15 char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES]; local
30 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_BANK_NUM, i);
32 key, &val, ADF_DEC);
36 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_BANK_NUM, i);
38 key, &val, ADF_DEC);
42 snprintf(key, sizeof(key), ADF_CY "%d" ADF_ETRMGR_CORE_AFFINITY,
45 key,
114 char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES]; local
[all...]
/linux-master/drivers/s390/crypto/
H A Dzcrypt_cca_key.h21 * mapping for the cca private ME key token.
25 * mapping for the cca key token header
40 * In a private key, the modulus doesn't appear in the public
51 unsigned short modulus_byte_len; /* In a private key, this is 0 */
55 * mapping for the cca private CRT key 'token'
92 * Set up private key fields of a type6 MEX message.
95 * @p: pointer to memory area for the key
97 * Returns the size of the key area or negative errno value.
112 } __packed *key = p; local
124 memset(key,
172 } __packed *key = p; local
[all...]
/linux-master/fs/xfs/
H A Dxfs_mru_cache.h13 unsigned long key; member in struct:xfs_mru_cache_elem
25 int xfs_mru_cache_insert(struct xfs_mru_cache *mru, unsigned long key,
28 xfs_mru_cache_remove(struct xfs_mru_cache *mru, unsigned long key);
29 void xfs_mru_cache_delete(struct xfs_mru_cache *mru, unsigned long key);
31 xfs_mru_cache_lookup(struct xfs_mru_cache *mru, unsigned long key);
/linux-master/drivers/input/
H A Dsparse-keymap.c25 struct key_entry *key; local
28 for (key = dev->keycode; key->type != KE_END; key++) {
29 if (key->type == KE_KEY) {
30 if (key == k)
42 struct key_entry *key; local
45 for (key = dev->keycode; key->type != KE_END; key
64 struct key_entry *key; local
85 struct key_entry *key; local
98 struct key_entry *key; local
114 const struct key_entry *key; local
136 struct key_entry *key; local
[all...]
/linux-master/include/linux/
H A Dsiphash.h20 u64 key[2]; member in struct:__anon679
25 static inline bool siphash_key_is_zero(const siphash_key_t *key) argument
27 return !(key->key[0] | key->key[1]);
30 u64 __siphash_aligned(const void *data, size_t len, const siphash_key_t *key);
31 u64 __siphash_unaligned(const void *data, size_t len, const siphash_key_t *key);
33 u64 siphash_1u64(const u64 a, const siphash_key_t *key);
34 u64 siphash_2u64(const u64 a, const u64 b, const siphash_key_t *key);
43 siphash_2u32(const u32 a, const u32 b, const siphash_key_t *key) argument
48 siphash_4u32(const u32 a, const u32 b, const u32 c, const u32 d, const siphash_key_t *key) argument
55 ___siphash_aligned(const __le64 *data, size_t len, const siphash_key_t *key) argument
81 siphash(const void *data, size_t len, const siphash_key_t *key) argument
92 unsigned long key[2]; member in struct:__anon680
107 ___hsiphash_aligned(const __le32 *data, size_t len, const hsiphash_key_t *key) argument
131 hsiphash(const void *data, size_t len, const hsiphash_key_t *key) argument
[all...]
/linux-master/samples/bpf/
H A Dmap_perf_test.bpf.c19 __type(key, u32);
26 __type(key, u32);
33 __type(key, u32);
41 __type(key, u32);
67 __type(key, u32);
91 __type(key, u32);
98 __type(key, u32);
106 u32 key = bpf_get_current_pid_tgid(); local
112 bpf_map_update_elem(&hash_map, &key, &init_val, BPF_ANY);
113 value = bpf_map_lookup_elem(&hash_map, &key);
124 u32 key = bpf_get_current_pid_tgid(); local
141 u32 key = bpf_get_current_pid_tgid(); local
158 u32 key = bpf_get_current_pid_tgid(); local
184 u32 key; member in struct:__anon4776::__anon4777
190 u32 key = 0; local
254 } key; local
273 u32 key = 1, i; local
286 u32 key = 1, i; local
[all...]
/linux-master/tools/testing/selftests/riscv/hwprobe/
H A Dhwprobe.c22 pairs[i].key = i;
29 /* Fail if the kernel claims not to recognize a base key. */
30 if ((i < 4) && (pairs[i].key != i))
31 ksft_exit_fail_msg("Failed to recognize base key: key != i, "
32 "key=%lld, i=%ld\n", pairs[i].key, i);
34 if (pairs[i].key != RISCV_HWPROBE_KEY_BASE_BEHAVIOR)
40 ksft_exit_fail_msg("Unexpected pair: (%lld, %llu)\n", pairs[i].key, pairs[i].value);
52 pairs[0].key
[all...]
/linux-master/include/crypto/internal/
H A Ddes.h3 * DES & Triple DES EDE key verification helpers
16 * crypto_des_verify_key - Check whether a DES key is weak
18 * @key: the key buffer
20 * Returns -EINVAL if the key is weak and the crypto TFM does not permit weak
23 * It is the job of the caller to ensure that the size of the key equals
26 static inline int crypto_des_verify_key(struct crypto_tfm *tfm, const u8 *key) argument
31 err = des_expand_key(&tmp, key, DES_KEY_SIZE);
55 static inline int des3_ede_verify_key(const u8 *key, unsigned int key_len, argument
61 memcpy(K, key, DES3_EDE_KEY_SIZ
91 crypto_des3_ede_verify_key(struct crypto_tfm *tfm, const u8 *key) argument
99 verify_skcipher_des_key(struct crypto_skcipher *tfm, const u8 *key) argument
105 verify_skcipher_des3_key(struct crypto_skcipher *tfm, const u8 *key) argument
111 verify_aead_des_key(struct crypto_aead *tfm, const u8 *key, int keylen) argument
119 verify_aead_des3_key(struct crypto_aead *tfm, const u8 *key, int keylen) argument
[all...]

Completed in 418 milliseconds

1234567891011>>