| /OK3568_Linux_fs/kernel/samples/bpf/ |
| H A D | hash_func01.h | 11 __u32 hash = initval; in SuperFastHash() local 23 hash += get16bits (data); in SuperFastHash() 24 tmp = (get16bits (data+2) << 11) ^ hash; in SuperFastHash() 25 hash = (hash << 16) ^ tmp; in SuperFastHash() 27 hash += hash >> 11; in SuperFastHash() 32 case 3: hash += get16bits (data); in SuperFastHash() 33 hash ^= hash << 16; in SuperFastHash() 34 hash ^= ((signed char)data[sizeof (__u16)]) << 18; in SuperFastHash() 35 hash += hash >> 11; in SuperFastHash() 37 case 2: hash += get16bits (data); in SuperFastHash() [all …]
|
| /OK3568_Linux_fs/kernel/net/batman-adv/ |
| H A D | hash.c | 15 static void batadv_hash_init(struct batadv_hashtable *hash) in batadv_hash_init() argument 19 for (i = 0; i < hash->size; i++) { in batadv_hash_init() 20 INIT_HLIST_HEAD(&hash->table[i]); in batadv_hash_init() 21 spin_lock_init(&hash->list_locks[i]); in batadv_hash_init() 24 atomic_set(&hash->generation, 0); in batadv_hash_init() 31 void batadv_hash_destroy(struct batadv_hashtable *hash) in batadv_hash_destroy() argument 33 kfree(hash->list_locks); in batadv_hash_destroy() 34 kfree(hash->table); in batadv_hash_destroy() 35 kfree(hash); in batadv_hash_destroy() 46 struct batadv_hashtable *hash; in batadv_hash_new() local [all …]
|
| /OK3568_Linux_fs/kernel/net/ceph/crush/ |
| H A D | hash.c | 29 __u32 hash = crush_hash_seed ^ a; in crush_hash32_rjenkins1() local 33 crush_hashmix(b, x, hash); in crush_hash32_rjenkins1() 34 crush_hashmix(y, a, hash); in crush_hash32_rjenkins1() 35 return hash; in crush_hash32_rjenkins1() 40 __u32 hash = crush_hash_seed ^ a ^ b; in crush_hash32_rjenkins1_2() local 43 crush_hashmix(a, b, hash); in crush_hash32_rjenkins1_2() 44 crush_hashmix(x, a, hash); in crush_hash32_rjenkins1_2() 45 crush_hashmix(b, y, hash); in crush_hash32_rjenkins1_2() 46 return hash; in crush_hash32_rjenkins1_2() 51 __u32 hash = crush_hash_seed ^ a ^ b ^ c; in crush_hash32_rjenkins1_3() local [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8723ds/os_dep/linux/ |
| H A D | rhashtable.h | 181 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 183 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 186 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 187 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 206 unsigned int hash) in rht_bucket_index() argument 208 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index() 215 unsigned int hash; in rht_key_hashfn() local 219 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn() 224 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn() 226 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822bs/os_dep/linux/ |
| H A D | rhashtable.h | 181 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 183 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 186 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 187 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 206 unsigned int hash) in rht_bucket_index() argument 208 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index() 215 unsigned int hash; in rht_key_hashfn() local 219 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn() 224 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn() 226 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8189fs/os_dep/linux/ |
| H A D | rhashtable.h | 181 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 183 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 186 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 187 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 206 unsigned int hash) in rht_bucket_index() argument 208 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index() 215 unsigned int hash; in rht_key_hashfn() local 219 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn() 224 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn() 226 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8189fs/os_dep/linux/ |
| H A D | rhashtable.h | 182 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 184 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 187 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 188 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 207 unsigned int hash) in rht_bucket_index() argument 209 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index() 216 unsigned int hash; in rht_key_hashfn() local 220 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn() 225 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn() 227 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/os_dep/linux/ |
| H A D | rhashtable.h | 181 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 183 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 186 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 187 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 206 unsigned int hash) in rht_bucket_index() argument 208 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index() 215 unsigned int hash; in rht_key_hashfn() local 219 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn() 224 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn() 226 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/os_dep/linux/ |
| H A D | rhashtable.h | 181 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 183 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 186 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 187 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 206 unsigned int hash) in rht_bucket_index() argument 208 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index() 215 unsigned int hash; in rht_key_hashfn() local 219 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn() 224 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn() 226 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8188fu/os_dep/linux/ |
| H A D | rhashtable.h | 181 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 183 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 186 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 187 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 206 unsigned int hash) in rht_bucket_index() argument 208 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index() 215 unsigned int hash; in rht_key_hashfn() local 219 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn() 224 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn() 226 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188fu/os_dep/linux/ |
| H A D | rhashtable.h | 182 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 184 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 187 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 188 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 207 unsigned int hash) in rht_bucket_index() argument 209 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index() 216 unsigned int hash; in rht_key_hashfn() local 220 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn() 225 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn() 227 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188eu/os_dep/linux/ |
| H A D | rhashtable.h | 182 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 184 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 187 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 188 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 207 unsigned int hash) in rht_bucket_index() argument 209 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index() 216 unsigned int hash; in rht_key_hashfn() local 220 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn() 225 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn() 227 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723ds/os_dep/linux/ |
| H A D | rhashtable.h | 182 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 184 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 187 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 188 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 207 unsigned int hash) in rht_bucket_index() argument 209 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index() 216 unsigned int hash; in rht_key_hashfn() local 220 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn() 225 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn() 227 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723cs/os_dep/linux/ |
| H A D | rhashtable.h | 181 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 183 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 186 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 187 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 206 unsigned int hash) in rht_bucket_index() argument 208 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index() 215 unsigned int hash; in rht_key_hashfn() local 219 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn() 224 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn() 226 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/os_dep/linux/ |
| H A D | rhashtable.h | 182 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 184 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 187 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 188 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 207 unsigned int hash) in rht_bucket_index() argument 209 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index() 216 unsigned int hash; in rht_key_hashfn() local 220 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn() 225 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn() 227 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/os_dep/linux/ |
| H A D | rhashtable.h | 181 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 183 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 186 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 187 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 206 unsigned int hash) in rht_bucket_index() argument 208 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index() 215 unsigned int hash; in rht_key_hashfn() local 219 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn() 224 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn() 226 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/os_dep/linux/ |
| H A D | rhashtable.h | 181 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 183 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 186 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 187 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 206 unsigned int hash) in rht_bucket_index() argument 208 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index() 215 unsigned int hash; in rht_key_hashfn() local 219 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn() 224 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn() 226 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/xen-netback/ |
| H A D | hash.c | 50 spin_lock_irqsave(&vif->hash.cache.lock, flags); in xenvif_add_hash() 54 list_for_each_entry_rcu(entry, &vif->hash.cache.list, link, in xenvif_add_hash() 55 lockdep_is_held(&vif->hash.cache.lock)) { in xenvif_add_hash() 65 new->seq = atomic_inc_return(&vif->hash.cache.seq); in xenvif_add_hash() 66 list_add_rcu(&new->link, &vif->hash.cache.list); in xenvif_add_hash() 68 if (++vif->hash.cache.count > xenvif_hash_cache_size) { in xenvif_add_hash() 70 vif->hash.cache.count--; in xenvif_add_hash() 75 spin_unlock_irqrestore(&vif->hash.cache.lock, flags); in xenvif_add_hash() 86 val = xen_netif_toeplitz_hash(vif->hash.key, in xenvif_new_hash() 87 sizeof(vif->hash.key), in xenvif_new_hash() [all …]
|
| /OK3568_Linux_fs/external/mpp/utils/ |
| H A D | dictionary.c | 76 new_hash = (unsigned*) calloc(d->size * 2, sizeof * d->hash); in dictionary_grow() 90 memcpy(new_hash, d->hash, d->size * sizeof(unsigned)); in dictionary_grow() 94 free(d->hash); in dictionary_grow() 99 d->hash = new_hash; in dictionary_grow() 121 unsigned hash ; in dictionary_hash() local 128 for (hash = 0, i = 0 ; i < len ; i++) { in dictionary_hash() 129 hash += (unsigned)key[i] ; in dictionary_hash() 130 hash += (hash << 10); in dictionary_hash() 131 hash ^= (hash >> 6) ; in dictionary_hash() 133 hash += (hash << 3); in dictionary_hash() [all …]
|
| /OK3568_Linux_fs/kernel/scripts/ |
| H A D | get_dvb_firmware | 52 my $hash = "53970ec17a538945a6d8cb608a7b3899"; 60 verify("$tmpdir/software/OEM/HE/App/boot/SC_MAIN.MC", $hash); 70 my $hash = "237938d53a7f834c05c42b894ca68ac3"; 80 verify("$tmpdir/ZEnglish/sc_main.mc", $hash); 89 my $hash = "2105fd5bf37842fbcdfa4bfd58f3594a"; 98 verify("$tmpdir/fwtmp", $hash); 107 my $hash = "6a7e1e2f2644b162ff0502367553c72d"; 116 verify("$tmpdir/fwtmp", $hash); 125 my $hash = "1ea24dee4eea8fe971686981f34fd2e0"; 134 verify("$tmpdir/fwtmp", $hash); [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | rhashtable.h | 120 unsigned int hash) in rht_bucket_index() argument 122 return hash & (tbl->size - 1); in rht_bucket_index() 129 unsigned int hash; in rht_key_get_hash() local 133 hash = ht->p.hashfn(key, ht->key_len, hash_rnd); in rht_key_get_hash() 138 hash = params.hashfn(key, key_len, hash_rnd); in rht_key_get_hash() 140 hash = jhash(key, key_len, hash_rnd); in rht_key_get_hash() 142 hash = jhash2(key, key_len / sizeof(u32), hash_rnd); in rht_key_get_hash() 147 hash = params.hashfn(key, key_len, hash_rnd); in rht_key_get_hash() 149 hash = jhash(key, key_len, hash_rnd); in rht_key_get_hash() 152 return hash; in rht_key_get_hash() [all …]
|
| /OK3568_Linux_fs/u-boot/cmd/ |
| H A D | crypto_sum.c | 9 static void dump_hash(const char *label, void *hash, in dump_hash() argument 16 buf = hash; in dump_hash() 29 u8 hash[256]; in do_crypto_csum() local 58 memset(hash, 0, sizeof(hash)); in do_crypto_csum() 59 crypto_sha_csum(dev, &csha_ctx, input_data, input_len, hash); in do_crypto_csum() 60 dump_hash("md5", hash, crypto_algo_nbits(csha_ctx.algo), in do_crypto_csum() 65 memset(hash, 0, sizeof(hash)); in do_crypto_csum() 66 crypto_sha_csum(dev, &csha_ctx, input_data, input_len, hash); in do_crypto_csum() 67 dump_hash("sha1", hash, crypto_algo_nbits(csha_ctx.algo), in do_crypto_csum() 72 memset(hash, 0, sizeof(hash)); in do_crypto_csum() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/freescale/fman/ |
| H A D | fman_mac.h | 224 static inline void free_hash_table(struct eth_hash_t *hash) in free_hash_table() argument 229 if (hash) { in free_hash_table() 230 if (hash->lsts) { in free_hash_table() 231 for (i = 0; i < hash->size; i++) { in free_hash_table() 233 dequeue_addr_from_hash_entry(&hash->lsts[i]); in free_hash_table() 237 dequeue_addr_from_hash_entry(&hash-> in free_hash_table() 242 kfree(hash->lsts); in free_hash_table() 245 kfree(hash); in free_hash_table() 252 struct eth_hash_t *hash; in alloc_hash_table() local 255 hash = kmalloc(sizeof(*hash), GFP_KERNEL); in alloc_hash_table() [all …]
|
| /OK3568_Linux_fs/u-boot/common/ |
| H A D | hash.su | |
| /OK3568_Linux_fs/u-boot/spl/common/ |
| H A D | hash.su | |