Searched refs:hash_map (Results 1 – 15 of 15) sorted by relevance
/Linux-v6.1/drivers/nvme/common/ |
D | auth.c | 93 } 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 …]
|
/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/ |
D | lookup_and_delete.c | 54 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()
|
D | map_kptr.c | 117 ret = bpf_map__update_elem(skel->maps.hash_map, in test_map_kptr_success() 120 ret = bpf_map__delete_elem(skel->maps.hash_map, &key, sizeof(key), 0); in test_map_kptr_success()
|
D | hash_large_key.c | 22 hash_map_fd = bpf_map__fd(skel->maps.hash_map); in test_hash_large_key()
|
/Linux-v6.1/tools/testing/selftests/bpf/progs/ |
D | map_kptr.c | 18 struct hash_map { struct 23 } hash_map SEC(".maps"); 52 DEFINE_MAP_OF_MAP(BPF_MAP_TYPE_ARRAY_OF_MAPS, hash_map, array_of_hash_maps); 56 DEFINE_MAP_OF_MAP(BPF_MAP_TYPE_HASH_OF_MAPS, hash_map, hash_of_hash_maps); 153 TEST(hash_map); in test_map_kptr()
|
D | test_lookup_and_delete.c | 15 } hash_map SEC(".maps"); 21 bpf_map_update_elem(&hash_map, &set_key, &set_value, BPF_NOEXIST); in bpf_lookup_and_delete_test()
|
D | freplace_attach_probe.c | 21 } hash_map SEC(".maps"); 29 val = bpf_map_lookup_elem(&hash_map, &key); in new_handle_kprobe()
|
D | test_hash_large_key.c | 13 } hash_map SEC(".maps"); 39 if (bpf_map_update_elem(&hash_map, key, &value, BPF_ANY)) in bpf_hash_large_key_test()
|
D | test_map_lock.c | 19 } hash_map SEC(".maps"); 41 val = bpf_map_lookup_elem(&hash_map, &key); in bpf_map_lock_test()
|
/Linux-v6.1/samples/bpf/ |
D | map_perf_test_kern.c | 24 } hash_map SEC(".maps"); 114 bpf_map_update_elem(&hash_map, &key, &init_val, BPF_ANY); in SYSCALL() 115 value = bpf_map_lookup_elem(&hash_map, &key); in SYSCALL() 117 bpf_map_delete_elem(&hash_map, &key); in SYSCALL() 284 value = bpf_map_lookup_elem(&hash_map, &key); in SYSCALL()
|
D | sockex2_kern.c | 198 } 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()
|
D | sockex3_kern.c | 123 } hash_map SEC(".maps"); 130 value = bpf_map_lookup_elem(&hash_map, &key); in update_stats() 137 bpf_map_update_elem(&hash_map, &key, &val, BPF_ANY); in update_stats()
|
/Linux-v6.1/io_uring/ |
D | tctx.c | 23 hash = ctx->hash_map; in io_init_wq_offload() 32 ctx->hash_map = hash; in io_init_wq_offload()
|
D | io_uring.c | 2638 if (ctx->hash_map) in io_ring_ctx_free() 2639 io_wq_put_hash(ctx->hash_map); in io_ring_ctx_free()
|
/Linux-v6.1/include/linux/ |
D | io_uring_types.h | 337 struct io_wq_hash *hash_map; member
|