Home
last modified time | relevance | path

Searched refs:key (Results 51 – 75 of 4594) sorted by relevance

12345678910>>...184

/openbmc/linux/drivers/gpu/drm/
H A Ddrm_hashtab.c77 unsigned long key) in drm_ht_find_key() argument
86 if (entry->key == key) in drm_ht_find_key()
88 if (entry->key > key) in drm_ht_find_key()
95 unsigned long key) in drm_ht_find_key_rcu() argument
104 if (entry->key == key) in drm_ht_find_key_rcu()
106 if (entry->key > key) in drm_ht_find_key_rcu()
118 unsigned long key = item->key; in drm_ht_insert_item() local
124 if (entry->key == key) in drm_ht_insert_item()
126 if (entry->key > key) in drm_ht_insert_item()
171 list = drm_ht_find_key_rcu(ht, key); in drm_ht_find_item()
[all …]
/openbmc/linux/drivers/staging/vt6655/
H A Dkey.c18 struct ieee80211_key_conf *key, u32 key_type, in vnt_set_keymode() argument
26 u8 key_inx = key->keyidx; in vnt_set_keymode()
39 key->hw_key_idx = i; in vnt_set_keymode()
40 entry = key->hw_key_idx; in vnt_set_keymode()
50 key->hw_key_idx = entry; in vnt_set_keymode()
76 if (key->keylen == WLAN_KEY_LEN_WEP40) in vnt_set_keymode()
77 key->key[15] &= 0x7f; in vnt_set_keymode()
78 if (key->keylen == WLAN_KEY_LEN_WEP104) in vnt_set_keymode()
79 key->key[15] |= 0x80; in vnt_set_keymode()
83 bssid, (u32 *)key->key, priv->local_id); in vnt_set_keymode()
[all …]
/openbmc/linux/lib/
H A Dhashtable_test.c13 int key; member
41 a.key = 1; in hashtable_test_hash_empty()
54 a.key = 1; in hashtable_test_hash_hashed()
57 b.key = 1; in hashtable_test_hash_hashed()
71 a.key = 1; in hashtable_test_hash_add()
75 b.key = 2; in hashtable_test_hash_add()
82 if (x->key == a.key) in hashtable_test_hash_add()
84 else if (x->key == b.key) in hashtable_test_hash_add()
100 a.key = 1; in hashtable_test_hash_del()
103 b.key = 2; in hashtable_test_hash_del()
[all …]
/openbmc/qemu/include/qapi/qmp/
H A Dqdict.h22 char *key; member
43 void qdict_del(QDict *qdict, const char *key);
44 int qdict_haskey(const QDict *qdict, const char *key);
45 QObject *qdict_get(const QDict *qdict, const char *key);
50 #define qdict_put(qdict, key, obj) \ argument
51 qdict_put_obj(qdict, key, QOBJECT(obj))
55 void qdict_put_null(QDict *qdict, const char *key);
59 int64_t qdict_get_int(const QDict *qdict, const char *key);
60 bool qdict_get_bool(const QDict *qdict, const char *key);
61 QList *qdict_get_qlist(const QDict *qdict, const char *key);
[all …]
/openbmc/qemu/replay/
H A Dreplay-input.c22 InputKeyEvent *key; in replay_save_input_event() local
30 key = evt->u.key.data; in replay_save_input_event()
31 replay_put_dword(key->key->type); in replay_save_input_event()
33 switch (key->key->type) { in replay_save_input_event()
35 replay_put_qword(key->key->u.number.data); in replay_save_input_event()
39 replay_put_dword(key->key->u.qcode.data); in replay_save_input_event()
81 key.key = &keyValue; in replay_read_input_event()
90 evt.u.key.data = &key; in replay_read_input_event()
91 evt.u.key.data->key->type = replay_get_dword(); in replay_read_input_event()
93 switch (evt.u.key.data->key->type) { in replay_read_input_event()
[all …]
/openbmc/openbmc-test-automation/lib/
H A Dffdc_cli_robot_script.py145 if HOST in key:
147 elif USER in key:
149 elif PASSWD in key:
151 elif PORT_SSH in key:
157 elif CONFIG in key:
159 elif LOC in key:
161 elif TYPE in key:
163 elif PROTOCOL in key:
165 elif ENV_VARS in key:
167 elif ECONFIG in key:
[all …]
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_lpm_map.c33 uint8_t key[]; member
41 const uint8_t *key, in tlpm_add() argument
52 memcpy(node->key, key, n); in tlpm_add()
63 memcpy(node->key, key, n); in tlpm_add()
234 key = alloca(sizeof(*key) + keysize); in test_lpm_map()
235 memset(key, 0, sizeof(*key) + keysize); in test_lpm_map()
288 memcpy(key->data, list->key, keysize); in test_lpm_map()
452 key->prefixlen = 16; in test_lpm_delete()
457 key->prefixlen = 24; in test_lpm_delete()
462 key->prefixlen = 24; in test_lpm_delete()
[all …]
H A Dtest_maps.c48 key = 1; in test_hashmap()
66 key = 2; in test_hashmap()
88 key = 0; in test_hashmap()
93 key = 1; in test_hashmap()
95 key = 2; in test_hashmap()
97 key = 3; in test_hashmap()
102 key = 0; in test_hashmap()
117 key = 1; in test_hashmap()
280 key = i; value[0] = key; in helper_fill_hashmap()
495 for (key = 0; key < nr_keys; key++) in test_arraymap_percpu_many_keys()
[all …]
/openbmc/linux/arch/powerpc/crypto/
H A Daesp10-ppc.pl174 lvsr $key,0,r9 # borrow $key
180 le?vxor $key,$key,$mask # adjust for byte swap
206 vcipherlast $key,$key,$rcon
226 vcipherlast $key,$key,$rcon
243 vcipherlast $key,$key,$rcon
274 vspltisb $key,8 # borrow $key
281 vcipherlast $key,$key,$rcon
304 vcipherlast $key,$key,$rcon
358 vcipherlast $key,$key,$rcon
379 vsbox $key,$key
[all …]
/openbmc/linux/net/mac802154/
H A Dllsec.c66 mkey = container_of(key->key, struct mac802154_llsec_key, key); in mac802154_llsec_destroy()
120 key = kzalloc(sizeof(*key), GFP_KERNEL); in llsec_key_alloc()
121 if (!key) in llsec_key_alloc()
125 key->key = *template; in llsec_key_alloc()
134 if (crypto_aead_setkey(key->tfm[i], template->key, in llsec_key_alloc()
149 return key; in llsec_key_alloc()
227 if (memcmp(pos->key->key, key->key, in mac802154_llsec_key_add()
237 if (pos->key->frame_types != key->frame_types || in mac802154_llsec_key_add()
238 pos->key->cmd_frame_ids != key->cmd_frame_ids) in mac802154_llsec_key_add()
257 new->key = &mkey->key; in mac802154_llsec_key_add()
[all …]
/openbmc/linux/fs/btrfs/
H A Dfree-space-tree.c527 found_end = key.objectid + key.offset; in free_space_test_bit()
553 found_end = key.objectid + key.offset; in free_space_set_bits()
592 key.objectid += key.offset; in free_space_next_bitmap()
636 if (start >= key.objectid + key.offset) { in modify_free_space_bitmap()
676 if (end >= key.objectid + key.offset) { in modify_free_space_bitmap()
742 found_end = key.objectid + key.offset; in remove_free_space_extent()
923 found_end = key.objectid + key.offset; in add_free_space_extent()
963 found_end = key.objectid + key.offset; in add_free_space_extent()
1511 ASSERT(key.objectid < end && key.objectid + key.offset <= end); in load_free_space_bitmaps()
1594 ASSERT(key.objectid < end && key.objectid + key.offset <= end); in load_free_space_extents()
[all …]
/openbmc/linux/fs/btrfs/tests/
H A Dextent-buffer-tests.c25 struct btrfs_key key; in test_btrfs_split_item() local
60 key.objectid = 0; in test_btrfs_split_item()
62 key.offset = 0; in test_btrfs_split_item()
72 key.offset = 3; in test_btrfs_split_item()
90 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item()
91 key.offset != 0) { in test_btrfs_split_item()
114 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item()
136 key.offset = 1; in test_btrfs_split_item()
145 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item()
168 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item()
[all …]
/openbmc/linux/kernel/
H A Dstatic_call_inline.c51 return (long)site->key + (long)&site->key; in __static_call_key()
100 a->key = b->key - delta; in static_call_site_swap()
103 b->key = tmp.key + delta; in static_call_site_swap()
123 return key->mods; in static_call_key_next()
145 key->func = func; in __static_call_update()
242 prev_key = key; in __static_call_init()
358 return (long)tramp_key->key + (long)&tramp_key->key; in tramp_key_lookup()
390 if (!key) { in static_call_add_module()
397 site->key = key - (long)&site->key; in static_call_add_module()
417 prev_key = key; in static_call_del_module()
[all …]
/openbmc/linux/lib/crypto/
H A Dpoly1305-donna32.c17 key->key.r[0] = (get_unaligned_le32(&raw_key[0])) & 0x3ffffff; in poly1305_core_setkey()
18 key->key.r[1] = (get_unaligned_le32(&raw_key[3]) >> 2) & 0x3ffff03; in poly1305_core_setkey()
24 key->precomputed_s.r[0] = key->key.r[1] * 5; in poly1305_core_setkey()
25 key->precomputed_s.r[1] = key->key.r[2] * 5; in poly1305_core_setkey()
26 key->precomputed_s.r[2] = key->key.r[3] * 5; in poly1305_core_setkey()
27 key->precomputed_s.r[3] = key->key.r[4] * 5; in poly1305_core_setkey()
47 r0 = key->key.r[0]; in poly1305_core_blocks()
48 r1 = key->key.r[1]; in poly1305_core_blocks()
49 r2 = key->key.r[2]; in poly1305_core_blocks()
50 r3 = key->key.r[3]; in poly1305_core_blocks()
[all …]
/openbmc/linux/security/keys/
H A Drequest_key_auth.c54 static int request_key_auth_instantiate(struct key *key, in request_key_auth_instantiate() argument
64 static void request_key_auth_describe(const struct key *key, in request_key_auth_describe() argument
74 if (key_is_positive(key)) in request_key_auth_describe()
82 static long request_key_auth_read(const struct key *key, in request_key_auth_read() argument
134 static void request_key_auth_revoke(struct key *key) in request_key_auth_revoke() argument
138 kenter("{%d}", key->serial); in request_key_auth_revoke()
146 static void request_key_auth_destroy(struct key *key) in request_key_auth_destroy() argument
150 kenter("{%d}", key->serial); in request_key_auth_destroy()
161 struct key *request_key_auth_new(struct key *target, const char *op, in request_key_auth_new()
167 struct key *authkey = NULL; in request_key_auth_new()
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/pam/pam-ssh-agent-auth/
H A D0001-Adapt-to-OpenSSL-1.1.1.patch76 pamsshagentauth_buffer_put_bignum(b, key->q); /* ssh key->p, SSL key->q */
77 pamsshagentauth_buffer_put_bignum(b, key->p); /* ssh key->q, SSL key->p */
85 + pamsshagentauth_buffer_put_bignum(b, RSA_get0_q(key)); /* ssh key->p, SSL key->q */
86 + pamsshagentauth_buffer_put_bignum(b, RSA_get0_p(key)); /* ssh key->q, SSL key->p */
244 diff --git a/key.c b/key.c
246 --- a/key.c
418 if (key->type == KEY_RSA1 && key->rsa != NULL) {
594 if (key == NULL || key->type != KEY_DSA || key->dsa == NULL) {
653 if (key == NULL || key->type != KEY_DSA || key->dsa == NULL) {
717 if (key == NULL || key->type != KEY_ECDSA || key->ecdsa == NULL) {
[all …]
/openbmc/linux/include/crypto/
H A Dpublic_key.h23 void *key; member
37 extern void public_key_free(struct public_key *key);
57 struct key;
64 struct key *trust_keyring);
69 struct key *trusted);
74 struct key *trusted);
80 struct key *trust_keyring);
84 struct key *trust_keyring);
89 struct key *trust_keyring) in restrict_link_by_ca()
97 struct key *trust_keyring) in restrict_link_by_digsig()
[all …]
/openbmc/u-boot/test/env/
H A Dhashtable.c23 char key[20]; in htab_fill() local
28 item.data = key; in htab_fill()
30 item.key = key; in htab_fill()
43 char key[20]; in htab_check_fill() local
49 item.data = key; in htab_check_fill()
50 item.key = key; in htab_check_fill()
53 ut_asserteq_str(key, ritem->key); in htab_check_fill()
66 char key[20]; in htab_create_delete() local
72 item.data = key; in htab_create_delete()
73 item.key = key; in htab_create_delete()
[all …]
/openbmc/qemu/tests/unit/
H A Dcheck-qdict.c73 const char *key = "test"; in qdict_get_test() local
91 const char *key = "int"; in qdict_get_int_test() local
106 const char *key = "int"; in qdict_get_try_int_test() local
127 const char *key = "key"; in qdict_get_str_test() local
143 const char *key = "key"; in qdict_get_try_str_test() local
166 const char *key = "test"; in qdict_haskey_test() local
183 qdict_del(tests_dict, key); in qdict_del_test()
238 const char *key = "exists"; in qdict_put_exists_test() local
281 remove_dots(key); in read_line()
290 char key[128]; in qdict_stress_test() local
[all …]
/openbmc/qemu/util/
H A Dkeyval.c118 if (*key < '0' || *key > '9') { in key_to_index()
156 (int)(key_cursor - key), key); in keyval_parse_put()
196 key = params; in keyval_parse_one()
215 key_end = key + len; in keyval_parse_one()
222 s = key; in keyval_parse_one()
235 (int)(key_end - key), key); in keyval_parse_one()
246 if (s != key) { in keyval_parse_one()
276 (int)(s - key), key); in keyval_parse_one()
409 char *key; in keyval_listify() local
448 g_free(key); in keyval_listify()
[all …]
/openbmc/linux/crypto/
H A Dnhpoly1305.c56 sums[0] += (u64)(u32)(m0 + key[ 0]) * (u32)(m2 + key[ 2]); in nh_generic()
57 sums[1] += (u64)(u32)(m0 + key[ 4]) * (u32)(m2 + key[ 6]); in nh_generic()
58 sums[2] += (u64)(u32)(m0 + key[ 8]) * (u32)(m2 + key[10]); in nh_generic()
59 sums[3] += (u64)(u32)(m0 + key[12]) * (u32)(m2 + key[14]); in nh_generic()
60 sums[0] += (u64)(u32)(m1 + key[ 1]) * (u32)(m3 + key[ 3]); in nh_generic()
61 sums[1] += (u64)(u32)(m1 + key[ 5]) * (u32)(m3 + key[ 7]); in nh_generic()
62 sums[2] += (u64)(u32)(m1 + key[ 9]) * (u32)(m3 + key[11]); in nh_generic()
63 sums[3] += (u64)(u32)(m1 + key[13]) * (u32)(m3 + key[15]); in nh_generic()
64 key += NH_MESSAGE_UNIT / sizeof(key[0]); in nh_generic()
135 key += POLY1305_BLOCK_SIZE; in crypto_nhpoly1305_setkey()
[all …]
/openbmc/openbmc/poky/meta/lib/oe/
H A Ddata.py10 def typed_value(key, d): argument
14 flags = d.getVarFlags(key)
30 for key in d.keys():
31 if key.startswith("_"):
33 elif key.startswith("BB"):
35 elif key.startswith("B_pn"):
37 elif key.startswith("do_"):
42 keys2export.append(key)
44 for key in keys2export:
46 data2export[key] = d.getVar(key, expand).replace(searchString,replaceString)
[all …]
/openbmc/linux/include/keys/
H A Dsystem_keyring.h25 struct key *restriction_key);
26 int restrict_link_by_digsig_builtin(struct key *dest_keyring,
29 struct key *restriction_key);
30 extern __init int load_module_cert(struct key *keyring);
45 struct key *keyring,
48 struct key *restriction_key);
52 struct key *restriction_key);
64 struct key *dest_keyring,
67 struct key *restrict_key);
111 extern struct key *ima_blacklist_keyring;
[all …]
/openbmc/linux/crypto/asymmetric_keys/
H A Dpublic_key.c35 if (key) in public_key_describe()
36 seq_printf(m, "%s.%s", key->id_type, key->pkey_algo); in public_key_describe()
44 if (key) { in public_key_free()
45 kfree_sensitive(key->key); in public_key_free()
47 kfree(key); in public_key_free()
176 if (!key) in software_key_query()
179 memcpy(key, pkey->key, pkey->keylen); in software_key_query()
295 if (!key) in software_key_eds_op()
298 memcpy(key, pkey->key, pkey->keylen); in software_key_eds_op()
421 if (!key) { in public_key_verify_signature()
[all …]
/openbmc/linux/samples/bpf/
H A Dcpustat_kern.c56 __type(key, u32);
64 __type(key, u32);
72 __type(key, u32);
107 u32 key, cpu, pstate_idx; in bpf_prog1() local
116 cts = bpf_map_lookup_elem(&my_map, &key); in bpf_prog1()
120 key = cpu * MAP_OFF_NUM + MAP_OFF_CSTATE_IDX; in bpf_prog1()
121 cstate = bpf_map_lookup_elem(&my_map, &key); in bpf_prog1()
126 pts = bpf_map_lookup_elem(&my_map, &key); in bpf_prog1()
131 pstate = bpf_map_lookup_elem(&my_map, &key); in bpf_prog1()
215 u32 key, cpu, pstate_idx; in bpf_prog2() local
[all …]

12345678910>>...184