/kernel/linux/linux-5.10/drivers/dax/ |
H A D | super.c | 13 #include <linux/hash.h> 558 int hash; in dax_add_host() local 569 hash = dax_host_hash(host); in dax_add_host() 571 hlist_add_head(&dax_dev->list, &dax_host_list[hash]); in dax_add_host() 634 int hash, id; in dax_get_by_host() local 639 hash = dax_host_hash(host); in dax_get_by_host() 643 hlist_for_each_entry(dax_dev, &dax_host_list[hash], list) { in dax_get_by_host()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | map_ptr_kern.c | 114 struct bpf_htab *hash = (struct bpf_htab *)&m_hash; in check_hash() local 118 VERIFY(check_default_noinline(&hash->map, map)); in check_hash() 120 VERIFY(hash->n_buckets == MAX_ENTRIES); in check_hash() 121 VERIFY(hash->elem_size == 64); in check_hash() 123 VERIFY(hash->count.counter == 0); in check_hash() 128 if (bpf_map_update_elem(hash, &key, &val, 0)) in check_hash() 131 VERIFY(hash->count.counter == HALF_ENTRIES); in check_hash()
|
/kernel/linux/linux-5.10/init/ |
H A D | initramfs.c | 48 /* link hash */ 52 static __initdata struct hash { struct 55 struct hash *next; 59 static inline int hash(int major, int minor, int ino) in hash() function 69 struct hash **p, *q; in find_link() 70 for (p = head + hash(major, minor, ino); *p; p = &(*p)->next) { in find_link() 81 q = kmalloc(sizeof(struct hash), GFP_KERNEL); in find_link() 83 panic("can't allocate link hash entry"); in find_link() 96 struct hash **p, *q; in free_hash()
|
/kernel/linux/linux-5.10/net/netfilter/ipvs/ |
H A D | ip_vs_proto_sctp.c | 491 __u16 hash; in sctp_register_app() local 496 hash = sctp_app_hashkey(port); in sctp_register_app() 498 list_for_each_entry(i, &ipvs->sctp_apps[hash], p_list) { in sctp_register_app() 504 list_add_rcu(&inc->p_list, &ipvs->sctp_apps[hash]); in sctp_register_app() 522 int hash; in sctp_app_conn_bind() local 530 hash = sctp_app_hashkey(cp->vport); in sctp_app_conn_bind() 532 list_for_each_entry_rcu(inc, &ipvs->sctp_apps[hash], p_list) { in sctp_app_conn_bind()
|
/kernel/linux/linux-6.6/init/ |
H A D | initramfs.c | 66 /* link hash */ 70 static __initdata struct hash { struct 73 struct hash *next; 77 static inline int hash(int major, int minor, int ino) in hash() function 87 struct hash **p, *q; in find_link() 88 for (p = head + hash(major, minor, ino); *p; p = &(*p)->next) { in find_link() 99 q = kmalloc(sizeof(struct hash), GFP_KERNEL); in find_link() 101 panic_show_mem("can't allocate link hash entry"); in find_link() 114 struct hash **p, *q; in free_hash()
|
/kernel/linux/linux-6.6/block/ |
H A D | elevator.c | 35 #include <linux/hash.h> 52 * Merge hash stuff. 144 hash_init(eq->hash); in elevator_alloc() 175 hash_del(&rq->hash); in __elv_rqhash_del() 191 hash_add(e->hash, &rq->hash, rq_hash_key(rq)); in elv_rqhash_add() 208 hash_for_each_possible_safe(e->hash, rq, next, hash, offset) { in elv_rqhash_find() 307 * See if our hash lookup can find a potential backmerge. in elv_merge() 354 * See if our hash looku in elv_attempt_insert_merge() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | map_ptr_kern.c | 110 struct bpf_htab *hash = (struct bpf_htab *)&m_hash; in check_hash() local 114 VERIFY(check_default_noinline(&hash->map, map)); in check_hash() 116 VERIFY(hash->n_buckets == MAX_ENTRIES); in check_hash() 117 VERIFY(hash->elem_size == 64); in check_hash() 119 VERIFY(hash->count.counter == 0); in check_hash() 126 if (bpf_map_update_elem(hash, &key, &val, 0)) in check_hash() 129 VERIFY(hash->count.counter == HALF_ENTRIES); in check_hash()
|
/kernel/linux/linux-6.6/net/netfilter/ipvs/ |
H A D | ip_vs_proto_sctp.c | 491 __u16 hash; in sctp_register_app() local 496 hash = sctp_app_hashkey(port); in sctp_register_app() 498 list_for_each_entry(i, &ipvs->sctp_apps[hash], p_list) { in sctp_register_app() 504 list_add_rcu(&inc->p_list, &ipvs->sctp_apps[hash]); in sctp_register_app() 522 int hash; in sctp_app_conn_bind() local 530 hash = sctp_app_hashkey(cp->vport); in sctp_app_conn_bind() 532 list_for_each_entry_rcu(inc, &ipvs->sctp_apps[hash], p_list) { in sctp_app_conn_bind()
|
/test/xts/acts/security/huks/huks_napi_BasicTest/src/ |
H A D | huks_three_stage_test_common.cpp | 512 static int32_t HksOpensslHash(uint32_t alg, const struct OH_Huks_Blob *msg, struct OH_Huks_Blob *hash) in HksOpensslHash() argument 519 int32_t ret = EVP_Digest(msg->data, msg->size, hash->data, &hash->size, opensslAlg, NULL); in HksOpensslHash() 527 struct OH_Huks_Blob *hash) in HuksHash() 531 if ((paramSet == NULL) || (srcData == NULL) || (hash == NULL)) { in HuksHash() 549 if (hash->size < digestLen) { in HuksHash() 553 ret1 = HksOpensslHash(digestAlg->uint32Param, srcData, hash); in HuksHash() 526 HuksHash(const struct OH_Huks_ParamSet *paramSet, const struct OH_Huks_Blob *srcData, struct OH_Huks_Blob *hash) HuksHash() argument
|
/base/hiviewdfx/hilog/services/hilogd/ |
H A D | log_persister_rotator.cpp | 188 uint64_t hash = GenerateHash(reinterpret_cast<char *>(&m_info), sizeof(PersistRecoveryInfo)); in WriteRecoveryInfo() local 192 m_infoFile.write(reinterpret_cast<const char*>(&hash), sizeof(hash)); in WriteRecoveryInfo()
|
/base/hiviewdfx/hilog_lite/frameworks/mini/ |
H A D | hiview_log.c | 146 void HILOG_HashPrintf(uint8 module, uint8 level, const char *nums, uint32 hash, ...) in HILOG_HashPrintf() argument 163 pCommon->fmt = (const char*)hash; in HILOG_HashPrintf() 172 va_start(args, hash); in HILOG_HashPrintf()
|
/kernel/linux/linux-5.10/arch/arm/crypto/ |
H A D | crc32-ce-glue.c | 15 #include <crypto/internal/hash.h> 52 static int crc32_setkey(struct crypto_shash *hash, const u8 *key, in crc32_setkey() argument 55 u32 *mctx = crypto_shash_ctx(hash); in crc32_setkey()
|
/kernel/linux/linux-5.10/crypto/ |
H A D | sm3_generic.c | 3 * SM3 secure hash, as specified by OSCCA GM/T 0004-2012 SM3 and 4 * described at https://tools.ietf.org/html/draft-shen-sm3-hash-01 10 #include <crypto/internal/hash.h> 160 unsigned int len, u8 *hash) in crypto_sm3_finup() 163 return crypto_sm3_final(desc, hash); in crypto_sm3_finup() 159 crypto_sm3_finup(struct shash_desc *desc, const u8 *data, unsigned int len, u8 *hash) crypto_sm3_finup() argument
|
/kernel/linux/linux-5.10/arch/sparc/crypto/ |
H A D | sha256_glue.c | 14 #include <crypto/internal/hash.h> 131 static int sha224_sparc64_final(struct shash_desc *desc, u8 *hash) in sha224_sparc64_final() argument 137 memcpy(hash, D, SHA224_DIGEST_SIZE); in sha224_sparc64_final()
|
H A D | sha512_glue.c | 13 #include <crypto/internal/hash.h> 135 static int sha384_sparc64_final(struct shash_desc *desc, u8 *hash) in sha384_sparc64_final() argument 141 memcpy(hash, D, 48); in sha384_sparc64_final()
|
/kernel/linux/linux-5.10/arch/x86/crypto/ |
H A D | crc32c-intel_glue.c | 18 #include <crypto/internal/hash.h> 83 static int crc32c_intel_setkey(struct crypto_shash *hash, const u8 *key, in crc32c_intel_setkey() argument 86 u32 *mctx = crypto_shash_ctx(hash); in crc32c_intel_setkey()
|
/kernel/linux/linux-5.10/drivers/crypto/rockchip/ |
H A D | rk3288_crypto.c | 110 &rk_cipher_algs[i]->alg.hash); in rk_crypto_register() 121 crypto_unregister_ahash(&rk_cipher_algs[i]->alg.hash); in rk_crypto_register() 134 crypto_unregister_ahash(&rk_cipher_algs[i]->alg.hash); in rk_crypto_unregister()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/ |
H A D | ice_txrx_lib.c | 38 * ice_ptype_to_htype - get a hash type 41 * Returns a hash type to be used by skb_set_hash 49 * ice_rx_hash - set the hash value in the skb 60 u32 hash; in ice_rx_hash() local 69 hash = le32_to_cpu(nic_mdid->rss_hash); in ice_rx_hash() 70 skb_set_hash(skb, hash, ice_ptype_to_htype(rx_ptype)); in ice_rx_hash() 163 * order to populate the hash, checksum, VLAN, protocol, and
|
/kernel/linux/linux-6.6/arch/arm/crypto/ |
H A D | crc32-ce-glue.c | 15 #include <crypto/internal/hash.h> 52 static int crc32_setkey(struct crypto_shash *hash, const u8 *key, in crc32_setkey() argument 55 u32 *mctx = crypto_shash_ctx(hash); in crc32_setkey()
|
/kernel/linux/linux-5.10/include/linux/sunrpc/ |
H A D | cache.h | 29 * - A function to calculate a hash of an item's key. 32 * (e.g. hash size, goal_age, etc). 38 * in the hash table. 139 struct hlist_node hash; /* on hash chain */ member 177 struct cache_head *key, int hash); 180 struct cache_head *new, struct cache_head *old, int hash);
|
/kernel/linux/linux-6.6/include/crypto/internal/ |
H A D | hash.h | 12 #include <crypto/hash.h> 152 static inline struct ahash_alg *crypto_ahash_alg(struct crypto_ahash *hash) in crypto_ahash_alg() argument 154 return container_of(crypto_hash_alg_common(hash), struct ahash_alg, in crypto_ahash_alg()
|
/kernel/linux/linux-6.6/include/linux/sunrpc/ |
H A D | cache.h | 29 * - A function to calculate a hash of an item's key. 32 * (e.g. hash size, goal_age, etc). 38 * in the hash table. 143 struct hlist_node hash; /* on hash chain */ member 181 struct cache_head *key, int hash); 184 struct cache_head *new, struct cache_head *old, int hash);
|
/kernel/linux/linux-6.6/arch/x86/crypto/ |
H A D | crc32c-intel_glue.c | 18 #include <crypto/internal/hash.h> 83 static int crc32c_intel_setkey(struct crypto_shash *hash, const u8 *key, in crc32c_intel_setkey() argument 86 u32 *mctx = crypto_shash_ctx(hash); in crc32c_intel_setkey()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
H A D | nv40.c | 116 int hash; in nv40_eobj_ramht_add() local 119 hash = nvkm_ramht_insert(imem->ramht, eobj, chan->id, 4, eobj->handle, context); in nv40_eobj_ramht_add() 121 return hash; in nv40_eobj_ramht_add()
|
/kernel/liteos_a/fs/vfs/include/ |
H A D | vnode.h | 116 uint32_t hash; /* vnode hash */ member 127 LIST_ENTRY hashEntry; /* list entry for bucket in hash table */ 180 int VfsHashGet(const struct Mount *mount, uint32_t hash, struct Vnode **vnode, VfsHashCmp *fun, void *arg); 182 int VfsHashInsert(struct Vnode *vnode, uint32_t hash);
|