Home
last modified time | relevance | path

Searched refs:key (Results 101 – 125 of 4992) sorted by relevance

12345678910>>...200

/openbmc/linux/fs/nfs/
H A Ddns_resolve.c80 memcpy(&new->addr, &key->addr, key->addrlen); in nfs_dns_ent_update()
94 new->hostname = kmemdup_nul(key->hostname, key->namelen, GFP_KERNEL); in nfs_dns_ent_init()
208 &key->h, in nfs_dns_lookup()
209 nfs_dns_hash(key)); in nfs_dns_lookup()
222 &new->h, &key->h, in nfs_dns_update()
223 nfs_dns_hash(key)); in nfs_dns_update()
246 sizeof(key.addr)); in nfs_dns_parse()
252 key.hostname = buf1; in nfs_dns_parse()
253 key.namelen = len; in nfs_dns_parse()
254 memset(&key.h, 0, sizeof(key.h)); in nfs_dns_parse()
[all …]
H A Dfscache.c34 key[(*_len)++] = ','; in nfs_append_int()
47 char *key, int *_len) in nfs_fscache_get_client_key() argument
93 char *key; in nfs_fscache_get_super_cookie() local
102 if (!key) in nfs_fscache_get_super_cookie()
105 memcpy(key, "nfs", 3); in nfs_fscache_get_super_cookie()
123 key[len++] = ','; in nfs_fscache_get_super_cookie()
124 memcpy(key + len, uniq, ulen); in nfs_fscache_get_super_cookie()
127 key[len] = 0; in nfs_fscache_get_super_cookie()
130 vcookie = fscache_acquire_volume(key, in nfs_fscache_get_super_cookie()
135 kfree(key); in nfs_fscache_get_super_cookie()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtimer.c19 __type(key, int);
27 __type(key, int);
38 __type(key, int);
45 __type(key, int);
52 __type(key, int);
79 if (*key == ARRAY) { in timer_cb1()
93 } else if (*key == LRU) { in timer_cb1()
118 if (*key != LRU) in timer_cb1()
166 if (*key == HTAB) in timer_cb2()
270 key = 0; in BPF_PROG2()
[all …]
/openbmc/linux/include/linux/
H A Dbtree.h101 unsigned long *key);
129 unsigned long *key, void *val);
141 unsigned long *key);
173 unsigned long *key);
187 unsigned long *key);
194 unsigned long *key, size_t index,
202 unsigned long *key,
217 for (val = btree_lastl(head, &key); \
219 val = btree_get_prevl(head, &key))
228 for (val = btree_last32(head, &key); \
[all …]
/openbmc/linux/security/keys/
H A Dkeyctl.c173 struct key *key; in SYSCALL_DEFINE4() local
382 struct key *key; in keyctl_revoke_key() local
423 struct key *key; in keyctl_invalidate_key() local
555 struct key *keyring, *key; in keyctl_keyring_unlink() local
648 struct key *key, *instkey; in keyctl_describe_key() local
827 struct key *key; in keyctl_read_key() local
952 struct key *key; in keyctl_chown_key() local
1074 struct key *key; in keyctl_setperm_key() local
1459 struct key *key, *instkey; in keyctl_set_timeout() local
1565 struct key *key, *instkey; in keyctl_get_security() local
[all …]
/openbmc/pldm/requester/
H A Dhandler.hpp62 return (key.eid << 24 | key.instanceId << 16 | key.type << 8 | in operator ()()
161 "EID", key.eid, "INSTANCEID", key.instanceId); in instanceIdExpiryCallBack()
176 key, in instanceIdExpiryCallBack()
220 instanceIdDb.free(requestMsg->key.eid, requestMsg->key.instanceId); in pollEndpointQueue()
235 instanceIdDb.free(requestMsg->key.eid, requestMsg->key.instanceId); in pollEndpointQueue()
322 instanceIdDb.free(key.eid, key.instanceId); in unregisterRequest()
344 if (msg->key == key) in unregisterRequest()
348 instanceIdDb.free(key.eid, key.instanceId); in unregisterRequest()
387 instanceIdDb.free(key.eid, key.instanceId); in handleResponse()
400 instanceIdDb.free(key.eid, key.instanceId); in handleResponse()
[all …]
/openbmc/linux/net/openvswitch/
H A Dactions.c90 key = &keys->key[level - 1]; in clone_key()
91 *key = *key_; in clone_key()
94 return key; in clone_key()
139 da->pkt_key = *key; in add_deferred_actions()
177 invalidate_flow_key(key); in push_mpls()
194 invalidate_flow_key(key); in pop_mpls()
226 key->eth.vlan.tci = 0; in pop_vlan()
227 key->eth.vlan.tpid = 0; in pop_vlan()
1495 key, a); in do_execute_actions()
1545 clone = clone_flow_key ? clone_key(key) : key; in clone_execute()
[all …]
/openbmc/linux/tools/perf/arch/arm64/util/
H A Dkvm-stat.c26 struct event_key *key) in event_get_key() argument
28 key->info = 0; in event_get_key()
29 key->key = evsel__intval(evsel, sample, kvm_exit_reason); in event_get_key()
30 key->exit_reasons = arm64_exit_reasons; in event_get_key()
37 if (key->key == ARM_EXCEPTION_TRAP) { in event_get_key()
38 key->key = evsel__intval(evsel, sample, kvm_trap_exit_reason); in event_get_key()
39 key->exit_reasons = arm64_trap_exit_reasons; in event_get_key()
45 struct event_key *key __maybe_unused) in event_begin()
52 struct event_key *key) in event_end() argument
55 event_get_key(evsel, sample, key); in event_end()
/openbmc/u-boot/fs/btrfs/
H A Dinode.c15 struct btrfs_key *key; in btrfs_lookup_inode_ref() local
22 if (!key) in btrfs_lookup_inode_ref()
41 res = key->offset; in btrfs_lookup_inode_ref()
89 struct btrfs_key key; in btrfs_readlink() local
94 key.objectid = inr; in btrfs_readlink()
96 key.offset = 0; in btrfs_readlink()
165 key.offset = 0; in get_parent_inode()
179 key.objectid = res; in get_parent_inode()
181 key.offset = 0; in get_parent_inode()
307 key.offset = 0; in btrfs_lookup_path()
[all …]
/openbmc/linux/arch/sparc/crypto/
H A Daes_glue.c38 void (*load_encrypt_keys)(const u64 *key);
39 void (*load_decrypt_keys)(const u64 *key);
54 u64 key[AES_MAX_KEYLENGTH / sizeof(u64)]; member
231 ctx->ops->load_encrypt_keys(&ctx->key[0]); in ecb_encrypt()
233 ctx->ops->ecb_encrypt(&ctx->key[0], walk.src.virt.addr, in ecb_encrypt()
255 ctx->ops->load_decrypt_keys(&ctx->key[0]); in ecb_decrypt()
280 ctx->ops->load_encrypt_keys(&ctx->key[0]); in cbc_encrypt()
282 ctx->ops->cbc_encrypt(&ctx->key[0], walk.src.virt.addr, in cbc_encrypt()
305 ctx->ops->load_decrypt_keys(&ctx->key[0]); in cbc_decrypt()
346 ctx->ops->load_encrypt_keys(&ctx->key[0]); in ctr_crypt()
[all …]
/openbmc/linux/certs/
H A Dblacklist.c86 static int blacklist_key_instantiate(struct key *key, in blacklist_key_instantiate() argument
127 static int blacklist_key_update(struct key *key, in blacklist_key_update() argument
133 static void blacklist_describe(const struct key *key, struct seq_file *m) in blacklist_describe() argument
184 key_ref_t key; in mark_raw_hash_blacklisted() local
194 if (IS_ERR(key)) { in mark_raw_hash_blacklisted()
195 if (PTR_ERR(key) == -EEXIST) in mark_raw_hash_blacklisted()
199 return PTR_ERR(key); in mark_raw_hash_blacklisted()
264 key_ref_t key; in add_key_to_revocation_list() local
276 if (IS_ERR(key)) { in add_key_to_revocation_list()
278 return PTR_ERR(key); in add_key_to_revocation_list()
[all …]
H A Dsystem_keyring.c88 struct key *dest_keyring, in restrict_link_by_builtin_and_secondary_trusted()
91 struct key *restrict_key) in restrict_link_by_builtin_and_secondary_trusted()
120 struct key *restrict_key) in restrict_link_by_digsig_builtin_and_secondary()
167 key_ref_t key; in add_to_secondary_keyring() local
176 if (IS_ERR(key)) { in add_to_secondary_keyring()
178 source, PTR_ERR(key)); in add_to_secondary_keyring()
183 key_ref_put(key); in add_to_secondary_keyring()
207 struct key *dest_keyring, in restrict_link_by_builtin_secondary_and_machine()
210 struct key *restrict_key) in restrict_link_by_builtin_secondary_and_machine()
313 struct key *trusted_keys, in verify_pkcs7_message_sig()
[all …]
/openbmc/linux/net/wireless/
H A Dlib80211_crypt_ccmp.c40 u8 key[CCMP_TK_LEN]; member
164 memcpy(aeskey, key->key, CCMP_TK_LEN); in lib80211_ccmp_hdr()
172 key->tx_pn[i]++; in lib80211_ccmp_hdr()
178 *pos++ = key->tx_pn[5]; in lib80211_ccmp_hdr()
196 u8 *aad = key->tx_aad; in lib80211_ccmp_encrypt()
261 u8 *aad = key->rx_aad; in lib80211_ccmp_decrypt()
287 if (!key->key_set) { in lib80211_ccmp_decrypt()
305 key->rx_pn[0], key->rx_pn[1], key->rx_pn[2], in lib80211_ccmp_decrypt()
306 key->rx_pn[3], key->rx_pn[4], key->rx_pn[5], in lib80211_ccmp_decrypt()
358 memcpy(data->key, key, CCMP_TK_LEN); in lib80211_ccmp_set_key()
[all …]
/openbmc/linux/net/mac80211/
H A Dtkip.c156 const u8 *tk = &key->conf.key[NL80211_TKIP_DATA_OFFSET_ENCR_KEY]; in ieee80211_compute_tkip_p1k()
178 spin_lock_bh(&key->u.tkip.txlock); in ieee80211_get_tkip_p1k_iv()
181 spin_unlock_bh(&key->u.tkip.txlock); in ieee80211_get_tkip_p1k_iv()
201 const u8 *tk = &key->conf.key[NL80211_TKIP_DATA_OFFSET_ENCR_KEY]; in ieee80211_get_tkip_p2k()
208 spin_lock(&key->u.tkip.txlock); in ieee80211_get_tkip_p2k()
211 spin_unlock(&key->u.tkip.txlock); in ieee80211_get_tkip_p2k()
223 struct ieee80211_key *key, in ieee80211_tkip_encrypt_data() argument
240 struct ieee80211_key *key, in ieee80211_tkip_decrypt_data() argument
249 const u8 *tk = &key->conf.key[NL80211_TKIP_DATA_OFFSET_ENCR_KEY]; in ieee80211_tkip_decrypt_data()
263 if ((keyid >> 6) != key->conf.keyidx) in ieee80211_tkip_decrypt_data()
[all …]
/openbmc/linux/include/crypto/internal/
H A Ddes.h31 err = des_expand_key(&tmp, key, DES_KEY_SIZE); in crypto_des_verify_key()
55 static inline int des3_ede_verify_key(const u8 *key, unsigned int key_len, in des3_ede_verify_key() argument
61 memcpy(K, key, DES3_EDE_KEY_SIZE); in des3_ede_verify_key()
92 const u8 *key) in crypto_des3_ede_verify_key() argument
94 return des3_ede_verify_key(key, DES3_EDE_KEY_SIZE, in crypto_des3_ede_verify_key()
100 const u8 *key) in verify_skcipher_des_key() argument
102 return crypto_des_verify_key(crypto_skcipher_tfm(tfm), key); in verify_skcipher_des_key()
106 const u8 *key) in verify_skcipher_des3_key() argument
108 return crypto_des3_ede_verify_key(crypto_skcipher_tfm(tfm), key); in verify_skcipher_des3_key()
116 return crypto_des_verify_key(crypto_aead_tfm(tfm), key); in verify_aead_des_key()
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/
H A Ddata.py79 for key in alterdata:
80 if not '${' in key:
84 if key == ekey:
86 todolist[key] = ekey
182 isfunc = lambda key: bool(d.getVarFlag(key, "func", False)) argument
183 keys = sorted((key for key in d.keys() if not key.startswith("__")), key=isfunc)
190 return (key for key in d.keys() if not key.startswith('__') and
196 for key in k:
209 …keys = (key for key in d.keys() if not key.startswith("__") and not d.getVarFlag(key, "func", Fals…
378 keys = set(key for key in d if not key.startswith("__")) | mod_funcs
[all …]
/openbmc/linux/crypto/
H A Dcast6_generic.c96 key[6] ^= F1(key[7], Tr[i % 4][0], Tm[i][0]); in W()
97 key[5] ^= F2(key[6], Tr[i % 4][1], Tm[i][1]); in W()
98 key[4] ^= F3(key[5], Tr[i % 4][2], Tm[i][2]); in W()
99 key[3] ^= F1(key[4], Tr[i % 4][3], Tm[i][3]); in W()
100 key[2] ^= F2(key[3], Tr[i % 4][4], Tm[i][4]); in W()
101 key[1] ^= F3(key[2], Tr[i % 4][5], Tm[i][5]); in W()
102 key[0] ^= F1(key[1], Tr[i % 4][6], Tm[i][6]); in W()
103 key[7] ^= F2(key[0], Tr[i % 4][7], Tm[i][7]); in W()
109 u32 key[8]; in __cast6_setkey() local
128 W(key, 2 * i); in __cast6_setkey()
[all …]
/openbmc/linux/tools/lib/bpf/
H A Dhashmap.h43 typedef size_t (*hashmap_hash_fn)(long key, void *ctx);
62 long key; member
129 int hashmap_insert(struct hashmap *map, long key, long value,
138 #define hashmap__add(map, key, value) \ argument
141 #define hashmap__set(map, key, value, old_key, old_value) \ argument
147 #define hashmap__append(map, key, value) \ argument
153 hashmap_delete((map), (long)(key), \
159 #define hashmap__find(map, key, value) \ argument
160 hashmap_find((map), (long)(key), hashmap_cast_ptr(value))
198 if (map->equal_fn(cur->key, (_key), map->ctx))
[all …]
/openbmc/linux/tools/perf/util/
H A Dhashmap.h43 typedef size_t (*hashmap_hash_fn)(long key, void *ctx);
62 long key; member
129 int hashmap_insert(struct hashmap *map, long key, long value,
138 #define hashmap__add(map, key, value) \ argument
141 #define hashmap__set(map, key, value, old_key, old_value) \ argument
147 #define hashmap__append(map, key, value) \ argument
153 hashmap_delete((map), (long)(key), \
159 #define hashmap__find(map, key, value) \ argument
160 hashmap_find((map), (long)(key), hashmap_cast_ptr(value))
198 if (map->equal_fn(cur->key, (_key), map->ctx))
[all …]
/openbmc/linux/drivers/tee/optee/
H A Dnotif.c18 u_int key; member
21 static bool have_key(struct optee *optee, u_int key) in have_key() argument
26 if (entry->key == key) in have_key()
38 if (key > optee->notif.max_key) in optee_notif_wait()
45 entry->key = key; in optee_notif_wait()
53 if (test_bit(key, optee->notif.bitmap)) { in optee_notif_wait()
54 clear_bit(key, optee->notif.bitmap); in optee_notif_wait()
62 if (have_key(optee, key)) { in optee_notif_wait()
90 if (key > optee->notif.max_key) in optee_notif_send()
96 if (entry->key == key) { in optee_notif_send()
[all …]
/openbmc/openbmc/poky/meta/classes-global/
H A Dpackagedata.bbclass19 for key in data.keys():
20 d.setVar(key, data[key])
24 for key in sdata.keys():
25 if key in vars:
26 if sdata[key] != vars[key]:
27 if key == "PN":
28 …age from one recipe or the other or only build one of the recipes." % (vars[key], pkg, sdata[key]))
29 …sed and they will be unable to find the right workdir." % (vars["PN"], key, vars[key], sdata[key]))
36 if key.endswith(":" + pkg):
37 d.setVar(key, sdata[key])
[all …]
/openbmc/qemu/hw/net/rocker/
H A Drocker-hmp-cmds.c84 RockerOfDpaFlowKey *key = flow->key; in hmp_rocker_of_dpa_flows() local
90 key->priority, key->tbl_id, flow->hits); in hmp_rocker_of_dpa_flows()
93 key->priority, key->tbl_id); in hmp_rocker_of_dpa_flows()
96 if (key->has_in_pport) { in hmp_rocker_of_dpa_flows()
103 if (key->has_vlan_id) { in hmp_rocker_of_dpa_flows()
111 if (key->has_tunnel_id) { in hmp_rocker_of_dpa_flows()
118 if (key->has_eth_type) { in hmp_rocker_of_dpa_flows()
141 if (key->eth_src) { in hmp_rocker_of_dpa_flows()
158 if (key->eth_dst) { in hmp_rocker_of_dpa_flows()
182 if (key->has_ip_tos) { in hmp_rocker_of_dpa_flows()
[all …]
/openbmc/linux/fs/btrfs/
H A Ddir-item.c120 struct btrfs_key key; in btrfs_insert_dir_item() local
218 struct btrfs_key key; in btrfs_lookup_dir_item() local
221 key.objectid = dir; in btrfs_lookup_dir_item()
237 struct btrfs_key key; in btrfs_check_dir_item_collision() local
248 key.objectid = dir; in btrfs_check_dir_item_collision()
316 key.objectid = dir; in btrfs_lookup_dir_index_item()
318 key.offset = index; in btrfs_lookup_dir_index_item()
338 key.offset = 0; in btrfs_search_dir_index_item()
340 btrfs_for_each_slot(root, &key, &key, path, ret) { in btrfs_search_dir_index_item()
341 if (key.objectid != dirid || key.type != BTRFS_DIR_INDEX_KEY) in btrfs_search_dir_index_item()
[all …]
/openbmc/linux/Documentation/security/keys/
H A Dcore.rst1076 being cleared, a key being revoked, a key being invalidated or a key
1207 void key_put(struct key *key);
1220 struct key *__key_get(struct key *key);
1221 struct key *key_get(struct key *key);
1232 key_serial_t key_serial(struct key *key);
1296 int validate_key(struct key *key);
1532 bool (*cmp)(const struct key *key,
1577 * ``void (*revoke)(struct key *key);``
1587 * ``void (*destroy)(struct key *key);``
1661 * ``struct key *key;``
[all …]
/openbmc/pyphosphor/obmc/utils/
H A Dpathtree.py43 key, value = self._next()
113 def _get_node(self, key): argument
128 def __missing__(self, key): argument
130 if key == x:
134 def __delitem__(self, key): argument
135 del self.cache[key]
149 self.cache[key] = value
159 def __getitem__(self, key): argument
160 if key in self.cache:
166 if not self.get(key):
[all …]

12345678910>>...200