Home
last modified time | relevance | path

Searched refs:key (Results 351 – 375 of 5260) sorted by relevance

1...<<11121314151617181920>>...211

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dhash_large_key.c15 } key; in test_hash_large_key() local
16 bzero(&key, sizeof(key)); in test_hash_large_key()
30 err = bpf_map_update_elem(hash_map_fd, &key, &value, BPF_ANY); in test_hash_large_key()
34 key.c = 1; in test_hash_large_key()
35 err = bpf_map_lookup_elem(hash_map_fd, &key, &value); in test_hash_large_key()
H A Dbpf_loop.c146 int key; in check_stack() local
157 for (key = 1; key <= max_key; ++key) { in check_stack()
158 int val = key; in check_stack()
159 int err = bpf_map_update_elem(map_fd, &key, &val, BPF_NOEXIST); in check_stack()
167 for (key = 1; key <= max_key; ++key) { in check_stack()
169 int err = bpf_map_lookup_elem(map_fd, &key, &val); in check_stack()
173 if (!ASSERT_EQ(val, key + 1, "bad value in the map")) in check_stack()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_helper_restricted.c17 __type(key, __u32);
24 __type(key, __u32);
28 static int timer_cb(void *map, int *key, struct timer *timer) in timer_cb() argument
36 const int key = 0; in timer_work() local
38 timer = bpf_map_lookup_elem(&timers, &key); in timer_work()
49 const int key = 0; in spin_lock_work() local
52 lock = bpf_map_lookup_elem(&locks, &key); in spin_lock_work()
H A Dtest_spin_lock.c17 __type(key, int);
28 __type(key, struct bpf_cgroup_storage_key);
43 __type(key, int);
57 int key = 0; in bpf_spin_lock_test() local
60 val = bpf_map_lookup_elem(&hmap, &key); in bpf_spin_lock_test()
62 bpf_map_update_elem(&hmap, &key, &zero, 0); in bpf_spin_lock_test()
63 val = bpf_map_lookup_elem(&hmap, &key); in bpf_spin_lock_test()
80 q = bpf_map_lookup_elem(&vqueue, &key); in bpf_spin_lock_test()
H A Dtest_btf_decl_tag.c31 __type(key, struct key_t);
38 struct key_t key; in foo() local
41 key.a = key.b = key.c = x; in foo()
42 bpf_map_update_elem(&hashmap1, &key, &val, 0); in foo()
/openbmc/linux/samples/bpf/
H A Dspintest_user.c14 long key, next_key, value; in main() local
56 key = 0; in main()
58 while (bpf_map_get_next_key(map_fd, &key, &next_key) == 0) { in main()
62 key = next_key; in main()
70 if (key) in main()
72 key = 0; in main()
73 while (bpf_map_get_next_key(map_fd, &key, &next_key) == 0) in main()
/openbmc/phosphor-fan-presence/sensor-monitor/
H A Dalarm_timestamps.hpp72 void add(const AlarmKey& key, uint64_t timestamp) in add() argument
77 auto result = timestamps.emplace(key, timestamp); in add()
89 void erase(const AlarmKey& key) in erase() argument
91 size_t removed = timestamps.erase(key); in erase()
132 auto isTimerStopped = [&alarms](const AlarmKey& key) { in prune() argument
133 auto alarm = alarms.find(key); in prune()
192 for (const auto& [key, time] : timestamps) in save()
194 times.emplace_back(std::get<std::string>(key), in save()
195 static_cast<int>(std::get<ShutdownType>(key)), in save()
196 static_cast<int>(std::get<AlarmType>(key)), in save()
/openbmc/linux/include/linux/
H A Drhashtable.h140 hash = jhash(key, key_len, hash_rnd); in rht_key_get_hash()
149 hash = jhash(key, key_len, hash_rnd); in rht_key_get_hash()
595 .key = key, in __rhashtable_lookup()
693 struct rhltable *hlt, const void *key, in rhltable_lookup() argument
711 .key = key, in __rhashtable_insert_fast()
746 if (!key || in __rhashtable_insert_fast()
886 key += params.key_offset; in rhltable_insert()
909 const char *key = rht_obj(ht, obj); in rhashtable_lookup_insert_fast() local
936 const char *key = rht_obj(ht, obj); in rhashtable_lookup_get_insert_fast() local
965 BUG_ON(!ht->p.obj_hashfn || !key); in rhashtable_lookup_insert_key()
[all …]
H A Dverification.h18 #define VERIFY_USE_SECONDARY_KEYRING ((struct key *)1UL)
19 #define VERIFY_USE_PLATFORM_KEYRING ((struct key *)2UL)
45 struct key;
50 struct key *trusted_keys,
58 struct key *trusted_keys,
68 struct key *trusted_keys,
/openbmc/linux/arch/s390/crypto/
H A Ddes_s390.c32 u8 key[DES3_KEY_SIZE]; member
41 err = crypto_des_verify_key(tfm, key); in des_setkey()
45 memcpy(ctx->key, key, key_len); in des_setkey()
67 ctx->key, out, in, DES_BLOCK_SIZE); in s390_des_decrypt()
101 cpacf_km(fc, ctx->key, walk.dst.virt.addr, in ecb_desall_crypt()
117 u8 key[DES3_KEY_SIZE]; in cbc_desall_crypt() member
124 memcpy(param.key, ctx->key, DES3_KEY_SIZE); in cbc_desall_crypt()
206 err = crypto_des3_ede_verify_key(tfm, key); in des3_setkey()
210 memcpy(ctx->key, key, key_len); in des3_setkey()
232 ctx->key, dst, src, DES_BLOCK_SIZE); in des3_decrypt()
[all …]
/openbmc/linux/scripts/kconfig/lxdialog/
H A Dchecklist.c195 while (key != KEY_ESC) { in dialog_checklist()
196 key = wgetch(dialog); in dialog_checklist()
200 if (toupper(key) == toupper(item_str()[0])) in dialog_checklist()
204 if (i < max_choice || key == KEY_UP || key == KEY_DOWN || in dialog_checklist()
205 key == '+' || key == '-') { in dialog_checklist()
206 if (key == KEY_UP || key == '-') { in dialog_checklist()
231 } else if (key == KEY_DOWN || key == '+') { in dialog_checklist()
273 switch (key) { in dialog_checklist()
301 key = KEY_ESC; in dialog_checklist()
304 key = on_key_esc(dialog); in dialog_checklist()
[all …]
/openbmc/u-boot/scripts/kconfig/lxdialog/
H A Dchecklist.c195 while (key != KEY_ESC) { in dialog_checklist()
196 key = wgetch(dialog); in dialog_checklist()
200 if (toupper(key) == toupper(item_str()[0])) in dialog_checklist()
204 if (i < max_choice || key == KEY_UP || key == KEY_DOWN || in dialog_checklist()
205 key == '+' || key == '-') { in dialog_checklist()
206 if (key == KEY_UP || key == '-') { in dialog_checklist()
231 } else if (key == KEY_DOWN || key == '+') { in dialog_checklist()
273 switch (key) { in dialog_checklist()
301 key = KEY_ESC; in dialog_checklist()
304 key = on_key_esc(dialog); in dialog_checklist()
[all …]
/openbmc/linux/net/dns_resolver/
H A Ddns_key.c249 static bool dns_resolver_cmp(const struct key *key, in dns_resolver_cmp() argument
253 const char *src = key->description, *dsp = match_data->raw_data; in dns_resolver_cmp()
294 static void dns_resolver_describe(const struct key *key, struct seq_file *m) in dns_resolver_describe() argument
296 seq_puts(m, key->description); in dns_resolver_describe()
297 if (key_is_positive(key)) { in dns_resolver_describe()
298 int err = PTR_ERR(key->payload.data[dns_key_error]); in dns_resolver_describe()
303 seq_printf(m, ": %u", key->datalen); in dns_resolver_describe()
311 static long dns_resolver_read(const struct key *key, in dns_resolver_read() argument
314 int err = PTR_ERR(key->payload.data[dns_key_error]); in dns_resolver_read()
319 return user_read(key, buffer, buflen); in dns_resolver_read()
[all …]
/openbmc/linux/lib/
H A Dtest_static_key_base.c34 static void invert_key(struct static_key *key) in invert_key() argument
36 if (static_key_enabled(key)) in invert_key()
37 static_key_disable(key); in invert_key()
39 static_key_enable(key); in invert_key()
46 invert_key(&base_inv_true_key.key); in test_static_key_base_init()
47 invert_key(&base_inv_false_key.key); in test_static_key_base_init()
/openbmc/telemetry/src/utils/
H A Dcontains.hpp22 const typename T::value_type::first_type& key) in contains() argument
24 return container.find(key) != container.end(); in contains()
28 inline bool contains(const T& container, const typename T::value_type& key) in contains() argument
30 return container.contains(key); in contains()
34 inline bool contains(const T& container, const typename T::value_type& key) in contains() argument
36 return std::find(container.begin(), container.end(), key) != in contains()
/openbmc/openbmc/poky/meta/recipes-connectivity/openssh/openssh/
H A Dsshd_check_keys62 for key in ${HOST_KEYS} ; do
63 [ -f $key ] && continue
64 case $key in
67 generate_key $key rsa
71 generate_key $key ecdsa
75 generate_key $key ed25519
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_cmdbuf_res.c87 unsigned long key = user_key | (res_type << 24); in vmw_cmdbuf_res_lookup() local
89 hash_for_each_possible_rcu(man->resources, hash, head, key) { in vmw_cmdbuf_res_lookup()
90 if (hash->key == key) in vmw_cmdbuf_res_lookup()
171 entry->hash.key); in vmw_cmdbuf_res_revert()
207 cres->hash.key = user_key | (res_type << 24); in vmw_cmdbuf_res_add()
208 hash_add_rcu(man->resources, &cres->hash.head, cres->hash.key); in vmw_cmdbuf_res_add()
242 unsigned long key = user_key | (res_type << 24); in vmw_cmdbuf_res_remove() local
244 hash_for_each_possible_rcu(man->resources, hash, head, key) { in vmw_cmdbuf_res_remove()
245 if (hash->key == key) { in vmw_cmdbuf_res_remove()
/openbmc/linux/fs/reiserfs/
H A Ditem_ops.c26 key->on_disk_key.k_objectid--; in sd_decrement_key()
27 set_cpu_key_k_type(key, TYPE_ANY); in sd_decrement_key()
122 cpu_key_k_offset_dec(key); in direct_decrement_key()
123 if (cpu_key_k_offset(key) == 0) in direct_decrement_key()
124 set_cpu_key_k_type(key, TYPE_STAT_DATA); in direct_decrement_key()
130 int version = le_key_version(key); in direct_is_left_mergeable()
213 cpu_key_k_offset_dec(key); in indirect_decrement_key()
214 if (cpu_key_k_offset(key) == 0) in indirect_decrement_key()
222 int version = le_key_version(key); in indirect_is_left_mergeable()
358 cpu_key_k_offset_dec(key); in direntry_decrement_key()
[all …]
/openbmc/linux/net/ipv4/
H A Dtcp_fastopen.c9 u8 key[TCP_FASTOPEN_KEY_LENGTH]; in tcp_fastopen_init_key_once() local
26 get_random_bytes(key, sizeof(key)); in tcp_fastopen_init_key_once()
71 ctx->key[0].key[0] = get_unaligned_le64(primary_key); in tcp_fastopen_reset_cipher()
72 ctx->key[0].key[1] = get_unaligned_le64(primary_key + 8); in tcp_fastopen_reset_cipher()
74 ctx->key[1].key[0] = get_unaligned_le64(backup_key); in tcp_fastopen_reset_cipher()
75 ctx->key[1].key[1] = get_unaligned_le64(backup_key + 8); in tcp_fastopen_reset_cipher()
95 u64 *key) in tcp_fastopen_get_cipher() argument
108 put_unaligned_le64(ctx->key[i].key[0], key + (i * 2)); in tcp_fastopen_get_cipher()
109 put_unaligned_le64(ctx->key[i].key[1], key + (i * 2) + 1); in tcp_fastopen_get_cipher()
130 key)); in __tcp_fastopen_cookie_gen_cipher()
[all …]
/openbmc/linux/include/net/
H A Dip_tunnels.h85 struct ip_tunnel_key key; member
162 __be32 key; member
188 key->tun_id = tun_id; in ip_tunnel_key_init()
189 key->u.ipv4.src = saddr; in ip_tunnel_key_init()
193 key->tos = tos; in ip_tunnel_key_init()
194 key->ttl = ttl; in ip_tunnel_key_init()
195 key->label = label; in ip_tunnel_key_init()
202 key->tp_src = tp_src; in ip_tunnel_key_init()
203 key->tp_dst = tp_dst; in ip_tunnel_key_init()
272 fl4->fl4_gre_key = key; in ip_tunnel_init_flow()
[all …]
H A Dipv6_frag.h35 const struct frag_v6_compare_key *key = a; in ip6frag_init() local
37 q->key.v6 = *key; in ip6frag_init()
51 return jhash2((const u32 *)&fq->key.v6, in ip6frag_obj_hashfn()
58 const struct frag_v6_compare_key *key = arg->key; in ip6frag_obj_cmpfn() local
61 return !!memcmp(&fq->key, key, sizeof(*key)); in ip6frag_obj_cmpfn()
/openbmc/openbmc/meta-google/recipes-google/google-bios-key/
H A Dgoogle-bios-key.bb14 FILES:${PN} += "${datadir}/google-bios-key/platforms_secure.pem"
15 FILES:${PN} += "${datadir}/google-bios-key/platforms_bringup.pem"
20 install -d ${D}${datadir}/google-bios-key
21 install -m 0644 ${WORKDIR}/platforms_secure.pem ${D}${datadir}/google-bios-key
22 install -m 0644 ${WORKDIR}/platforms_bringup.pem ${D}${datadir}/google-bios-key
24 ln -s -r ${D}${datadir}/google-bios-key/platforms_secure.pem ${D}${datadir}/platforms_secure.pem
25 … ln -s -r ${D}${datadir}/google-bios-key/platforms_bringup.pem ${D}${datadir}/platforms_bringup.pem
/openbmc/linux/arch/powerpc/platforms/powernv/
H A Dopal-secvar.c57 static int opal_get_variable(const char *key, u64 ksize, u8 *data, u64 *dsize) in opal_get_variable() argument
61 if (!key || !dsize) in opal_get_variable()
66 rc = opal_secvar_get(key, ksize, data, dsize); in opal_get_variable()
73 static int opal_get_next_variable(const char *key, u64 *keylen, u64 keybufsize) in opal_get_next_variable() argument
77 if (!key || !keylen) in opal_get_next_variable()
82 rc = opal_secvar_get_next(key, keylen, keybufsize); in opal_get_next_variable()
89 static int opal_set_variable(const char *key, u64 ksize, u8 *data, u64 dsize) in opal_set_variable() argument
93 if (!key || !data) in opal_set_variable()
96 rc = opal_secvar_enqueue_update(key, ksize, data, dsize); in opal_set_variable()
/openbmc/linux/lib/crypto/
H A Dblake2s-selftest.c550 u8 key[BLAKE2S_KEY_SIZE]; in blake2s_digest_test() local
557 key[0] = key[1] = 1; in blake2s_digest_test()
558 for (i = 2; i < sizeof(key); ++i) in blake2s_digest_test()
559 key[i] = key[i - 2] + key[i - 1]; in blake2s_digest_test()
568 blake2s(hash, buf, key + BLAKE2S_KEY_SIZE - keylen, outlen, i, in blake2s_digest_test()
579 key + BLAKE2S_KEY_SIZE - keylen, in blake2s_digest_test()
/openbmc/linux/Documentation/admin-guide/
H A Dbootconfig.rst21 The boot config syntax is a simple structured key-value. Each key consists
65 Same-key Values
72 foo = qux # !ERROR! we can not re-define same key
144 key = 1 # comment
234 key will be passed to kernel cmdline directly. Moreover, the key-value
269 key-value entries) must be under 1024 nodes.
286 a root (prefix) key node and find key-values under that node.
288 If you have a key string, you can query the value directly with the key
295 xbc_find_value("key.word", &vnode);
308 root = xbc_find_node("key.prefix");
[all …]

1...<<11121314151617181920>>...211