/external/libnl/lib/ |
D | hashtable.c | 91 uint32_t key_hash; in nl_hash_table_lookup() local 93 nl_object_keygen(obj, &key_hash, ht->size); in nl_hash_table_lookup() 94 node = ht->nodes[key_hash]; in nl_hash_table_lookup() 121 uint32_t key_hash; in nl_hash_table_add() local 123 nl_object_keygen(obj, &key_hash, ht->size); in nl_hash_table_add() 124 node = ht->nodes[key_hash]; in nl_hash_table_add() 135 obj, ht, key_hash); in nl_hash_table_add() 142 node->key = key_hash; in nl_hash_table_add() 144 node->next = ht->nodes[key_hash]; in nl_hash_table_add() 145 ht->nodes[key_hash] = node; in nl_hash_table_add() [all …]
|
/external/virglrenderer/src/gallium/auxiliary/util/ |
D | u_hash_table.c | 107 unsigned key_hash) in util_hash_table_find_iter() argument 112 iter = cso_hash_find(ht->cso, key_hash); in util_hash_table_find_iter() 127 unsigned key_hash) in util_hash_table_find_item() argument 132 iter = cso_hash_find(ht->cso, key_hash); in util_hash_table_find_item() 149 unsigned key_hash; in util_hash_table_set() local 157 key_hash = ht->hash(key); in util_hash_table_set() 159 item = util_hash_table_find_item(ht, key, key_hash); in util_hash_table_set() 173 iter = cso_hash_insert(ht->cso, key_hash, item); in util_hash_table_set() 187 unsigned key_hash; in util_hash_table_get() local 194 key_hash = ht->hash(key); in util_hash_table_get() [all …]
|
/external/python/cpython3/Python/ |
D | hashtable.c | 134 Py_uhash_t key_hash = ht->hash_func(key); in _Py_hashtable_get_entry_generic() local 135 size_t index = key_hash & (ht->nbuckets - 1); in _Py_hashtable_get_entry_generic() 141 if (entry->key_hash == key_hash && ht->compare_func(key, entry->key)) { in _Py_hashtable_get_entry_generic() 156 Py_uhash_t key_hash = _Py_hashtable_hash_ptr(key); in _Py_hashtable_get_entry_ptr() local 157 size_t index = key_hash & (ht->nbuckets - 1); in _Py_hashtable_get_entry_ptr() 176 Py_uhash_t key_hash = ht->hash_func(key); in _Py_hashtable_steal() local 177 size_t index = key_hash & (ht->nbuckets - 1); in _Py_hashtable_steal() 186 if (entry->key_hash == key_hash && ht->compare_func(key, entry->key)) { in _Py_hashtable_steal() 228 entry->key_hash = ht->hash_func(key); in _Py_hashtable_set() 241 size_t index = entry->key_hash & (ht->nbuckets - 1); in _Py_hashtable_set() [all …]
|
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/ |
D | hpack_encoder.cc | 227 uint32_t key_hash = grpc_slice_hash(GRPC_MDKEY(elem)); in add_key_with_index() local 230 if (grpc_slice_eq(c->entries_keys[HASH_FRAGMENT_2(key_hash)], in add_key_with_index() 232 c->indices_keys[HASH_FRAGMENT_2(key_hash)] = new_index; in add_key_with_index() 233 } else if (grpc_slice_eq(c->entries_keys[HASH_FRAGMENT_3(key_hash)], in add_key_with_index() 235 c->indices_keys[HASH_FRAGMENT_3(key_hash)] = new_index; in add_key_with_index() 236 } else if (c->entries_keys[HASH_FRAGMENT_2(key_hash)].refcount == in add_key_with_index() 238 c->entries_keys[HASH_FRAGMENT_2(key_hash)] = in add_key_with_index() 240 c->indices_keys[HASH_FRAGMENT_2(key_hash)] = new_index; in add_key_with_index() 241 } else if (c->entries_keys[HASH_FRAGMENT_3(key_hash)].refcount == in add_key_with_index() 243 c->entries_keys[HASH_FRAGMENT_3(key_hash)] = in add_key_with_index() [all …]
|
/external/tensorflow/tensorflow/core/framework/ |
D | local_rendezvous.cc | 112 uint64 key_hash = KeyHash(key.FullKey()); in Send() local 113 DVLOG(2) << "Send " << this << " " << key_hash << " " << key.FullKey(); in Send() 133 ItemQueue* queue = &table_[key_hash]; in Send() 153 table_.erase(key_hash); in Send() 170 uint64 key_hash = KeyHash(key.FullKey()); in RecvAsync() local 171 DVLOG(2) << "Recv " << this << " " << key_hash << " " << key.FullKey(); in RecvAsync() 182 ItemQueue* queue = &table_[key_hash]; in RecvAsync() 205 already_cancelled = !cm->RegisterCallback(token, [this, token, key_hash] { in RecvAsync() 209 ItemQueue* queue = &table_[key_hash]; in RecvAsync() 220 table_.erase(key_hash); in RecvAsync() [all …]
|
/external/pigweed/pw_kvs/ |
D | entry_cache.cc | 72 if (descriptors_[i].key_hash == hash) { in Find() 137 const int index = FindIndex(descriptor.key_hash); in AddNewOrUpdateExisting() 158 if (descriptors_[index].key_hash != descriptor.key_hash) { in AddNewOrUpdateExisting() 161 descriptor.key_hash, in AddNewOrUpdateExisting() 195 int EntryCache::FindIndex(uint32_t key_hash) const { in FindIndex() 197 if (descriptors_[i].key_hash == key_hash) { in FindIndex()
|
D | entry_cache_test.cc | 44 constexpr KeyDescriptor kDescriptor = {.key_hash = Hash(kTheKey), 50 EXPECT_EQ(kDescriptor.key_hash, metadata.hash()); in TEST_F() 74 {.key_hash = 987, .transaction_id = 5, .state = EntryState::kDeleted}, in TEST_F() 93 EXPECT_EQ(kDescriptor.key_hash, entry.hash()); in TEST_F() 122 EXPECT_EQ(kDescriptor.key_hash, entry.hash()); in TEST_F() 147 EXPECT_EQ(kDescriptor.key_hash, entry.hash()); in TEST_F() 164 EXPECT_EQ(kDescriptor.key_hash, entry.hash()); in TEST_F() 271 entries_.AddNew({.key_hash = Hash(kCollision1), in InitializedEntryCache() 277 entries_.AddNew({.key_hash = Hash("delorted"), in InitializedEntryCache()
|
/external/llvm-project/polly/lib/External/isl/ |
D | isl_hash.c | 159 uint32_t key_hash, in isl_hash_table_find() argument 166 key_bits = isl_hash_bits(key_hash, table->bits); in isl_hash_table_find() 171 if (table->entries[h].hash != key_hash) in isl_hash_table_find() 186 return isl_hash_table_find(ctx, table, key_hash, eq, val, 1); in isl_hash_table_find() 190 table->entries[h].hash = key_hash; in isl_hash_table_find()
|
/external/wpa_supplicant_8/src/tls/ |
D | tlsv1_client_ocsp.c | 51 struct x509_name *name, const u8 *key_hash) in ocsp_responder_id_match() argument 53 if (key_hash) { in ocsp_responder_id_match() 60 return os_memcmp(hash, key_hash, SHA1_MAC_LEN) == 0; in ocsp_responder_id_match() 119 const u8 *name_hash, *key_hash; in tls_process_ocsp_single_response() local 200 key_hash = hdr.payload; in tls_process_ocsp_single_response() 202 wpa_hexdump(MSG_DEBUG, "OCSP: issuerKeyHash", key_hash, key_hash_len); in tls_process_ocsp_single_response() 208 os_memcmp(key_hash, hash, hash_len) != 0) { in tls_process_ocsp_single_response() 359 const u8 *resp_data, *sign_value, *key_hash = NULL, *responses; in tls_process_basic_ocsp_response() local 549 key_hash = hdr.payload; in tls_process_basic_ocsp_response() 551 key_hash, hdr.length); in tls_process_basic_ocsp_response() [all …]
|
/external/rust/crates/grpcio-sys/grpc/src/core/ext/transport/chttp2/transport/ |
D | hpack_encoder.cc | 436 uint32_t key_hash) { in AddKeyWithIndex() argument 437 UpdateAddOrEvict<SliceRefComparator>(c->key_table.entries, key_ref, key_hash, in AddKeyWithIndex() 444 uint32_t key_hash) { in AddElemWithIndex() argument 448 AddKeyWithIndex(c, GRPC_MDKEY(elem).refcount, new_index, key_hash); in AddElemWithIndex() 452 size_t elem_size, uint32_t elem_hash, uint32_t key_hash) { in add_elem() argument 455 AddElemWithIndex(c, elem, new_index, elem_hash, key_hash); in add_elem() 460 size_t elem_size, uint32_t key_hash) { in add_key() argument 463 AddKeyWithIndex(c, GRPC_MDKEY(elem).refcount, new_index, key_hash); in add_key() 668 uint32_t elem_hash, uint32_t key_hash) { in emit_maybe_add() argument 671 add_elem(c, elem, decoder_space_usage, elem_hash, key_hash); in emit_maybe_add() [all …]
|
/external/mesa3d/src/gallium/drivers/freedreno/ir3/ |
D | ir3_cache.c | 37 key_hash(const void *_key) in key_hash() function 67 cache->ht = _mesa_hash_table_create(cache, key_hash, key_equals); in ir3_cache_create() 88 uint32_t hash = key_hash(key); in ir3_cache_lookup()
|
/external/mesa3d/src/util/tests/hash_table/ |
D | clear.c | 40 static uint32_t key_hash(const void *key) in key_hash() function 63 ht = _mesa_hash_table_create(NULL, key_hash, key_equal); in main()
|
/external/boringssl/src/crypto/lhash/ |
D | lhash.c | 164 uint32_t key_hash, in get_next_ptr_by_key() argument 167 LHASH_ITEM **ret = &lh->buckets[key_hash % lh->num_buckets]; in get_next_ptr_by_key() 186 void *lh_retrieve_key(const _LHASH *lh, const void *key, uint32_t key_hash, in lh_retrieve_key() argument 188 LHASH_ITEM **next_ptr = get_next_ptr_by_key(lh, key, key_hash, cmp_key); in lh_retrieve_key()
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/lhash/ |
D | lhash.c | 164 uint32_t key_hash, in get_next_ptr_by_key() argument 167 LHASH_ITEM **ret = &lh->buckets[key_hash % lh->num_buckets]; in get_next_ptr_by_key() 186 void *lh_retrieve_key(const _LHASH *lh, const void *key, uint32_t key_hash, in lh_retrieve_key() argument 188 LHASH_ITEM **next_ptr = get_next_ptr_by_key(lh, key, key_hash, cmp_key); in lh_retrieve_key()
|
/external/boringssl/src/include/openssl/ |
D | lhash.h | 147 uint32_t key_hash, 226 const LHASH_OF(type) *lh, const void *key, uint32_t key_hash, \ 229 return (type *)lh_retrieve_key((const _LHASH *)lh, &cb, key_hash, \
|
/external/rust/crates/quiche/deps/boringssl/src/include/openssl/ |
D | lhash.h | 147 uint32_t key_hash, 226 const LHASH_OF(type) *lh, const void *key, uint32_t key_hash, \ 229 return (type *)lh_retrieve_key((const _LHASH *)lh, &cb, key_hash, \
|
/external/rust/crates/ring/src/ |
D | hmac.rs | 231 let key_hash; in new() localVariable 235 key_hash = digest::digest(digest_alg, key_value); in new() 236 key_hash.as_ref() in new()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | lookup_table_op.cc | 433 const uint64 key_hash = HashKey(key_matrix, i); in Find() local 434 if (empty_key_hash_ == key_hash && in Find() 439 if (deleted_key_hash_ == key_hash && in Find() 444 int64 bucket_index = key_hash & bit_mask; in Find() 608 const uint64 key_hash = HashKey(key_matrix, i); in DoInsert() local 609 if (empty_key_hash_ == key_hash && in DoInsert() 617 if (deleted_key_hash_ == key_hash && in DoInsert() 625 int64 bucket_index = key_hash & bit_mask; in DoInsert() 677 const uint64 key_hash = HashKey(key_matrix, i); in DoRemove() local 678 if (empty_key_hash_ == key_hash && in DoRemove() [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_live_shader_cache.c | 37 static uint32_t key_hash(const void *key) in key_hash() function 56 cache->hashtable = _mesa_hash_table_create(NULL, key_hash, key_equals); in util_live_shader_cache_init()
|
/external/pigweed/pw_kvs/public/pw_kvs/internal/ |
D | key_descriptor.h | 27 uint32_t key_hash; member
|
D | entry.h | 94 KeyDescriptor descriptor(uint32_t key_hash) const { in descriptor() argument 95 return KeyDescriptor{key_hash, in descriptor()
|
D | entry_cache.h | 40 uint32_t hash() const { return descriptor_->key_hash; } in hash() 215 int FindIndex(uint32_t key_hash) const;
|
/external/python/cryptography/src/cryptography/hazmat/backends/openssl/ |
D | ocsp.py | 40 key_hash = backend._ffi.new("ASN1_OCTET_STRING **") 43 key_hash, backend._ffi.NULL, cert_id 46 backend.openssl_assert(key_hash[0] != backend._ffi.NULL) 47 return _asn1_string_to_bytes(backend, key_hash[0])
|
/external/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_batch_cache.c | 100 key_hash(const void *_key) in key_hash() function 121 cache->ht = _mesa_hash_table_create(NULL, key_hash, key_equals); in fd_bc_init() 406 uint32_t hash = key_hash(key); in batch_from_key()
|
/external/perfetto/src/traced/probes/ps/ |
D | process_stats_data_source.cc | 636 base::Hash key_hash; in WriteThreadStats() local 637 key_hash.Update(tid); in WriteThreadStats() 638 key_hash.Update(freq_index); in WriteThreadStats() 639 size_t key = key_hash.digest() % thread_time_in_state_cache_size_; in WriteThreadStats()
|