/third_party/musl/porting/liteos_a/user/src/network/ |
H A D | if_nameindex.c | 23 unsigned int hash[IFADDRS_HASH_SIZE]; member 53 i = ctx->hash[bucket]; in netlink_msg_to_nameindex() 77 map->hash_next = ctx->hash[bucket]; in netlink_msg_to_nameindex() 78 ctx->hash[bucket] = ctx->num; in netlink_msg_to_nameindex()
|
/third_party/musl/src/network/ |
H A D | if_nameindex.c | 22 unsigned int hash[IFADDRS_HASH_SIZE]; member 52 i = ctx->hash[bucket]; in netlink_msg_to_nameindex() 76 map->hash_next = ctx->hash[bucket]; in netlink_msg_to_nameindex() 77 ctx->hash[bucket] = ctx->num; in netlink_msg_to_nameindex()
|
/third_party/node/deps/npm/node_modules/@sigstore/sign/dist/witness/tlog/ |
H A D | entry.js | 47 hash: { 81 const payloadHash = util_1.crypto.hash(envelope.payload).toString('hex'); 82 // Calculate the value for the hash field in the Rekor entry 110 hash: { algorithm: 'sha256', value: envelopeHash }, 116 // Calculates the hash of a DSSE envelope for inclusion in a Rekor entry. 135 return util_1.crypto.hash(util_1.json.canonicalize(dsse)).toString('hex');
|
/third_party/node/deps/v8/src/objects/ |
H A D | template-objects.cc | 22 uint32_t hash = shared_info->Hash(); in GetTemplateObject() local 34 Object maybe_cached_template = template_weakmap->Lookup(shared_info, hash); in GetTemplateObject() 77 HeapObject::cast(template_weakmap->Lookup(shared_info, hash)), isolate); in GetTemplateObject() 81 isolate, template_weakmap, shared_info, cached_template, hash); in GetTemplateObject()
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_vertex_state_cache.c | 87 uint32_t hash = key_hash(&key); in util_vertex_state_cache_get() local 91 struct set_entry *entry = _mesa_set_search_pre_hashed(cache->set, hash, &key); in util_vertex_state_cache_get() 106 assert(key_hash(state) == hash); in util_vertex_state_cache_get() 107 _mesa_set_add_pre_hashed(cache->set, hash, state); in util_vertex_state_cache_get()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/ |
H A D | RenderStateCache.h | 24 struct hash<rx::d3d11::BlendStateKey> struct 33 struct hash<rx::d3d11::RasterizerStateKey> struct 42 struct hash<gl::DepthStencilState> struct 51 struct hash<gl::SamplerState> struct
|
/third_party/skia/third_party/externals/dawn/src/tests/perf_tests/ |
H A D | DawnPerfTestPlatform.cpp | 114 size_t hash = 0; in AddTraceEvent() local 115 HashCombine(&hash, buffer->size()); in AddTraceEvent() 116 HashCombine(&hash, std::this_thread::get_id()); in AddTraceEvent() 117 return static_cast<uint64_t>(hash); in AddTraceEvent()
|
/third_party/python/Include/cpython/ |
H A D | dictobject.h | 32 Py_hash_t hash); 40 PyObject *item, Py_hash_t hash); 42 Py_hash_t hash); 46 PyObject *mp, Py_ssize_t *pos, PyObject **key, PyObject **value, Py_hash_t *hash);
|
/third_party/skia/third_party/externals/tint/fuzzers/ |
H A D | random_generator.cc | 23 #include "src/utils/hash.h" 30 /// Calculate the hash for the contents of a c-style data buffer 32 /// in "src/utils/hash.h", because it conflicts with the vardiac override for 36 /// @returns hash of the data in the buffer 38 size_t hash = 102931; in HashBuffer() local 39 utils::HashCombine(&hash, size); in HashBuffer() 41 utils::HashCombine(&hash, data[i]); in HashBuffer() 43 return hash; in HashBuffer() 105 // Number of bytes we want to skip at the start of data for the hash. in CalculateSeed() 109 // Minimum number of bytes we want to use in the hash in CalculateSeed() [all...] |
/third_party/python/Lib/unittest/test/ |
H A D | support.py | 26 if not hash(obj_1) == hash(obj_2): 27 self.fail("%r and %r do not hash equal" % (obj_1, obj_2)) 33 if hash(obj_1) == hash(obj_2): 34 self.fail("%s and %s hash equal, but shouldn't" %
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/common/ |
H A D | value_proxy.cpp | 196 .hash = std::move(asset.hash), in Asset() 211 .hash = std::move(asset.hash), in Asset() 226 .hash = std::move(asset.hash), in Asset() 259 .hash = std::move(asset_.hash), in operator NativeRdb::AssetValue() 274 .hash = std::move(asset_.hash), in operator CommonType::AssetValue() [all...] |
/kernel/linux/linux-5.10/security/selinux/ss/ |
H A D | avtab.c | 17 * Tuned number of hash slots for avtab to reduce memory usage 41 u32 hash = 0; in avtab_hash() local 48 hash ^= v; \ in avtab_hash() 49 hash = (hash << r2) | (hash >> (32 - r2)); \ in avtab_hash() 50 hash = hash * m + n; \ in avtab_hash() 59 hash ^= hash >> 1 in avtab_hash() [all...] |
/kernel/linux/linux-5.10/fs/ubifs/ |
H A D | tnc_commit.c | 29 u8 hash[UBIFS_HASH_ARR_SZ]; in make_idx_node() local 44 ubifs_copy_hash(c, zbr->hash, ubifs_branch_hash(c, br)); in make_idx_node() 55 ubifs_node_calc_hash(c, idx, hash); in make_idx_node() 72 ubifs_copy_hash(c, hash, zbr->hash); in make_idx_node() 77 ubifs_copy_hash(c, hash, c->zroot.hash); in make_idx_node() 858 u8 hash[UBIFS_HASH_ARR_SZ]; in write_index() local 877 ubifs_copy_hash(c, zbr->hash, ubifs_branch_hash(c, br)); in write_index() 889 ubifs_node_calc_hash(c, idx, hash); in write_index() [all...] |
/kernel/linux/linux-6.6/fs/ubifs/ |
H A D | tnc_commit.c | 29 u8 hash[UBIFS_HASH_ARR_SZ]; in make_idx_node() local 44 ubifs_copy_hash(c, zbr->hash, ubifs_branch_hash(c, br)); in make_idx_node() 55 ubifs_node_calc_hash(c, idx, hash); in make_idx_node() 72 ubifs_copy_hash(c, hash, zbr->hash); in make_idx_node() 77 ubifs_copy_hash(c, hash, c->zroot.hash); in make_idx_node() 858 u8 hash[UBIFS_HASH_ARR_SZ]; in write_index() local 877 ubifs_copy_hash(c, zbr->hash, ubifs_branch_hash(c, br)); in write_index() 889 ubifs_node_calc_hash(c, idx, hash); in write_index() [all...] |
/kernel/linux/linux-5.10/net/openvswitch/ |
H A D | flow_table.c | 554 static struct hlist_head *find_bucket(struct table_instance *ti, u32 hash) in find_bucket() argument 556 hash = jhash_1word(hash, ti->hash_seed); in find_bucket() 557 return &ti->buckets[hash & (ti->n_buckets - 1)]; in find_bucket() 565 head = find_bucket(ti, flow->flow_table.hash); in table_instance_insert() 574 head = find_bucket(ti, flow->ufid_table.hash); in ufid_table_instance_insert() 652 /* Make sure number of hash bytes are multiple of u32. */ in flow_hash() 707 u32 hash; in masked_flow_lookup() local 711 hash = flow_hash(&masked_key, &mask->range); in masked_flow_lookup() 712 head = find_bucket(ti, hash); in masked_flow_lookup() 796 u32 hash; ovs_flow_tbl_lookup_stats() local 925 u32 hash; ovs_flow_tbl_lookup_ufid() local [all...] |
/kernel/linux/linux-6.6/net/openvswitch/ |
H A D | flow_table.c | 555 static struct hlist_head *find_bucket(struct table_instance *ti, u32 hash) in find_bucket() argument 557 hash = jhash_1word(hash, ti->hash_seed); in find_bucket() 558 return &ti->buckets[hash & (ti->n_buckets - 1)]; in find_bucket() 566 head = find_bucket(ti, flow->flow_table.hash); in table_instance_insert() 575 head = find_bucket(ti, flow->ufid_table.hash); in ufid_table_instance_insert() 653 /* Make sure number of hash bytes are multiple of u32. */ in flow_hash() 708 u32 hash; in masked_flow_lookup() local 712 hash = flow_hash(&masked_key, &mask->range); in masked_flow_lookup() 713 head = find_bucket(ti, hash); in masked_flow_lookup() 797 u32 hash; ovs_flow_tbl_lookup_stats() local 926 u32 hash; ovs_flow_tbl_lookup_ufid() local [all...] |
/third_party/mbedtls/library/ |
H A D | pk.c | 276 /* Wildcard hash is not allowed */ in mbedtls_pk_can_do_ext() 347 * a fixed hash on key_alg [or key_alg2]. in mbedtls_pk_can_do_ext() 359 * If key_alg [or key_alg2] is a hash-and-sign with a wildcard for the hash, in mbedtls_pk_can_do_ext() 360 * and alg is the same hash-and-sign family with any hash, in mbedtls_pk_can_do_ext() 1044 const unsigned char *hash, size_t hash_len, in mbedtls_pk_verify_restartable() 1048 if ((md_alg != MBEDTLS_MD_NONE || hash_len != 0) && hash == NULL) { in mbedtls_pk_verify_restartable() 1069 md_alg, hash, hash_len, sig, sig_len, rs_ctx->rs_ctx); in mbedtls_pk_verify_restartable() 1085 return ctx->pk_info->verify_func(ctx, md_alg, hash, hash_le in mbedtls_pk_verify_restartable() 1042 mbedtls_pk_verify_restartable(mbedtls_pk_context *ctx, mbedtls_md_type_t md_alg, const unsigned char *hash, size_t hash_len, const unsigned char *sig, size_t sig_len, mbedtls_pk_restart_ctx *rs_ctx) mbedtls_pk_verify_restartable() argument 1092 mbedtls_pk_verify(mbedtls_pk_context *ctx, mbedtls_md_type_t md_alg, const unsigned char *hash, size_t hash_len, const unsigned char *sig, size_t sig_len) mbedtls_pk_verify() argument 1103 mbedtls_pk_verify_ext(mbedtls_pk_type_t type, const void *options, mbedtls_pk_context *ctx, mbedtls_md_type_t md_alg, const unsigned char *hash, size_t hash_len, const unsigned char *sig, size_t sig_len) mbedtls_pk_verify_ext() argument 1233 mbedtls_pk_sign_restartable(mbedtls_pk_context *ctx, mbedtls_md_type_t md_alg, const unsigned char *hash, size_t hash_len, unsigned char *sig, size_t sig_size, size_t *sig_len, int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, mbedtls_pk_restart_ctx *rs_ctx) mbedtls_pk_sign_restartable() argument 1287 mbedtls_pk_sign(mbedtls_pk_context *ctx, mbedtls_md_type_t md_alg, const unsigned char *hash, size_t hash_len, unsigned char *sig, size_t sig_size, size_t *sig_len, int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) mbedtls_pk_sign() argument 1300 mbedtls_pk_sign_ext(mbedtls_pk_type_t pk_type, mbedtls_pk_context *ctx, mbedtls_md_type_t md_alg, const unsigned char *hash, size_t hash_len, unsigned char *sig, size_t sig_size, size_t *sig_len, int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) mbedtls_pk_sign_ext() argument [all...] |
/third_party/rust/crates/libc/src/unix/linux_like/linux/gnu/b32/x86/ |
H A D | mod.rs | 316 impl ::hash::Hash for user_fpxregs_struct { 317 fn hash<H: ::hash::Hasher>(&self, state: &mut H) { in hash() functions 318 self.cwd.hash(state); in hash() 319 self.swd.hash(state); in hash() 320 self.twd.hash(state); in hash() 321 self.fop.hash(state); in hash() 322 self.fip.hash(state); in hash() 323 self.fcs.hash(state); in hash() 324 self.foo.hash(stat in hash() 361 fn hash<H: ::hash::Hasher>(&self, state: &mut H) { hash() functions [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | clip_tbl.c | 80 int hash; in cxgb4_clip_get() local 86 hash = clip_addr_hash(ctbl, addr, v6); in cxgb4_clip_get() 89 list_for_each_entry(cte, &ctbl->hash_list[hash], list) { in cxgb4_clip_get() 114 list_add_tail(&ce->list, &ctbl->hash_list[hash]); in cxgb4_clip_get() 153 int hash; in cxgb4_clip_release() local 159 hash = clip_addr_hash(ctbl, addr, v6); in cxgb4_clip_release() 162 list_for_each_entry(cte, &ctbl->hash_list[hash], list) { in cxgb4_clip_release()
|
/kernel/linux/linux-5.10/include/net/ |
H A D | inet_hashtables.h | 29 #include <net/netns/hash.h> 107 * We must use different 'nulls' end-of-chain value for all hash buckets : 137 * TCP hash as well as the others for fast bind/connect. 167 inet_lhash2_bucket(struct inet_hashinfo *h, u32 hash) in inet_lhash2_bucket() argument 169 return &h->lhash2[hash & h->lhash2_mask]; in inet_lhash2_bucket() 174 unsigned int hash) in inet_ehash_bucket() 176 return &hashinfo->ehash[hash & hashinfo->ehash_mask]; in inet_ehash_bucket() 181 unsigned int hash) in inet_ehash_lockp() 183 return &hashinfo->ehash_locks[hash & hashinfo->ehash_locks_mask]; in inet_ehash_lockp() 307 /* Sockets in TCP_CLOSE state are _always_ taken out of the hash, s 172 inet_ehash_bucket( struct inet_hashinfo *hashinfo, unsigned int hash) inet_ehash_bucket() argument 179 inet_ehash_lockp( struct inet_hashinfo *hashinfo, unsigned int hash) inet_ehash_lockp() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | clip_tbl.c | 80 int hash; in cxgb4_clip_get() local 86 hash = clip_addr_hash(ctbl, addr, v6); in cxgb4_clip_get() 89 list_for_each_entry(cte, &ctbl->hash_list[hash], list) { in cxgb4_clip_get() 113 list_add_tail(&ce->list, &ctbl->hash_list[hash]); in cxgb4_clip_get() 152 int hash; in cxgb4_clip_release() local 158 hash = clip_addr_hash(ctbl, addr, v6); in cxgb4_clip_release() 161 list_for_each_entry(cte, &ctbl->hash_list[hash], list) { in cxgb4_clip_release()
|
/kernel/linux/linux-6.6/fs/efivarfs/ |
H A D | super.c | 106 unsigned long hash = init_name_hash(dentry); in efivarfs_d_hash() local 114 hash = partial_name_hash(*s++, hash); in efivarfs_d_hash() 118 hash = partial_name_hash(tolower(*s++), hash); in efivarfs_d_hash() 120 qstr->hash = end_name_hash(hash); in efivarfs_d_hash()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mediatek/ |
H A D | mtk_ppe.h | 298 u16 hash; member 353 void __mtk_ppe_check_skb(struct mtk_ppe *ppe, struct sk_buff *skb, u16 hash); 356 mtk_ppe_check_skb(struct mtk_ppe *ppe, struct sk_buff *skb, u16 hash) in mtk_ppe_check_skb() argument 363 if (hash > MTK_PPE_HASH_MASK) in mtk_ppe_check_skb() 367 diff = now - ppe->foe_check_time[hash]; in mtk_ppe_check_skb() 371 ppe->foe_check_time[hash] = now; in mtk_ppe_check_skb() 372 __mtk_ppe_check_skb(ppe, skb, hash); in mtk_ppe_check_skb()
|
/third_party/mbedtls/include/mbedtls/ |
H A D | pk.h | 291 const unsigned char *hash, unsigned char *sig); 456 * PSA_ALG_RSA_PKCS1V15_SIGN(hash), 457 * PSA_ALG_RSA_PSS(hash), 459 * PSA_ALG_ECDSA(hash), 460 * PSA_ALG_ECDH, where hash is a specific hash. 565 * corresponding to the PSA algorithm \c hash: 568 * #PSA_ALG_RSA_OAEP(\c hash) 719 * does not rely on a hash algorithm (non-deterministic 722 * \p hash i [all...] |
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_lower_locals_to_regs.c | 34 /* A hash table mapping derefs to registers */ 40 /* The following two functions implement a hash and equality check for 41 * variable dreferences. When the hash or equality function encounters an 48 uint32_t hash = 0; in hash_deref() local 54 return XXH32(&deref->var, sizeof(deref->var), hash); in hash_deref() 60 hash = XXH32(&deref->strct.index, sizeof(deref->strct.index), hash); in hash_deref() 102 uint32_t hash = hash_deref(deref); in get_reg_for_deref() local 108 _mesa_hash_table_search_pre_hashed(state->regs_table, hash, deref); in get_reg_for_deref() 125 _mesa_hash_table_insert_pre_hashed(state->regs_table, hash, dere in get_reg_for_deref() [all...] |