Home
last modified time | relevance | path

Searched refs:hash_map (Results 1 – 25 of 26) sorted by relevance

12

/openbmc/qemu/crypto/
H A Dpbkdf-gnutls.c49 static const int hash_map[QCRYPTO_HASH_ALGO__MAX] = { in qcrypto_pbkdf2() local
69 if (hash >= G_N_ELEMENTS(hash_map) || in qcrypto_pbkdf2()
70 hash_map[hash] == GNUTLS_DIG_UNKNOWN) { in qcrypto_pbkdf2()
77 ret = gnutls_pbkdf2(hash_map[hash], in qcrypto_pbkdf2()
H A Dpbkdf-gcrypt.c52 static const int hash_map[QCRYPTO_HASH_ALGO__MAX] = { in qcrypto_pbkdf2() local
73 if (hash >= G_N_ELEMENTS(hash_map) || in qcrypto_pbkdf2()
74 hash_map[hash] == GCRY_MD_NONE) { in qcrypto_pbkdf2()
82 hash_map[hash], in qcrypto_pbkdf2()
/openbmc/linux/drivers/nvme/common/
H A Dauth.c93 } hash_map[] = { variable
113 if (hmac_id >= ARRAY_SIZE(hash_map)) in nvme_auth_hmac_name()
115 return hash_map[hmac_id].hmac; in nvme_auth_hmac_name()
121 if (hmac_id >= ARRAY_SIZE(hash_map)) in nvme_auth_digest_name()
123 return hash_map[hmac_id].digest; in nvme_auth_digest_name()
134 for (i = 0; i < ARRAY_SIZE(hash_map); i++) { in nvme_auth_hmac_id()
135 if (!strlen(hash_map[i].hmac)) in nvme_auth_hmac_id()
137 if (!strncmp(hash_map[i].hmac, hmac_name, in nvme_auth_hmac_id()
138 strlen(hash_map[i].hmac))) in nvme_auth_hmac_id()
147 if (hmac_id >= ARRAY_SIZE(hash_map)) in nvme_auth_hmac_hash_len()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dlookup_and_delete.c54 err = bpf_map__set_type(skel->maps.hash_map, map_type); in setup_prog()
58 err = bpf_map__set_max_entries(skel->maps.hash_map, MAX_ENTRIES); in setup_prog()
66 *map_fd = bpf_map__fd(skel->maps.hash_map); in setup_prog()
115 err = bpf_map__lookup_and_delete_elem(skel->maps.hash_map, in test_lookup_and_delete_hash()
151 err = bpf_map__lookup_and_delete_elem(skel->maps.hash_map, in test_lookup_and_delete_percpu_hash()
196 err = bpf_map__lookup_and_delete_elem(skel->maps.hash_map, in test_lookup_and_delete_lru_hash()
246 err = bpf_map__lookup_and_delete_elem(skel->maps.hash_map, in test_lookup_and_delete_lru_percpu_hash()
H A Dhash_large_key.c22 hash_map_fd = bpf_map__fd(skel->maps.hash_map); in test_hash_large_key()
H A Dmap_kptr.c67 ret = bpf_map__delete_elem(skel->maps.hash_map, &key, sizeof(key), 0); in test_map_kptr_success()
H A Dringbuf.c312 err = bpf_map_lookup_elem(skel_map_key->maps.hash_map.map_fd, in process_map_key_sample()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_ringbuf_map_key.c26 } hash_map SEC(".maps");
55 lookup_val = (int *)bpf_map_lookup_elem(&hash_map, sample); in test_ringbuf_mem_map_key()
67 bpf_map_update_elem(&hash_map, &sample_copy, &sample->seq, BPF_ANY); in test_ringbuf_mem_map_key()
H A Dtest_map_ops.c14 } hash_map SEC(".maps");
46 err = bpf_map_update_elem(&hash_map, &key, &val, BPF_NOEXIST); in map_update()
59 err = bpf_map_delete_elem(&hash_map, &key); in map_delete()
H A Dmap_kptr.c26 struct hash_map { struct
31 } hash_map SEC(".maps");
110 DEFINE_MAP_OF_MAP(BPF_MAP_TYPE_ARRAY_OF_MAPS, hash_map, array_of_hash_maps);
114 DEFINE_MAP_OF_MAP(BPF_MAP_TYPE_HASH_OF_MAPS, hash_map, hash_of_hash_maps);
204 TEST(hash_map); in test_map_kptr()
399 bpf_map_update_elem(&hash_map, &key, &val, 0); in test_map_kptr_ref1()
408 TEST(hash_map); in test_map_kptr_ref1()
446 TEST(hash_map); in test_map_kptr_ref2()
H A Dtest_lookup_and_delete.c15 } hash_map SEC(".maps");
21 bpf_map_update_elem(&hash_map, &set_key, &set_value, BPF_NOEXIST); in bpf_lookup_and_delete_test()
H A Dfreplace_attach_probe.c21 } hash_map SEC(".maps");
29 val = bpf_map_lookup_elem(&hash_map, &key); in new_handle_kprobe()
H A Dtest_hash_large_key.c13 } hash_map SEC(".maps");
39 if (bpf_map_update_elem(&hash_map, key, &value, BPF_ANY)) in bpf_hash_large_key_test()
H A Dtest_map_lock.c19 } hash_map SEC(".maps");
41 val = bpf_map_lookup_elem(&hash_map, &key); in bpf_map_lock_test()
H A Dtask_kfunc_common.h16 struct hash_map { struct
H A Dcgrp_kfunc_common.h16 struct hash_map { struct
/openbmc/linux/samples/bpf/
H A Dmap_perf_test.bpf.c22 } hash_map SEC(".maps");
112 bpf_map_update_elem(&hash_map, &key, &init_val, BPF_ANY); in BPF_KSYSCALL()
113 value = bpf_map_lookup_elem(&hash_map, &key); in BPF_KSYSCALL()
115 bpf_map_delete_elem(&hash_map, &key); in BPF_KSYSCALL()
278 value = bpf_map_lookup_elem(&hash_map, &key); in BPF_KSYSCALL()
H A Dsockex2_kern.c198 } hash_map SEC(".maps");
211 value = bpf_map_lookup_elem(&hash_map, &key); in bpf_prog2()
218 bpf_map_update_elem(&hash_map, &key, &val, BPF_ANY); in bpf_prog2()
H A Dsockex3_kern.c88 } hash_map SEC(".maps");
95 value = bpf_map_lookup_elem(&hash_map, &key); in update_stats()
102 bpf_map_update_elem(&hash_map, &key, &val, BPF_ANY); in update_stats()
/openbmc/linux/io_uring/
H A Dtctx.c23 hash = ctx->hash_map; in io_init_wq_offload()
32 ctx->hash_map = hash; in io_init_wq_offload()
H A Dio_uring.c2972 if (ctx->hash_map) in io_ring_ctx_free()
2973 io_wq_put_hash(ctx->hash_map); in io_ring_ctx_free()
/openbmc/openbmc/poky/meta/recipes-devtools/rust/files/
H A Drepro-issue-fix-with-cc-crate-hashmap.patch46 let mut hasher = hash_map::DefaultHasher::new();
89 let mut hasher = hash_map::DefaultHasher::new();
/openbmc/linux/rust/alloc/
H A Dlib.rs279 let mut hasher = std::collections::hash_map::RandomState::new().build_hasher(); in test_rng()
/openbmc/linux/include/linux/
H A Dio_uring_types.h350 struct io_wq_hash *hash_map; member
/openbmc/openbmc/poky/meta/lib/oeqa/files/
H A Dbuildhistory_filelist2.txt1846 -rw-r--r-- root root 17822 ./usr/include/c++/10.1.0/backward/hash_map
2128 -rw-r--r-- root root 17822 ./usr/include/c++/10.1.0/ext/hash_map

12