/linux-4.1.27/net/batman-adv/ |
D | hash.c | 22 static void batadv_hash_init(struct batadv_hashtable *hash) in batadv_hash_init() argument 26 for (i = 0; i < hash->size; i++) { in batadv_hash_init() 27 INIT_HLIST_HEAD(&hash->table[i]); in batadv_hash_init() 28 spin_lock_init(&hash->list_locks[i]); in batadv_hash_init() 33 void batadv_hash_destroy(struct batadv_hashtable *hash) in batadv_hash_destroy() argument 35 kfree(hash->list_locks); in batadv_hash_destroy() 36 kfree(hash->table); in batadv_hash_destroy() 37 kfree(hash); in batadv_hash_destroy() 43 struct batadv_hashtable *hash; in batadv_hash_new() local 45 hash = kmalloc(sizeof(*hash), GFP_ATOMIC); in batadv_hash_new() [all …]
|
D | hash.h | 46 void batadv_hash_set_lock_class(struct batadv_hashtable *hash, 50 void batadv_hash_destroy(struct batadv_hashtable *hash); 56 static inline void batadv_hash_delete(struct batadv_hashtable *hash, in batadv_hash_delete() argument 65 for (i = 0; i < hash->size; i++) { in batadv_hash_delete() 66 head = &hash->table[i]; in batadv_hash_delete() 67 list_lock = &hash->list_locks[i]; in batadv_hash_delete() 79 batadv_hash_destroy(hash); in batadv_hash_delete() 90 static inline uint32_t batadv_hash_bytes(uint32_t hash, const void *data, in batadv_hash_bytes() argument 97 hash += key[i]; in batadv_hash_bytes() 98 hash += (hash << 10); in batadv_hash_bytes() [all …]
|
D | originator.h | 78 uint32_t hash = 0; in batadv_choose_orig() local 82 hash += key[i]; in batadv_choose_orig() 83 hash += (hash << 10); in batadv_choose_orig() 84 hash ^= (hash >> 6); in batadv_choose_orig() 87 hash += (hash << 3); in batadv_choose_orig() 88 hash ^= (hash >> 11); in batadv_choose_orig() 89 hash += (hash << 15); in batadv_choose_orig() 91 return hash % size; in batadv_choose_orig() 97 struct batadv_hashtable *hash = bat_priv->orig_hash; in batadv_orig_hash_find() local 102 if (!hash) in batadv_orig_hash_find() [all …]
|
D | bridge_loop_avoidance.c | 43 uint32_t hash = 0; in batadv_choose_claim() local 45 hash = batadv_hash_bytes(hash, &claim->addr, sizeof(claim->addr)); in batadv_choose_claim() 46 hash = batadv_hash_bytes(hash, &claim->vid, sizeof(claim->vid)); in batadv_choose_claim() 48 hash += (hash << 3); in batadv_choose_claim() 49 hash ^= (hash >> 11); in batadv_choose_claim() 50 hash += (hash << 15); in batadv_choose_claim() 52 return hash % size; in batadv_choose_claim() 60 uint32_t hash = 0; in batadv_choose_backbone_gw() local 62 hash = batadv_hash_bytes(hash, &claim->addr, sizeof(claim->addr)); in batadv_choose_backbone_gw() 63 hash = batadv_hash_bytes(hash, &claim->vid, sizeof(claim->vid)); in batadv_choose_backbone_gw() [all …]
|
D | distributed-arp-table.c | 89 if (!bat_priv->dat.hash) in __batadv_dat_purge() 92 for (i = 0; i < bat_priv->dat.hash->size; i++) { in __batadv_dat_purge() 93 head = &bat_priv->dat.hash->table[i]; in __batadv_dat_purge() 94 list_lock = &bat_priv->dat.hash->list_locks[i]; in __batadv_dat_purge() 208 uint32_t hash = 0; in batadv_hash_dat() local 211 hash = batadv_hash_bytes(hash, &dat->ip, sizeof(dat->ip)); in batadv_hash_dat() 212 hash = batadv_hash_bytes(hash, &dat->vid, sizeof(dat->vid)); in batadv_hash_dat() 214 hash += (hash << 3); in batadv_hash_dat() 215 hash ^= (hash >> 11); in batadv_hash_dat() 216 hash += (hash << 15); in batadv_hash_dat() [all …]
|
D | network-coding.c | 350 struct batadv_hashtable *hash = bat_priv->orig_hash; in batadv_nc_purge_orig_hash() local 355 if (!hash) in batadv_nc_purge_orig_hash() 359 for (i = 0; i < hash->size; i++) { in batadv_nc_purge_orig_hash() 360 head = &hash->table[i]; in batadv_nc_purge_orig_hash() 381 struct batadv_hashtable *hash, in batadv_nc_purge_paths() argument 391 for (i = 0; i < hash->size; i++) { in batadv_nc_purge_paths() 392 head = &hash->table[i]; in batadv_nc_purge_paths() 393 lock = &hash->list_locks[i]; in batadv_nc_purge_paths() 452 uint32_t hash = 0; in batadv_nc_hash_choose() local 454 hash = batadv_hash_bytes(hash, &nc_path->prev_hop, in batadv_nc_hash_choose() [all …]
|
D | translation-table.c | 68 uint32_t hash = 0; in batadv_choose_tt() local 71 hash = batadv_hash_bytes(hash, &tt->addr, ETH_ALEN); in batadv_choose_tt() 72 hash = batadv_hash_bytes(hash, &tt->vid, sizeof(tt->vid)); in batadv_choose_tt() 74 hash += (hash << 3); in batadv_choose_tt() 75 hash ^= (hash >> 11); in batadv_choose_tt() 76 hash += (hash << 15); in batadv_choose_tt() 78 return hash % size; in batadv_choose_tt() 91 batadv_tt_hash_find(struct batadv_hashtable *hash, const uint8_t *addr, in batadv_tt_hash_find() argument 98 if (!hash) in batadv_tt_hash_find() 104 index = batadv_choose_tt(&to_search, hash->size); in batadv_tt_hash_find() [all …]
|
D | originator.c | 567 struct batadv_hashtable *hash = bat_priv->orig_hash; in batadv_originator_free() local 574 if (!hash) in batadv_originator_free() 581 for (i = 0; i < hash->size; i++) { in batadv_originator_free() 582 head = &hash->table[i]; in batadv_originator_free() 583 list_lock = &hash->list_locks[i]; in batadv_originator_free() 594 batadv_hash_destroy(hash); in batadv_originator_free() 924 struct batadv_hashtable *hash = bat_priv->orig_hash; in _batadv_purge_orig() local 931 if (!hash) in _batadv_purge_orig() 935 for (i = 0; i < hash->size; i++) { in _batadv_purge_orig() 936 head = &hash->table[i]; in _batadv_purge_orig() [all …]
|
/linux-4.1.27/net/core/ |
D | secure_seq.c | 47 u32 hash[MD5_DIGEST_WORDS]; in secure_tcpv6_sequence_number() local 51 memcpy(hash, saddr, 16); in secure_tcpv6_sequence_number() 59 md5_transform(hash, secret); in secure_tcpv6_sequence_number() 61 return seq_scale(hash[0]); in secure_tcpv6_sequence_number() 69 u32 hash[MD5_DIGEST_WORDS]; in secure_ipv6_port_ephemeral() local 73 memcpy(hash, saddr, 16); in secure_ipv6_port_ephemeral() 80 md5_transform(hash, secret); in secure_ipv6_port_ephemeral() 82 return hash[0]; in secure_ipv6_port_ephemeral() 92 u32 hash[MD5_DIGEST_WORDS]; in secure_tcp_sequence_number() local 95 hash[0] = (__force u32)saddr; in secure_tcp_sequence_number() [all …]
|
D | flow_dissector.c | 285 u32 hash; in __flow_hash_from_keys() local 295 hash = __flow_hash_3words((__force u32)keys->dst, in __flow_hash_from_keys() 298 if (!hash) in __flow_hash_from_keys() 299 hash = 1; in __flow_hash_from_keys() 301 return hash; in __flow_hash_from_keys() 328 skb->hash = __flow_hash_from_keys(&keys); in __skb_get_hash() 339 u32 hash; in __skb_tx_hash() local 344 hash = skb_get_rx_queue(skb); in __skb_tx_hash() 345 while (unlikely(hash >= num_tx_queues)) in __skb_tx_hash() 346 hash -= num_tx_queues; in __skb_tx_hash() [all …]
|
D | net-procfs.c | 243 int hash; in ptype_seq_next() local 254 hash = 0; in ptype_seq_next() 257 hash = ntohs(pt->type) & PTYPE_HASH_MASK; in ptype_seq_next() 259 while (nxt == &ptype_base[hash]) { in ptype_seq_next() 260 if (++hash >= PTYPE_HASH_SIZE) in ptype_seq_next() 262 nxt = ptype_base[hash].next; in ptype_seq_next()
|
/linux-4.1.27/net/ceph/crush/ |
D | hash.c | 26 __u32 hash = crush_hash_seed ^ a; in crush_hash32_rjenkins1() local 30 crush_hashmix(b, x, hash); in crush_hash32_rjenkins1() 31 crush_hashmix(y, a, hash); in crush_hash32_rjenkins1() 32 return hash; in crush_hash32_rjenkins1() 37 __u32 hash = crush_hash_seed ^ a ^ b; in crush_hash32_rjenkins1_2() local 40 crush_hashmix(a, b, hash); in crush_hash32_rjenkins1_2() 41 crush_hashmix(x, a, hash); in crush_hash32_rjenkins1_2() 42 crush_hashmix(b, y, hash); in crush_hash32_rjenkins1_2() 43 return hash; in crush_hash32_rjenkins1_2() 48 __u32 hash = crush_hash_seed ^ a ^ b ^ c; in crush_hash32_rjenkins1_3() local [all …]
|
/linux-4.1.27/include/linux/ |
D | rhashtable.h | 180 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 182 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 185 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 186 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 205 unsigned int hash) in rht_bucket_index() argument 207 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index() 214 unsigned int hash; in rht_key_hashfn() local 218 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn() 223 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn() 225 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn() [all …]
|
D | hash.h | 53 u64 hash = val; in hash_64() local 56 hash = hash * GOLDEN_RATIO_64; in hash_64() 59 u64 n = hash; in hash_64() 61 hash -= n; in hash_64() 63 hash -= n; in hash_64() 65 hash += n; in hash_64() 67 hash -= n; in hash_64() 69 hash += n; in hash_64() 71 hash += n; in hash_64() 75 return hash >> (64 - bits); in hash_64() [all …]
|
D | dcache.h | 30 #define HASH_LEN_DECLARE u32 hash; u32 len; 33 #define HASH_LEN_DECLARE u32 len; u32 hash; 57 #define hashlen_create(hash,len) (((u64)(len)<<32)|(u32)(hash)) argument 83 static inline unsigned long end_name_hash(unsigned long hash) in end_name_hash() argument 85 return (unsigned int) hash; in end_name_hash()
|
D | tpm.h | 50 extern int tpm_pcr_extend(u32 chip_num, int pcr_idx, const u8 *hash); 57 static inline int tpm_pcr_extend(u32 chip_num, int pcr_idx, const u8 *hash) { in tpm_pcr_extend() argument
|
/linux-4.1.27/Documentation/DocBook/ |
D | .crypto-API.xml.cmd | 2 …hash.h include/crypto/hash.h include/crypto/hash.h include/crypto/hash.h include/crypto/hash.h inc…
|
/linux-4.1.27/Documentation/dvb/ |
D | get_dvb_firmware | 65 my $hash = "53970ec17a538945a6d8cb608a7b3899"; 73 verify("$tmpdir/software/OEM/HE/App/boot/SC_MAIN.MC", $hash); 83 my $hash = "237938d53a7f834c05c42b894ca68ac3"; 93 verify("$tmpdir/ZEnglish/sc_main.mc", $hash); 102 my $hash = "2105fd5bf37842fbcdfa4bfd58f3594a"; 111 verify("$tmpdir/fwtmp", $hash); 120 my $hash = "6a7e1e2f2644b162ff0502367553c72d"; 129 verify("$tmpdir/fwtmp", $hash); 138 my $hash = "1ea24dee4eea8fe971686981f34fd2e0"; 147 verify("$tmpdir/fwtmp", $hash); [all …]
|
/linux-4.1.27/fs/ext4/ |
D | hash.c | 39 __u32 hash, hash0 = 0x12a3fe2d, hash1 = 0x37abe8f9; in dx_hack_hash_unsigned() local 43 hash = hash1 + (hash0 ^ (((int) *ucp++) * 7152373)); in dx_hack_hash_unsigned() 45 if (hash & 0x80000000) in dx_hack_hash_unsigned() 46 hash -= 0x7fffffff; in dx_hack_hash_unsigned() 48 hash0 = hash; in dx_hack_hash_unsigned() 55 __u32 hash, hash0 = 0x12a3fe2d, hash1 = 0x37abe8f9; in dx_hack_hash_signed() local 59 hash = hash1 + (hash0 ^ (((int) *scp++) * 7152373)); in dx_hack_hash_signed() 61 if (hash & 0x80000000) in dx_hack_hash_signed() 62 hash -= 0x7fffffff; in dx_hack_hash_signed() 64 hash0 = hash; in dx_hack_hash_signed() [all …]
|
D | dir.c | 369 __u32 hash; member 424 int ext4_htree_store_dirent(struct file *dir_file, __u32 hash, in ext4_htree_store_dirent() argument 442 new_fn->hash = hash; in ext4_htree_store_dirent() 458 if ((new_fn->hash == fname->hash) && in ext4_htree_store_dirent() 465 if (new_fn->hash < fname->hash) in ext4_htree_store_dirent() 467 else if (new_fn->hash > fname->hash) in ext4_htree_store_dirent() 500 ctx->pos = hash2pos(file, fname->hash, fname->minor_hash); in call_filldir() 576 info->curr_hash = fname->hash; in ext4_dx_readdir() 585 info->curr_hash = fname->hash; in ext4_dx_readdir()
|
D | xattr.c | 1534 __u32 hash = le32_to_cpu(BHDR(bh)->h_hash); in ext4_xattr_cache_insert() local 1543 error = mb_cache_entry_insert(ce, bh->b_bdev, bh->b_blocknr, hash); in ext4_xattr_cache_insert() 1551 ea_bdebug(bh, "inserting [%x]", (int)hash); in ext4_xattr_cache_insert() 1608 __u32 hash = le32_to_cpu(header->h_hash); in ext4_xattr_cache_find() local 1614 ea_idebug(inode, "looking for cached blocks [%x]", (int)hash); in ext4_xattr_cache_find() 1617 hash); in ext4_xattr_cache_find() 1641 ce = mb_cache_entry_find_next(ce, inode->i_sb->s_bdev, hash); in ext4_xattr_cache_find() 1657 __u32 hash = 0; in ext4_xattr_hash_entry() local 1662 hash = (hash << NAME_HASH_SHIFT) ^ in ext4_xattr_hash_entry() 1663 (hash >> (8*sizeof(hash) - NAME_HASH_SHIFT)) ^ in ext4_xattr_hash_entry() [all …]
|
/linux-4.1.27/fs/ext3/ |
D | hash.c | 38 __u32 hash, hash0 = 0x12a3fe2d, hash1 = 0x37abe8f9; in dx_hack_hash_unsigned() local 42 hash = hash1 + (hash0 ^ (((int) *ucp++) * 7152373)); in dx_hack_hash_unsigned() 44 if (hash & 0x80000000) in dx_hack_hash_unsigned() 45 hash -= 0x7fffffff; in dx_hack_hash_unsigned() 47 hash0 = hash; in dx_hack_hash_unsigned() 54 __u32 hash, hash0 = 0x12a3fe2d, hash1 = 0x37abe8f9; in dx_hack_hash_signed() local 58 hash = hash1 + (hash0 ^ (((int) *scp++) * 7152373)); in dx_hack_hash_signed() 60 if (hash & 0x80000000) in dx_hack_hash_signed() 61 hash -= 0x7fffffff; in dx_hack_hash_signed() 63 hash0 = hash; in dx_hack_hash_signed() [all …]
|
D | dir.c | 296 __u32 hash; member 346 int ext3_htree_store_dirent(struct file *dir_file, __u32 hash, in ext3_htree_store_dirent() argument 363 new_fn->hash = hash; in ext3_htree_store_dirent() 379 if ((new_fn->hash == fname->hash) && in ext3_htree_store_dirent() 386 if (new_fn->hash < fname->hash) in ext3_htree_store_dirent() 388 else if (new_fn->hash > fname->hash) in ext3_htree_store_dirent() 419 ctx->pos = hash2pos(file, fname->hash, fname->minor_hash); in call_filldir() 494 info->curr_hash = fname->hash; in ext3_dx_readdir() 503 info->curr_hash = fname->hash; in ext3_dx_readdir()
|
D | xattr.c | 1135 __u32 hash = le32_to_cpu(BHDR(bh)->h_hash); in ext3_xattr_cache_insert() local 1144 error = mb_cache_entry_insert(ce, bh->b_bdev, bh->b_blocknr, hash); in ext3_xattr_cache_insert() 1152 ea_bdebug(bh, "inserting [%x]", (int)hash); in ext3_xattr_cache_insert() 1209 __u32 hash = le32_to_cpu(header->h_hash); in ext3_xattr_cache_find() local 1214 ea_idebug(inode, "looking for cached blocks [%x]", (int)hash); in ext3_xattr_cache_find() 1217 hash); in ext3_xattr_cache_find() 1242 ce = mb_cache_entry_find_next(ce, inode->i_sb->s_bdev, hash); in ext3_xattr_cache_find() 1258 __u32 hash = 0; in ext3_xattr_hash_entry() local 1263 hash = (hash << NAME_HASH_SHIFT) ^ in ext3_xattr_hash_entry() 1264 (hash >> (8*sizeof(hash) - NAME_HASH_SHIFT)) ^ in ext3_xattr_hash_entry() [all …]
|
D | namei.c | 86 __le32 hash; member 130 u32 hash; member 157 static void dx_insert_block (struct dx_frame *frame, u32 hash, u32 block); 158 static int ext3_htree_next_block(struct inode *dir, __u32 hash, 195 return le32_to_cpu(entry->hash); in dx_get_hash() 200 entry->hash = cpu_to_le32(value); in dx_set_hash() 276 printk(":%x.%u ", h.hash, in dx_show_leaf() 299 u32 block = dx_get_block(entries), hash = i? dx_get_hash(entries): 0; in dx_show_entries() local 300 u32 range = i < count - 1? (dx_get_hash(entries + 1) - hash): ~hash; in dx_show_entries() 302 printk("%s%3u:%03u hash %8x/%8x ",levels?"":" ", i, block, hash, range); in dx_show_entries() [all …]
|
/linux-4.1.27/lib/ |
D | oid_registry.c | 34 unsigned i, j, k, hash; in look_up_OID() local 38 hash = datasize - 1; in look_up_OID() 41 hash += octets[i] * 33; in look_up_OID() 42 hash = (hash >> 24) ^ (hash >> 16) ^ (hash >> 8) ^ hash; in look_up_OID() 43 hash &= 0xff; in look_up_OID() 54 xhash = oid_search_table[j].hash; in look_up_OID() 55 if (xhash > hash) { in look_up_OID() 59 if (xhash < hash) { in look_up_OID()
|
D | build_OID_registry | 124 my $hash = $#octets; 126 $hash += $_ * 33; 129 $hash = ($hash >> 24) ^ ($hash >> 16) ^ ($hash >> 8) ^ ($hash); 131 push @hash_values, $hash & 0xff;
|
D | md5.c | 13 void md5_transform(__u32 *hash, __u32 const *in) in md5_transform() argument 17 a = hash[0]; in md5_transform() 18 b = hash[1]; in md5_transform() 19 c = hash[2]; in md5_transform() 20 d = hash[3]; in md5_transform() 90 hash[0] += a; in md5_transform() 91 hash[1] += b; in md5_transform() 92 hash[2] += c; in md5_transform() 93 hash[3] += d; in md5_transform()
|
D | rhashtable.c | 51 int lockdep_rht_bucket_is_held(const struct bucket_table *tbl, u32 hash) in lockdep_rht_bucket_is_held() argument 53 spinlock_t *lock = rht_bucket_lock(tbl, hash); in lockdep_rht_bucket_is_held() 383 unsigned int hash) in rhashtable_check_elasticity() argument 388 rht_for_each(head, tbl, hash) in rhashtable_check_elasticity() 440 unsigned int hash; in rhashtable_insert_slow() local 444 hash = head_hashfn(ht, tbl, obj); in rhashtable_insert_slow() 445 spin_lock_nested(rht_bucket_lock(tbl, hash), SINGLE_DEPTH_NESTING); in rhashtable_insert_slow() 456 if (rhashtable_check_elasticity(ht, tbl, hash) || in rhashtable_insert_slow() 462 head = rht_dereference_bucket(tbl->buckets[hash], tbl, hash); in rhashtable_insert_slow() 466 rcu_assign_pointer(tbl->buckets[hash], obj); in rhashtable_insert_slow() [all …]
|
D | digsig.c | 195 unsigned char hash[SHA1_DIGEST_SIZE]; in digsig_verify() local 235 crypto_shash_final(desc, hash); in digsig_verify() 241 hash, sizeof(hash)); in digsig_verify()
|
/linux-4.1.27/arch/mips/cavium-octeon/crypto/ |
D | octeon-md5.c | 40 u64 *hash = (u64 *)ctx->hash; in octeon_md5_store_hash() local 42 write_octeon_64bit_hash_dword(hash[0], 0); in octeon_md5_store_hash() 43 write_octeon_64bit_hash_dword(hash[1], 1); in octeon_md5_store_hash() 48 u64 *hash = (u64 *)ctx->hash; in octeon_md5_read_hash() local 50 hash[0] = read_octeon_64bit_hash_dword(0); in octeon_md5_read_hash() 51 hash[1] = read_octeon_64bit_hash_dword(1); in octeon_md5_read_hash() 72 mctx->hash[0] = cpu_to_le32(0x67452301); in octeon_md5_init() 73 mctx->hash[1] = cpu_to_le32(0xefcdab89); in octeon_md5_init() 74 mctx->hash[2] = cpu_to_le32(0x98badcfe); in octeon_md5_init() 75 mctx->hash[3] = cpu_to_le32(0x10325476); in octeon_md5_init() [all …]
|
D | octeon-sha256.c | 38 u64 *hash = (u64 *)sctx->state; in octeon_sha256_store_hash() local 40 write_octeon_64bit_hash_dword(hash[0], 0); in octeon_sha256_store_hash() 41 write_octeon_64bit_hash_dword(hash[1], 1); in octeon_sha256_store_hash() 42 write_octeon_64bit_hash_dword(hash[2], 2); in octeon_sha256_store_hash() 43 write_octeon_64bit_hash_dword(hash[3], 3); in octeon_sha256_store_hash() 48 u64 *hash = (u64 *)sctx->state; in octeon_sha256_read_hash() local 50 hash[0] = read_octeon_64bit_hash_dword(0); in octeon_sha256_read_hash() 51 hash[1] = read_octeon_64bit_hash_dword(1); in octeon_sha256_read_hash() 52 hash[2] = read_octeon_64bit_hash_dword(2); in octeon_sha256_read_hash() 53 hash[3] = read_octeon_64bit_hash_dword(3); in octeon_sha256_read_hash() [all …]
|
D | octeon-sha1.c | 37 u64 *hash = (u64 *)sctx->state; in octeon_sha1_store_hash() local 43 write_octeon_64bit_hash_dword(hash[0], 0); in octeon_sha1_store_hash() 44 write_octeon_64bit_hash_dword(hash[1], 1); in octeon_sha1_store_hash() 51 u64 *hash = (u64 *)sctx->state; in octeon_sha1_read_hash() local 57 hash[0] = read_octeon_64bit_hash_dword(0); in octeon_sha1_read_hash() 58 hash[1] = read_octeon_64bit_hash_dword(1); in octeon_sha1_read_hash()
|
D | octeon-sha512.c | 175 static int octeon_sha512_final(struct shash_desc *desc, u8 *hash) in octeon_sha512_final() argument 180 __be64 *dst = (__be64 *)hash; in octeon_sha512_final() 216 static int octeon_sha384_final(struct shash_desc *desc, u8 *hash) in octeon_sha384_final() argument 222 memcpy(hash, D, 48); in octeon_sha384_final()
|
/linux-4.1.27/kernel/bpf/ |
D | hashtab.c | 30 u32 hash; member 103 static inline struct hlist_head *select_bucket(struct bpf_htab *htab, u32 hash) in select_bucket() argument 105 return &htab->buckets[hash & (htab->n_buckets - 1)]; in select_bucket() 108 static struct htab_elem *lookup_elem_raw(struct hlist_head *head, u32 hash, in lookup_elem_raw() argument 114 if (l->hash == hash && !memcmp(&l->key, key, key_size)) in lookup_elem_raw() 126 u32 hash, key_size; in htab_map_lookup_elem() local 133 hash = htab_map_hash(key, key_size); in htab_map_lookup_elem() 135 head = select_bucket(htab, hash); in htab_map_lookup_elem() 137 l = lookup_elem_raw(head, hash, key, key_size); in htab_map_lookup_elem() 151 u32 hash, key_size; in htab_map_get_next_key() local [all …]
|
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/ |
D | flowring.c | 70 struct brcmf_flowring_hash *hash; in brcmf_flowring_lookup() local 92 hash = flow->hash; in brcmf_flowring_lookup() 94 if ((sta || (memcmp(hash[hash_idx].mac, mac, ETH_ALEN) == 0)) && in brcmf_flowring_lookup() 95 (hash[hash_idx].fifo == fifo) && in brcmf_flowring_lookup() 96 (hash[hash_idx].ifidx == ifidx)) { in brcmf_flowring_lookup() 103 return hash[hash_idx].flowid; in brcmf_flowring_lookup() 113 struct brcmf_flowring_hash *hash; in brcmf_flowring_create() local 135 hash = flow->hash; in brcmf_flowring_create() 137 if ((hash[hash_idx].ifidx == BRCMF_FLOWRING_INVALID_IFIDX) && in brcmf_flowring_create() 138 (is_zero_ether_addr(hash[hash_idx].mac))) { in brcmf_flowring_create() [all …]
|
/linux-4.1.27/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_cmdbuf_res.c | 50 struct drm_hash_item hash; member 89 struct drm_hash_item *hash; in vmw_cmdbuf_res_lookup() local 93 ret = drm_ht_find_item(&man->resources, key, &hash); in vmw_cmdbuf_res_lookup() 98 (drm_hash_entry(hash, struct vmw_cmdbuf_res, hash)->res); in vmw_cmdbuf_res_lookup() 114 WARN_ON(drm_ht_remove_item(&man->resources, &entry->hash)); in vmw_cmdbuf_res_free() 175 &entry->hash); in vmw_cmdbuf_res_revert() 213 cres->hash.key = user_key | (res_type << 24); in vmw_cmdbuf_res_add() 214 ret = drm_ht_insert_item(&man->resources, &cres->hash); in vmw_cmdbuf_res_add() 246 struct drm_hash_item *hash; in vmw_cmdbuf_res_remove() local 250 &hash); in vmw_cmdbuf_res_remove() [all …]
|
/linux-4.1.27/Documentation/devicetree/bindings/crypto/ |
D | img-hash.txt | 1 Imagination Technologies hardware hash accelerator 3 The hash accelerator provides hardware hashing acceleration for 8 - compatible : "img,hash-accelerator" 14 - clock-names : "sys" Used to clock the hash block registers 15 "hash" Used to clock data through the accelerator 19 hash: hash@18149600 { 20 compatible = "img,hash-accelerator"; 26 clock-names = "sys", "hash";
|
/linux-4.1.27/scripts/basic/ |
D | fixdep.c | 144 unsigned int hash; member 154 unsigned int i, hash = 2166136261U; in strhash() local 157 hash = (hash ^ str[i]) * 0x01000193; in strhash() 158 return hash; in strhash() 164 static int is_defined_config(const char *name, int len, unsigned int hash) in is_defined_config() argument 168 for (aux = hashtab[hash % HASHSZ]; aux; aux = aux->next) { in is_defined_config() 169 if (aux->hash == hash && aux->len == len && in is_defined_config() 179 static void define_config(const char *name, int len, unsigned int hash) in define_config() argument 189 aux->hash = hash; in define_config() 190 aux->next = hashtab[hash % HASHSZ]; in define_config() [all …]
|
/linux-4.1.27/arch/powerpc/crypto/ |
D | md5-glue.c | 40 sctx->hash[0] = 0x67452301; in ppc_md5_init() 41 sctx->hash[1] = 0xefcdab89; in ppc_md5_init() 42 sctx->hash[2] = 0x98badcfe; in ppc_md5_init() 43 sctx->hash[3] = 0x10325476; in ppc_md5_init() 66 ppc_md5_transform(sctx->hash, (const u8 *)sctx->block, 1); in ppc_md5_update() 72 ppc_md5_transform(sctx->hash, src, len >> 6); in ppc_md5_update() 95 ppc_md5_transform(sctx->hash, src, 1); in ppc_md5_final() 102 ppc_md5_transform(sctx->hash, src, 1); in ppc_md5_final() 104 dst[0] = cpu_to_le32(sctx->hash[0]); in ppc_md5_final() 105 dst[1] = cpu_to_le32(sctx->hash[1]); in ppc_md5_final() [all …]
|
/linux-4.1.27/fs/ubifs/ |
D | key.h | 48 static inline uint32_t key_mask_hash(uint32_t hash) in key_mask_hash() argument 50 hash &= UBIFS_S_KEY_HASH_MASK; in key_mask_hash() 51 if (unlikely(hash <= 2)) in key_mask_hash() 52 hash += 3; in key_mask_hash() 53 return hash; in key_mask_hash() 156 uint32_t hash = c->key_hash(nm->name, nm->len); in dent_key_init() local 158 ubifs_assert(!(hash & ~UBIFS_S_KEY_HASH_MASK)); in dent_key_init() 160 key->u32[1] = hash | (UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS); in dent_key_init() 173 uint32_t hash) in dent_key_init_hash() argument 175 ubifs_assert(!(hash & ~UBIFS_S_KEY_HASH_MASK)); in dent_key_init_hash() [all …]
|
/linux-4.1.27/security/integrity/ima/ |
D | ima_crypto.c | 228 struct ima_digest_data *hash, in ima_calc_file_hash_atfm() argument 239 hash->length = crypto_ahash_digestsize(tfm); in ima_calc_file_hash_atfm() 329 ahash_request_set_crypt(req, NULL, hash->digest, 0); in ima_calc_file_hash_atfm() 337 static int ima_calc_file_ahash(struct file *file, struct ima_digest_data *hash) in ima_calc_file_ahash() argument 342 tfm = ima_alloc_atfm(hash->algo); in ima_calc_file_ahash() 346 rc = ima_calc_file_hash_atfm(file, hash, tfm); in ima_calc_file_ahash() 354 struct ima_digest_data *hash, in ima_calc_file_hash_tfm() argument 365 hash->length = crypto_shash_digestsize(tfm); in ima_calc_file_hash_tfm() 406 rc = crypto_shash_final(shash, hash->digest); in ima_calc_file_hash_tfm() 410 static int ima_calc_file_shash(struct file *file, struct ima_digest_data *hash) in ima_calc_file_shash() argument [all …]
|
D | ima_api.c | 102 } hash; in ima_store_template() local 108 hash.hdr.algo = HASH_ALGO_SHA1; in ima_store_template() 111 num_fields, &hash.hdr); in ima_store_template() 118 memcpy(entry->digest, hash.hdr.digest, hash.hdr.length); in ima_store_template() 203 } hash; in ima_collect_measurement() local 218 hash.hdr.algo = ima_hash_algo; in ima_collect_measurement() 221 ima_get_hash_algo(*xattr_value, *xattr_len, &hash.hdr); in ima_collect_measurement() 223 result = ima_calc_file_hash(file, &hash.hdr); in ima_collect_measurement() 225 int length = sizeof(hash.hdr) + hash.hdr.length; in ima_collect_measurement() 230 memcpy(iint->ima_hash, &hash, length); in ima_collect_measurement() [all …]
|
D | ima_init.c | 63 } hash; in ima_add_boot_aggregate() local 66 memset(&hash, 0, sizeof(hash)); in ima_add_boot_aggregate() 67 iint->ima_hash = &hash.hdr; in ima_add_boot_aggregate() 72 result = ima_calc_boot_aggregate(&hash.hdr); in ima_add_boot_aggregate()
|
D | ima_template_lib.c | 207 } hash; in ima_eventdigest_init() local 213 memset(&hash, 0, sizeof(hash)); in ima_eventdigest_init() 228 hash.hdr.algo = ima_template_hash_algo_allowed(ima_hash_algo) ? in ima_eventdigest_init() 230 result = ima_calc_file_hash(file, &hash.hdr); in ima_eventdigest_init() 237 cur_digest = hash.hdr.digest; in ima_eventdigest_init() 238 cur_digestsize = hash.hdr.length; in ima_eventdigest_init()
|
D | ima.h | 100 int ima_calc_file_hash(struct file *file, struct ima_digest_data *hash); 103 struct ima_digest_data *hash); 104 int __init ima_calc_boot_aggregate(struct ima_digest_data *hash); 180 struct ima_digest_data *hash); 214 struct ima_digest_data *hash) in ima_get_hash_algo() argument
|
D | Kconfig | 16 Measurement Architecture(IMA) maintains a list of hash 55 hash, defined as 20 bytes, and a null terminated pathname, 57 template permits both larger hash digests and longer 76 prompt "Default integrity hash algorithm" 80 Select the default hash algorithm used for the measurement 82 hash algorithm can be overwritten using the kernel command 117 attribute containing the file hash measurement. To protect
|
D | ima_appraise.c | 134 struct ima_digest_data *hash) in ima_get_hash_algo() argument 146 hash->algo = sig->hash_algo; in ima_get_hash_algo() 149 hash->algo = xattr_value->digest[0]; in ima_get_hash_algo() 156 hash->algo = HASH_ALGO_MD5; in ima_get_hash_algo() 158 hash->algo = HASH_ALGO_SHA1; in ima_get_hash_algo() 160 hash->algo = HASH_ALGO_MD5; in ima_get_hash_algo()
|
/linux-4.1.27/net/netfilter/ |
D | nf_conntrack_core.c | 143 static u32 __hash_bucket(u32 hash, unsigned int size) in __hash_bucket() argument 145 return reciprocal_scale(hash, size); in __hash_bucket() 148 static u32 hash_bucket(u32 hash, const struct net *net) in hash_bucket() argument 150 return __hash_bucket(hash, net->ct.htable_size); in hash_bucket() 331 unsigned int hash, reply_hash; in nf_ct_delete_from_lists() local 340 hash = hash_conntrack(net, zone, in nf_ct_delete_from_lists() 344 } while (nf_conntrack_double_lock(net, hash, reply_hash, sequence)); in nf_ct_delete_from_lists() 347 nf_conntrack_double_unlock(hash, reply_hash); in nf_ct_delete_from_lists() 410 const struct nf_conntrack_tuple *tuple, u32 hash) in ____nf_conntrack_find() argument 414 unsigned int bucket = hash_bucket(hash, net); in ____nf_conntrack_find() [all …]
|
D | xt_cluster.c | 45 u_int32_t hash = 0; in xt_cluster_hash() local 49 hash = xt_cluster_hash_ipv4(nf_ct_orig_ipv4_src(ct), info); in xt_cluster_hash() 52 hash = xt_cluster_hash_ipv6(nf_ct_orig_ipv6_src(ct), info); in xt_cluster_hash() 59 return reciprocal_scale(hash, info->total_nodes); in xt_cluster_hash() 96 unsigned long hash; in xt_cluster_mt() local 128 hash = xt_cluster_hash(ct->master, info); in xt_cluster_mt() 130 hash = xt_cluster_hash(ct, info); in xt_cluster_mt() 132 return !!((1 << hash) & info->node_mask) ^ in xt_cluster_mt()
|
D | xt_connlimit.c | 297 u32 hash; in count_them() local 300 hash = connlimit_iphash6(addr, mask); in count_them() 301 root = &data->climit_root6[hash]; in count_them() 303 hash = connlimit_iphash(addr->ip & mask->ip); in count_them() 304 root = &data->climit_root4[hash]; in count_them() 307 spin_lock_bh(&xt_connlimit_locks[hash % CONNLIMIT_LOCK_SLOTS]); in count_them() 311 spin_unlock_bh(&xt_connlimit_locks[hash % CONNLIMIT_LOCK_SLOTS]); in count_them()
|
D | xt_hashlimit.c | 114 struct hlist_head hash[0]; /* hashtable itself */ member 129 u_int32_t hash = jhash2((const u32 *)dst, in hash_dst() local 138 return reciprocal_scale(hash, ht->cfg.size); in hash_dst() 146 u_int32_t hash = hash_dst(ht, dst); in dsthash_find() local 148 if (!hlist_empty(&ht->hash[hash])) { in dsthash_find() 149 hlist_for_each_entry_rcu(ent, &ht->hash[hash], node) in dsthash_find() 195 hlist_add_head_rcu(&ent->node, &ht->hash[hash_dst(ht, dst)]); in dsthash_alloc_init() 252 INIT_HLIST_HEAD(&hinfo->hash[i]); in htable_create() 308 hlist_for_each_entry_safe(dh, n, &ht->hash[i], node) { in htable_selective_cleanup() 834 if (!hlist_empty(&htable->hash[*bucket])) { in dl_seq_show() [all …]
|
D | xt_HMARK.c | 119 u32 hash; in hmark_hash() local 126 hash = jhash_3words(src, dst, t->uports.v32, info->hashrnd); in hmark_hash() 127 hash = hash ^ (t->proto & info->proto_mask); in hmark_hash() 129 return reciprocal_scale(hash, info->hmodulus) + info->hoffset; in hmark_hash()
|
/linux-4.1.27/drivers/gpu/drm/ttm/ |
D | ttm_object.c | 122 struct drm_hash_item hash; member 176 &base->hash, in ttm_base_object_init() 191 (void)drm_ht_remove_item_rcu(&tdev->object_hash, &base->hash); in ttm_base_object_init() 205 (void)drm_ht_remove_item_rcu(&tdev->object_hash, &base->hash); in ttm_release_base() 233 struct drm_hash_item *hash; in ttm_base_object_lookup() local 238 ret = drm_ht_find_item_rcu(ht, key, &hash); in ttm_base_object_lookup() 241 base = drm_hash_entry(hash, struct ttm_ref_object, hash)->obj; in ttm_base_object_lookup() 255 struct drm_hash_item *hash; in ttm_base_object_lookup_for_ref() local 260 ret = drm_ht_find_item_rcu(ht, key, &hash); in ttm_base_object_lookup_for_ref() 263 base = drm_hash_entry(hash, struct ttm_base_object, hash); in ttm_base_object_lookup_for_ref() [all …]
|
/linux-4.1.27/crypto/ |
D | md4.c | 37 u32 hash[MD4_HASH_WORDS]; member 84 static void md4_transform(u32 *hash, u32 const *in) in md4_transform() argument 88 a = hash[0]; in md4_transform() 89 b = hash[1]; in md4_transform() 90 c = hash[2]; in md4_transform() 91 d = hash[3]; in md4_transform() 144 hash[0] += a; in md4_transform() 145 hash[1] += b; in md4_transform() 146 hash[2] += c; in md4_transform() 147 hash[3] += d; in md4_transform() [all …]
|
D | md5.c | 47 md5_transform(ctx->hash, ctx->block); in md5_transform_helper() 54 mctx->hash[0] = 0x67452301; in md5_init() 55 mctx->hash[1] = 0xefcdab89; in md5_init() 56 mctx->hash[2] = 0x98badcfe; in md5_init() 57 mctx->hash[3] = 0x10325476; in md5_init() 115 md5_transform(mctx->hash, mctx->block); in md5_final() 116 cpu_to_le32_array(mctx->hash, sizeof(mctx->hash) / sizeof(u32)); in md5_final() 117 memcpy(out, mctx->hash, sizeof(mctx->hash)); in md5_final()
|
D | hmac.c | 29 struct crypto_shash *hash; member 54 struct crypto_shash *hash = ctx->hash; in hmac_setkey() local 55 SHASH_DESC_ON_STACK(shash, hash); in hmac_setkey() 58 shash->tfm = hash; in hmac_setkey() 103 desc->tfm = ctx->hash; in hmac_import() 159 struct crypto_shash *hash; in hmac_init_tfm() local 164 hash = crypto_spawn_shash(spawn); in hmac_init_tfm() 165 if (IS_ERR(hash)) in hmac_init_tfm() 166 return PTR_ERR(hash); in hmac_init_tfm() 169 crypto_shash_descsize(hash); in hmac_init_tfm() [all …]
|
D | wp512.c | 43 u64 hash[WP512_DIGEST_SIZE/8]; member 793 state[0] = block[0] ^ (K[0] = wctx->hash[0]); in wp512_process_buffer() 794 state[1] = block[1] ^ (K[1] = wctx->hash[1]); in wp512_process_buffer() 795 state[2] = block[2] ^ (K[2] = wctx->hash[2]); in wp512_process_buffer() 796 state[3] = block[3] ^ (K[3] = wctx->hash[3]); in wp512_process_buffer() 797 state[4] = block[4] ^ (K[4] = wctx->hash[4]); in wp512_process_buffer() 798 state[5] = block[5] ^ (K[5] = wctx->hash[5]); in wp512_process_buffer() 799 state[6] = block[6] ^ (K[6] = wctx->hash[6]); in wp512_process_buffer() 800 state[7] = block[7] ^ (K[7] = wctx->hash[7]); in wp512_process_buffer() 978 wctx->hash[0] ^= state[0] ^ block[0]; in wp512_process_buffer() [all …]
|
D | tgr192.c | 39 u8 hash[64]; member 520 tgr192_transform(tctx, tctx->hash); in tgr192_update() 529 tctx->hash[tctx->count++] = *inbuf++; in tgr192_update() 546 tctx->hash[tctx->count++] = *inbuf++; in tgr192_update() 582 tctx->hash[tctx->count++] = 0x01; /* pad */ in tgr192_final() 584 tctx->hash[tctx->count++] = 0; /* pad */ in tgr192_final() 587 tctx->hash[tctx->count++] = 0x01; /* pad character */ in tgr192_final() 589 tctx->hash[tctx->count++] = 0; in tgr192_final() 592 memset(tctx->hash, 0, 56); /* fill next block with zeroes */ in tgr192_final() 595 le32p = (__le32 *)&tctx->hash[56]; in tgr192_final() [all …]
|
D | algif_hash.c | 38 struct crypto_ahash *hash; member 348 struct crypto_ahash *hash; in hash_bind() local 354 hash = crypto_alloc_ahash(name, type, mask); in hash_bind() 355 if (IS_ERR(hash)) { in hash_bind() 357 return ERR_CAST(hash); in hash_bind() 360 tfm->hash = hash; in hash_bind() 369 crypto_free_ahash(tfm->hash); in hash_release() 378 err = crypto_ahash_setkey(tfm->hash, key, keylen); in hash_setkey() 400 struct crypto_ahash *hash = tfm->hash; in hash_accept_parent_nokey() local 401 unsigned len = sizeof(*ctx) + crypto_ahash_reqsize(hash); in hash_accept_parent_nokey() [all …]
|
D | ahash.c | 37 static inline struct ahash_alg *crypto_ahash_alg(struct crypto_ahash *hash) in crypto_ahash_alg() argument 39 return container_of(crypto_hash_alg_common(hash), struct ahash_alg, in crypto_ahash_alg() 451 struct crypto_ahash *hash = __crypto_ahash_cast(tfm); in crypto_ahash_init_tfm() local 452 struct ahash_alg *alg = crypto_ahash_alg(hash); in crypto_ahash_init_tfm() 454 hash->setkey = ahash_nosetkey; in crypto_ahash_init_tfm() 455 hash->has_setkey = false; in crypto_ahash_init_tfm() 456 hash->export = ahash_no_export; in crypto_ahash_init_tfm() 457 hash->import = ahash_no_import; in crypto_ahash_init_tfm() 462 hash->init = alg->init; in crypto_ahash_init_tfm() 463 hash->update = alg->update; in crypto_ahash_init_tfm() [all …]
|
D | authenc.c | 266 u8 *hash = areq_ctx->tail; in crypto_authenc_ahash_fb() local 269 hash = (u8 *)ALIGN((unsigned long)hash + crypto_ahash_alignmask(auth), in crypto_authenc_ahash_fb() 278 ahash_request_set_crypt(ahreq, req->assoc, hash, req->assoclen); in crypto_authenc_ahash_fb() 286 ahash_request_set_crypt(ahreq, areq_ctx->sg, hash, in crypto_authenc_ahash_fb() 295 return hash; in crypto_authenc_ahash_fb() 305 u8 *hash = areq_ctx->tail; in crypto_authenc_ahash() local 308 hash = (u8 *)ALIGN((unsigned long)hash + crypto_ahash_alignmask(auth), in crypto_authenc_ahash() 312 ahash_request_set_crypt(ahreq, areq_ctx->sg, hash, in crypto_authenc_ahash() 321 return hash; in crypto_authenc_ahash() 338 u8 *hash; in crypto_authenc_genicv() local [all …]
|
D | crc32.c | 63 static int crc32_setkey(struct crypto_shash *hash, const u8 *key, in crc32_setkey() argument 66 u32 *mctx = crypto_shash_ctx(hash); in crc32_setkey() 69 crypto_shash_set_flags(hash, CRYPTO_TFM_RES_BAD_KEY_LEN); in crc32_setkey()
|
D | testmgr.c | 128 struct hash_test_suite hash; member 1646 err = test_hash(tfm, desc->suite.hash.vecs, in alg_test_hash() 1647 desc->suite.hash.count, true); in alg_test_hash() 1649 err = test_hash(tfm, desc->suite.hash.vecs, in alg_test_hash() 1650 desc->suite.hash.count, false); in alg_test_hash() 2303 .hash = { 2312 .hash = { 2325 .hash = { 2335 .hash = { 3006 .hash = { [all …]
|
D | authencesn.c | 346 u8 *hash = areq_ctx->tail; in crypto_authenc_esn_ahash() local 349 hash = (u8 *)ALIGN((unsigned long)hash + crypto_ahash_alignmask(auth), in crypto_authenc_esn_ahash() 358 ahash_request_set_crypt(ahreq, areq_ctx->hsg, hash, areq_ctx->headlen); in crypto_authenc_esn_ahash() 366 ahash_request_set_crypt(ahreq, areq_ctx->sg, hash, areq_ctx->cryptlen); in crypto_authenc_esn_ahash() 374 ahash_request_set_crypt(ahreq, areq_ctx->tsg, hash, in crypto_authenc_esn_ahash() 383 return hash; in crypto_authenc_esn_ahash() 402 u8 *hash; in crypto_authenc_esn_genicv() local 442 hash = crypto_authenc_esn_ahash(req, flags); in crypto_authenc_esn_genicv() 443 if (IS_ERR(hash)) in crypto_authenc_esn_genicv() 444 return PTR_ERR(hash); in crypto_authenc_esn_genicv() [all …]
|
/linux-4.1.27/arch/x86/boot/compressed/ |
D | aslr.c | 37 static unsigned long rotate_xor(unsigned long hash, const void *area, in rotate_xor() argument 43 for (i = 0; i < size / sizeof(hash); i++) { in rotate_xor() 45 hash = (hash << ((sizeof(hash) * 8) - 7)) | (hash >> 7); in rotate_xor() 46 hash ^= ptr[i]; in rotate_xor() 49 return hash; in rotate_xor() 55 unsigned long hash = 0; in get_random_boot() local 57 hash = rotate_xor(hash, build_str, sizeof(build_str)); in get_random_boot() 58 hash = rotate_xor(hash, real_mode, sizeof(*real_mode)); in get_random_boot() 60 return hash; in get_random_boot()
|
/linux-4.1.27/arch/powerpc/mm/ |
D | hugetlbpage-hash64.c | 17 extern long hpte_insert_repeating(unsigned long hash, unsigned long vpn, 75 unsigned long hash, slot; in __hash_page_huge() local 77 hash = hpt_hash(vpn, shift, ssize); in __hash_page_huge() 79 hash = ~hash; in __hash_page_huge() 80 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in __hash_page_huge() 89 unsigned long hash = hpt_hash(vpn, shift, ssize); in __hash_page_huge() local 107 slot = hpte_insert_repeating(hash, vpn, pa, rflags, 0, in __hash_page_huge()
|
D | hugepage-hash64.c | 30 unsigned long vpn, hash, shift, slot; in __hash_page_thp() local 103 hash = hpt_hash(vpn, shift, ssize); in __hash_page_thp() 106 hash = ~hash; in __hash_page_thp() 107 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in __hash_page_thp() 129 hash = hpt_hash(vpn, shift, ssize); in __hash_page_thp() 142 hpte_group = ((hash & htab_hash_mask) * HPTES_PER_GROUP) & ~0x7UL; in __hash_page_thp() 151 hpte_group = ((~hash & htab_hash_mask) * in __hash_page_thp() 158 hpte_group = ((hash & htab_hash_mask) * in __hash_page_thp()
|
D | hash_utils_64.c | 199 unsigned long hash, hpteg; in htab_bolt_mapping() local 231 hash = hpt_hash(vpn, shift, ssize); in htab_bolt_mapping() 232 hpteg = ((hash & htab_hash_mask) * HPTES_PER_GROUP); in htab_bolt_mapping() 1292 unsigned long hash, index, shift, hidx, slot; in flush_hash_page() local 1297 hash = hpt_hash(vpn, shift, ssize); in flush_hash_page() 1300 hash = ~hash; in flush_hash_page() 1301 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in flush_hash_page() 1336 unsigned long hidx, shift, vpn, hash, slot; in flush_hash_hugepage() local 1372 hash = hpt_hash(vpn, shift, ssize); in flush_hash_hugepage() 1374 hash = ~hash; in flush_hash_hugepage() [all …]
|
D | hash_native_64.c | 340 unsigned long hash; in native_hpte_find() local 345 hash = hpt_hash(vpn, mmu_psize_defs[psize].shift, ssize); in native_hpte_find() 349 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in native_hpte_find() 443 unsigned long hidx, vpn = 0, hash, slot; in native_hugepage_invalidate() local 458 hash = hpt_hash(vpn, shift, ssize); in native_hugepage_invalidate() 460 hash = ~hash; in native_hugepage_invalidate() 462 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in native_hugepage_invalidate() 639 unsigned long hash, index, hidx, shift, slot; in native_flush_hash_range() local 657 hash = hpt_hash(vpn, shift, ssize); in native_flush_hash_range() 660 hash = ~hash; in native_flush_hash_range() [all …]
|
/linux-4.1.27/include/linux/sunrpc/ |
D | svcauth.h | 70 struct hlist_node hash; member 163 unsigned long hash = 0; in hash_str() local 174 hash = hash_long(hash^l, BITS_PER_LONG); in hash_str() 176 return hash >> (BITS_PER_LONG - bits); in hash_str() 181 unsigned long hash = 0; in hash_mem() local 193 hash = hash_long(hash^l, BITS_PER_LONG); in hash_mem() 195 return hash >> (BITS_PER_LONG - bits); in hash_mem()
|
/linux-4.1.27/net/sched/ |
D | cls_tcindex.c | 46 u32 hash; /* hash table size; 0 if undefined */ member 69 fp = &p->h[key % p->hash]; in tcindex_lookup() 129 p->hash = DEFAULT_HASH_SIZE; in tcindex_init() 151 for (i = 0; i < p->hash; i++) { in tcindex_delete() 190 return p->hash > (p->mask >> p->shift); in valid_perfect_hash() 244 cp->hash = p->hash; in tcindex_set_parms() 253 sizeof(*r) * cp->hash, GFP_KERNEL); in tcindex_set_parms() 256 for (i = 0; i < cp->hash; i++) in tcindex_set_parms() 269 cp->hash = nla_get_u32(tb[TCA_TCINDEX_HASH]); in tcindex_set_parms() 284 cp->hash > cp->alloc_hash) in tcindex_set_parms() [all …]
|
D | sch_sfq.c | 110 unsigned short hash; /* hash value (index in ht[]) */ member 177 unsigned int hash; in sfq_hash() local 179 hash = jhash_3words((__force u32)keys->dst, in sfq_hash() 182 return hash & (q->divisor - 1); in sfq_hash() 344 q->ht[slot->hash] = SFQ_EMPTY_SLOT; in sfq_drop() 372 unsigned int hash; in sfq_enqueue() local 379 hash = sfq_classify(skb, sch, &ret); in sfq_enqueue() 380 if (hash == 0) { in sfq_enqueue() 386 hash--; in sfq_enqueue() 388 x = q->ht[hash]; in sfq_enqueue() [all …]
|
D | sch_hhf.c | 183 unsigned int hash; in skb_hash() local 189 hash = jhash_3words((__force u32)keys.dst, in skb_hash() 192 return hash; in skb_hash() 196 static struct hh_flow_state *seek_list(const u32 hash, in seek_list() argument 218 } else if (flow->hash_id == hash) { in seek_list() 266 u32 tmp_hash, hash; in hhf_classify() local 283 hash = skb_hash(q, skb); in hhf_classify() 286 flow_pos = hash & HHF_BIT_MASK; in hhf_classify() 287 flow = seek_list(hash, &q->hh_flows[flow_pos], q); in hhf_classify() 294 tmp_hash = hash; in hhf_classify() [all …]
|
D | sch_sfb.c | 132 u32 hash = sfbhash & SFB_BUCKET_MASK; in increment_one_qlen() local 135 if (b[hash].qlen < 0xFFFF) in increment_one_qlen() 136 b[hash].qlen++; in increment_one_qlen() 161 u32 hash = sfbhash & SFB_BUCKET_MASK; in decrement_one_qlen() local 164 if (b[hash].qlen > 0) in decrement_one_qlen() 165 b[hash].qlen--; in decrement_one_qlen() 333 u32 hash = sfbhash & SFB_BUCKET_MASK; in sfb_enqueue() local 334 struct sfb_bucket *b = &q->bins[slot].bins[i][hash]; in sfb_enqueue() 368 u32 hash = sfbhash & SFB_BUCKET_MASK; in sfb_enqueue() local 369 struct sfb_bucket *b = &q->bins[slot].bins[i][hash]; in sfb_enqueue()
|
/linux-4.1.27/net/ipv4/ |
D | tcp_metrics.c | 27 struct net *net, unsigned int hash); 158 unsigned int hash) in tcpm_new() argument 170 tm = __tcp_get_metrics(saddr, daddr, net, hash); in tcpm_new() 183 oldest = deref_locked(tcp_metrics_hash[hash].chain); in tcpm_new() 202 tm->tcpm_next = tcp_metrics_hash[hash].chain; in tcpm_new() 203 rcu_assign_pointer(tcp_metrics_hash[hash].chain, tm); in tcpm_new() 222 struct net *net, unsigned int hash) in __tcp_get_metrics() argument 227 for (tm = rcu_dereference(tcp_metrics_hash[hash].chain); tm; in __tcp_get_metrics() 243 unsigned int hash; in __tcp_get_metrics_req() local 252 hash = (__force unsigned int) daddr.addr.a4; in __tcp_get_metrics_req() [all …]
|
D | inet_fragment.c | 83 hb = &f->hash[i]; in inet_frag_secret_rebuild() 95 hb_dest = &f->hash[hval]; in inet_frag_secret_rebuild() 180 evicted += inet_evict_bucket(f, &f->hash[i]); in inet_frag_worker() 207 struct inet_frag_bucket *hb = &f->hash[i]; in inet_frags_init() 249 inet_evict_bucket(f, &f->hash[i]); in inet_frags_exit_net() 265 unsigned int seq, hash; in get_frag_bucket_locked() local 270 hash = inet_frag_hashfn(f, fq); in get_frag_bucket_locked() 271 hb = &f->hash[hash]; in get_frag_bucket_locked() 417 unsigned int hash) in inet_frag_find() argument 426 hash &= (INETFRAGS_HASHSZ - 1); in inet_frag_find() [all …]
|
D | fib_semantics.c | 160 struct fnhe_hash_bucket *hash; in free_nh_exceptions() local 163 hash = rcu_dereference_protected(nh->nh_exceptions, 1); in free_nh_exceptions() 164 if (!hash) in free_nh_exceptions() 169 fnhe = rcu_dereference_protected(hash[i].chain, 1); in free_nh_exceptions() 183 kfree(hash); in free_nh_exceptions() 304 unsigned int hash; in fib_find_info() local 306 hash = fib_info_hashfn(nfi); in fib_find_info() 307 head = &fib_info_hash[hash]; in fib_find_info() 336 unsigned int hash; in ip_fib_check_default() local 340 hash = fib_devindex_hashfn(dev->ifindex); in ip_fib_check_default() [all …]
|
D | inet_hashtables.c | 213 unsigned int hash = inet_lhashfn(net, hnum); in __inet_lookup_listener() local 214 struct inet_listen_hashbucket *ilb = &hashinfo->listening_hash[hash]; in __inet_lookup_listener() 245 if (get_nulls_value(node) != hash + LISTENING_NULLS_BASE) in __inet_lookup_listener() 295 unsigned int hash = inet_ehashfn(net, daddr, hnum, saddr, sport); in __inet_lookup_established() local 296 unsigned int slot = hash & hashinfo->ehash_mask; in __inet_lookup_established() 302 if (sk->sk_hash != hash) in __inet_lookup_established() 344 unsigned int hash = inet_ehashfn(net, daddr, lport, in __inet_check_established() local 346 struct inet_ehash_bucket *head = inet_ehash_bucket(hinfo, hash); in __inet_check_established() 347 spinlock_t *lock = inet_ehash_lockp(hinfo, hash); in __inet_check_established() 356 if (sk2->sk_hash != hash) in __inet_check_established() [all …]
|
/linux-4.1.27/drivers/staging/lustre/lustre/llite/ |
D | remote_perm.c | 82 struct hlist_head *hash; in alloc_rmtperm_hash() local 85 OBD_SLAB_ALLOC_GFP(hash, ll_rmtperm_hash_cachep, in alloc_rmtperm_hash() 86 REMOTE_PERM_HASHSIZE * sizeof(*hash), in alloc_rmtperm_hash() 88 if (!hash) in alloc_rmtperm_hash() 92 INIT_HLIST_HEAD(hash + i); in alloc_rmtperm_hash() 94 return hash; in alloc_rmtperm_hash() 97 void free_rmtperm_hash(struct hlist_head *hash) in free_rmtperm_hash() argument 103 if (!hash) in free_rmtperm_hash() 107 hlist_for_each_entry_safe(lrp, next, hash + i, in free_rmtperm_hash() 110 OBD_SLAB_FREE(hash, ll_rmtperm_hash_cachep, in free_rmtperm_hash() [all …]
|
D | dir.c | 151 __u64 hash = *((__u64 *)_hash); in ll_dir_filler() local 162 inode->i_ino, inode->i_generation, inode, hash); in ll_dir_filler() 183 op_data->op_offset = hash; in ll_dir_filler() 221 hash = le64_to_cpu(dp->ldp_hash_start); in ll_dir_filler() 224 offset = hash_x_index(hash, hash64); in ll_dir_filler() 267 static struct page *ll_dir_page_locate(struct inode *dir, __u64 *hash, in ll_dir_page_locate() argument 277 unsigned long offset = hash_x_index(*hash, hash64); in ll_dir_page_locate() 303 *hash = *hash >> 32; in ll_dir_page_locate() 308 LASSERTF(*start <= *hash, "start = %#llx,end = %#llx,hash = %#llx\n", in ll_dir_page_locate() 309 *start, *end, *hash); in ll_dir_page_locate() [all …]
|
/linux-4.1.27/fs/hfs/ |
D | string.c | 57 unsigned int hash, len = this->len; in hfs_hash_dentry() local 62 hash = init_name_hash(); in hfs_hash_dentry() 64 hash = partial_name_hash(caseorder[*name++], hash); in hfs_hash_dentry() 65 this->hash = end_name_hash(hash); in hfs_hash_dentry()
|
/linux-4.1.27/fs/hpfs/ |
D | dentry.c | 17 unsigned long hash; in hpfs_hash_dentry() local 29 hash = init_name_hash(); in hpfs_hash_dentry() 31 hash = partial_name_hash(hpfs_upcase(hpfs_sb(dentry->d_sb)->sb_cp_table,qstr->name[i]), hash); in hpfs_hash_dentry() 32 qstr->hash = end_name_hash(hash); in hpfs_hash_dentry()
|
/linux-4.1.27/net/netfilter/ipset/ |
D | Kconfig | 55 tristate "hash:ip set support" 58 This option adds the hash:ip set type support, by which one 65 tristate "hash:ip,mark set support" 68 This option adds the hash:ip,mark set type support, by which one 74 tristate "hash:ip,port set support" 77 This option adds the hash:ip,port set type support, by which one 83 tristate "hash:ip,port,ip set support" 86 This option adds the hash:ip,port,ip set type support, by which 93 tristate "hash:ip,port,net set support" 96 This option adds the hash:ip,port,net set type support, by which [all …]
|
/linux-4.1.27/kernel/trace/ |
D | ftrace.c | 514 struct hlist_head *hash; member 686 memset(stat->hash, 0, in ftrace_profile_reset() 753 if (stat->hash) { in ftrace_profile_init_cpu() 765 stat->hash = kzalloc(sizeof(struct hlist_head) * size, GFP_KERNEL); in ftrace_profile_init_cpu() 767 if (!stat->hash) in ftrace_profile_init_cpu() 772 kfree(stat->hash); in ftrace_profile_init_cpu() 773 stat->hash = NULL; in ftrace_profile_init_cpu() 803 hhd = &stat->hash[key]; in ftrace_find_profiled_func() 822 hlist_add_head_rcu(&rec->node, &stat->hash[key]); in ftrace_add_profile() 875 if (!stat->hash || !ftrace_profile_enabled) in function_profile_call() [all …]
|
D | trace_functions.c | 523 struct ftrace_hash *hash, char *glob, in ftrace_trace_probe_callback() argument 562 ftrace_trace_onoff_callback(struct ftrace_hash *hash, in ftrace_trace_onoff_callback() argument 573 return ftrace_trace_probe_callback(ops, hash, glob, cmd, in ftrace_trace_onoff_callback() 578 ftrace_stacktrace_callback(struct ftrace_hash *hash, in ftrace_stacktrace_callback() argument 585 return ftrace_trace_probe_callback(ops, hash, glob, cmd, in ftrace_stacktrace_callback() 590 ftrace_dump_callback(struct ftrace_hash *hash, in ftrace_dump_callback() argument 598 return ftrace_trace_probe_callback(ops, hash, glob, cmd, in ftrace_dump_callback() 603 ftrace_cpudump_callback(struct ftrace_hash *hash, in ftrace_cpudump_callback() argument 611 return ftrace_trace_probe_callback(ops, hash, glob, cmd, in ftrace_cpudump_callback()
|
/linux-4.1.27/net/netfilter/ipvs/ |
D | ip_vs_proto.c | 51 unsigned int hash = IP_VS_PROTO_HASH(pp->protocol); in register_ip_vs_protocol() local 53 pp->next = ip_vs_proto_table[hash]; in register_ip_vs_protocol() 54 ip_vs_proto_table[hash] = pp; in register_ip_vs_protocol() 69 unsigned int hash = IP_VS_PROTO_HASH(pp->protocol); in register_ip_vs_proto_netns() local 77 pd->next = ipvs->proto_data_table[hash]; in register_ip_vs_proto_netns() 78 ipvs->proto_data_table[hash] = pd; in register_ip_vs_proto_netns() 85 ipvs->proto_data_table[hash] = pd->next; in register_ip_vs_proto_netns() 100 unsigned int hash = IP_VS_PROTO_HASH(pp->protocol); in unregister_ip_vs_protocol() local 102 pp_p = &ip_vs_proto_table[hash]; in unregister_ip_vs_protocol() 123 unsigned int hash = IP_VS_PROTO_HASH(pd->pp->protocol); in unregister_ip_vs_proto_netns() local [all …]
|
D | ip_vs_conn.c | 169 unsigned int hash; in ip_vs_conn_hash() local 176 hash = ip_vs_conn_hashkey_conn(cp); in ip_vs_conn_hash() 178 ct_write_lock_bh(hash); in ip_vs_conn_hash() 184 hlist_add_head_rcu(&cp->c_list, &ip_vs_conn_tab[hash]); in ip_vs_conn_hash() 193 ct_write_unlock_bh(hash); in ip_vs_conn_hash() 205 unsigned int hash; in ip_vs_conn_unhash() local 209 hash = ip_vs_conn_hashkey_conn(cp); in ip_vs_conn_unhash() 211 ct_write_lock_bh(hash); in ip_vs_conn_unhash() 223 ct_write_unlock_bh(hash); in ip_vs_conn_unhash() 233 unsigned int hash; in ip_vs_conn_unlink() local [all …]
|
D | ip_vs_sh.c | 111 unsigned int hash = ip_vs_sh_hashkey(svc->af, addr, port, 0); in ip_vs_sh_get() local 112 struct ip_vs_dest *dest = rcu_dereference(s->buckets[hash].dest); in ip_vs_sh_get() 129 unsigned int hash, ihash; in ip_vs_sh_get_fallback() local 148 hash = ip_vs_sh_hashkey(svc->af, addr, port, roffset); in ip_vs_sh_get_fallback() 149 dest = rcu_dereference(s->buckets[hash].dest); in ip_vs_sh_get_fallback()
|
D | ip_vs_proto_udp.c | 354 __u16 hash; in udp_register_app() local 360 hash = udp_app_hashkey(port); in udp_register_app() 362 list_for_each_entry(i, &ipvs->udp_apps[hash], p_list) { in udp_register_app() 368 list_add_rcu(&inc->p_list, &ipvs->udp_apps[hash]); in udp_register_app() 389 int hash; in udp_app_conn_bind() local 398 hash = udp_app_hashkey(cp->vport); in udp_app_conn_bind() 401 list_for_each_entry_rcu(inc, &ipvs->udp_apps[hash], p_list) { in udp_app_conn_bind()
|
/linux-4.1.27/Documentation/device-mapper/ |
D | verity.txt | 17 This is the type of the on-disk hash format. 33 This is the device that supplies the hash tree data. It may be 40 Each block corresponds to one digest on the hash device. 43 The size of a hash block in bytes. 52 to the root block of the hash tree. 55 The cryptographic hash algorithm used for this device. This should 59 The hexadecimal encoding of the cryptographic hash of the root hash block 60 and the salt. This hash should be trusted as there is no other authenticity 93 tree, the root hash, then the I/O will fail. This should detect 94 tampering with any data on the device and the hash data. [all …]
|
/linux-4.1.27/drivers/md/ |
D | dm-cache-policy-cleaner.c | 32 struct hash { struct 53 struct hash chash; argument 83 static int alloc_hash(struct hash *hash, unsigned elts) in alloc_hash() argument 85 hash->nr_buckets = next_power(elts >> 4, 16); in alloc_hash() 86 hash->hash_bits = ffs(hash->nr_buckets) - 1; in alloc_hash() 87 hash->table = vzalloc(sizeof(*hash->table) * hash->nr_buckets); in alloc_hash() 89 return hash->table ? 0 : -ENOMEM; in alloc_hash() 92 static void free_hash(struct hash *hash) in free_hash() argument 94 vfree(hash->table); in free_hash() 142 struct hash *hash = &p->chash; in lookup_cache_entry() local [all …]
|
/linux-4.1.27/drivers/net/team/ |
D | team_mode_loadbalance.c | 82 #define LB_HTPM_PORT_BY_HASH(lp_priv, hash) \ argument 83 (lb_priv)->ex->tx_hash_to_port_mapping[hash].port 85 #define LB_HTPM_OPT_INST_INFO_BY_HASH(lp_priv, hash) \ argument 86 (lb_priv)->ex->tx_hash_to_port_mapping[hash].opt_inst_info 113 unsigned char hash) in lb_hash_select_tx_port() argument 115 int port_index = team_num_to_port_index(team, hash); in lb_hash_select_tx_port() 124 unsigned char hash) in lb_htpm_select_tx_port() argument 126 return rcu_dereference_bh(LB_HTPM_PORT_BY_HASH(lb_priv, hash)); in lb_htpm_select_tx_port() 191 unsigned char hash) in lb_update_tx_stats() argument 199 hash_stats = &pcpu_stats->hash_stats[hash]; in lb_update_tx_stats() [all …]
|
/linux-4.1.27/scripts/mod/ |
D | sumversion.c | 41 uint32_t hash[MD4_HASH_WORDS]; member 88 static void md4_transform(uint32_t *hash, uint32_t const *in) in md4_transform() argument 92 a = hash[0]; in md4_transform() 93 b = hash[1]; in md4_transform() 94 c = hash[2]; in md4_transform() 95 d = hash[3]; in md4_transform() 148 hash[0] += a; in md4_transform() 149 hash[1] += b; in md4_transform() 150 hash[2] += c; in md4_transform() 151 hash[3] += d; in md4_transform() [all …]
|
/linux-4.1.27/fs/coda/ |
D | cnode.c | 64 unsigned long hash = coda_f2i(fid); in coda_iget() local 66 inode = iget5_locked(sb, hash, coda_test_inode, coda_set_inode, fid); in coda_iget() 74 inode->i_ino = hash; in coda_iget() 121 unsigned long hash = coda_f2i(newfid); in coda_replace_fid() local 129 inode->i_ino = hash; in coda_replace_fid() 130 __insert_inode_hash(inode, hash); in coda_replace_fid() 137 unsigned long hash = coda_f2i(fid); in coda_fid_to_inode() local 144 inode = ilookup5(sb, hash, coda_test_inode, fid); in coda_fid_to_inode()
|
/linux-4.1.27/drivers/staging/lustre/lnet/lnet/ |
D | peer.c | 47 struct list_head *hash; in lnet_peer_tables_create() local 61 LIBCFS_CPT_ALLOC(hash, lnet_cpt_table(), i, in lnet_peer_tables_create() 62 LNET_PEER_HASH_SIZE * sizeof(*hash)); in lnet_peer_tables_create() 63 if (hash == NULL) { in lnet_peer_tables_create() 70 INIT_LIST_HEAD(&hash[j]); in lnet_peer_tables_create() 71 ptable->pt_hash = hash; /* sign of initialization */ in lnet_peer_tables_create() 81 struct list_head *hash; in lnet_peer_tables_destroy() local 89 hash = ptable->pt_hash; in lnet_peer_tables_destroy() 90 if (hash == NULL) /* not initialized */ in lnet_peer_tables_destroy() 97 LASSERT(list_empty(&hash[j])); in lnet_peer_tables_destroy() [all …]
|
D | router_proc.c | 85 #define LNET_PROC_POS_MAKE(cpt, ver, hash, off) \ argument 88 ((((loff_t)(hash)) & LNET_PROC_HASH_MASK) << LNET_PROC_HOFF_BITS) | \ 437 int hash = LNET_PROC_HASH_GET(*ppos); in proc_lnet_peers() local 487 while (hash < LNET_PEER_HASH_SIZE) { in proc_lnet_peers() 489 p = ptable->pt_hash[hash].next; in proc_lnet_peers() 491 while (p != &ptable->pt_hash[hash]) { in proc_lnet_peers() 501 &ptable->pt_hash[hash]) { in proc_lnet_peers() 503 hash++; in proc_lnet_peers() 520 hash++; in proc_lnet_peers() 567 if (hash == LNET_PEER_HASH_SIZE) { in proc_lnet_peers() [all …]
|
/linux-4.1.27/drivers/gpu/drm/ |
D | drm_auth.c | 59 struct drm_hash_item *hash; in drm_find_file() local 63 if (!drm_ht_find_item(&master->magiclist, (unsigned long)magic, &hash)) { in drm_find_file() 64 pt = drm_hash_entry(hash, struct drm_magic_entry, hash_item); in drm_find_file() 114 struct drm_hash_item *hash; in drm_remove_magic() local 120 if (drm_ht_find_item(&master->magiclist, (unsigned long)magic, &hash)) { in drm_remove_magic() 124 pt = drm_hash_entry(hash, struct drm_magic_entry, hash_item); in drm_remove_magic() 125 drm_ht_remove_item(&master->magiclist, hash); in drm_remove_magic()
|
D | drm_vm.c | 105 struct drm_hash_item *hash; in drm_do_vm_fault() local 116 if (drm_ht_find_item(&dev->map_hash, vma->vm_pgoff, &hash)) in drm_do_vm_fault() 119 r_list = drm_hash_entry(hash, struct drm_map_list, hash); in drm_do_vm_fault() 546 struct drm_hash_item *hash; in drm_mmap_locked() local 566 if (drm_ht_find_item(&dev->map_hash, vma->vm_pgoff, &hash)) { in drm_mmap_locked() 571 map = drm_hash_entry(hash, struct drm_map_list, hash)->map; in drm_mmap_locked()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/core/ |
D | ramht.c | 30 u32 hash = 0; in nvkm_ramht_hash() local 33 hash ^= (handle & ((1 << ramht->bits) - 1)); in nvkm_ramht_hash() 37 hash ^= chid << (ramht->bits - 4); in nvkm_ramht_hash() 38 hash = hash << 3; in nvkm_ramht_hash() 39 return hash; in nvkm_ramht_hash()
|
/linux-4.1.27/include/net/ |
D | udp.h | 76 struct udp_hslot *hash; member 86 return &table->hash[udp_hashfn(net, num, table->mask)]; in udp_hashslot() 93 unsigned int hash) in udp_hashslot2() argument 95 return &table->hash2[hash & table->mask]; in udp_hashslot2() 202 u32 hash; in udp_flow_src_port() local 209 hash = skb_get_hash(skb); in udp_flow_src_port() 210 if (unlikely(!hash)) { in udp_flow_src_port() 215 hash = jhash(skb->data, 2 * ETH_ALEN, in udp_flow_src_port() 221 hash = udp_flow_hashrnd(); in udp_flow_src_port() 230 hash ^= hash << 16; in udp_flow_src_port() [all …]
|
/linux-4.1.27/fs/kernfs/ |
D | dir.c | 187 unsigned long hash = init_name_hash(); in kernfs_name_hash() local 190 hash = partial_name_hash(*name++, hash); in kernfs_name_hash() 191 hash = (end_name_hash(hash) ^ hash_ptr((void *)ns, 31)); in kernfs_name_hash() 192 hash &= 0x7fffffffU; in kernfs_name_hash() 194 if (hash < 2) in kernfs_name_hash() 195 hash += 2; in kernfs_name_hash() 196 if (hash >= INT_MAX) in kernfs_name_hash() 197 hash = INT_MAX - 1; in kernfs_name_hash() 198 return hash; in kernfs_name_hash() 201 static int kernfs_name_compare(unsigned int hash, const char *name, in kernfs_name_compare() argument [all …]
|
/linux-4.1.27/Documentation/vDSO/ |
D | parse_vdso.c | 134 ELF(Word) *hash = 0; in vdso_init_from_sysinfo_ehdr() 152 hash = (ELF(Word) *) in vdso_init_from_sysinfo_ehdr() 168 if (!vdso_info.symstrings || !vdso_info.symtab || !hash) in vdso_init_from_sysinfo_ehdr() 175 vdso_info.nbucket = hash[0]; in vdso_init_from_sysinfo_ehdr() 176 vdso_info.nchain = hash[1]; in vdso_init_from_sysinfo_ehdr() 177 vdso_info.bucket = &hash[2]; in vdso_init_from_sysinfo_ehdr() 178 vdso_info.chain = &hash[vdso_info.nbucket + 2]; in vdso_init_from_sysinfo_ehdr() 185 const char *name, ELF(Word) hash) in vdso_match_version() 218 return def->vd_hash == hash in vdso_match_version()
|
/linux-4.1.27/security/apparmor/ |
D | crypto.c | 45 profile->hash = kzalloc(apparmor_hash_size, GFP_KERNEL); in aa_calc_profile_hash() 46 if (!profile->hash) in aa_calc_profile_hash() 61 error = crypto_shash_final(&desc.shash, profile->hash); in aa_calc_profile_hash() 68 kfree(profile->hash); in aa_calc_profile_hash() 69 profile->hash = NULL; in aa_calc_profile_hash()
|
/linux-4.1.27/net/ipv6/ |
D | inet6_hashtables.c | 65 unsigned int hash = inet6_ehashfn(net, daddr, hnum, saddr, sport); in __inet6_lookup_established() local 66 unsigned int slot = hash & hashinfo->ehash_mask; in __inet6_lookup_established() 73 if (sk->sk_hash != hash) in __inet6_lookup_established() 131 unsigned int hash = inet_lhashfn(net, hnum); in inet6_lookup_listener() local 132 struct inet_listen_hashbucket *ilb = &hashinfo->listening_hash[hash]; in inet6_lookup_listener() 161 if (get_nulls_value(node) != hash + LISTENING_NULLS_BASE) in inet6_lookup_listener() 203 const unsigned int hash = inet6_ehashfn(net, daddr, lport, saddr, in __inet6_check_established() local 205 struct inet_ehash_bucket *head = inet_ehash_bucket(hinfo, hash); in __inet6_check_established() 206 spinlock_t *lock = inet_ehash_lockp(hinfo, hash); in __inet6_check_established() 215 if (sk2->sk_hash != hash) in __inet6_check_established() [all …]
|
D | output_core.c | 15 u32 hash, id; in __ipv6_select_ident() local 17 hash = __ipv6_addr_jhash(dst, hashrnd); in __ipv6_select_ident() 18 hash = __ipv6_addr_jhash(src, hash); in __ipv6_select_ident() 19 hash ^= net_hash_mix(net); in __ipv6_select_ident() 25 id = ip_idents_reserve(hash, 1); in __ipv6_select_ident()
|
/linux-4.1.27/arch/sparc/crypto/ |
D | md5_glue.c | 36 mctx->hash[0] = cpu_to_le32(0x67452301); in md5_sparc64_init() 37 mctx->hash[1] = cpu_to_le32(0xefcdab89); in md5_sparc64_init() 38 mctx->hash[2] = cpu_to_le32(0x98badcfe); in md5_sparc64_init() 39 mctx->hash[3] = cpu_to_le32(0x10325476); in md5_sparc64_init() 54 md5_sparc64_transform(sctx->hash, (u8 *)sctx->block, 1); in __md5_sparc64_update() 59 md5_sparc64_transform(sctx->hash, data + done, rounds); in __md5_sparc64_update() 108 dst[i] = sctx->hash[i]; in md5_sparc64_final()
|
D | crc32c_glue.c | 30 static int crc32c_sparc64_setkey(struct crypto_shash *hash, const u8 *key, in crc32c_sparc64_setkey() argument 33 u32 *mctx = crypto_shash_ctx(hash); in crc32c_sparc64_setkey() 36 crypto_shash_set_flags(hash, CRYPTO_TFM_RES_BAD_KEY_LEN); in crc32c_sparc64_setkey()
|
/linux-4.1.27/lib/xz/ |
D | xz_dec_stream.c | 93 struct xz_dec_hash hash; member 115 struct xz_dec_hash hash; member 259 s->block.hash.unpadded += s->block_header.size in dec_block() 263 s->block.hash.unpadded += check_sizes[s->check_type]; in dec_block() 266 s->block.hash.unpadded += 4; in dec_block() 269 s->block.hash.uncompressed += s->block.uncompressed; in dec_block() 270 s->block.hash.crc32 = xz_crc32( in dec_block() 271 (const uint8_t *)&s->block.hash, in dec_block() 272 sizeof(s->block.hash), s->block.hash.crc32); in dec_block() 323 s->index.hash.unpadded += s->vli; in dec_index() [all …]
|
/linux-4.1.27/drivers/staging/lustre/lustre/fld/ |
D | fld_request.c | 122 int hash; in fld_rrb_scan() local 130 hash = fld_rrb_hash(fld, seq); in fld_rrb_scan() 132 hash = 0; in fld_rrb_scan() 136 if (target->ft_idx == hash) in fld_rrb_scan() 140 if (hash != 0) { in fld_rrb_scan() 144 hash = 0; in fld_rrb_scan() 149 fld->lcf_name, hash, seq, fld->lcf_count); in fld_rrb_scan() 333 static inline int hash_is_sane(int hash) in hash_is_sane() argument 335 return (hash >= 0 && hash < ARRAY_SIZE(fld_hash)); in hash_is_sane() 339 const char *prefix, int hash) in fld_client_init() argument [all …]
|
D | lproc_fld.c | 95 struct lu_fld_hash *hash = NULL; in fld_proc_hash_seq_write() local 113 hash = &fld_hash[i]; in fld_proc_hash_seq_write() 118 if (hash != NULL) { in fld_proc_hash_seq_write() 120 fld->lcf_hash = hash; in fld_proc_hash_seq_write() 124 fld->lcf_name, hash->fh_name); in fld_proc_hash_seq_write()
|
/linux-4.1.27/drivers/target/tcm_fc/ |
D | tfc_sess.c | 83 INIT_HLIST_HEAD(&tport->hash[i]); in ft_tport_get() 180 head = &tport->hash[ft_sess_hash(port_id)]; in ft_sess_get() 181 hlist_for_each_entry_rcu(sess, head, hash) { in ft_sess_get() 205 head = &tport->hash[ft_sess_hash(port_id)]; in ft_sess_create() 206 hlist_for_each_entry_rcu(sess, head, hash) in ft_sess_create() 225 hlist_add_head_rcu(&sess->hash, head); in ft_sess_create() 243 hlist_del_rcu(&sess->hash); in ft_sess_unhash() 259 head = &tport->hash[ft_sess_hash(port_id)]; in ft_sess_delete() 260 hlist_for_each_entry_rcu(sess, head, hash) { in ft_sess_delete() 278 for (head = tport->hash; in ft_sess_delete_all() [all …]
|
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/ |
D | capa.c | 87 struct hlist_head *hash; in init_capa_hash() local 90 OBD_ALLOC(hash, PAGE_CACHE_SIZE); in init_capa_hash() 91 if (!hash) in init_capa_hash() 98 INIT_HLIST_HEAD(hash + i); in init_capa_hash() 99 return hash; in init_capa_hash() 118 void cleanup_capa_hash(struct hlist_head *hash) in cleanup_capa_hash() argument 126 hlist_for_each_entry_safe(oc, next, hash + i, in cleanup_capa_hash() 132 OBD_FREE(hash, PAGE_CACHE_SIZE); in cleanup_capa_hash() 193 struct obd_capa *capa_add(struct hlist_head *hash, struct lustre_capa *capa) in capa_add() argument 195 struct hlist_head *head = hash + capa_hashfn(&capa->lc_fid); in capa_add() [all …]
|
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/ |
D | linux-crypto.c | 98 unsigned char *hash, unsigned int *hash_len) in cfs_crypto_hash_digest() argument 112 if (hash == NULL || *hash_len < type->cht_size) { in cfs_crypto_hash_digest() 120 err = crypto_hash_digest(&hdesc, &sl, sl.length, hash); in cfs_crypto_hash_digest() 176 unsigned char *hash, unsigned int *hash_len) in cfs_crypto_hash_final() argument 186 if (hash == NULL || *hash_len < size) { in cfs_crypto_hash_final() 190 err = crypto_hash_final((struct hash_desc *) hdesc, hash); in cfs_crypto_hash_final() 209 unsigned char hash[64]; in cfs_crypto_performance_test() local 215 hash, &hash_len); in cfs_crypto_performance_test()
|
D | linux-crypto-adler.c | 54 static int adler32_setkey(struct crypto_shash *hash, const u8 *key, in adler32_setkey() argument 57 u32 *mctx = crypto_shash_ctx(hash); in adler32_setkey() 60 crypto_shash_set_flags(hash, CRYPTO_TFM_RES_BAD_KEY_LEN); in adler32_setkey()
|
/linux-4.1.27/arch/x86/um/vdso/ |
D | vdso-layout.lds.S | 11 .hash : { *(.hash) } :text 12 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.1.27/fs/nfs/ |
D | pnfs_dev.c | 80 long hash) in _lookup_deviceid() argument 84 hlist_for_each_entry_rcu(d, &nfs4_deviceid_cache[hash], node) in _lookup_deviceid() 173 const struct nfs4_deviceid *id, long hash) in __nfs4_find_get_deviceid() argument 179 hash); in __nfs4_find_get_deviceid() 191 long hash = nfs4_deviceid_hash(id); in nfs4_find_get_deviceid() local 194 d = __nfs4_find_get_deviceid(server, id, hash); in nfs4_find_get_deviceid() 203 d = __nfs4_find_get_deviceid(server, id, hash); in nfs4_find_get_deviceid() 209 hlist_add_head_rcu(&new->node, &nfs4_deviceid_cache[hash]); in nfs4_find_get_deviceid() 312 _deviceid_purge_client(const struct nfs_client *clp, long hash) in _deviceid_purge_client() argument 319 hlist_for_each_entry_rcu(d, &nfs4_deviceid_cache[hash], node) in _deviceid_purge_client()
|
/linux-4.1.27/net/appletalk/ |
D | aarp.c | 419 int hash = sa->s_node % (AARP_HASH_SIZE - 1); in aarp_proxy_remove() local 424 a = __aarp_find_entry(proxies[hash], dev, sa); in aarp_proxy_remove() 435 int hash = sa->s_node % (AARP_HASH_SIZE - 1); in __aarp_proxy_find() local 436 struct aarp_entry *a = __aarp_find_entry(proxies[hash], dev, sa); in __aarp_proxy_find() 489 int hash, retval = -EPROTONOSUPPORT; in aarp_proxy_probe_network() local 518 hash = sa->s_node % (AARP_HASH_SIZE - 1); in aarp_proxy_probe_network() 519 entry->next = proxies[hash]; in aarp_proxy_probe_network() 520 proxies[hash] = entry; in aarp_proxy_probe_network() 553 int hash; in aarp_send_ddp() local 609 hash = sa->s_node % (AARP_HASH_SIZE - 1); in aarp_send_ddp() [all …]
|
/linux-4.1.27/drivers/staging/lustre/lustre/include/ |
D | lustre_lite.h | 137 static inline unsigned long hash_x_index(__u64 hash, int hash64) in hash_x_index() argument 140 hash >>= 32; in hash_x_index() 145 return ~0UL - (hash + !hash); in hash_x_index()
|
/linux-4.1.27/arch/tile/kernel/vdso/ |
D | vdso.lds.S | 28 .hash : { *(.hash) } :text 29 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.1.27/arch/arm/vdso/ |
D | vdso.lds.S | 37 .hash : { *(.hash) } :text 38 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.1.27/arch/sh/kernel/vsyscall/ |
D | vsyscall.lds.S | 22 .hash : { *(.hash) } :text 23 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.1.27/fs/ext2/ |
D | xattr.c | 829 __u32 hash = le32_to_cpu(HDR(bh)->h_hash); in ext2_xattr_cache_insert() local 836 error = mb_cache_entry_insert(ce, bh->b_bdev, bh->b_blocknr, hash); in ext2_xattr_cache_insert() 845 ea_bdebug(bh, "inserting [%x] (%d cache entries)", (int)hash, in ext2_xattr_cache_insert() 903 __u32 hash = le32_to_cpu(header->h_hash); in ext2_xattr_cache_find() local 908 ea_idebug(inode, "looking for cached blocks [%x]", (int)hash); in ext2_xattr_cache_find() 911 hash); in ext2_xattr_cache_find() 943 ce = mb_cache_entry_find_next(ce, inode->i_sb->s_bdev, hash); in ext2_xattr_cache_find() 959 __u32 hash = 0; in ext2_xattr_hash_entry() local 964 hash = (hash << NAME_HASH_SHIFT) ^ in ext2_xattr_hash_entry() 965 (hash >> (8*sizeof(hash) - NAME_HASH_SHIFT)) ^ in ext2_xattr_hash_entry() [all …]
|
/linux-4.1.27/arch/arm64/kernel/vdso/ |
D | vdso.lds.S | 34 .hash : { *(.hash) } :text 35 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.1.27/fs/nfsd/ |
D | export.c | 251 int hash = item->ek_fsidtype; in svc_expkey_hash() local 255 hash ^= hash_mem(cp, len, EXPKEY_HASHBITS); in svc_expkey_hash() 256 hash ^= hash_ptr(item->ek_client, EXPKEY_HASHBITS); in svc_expkey_hash() 257 hash &= EXPKEY_HASHMASK; in svc_expkey_hash() 258 return hash; in svc_expkey_hash() 265 int hash = svc_expkey_hash(item); in svc_expkey_lookup() local 267 ch = sunrpc_cache_lookup(cd, &item->h, hash); in svc_expkey_lookup() 279 int hash = svc_expkey_hash(new); in svc_expkey_update() local 281 ch = sunrpc_cache_update(cd, &new->h, &old->h, hash); in svc_expkey_update() 767 int hash; in svc_export_hash() local [all …]
|
/linux-4.1.27/net/openvswitch/ |
D | flow_table.c | 316 static struct hlist_head *find_bucket(struct table_instance *ti, u32 hash) in find_bucket() argument 318 hash = jhash_1word(hash, ti->hash_seed); in find_bucket() 320 (hash & (ti->n_buckets - 1))); in find_bucket() 328 head = find_bucket(ti, flow->flow_table.hash); in table_instance_insert() 337 head = find_bucket(ti, flow->ufid_table.hash); in ufid_table_instance_insert() 475 u32 hash; in masked_flow_lookup() local 479 hash = flow_hash(&masked_key, &mask->range); in masked_flow_lookup() 480 head = find_bucket(ti, hash); in masked_flow_lookup() 482 if (flow->mask == mask && flow->flow_table.hash == hash && in masked_flow_lookup() 560 u32 hash; in ovs_flow_tbl_lookup_ufid() local [all …]
|
D | vport.c | 73 unsigned int hash = jhash(name, strlen(name), (unsigned long) net); in hash_bucket() local 74 return &dev_table[hash & (VPORT_HASH_BUCKETS - 1)]; in hash_bucket() 449 u32 hash; in ovs_vport_find_upcall_portid() local 456 hash = skb_get_hash(skb); in ovs_vport_find_upcall_portid() 457 ids_index = hash - ids->n_ids * reciprocal_divide(hash, ids->rn_ids); in ovs_vport_find_upcall_portid()
|
/linux-4.1.27/kernel/ |
D | module_signing.c | 32 u8 hash; /* Digest algorithm [enum hash_algo] */ member 43 static struct public_key_signature *mod_make_digest(enum hash_algo hash, in mod_make_digest() argument 58 tfm = crypto_alloc_shash(hash_algo_name[hash], 0, 0); in mod_make_digest() 73 pks->pkey_hash_algo = hash; in mod_make_digest() 220 if (ms.hash >= PKEY_HASH__LAST || in mod_verify_sig() 221 !hash_algo_name[ms.hash]) in mod_verify_sig() 229 pks = mod_make_digest(ms.hash, mod, modlen); in mod_verify_sig()
|
D | kprobes.c | 84 static raw_spinlock_t *kretprobe_table_lock_ptr(unsigned long hash) in kretprobe_table_lock_ptr() argument 86 return &(kretprobe_table_locks[hash].lock); in kretprobe_table_lock_ptr() 1099 unsigned long hash = hash_ptr(tsk, KPROBE_HASH_BITS); in kretprobe_hash_lock() local 1102 *head = &kretprobe_inst_table[hash]; in kretprobe_hash_lock() 1103 hlist_lock = kretprobe_table_lock_ptr(hash); in kretprobe_hash_lock() 1108 static void kretprobe_table_lock(unsigned long hash, in kretprobe_table_lock() argument 1112 raw_spinlock_t *hlist_lock = kretprobe_table_lock_ptr(hash); in kretprobe_table_lock() 1121 unsigned long hash = hash_ptr(tsk, KPROBE_HASH_BITS); in kretprobe_hash_unlock() local 1124 hlist_lock = kretprobe_table_lock_ptr(hash); in kretprobe_hash_unlock() 1129 static void kretprobe_table_unlock(unsigned long hash, in kretprobe_table_unlock() argument [all …]
|
/linux-4.1.27/security/selinux/ss/ |
D | avtab.c | 40 u32 hash = 0; in avtab_hash() local 47 hash ^= v; \ in avtab_hash() 48 hash = (hash << r2) | (hash >> (32 - r2)); \ in avtab_hash() 49 hash = hash * m + n; \ in avtab_hash() 58 hash ^= hash >> 16; in avtab_hash() 59 hash *= 0x85ebca6b; in avtab_hash() 60 hash ^= hash >> 13; in avtab_hash() 61 hash *= 0xc2b2ae35; in avtab_hash() 62 hash ^= hash >> 16; in avtab_hash() 64 return hash & mask; in avtab_hash()
|
/linux-4.1.27/drivers/infiniband/hw/mthca/ |
D | mthca_mcg.c | 65 u16 *hash, int *prev, int *index) in find_mgm() argument 79 err = mthca_MGID_HASH(dev, mailbox, hash); in find_mgm() 86 mthca_dbg(dev, "Hash for %pI6 is %04x\n", gid, *hash); in find_mgm() 88 *index = *hash; in find_mgm() 99 if (*index != *hash) { in find_mgm() 125 u16 hash; in mthca_multicast_attach() local 138 err = find_mgm(dev, gid->raw, mailbox, &hash, &prev, &index); in mthca_multicast_attach() 219 u16 hash; in mthca_multicast_detach() local 231 err = find_mgm(dev, gid->raw, mailbox, &hash, &prev, &index); in mthca_multicast_detach()
|
/linux-4.1.27/arch/x86/vdso/ |
D | vdso-layout.lds.S | 42 .hash : { *(.hash) } :text 43 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.1.27/Documentation/pcmcia/ |
D | devicetable.txt | 19 If the hash is incorrect, the kernel will inform you about this in "dmesg" 20 upon module initialization, and tell you of the correct hash. 22 You can determine the hash of the product ID strings by catting the file 27 The hex value after "pa" is the hash of product ID string 1, after "pb" for 31 to determine the crc32 hash. Simply pass the string you want to evaluate
|
/linux-4.1.27/drivers/base/power/ |
D | trace.c | 180 unsigned int hash = hash_string(lineno, file, FILEHASH); in show_file_hash() local 181 if (hash != value) in show_file_hash() 198 unsigned int hash = hash_string(DEVSEED, dev_name(dev), DEVHASH); in show_dev_hash() local 199 if (hash == value) { in show_dev_hash() 225 unsigned int hash = hash_string(DEVSEED, dev_name(dev), in show_trace_dev_match() local 227 if (hash == value) { in show_trace_dev_match()
|
/linux-4.1.27/arch/ia64/kernel/ |
D | gate.lds.S | 15 .hash : { *(.hash) } :readable 16 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.1.27/fs/efivarfs/ |
D | super.c | 68 unsigned long hash = init_name_hash(); in efivarfs_d_hash() local 76 hash = partial_name_hash(*s++, hash); in efivarfs_d_hash() 80 hash = partial_name_hash(tolower(*s++), hash); in efivarfs_d_hash() 82 qstr->hash = end_name_hash(hash); in efivarfs_d_hash()
|
/linux-4.1.27/drivers/net/ethernet/ti/ |
D | tlan.h | 533 u8 hash; in tlan_hash_func() local 535 hash = (a[0]^a[3]); /* & 077 */ in tlan_hash_func() 536 hash ^= ((a[0]^a[3])>>6); /* & 003 */ in tlan_hash_func() 537 hash ^= ((a[1]^a[4])<<2); /* & 074 */ in tlan_hash_func() 538 hash ^= ((a[1]^a[4])>>4); /* & 017 */ in tlan_hash_func() 539 hash ^= ((a[2]^a[5])<<4); /* & 060 */ in tlan_hash_func() 540 hash ^= ((a[2]^a[5])>>2); /* & 077 */ in tlan_hash_func() 542 return hash & 077; in tlan_hash_func()
|
/linux-4.1.27/fs/affs/ |
D | namei.c | 67 unsigned long hash; in __affs_hash_dentry() local 75 hash = init_name_hash(); in __affs_hash_dentry() 78 hash = partial_name_hash(toupper(*name), hash); in __affs_hash_dentry() 79 qstr->hash = end_name_hash(hash); in __affs_hash_dentry() 178 u32 hash; in affs_hash_name() local 180 hash = len = min(len, AFFSNAMEMAX); in affs_hash_name() 182 hash = (hash * 13 + toupper(*name++)) & 0x7ff; in affs_hash_name() 184 return hash % AFFS_SB(sb)->s_hashsize; in affs_hash_name()
|
/linux-4.1.27/net/sctp/ |
D | proc.c | 215 int hash = *(loff_t *)v; in sctp_eps_seq_show() local 217 if (hash >= sctp_ep_hashsize) in sctp_eps_seq_show() 220 head = &sctp_ep_hashtable[hash]; in sctp_eps_seq_show() 229 sctp_sk(sk)->type, sk->sk_state, hash, in sctp_eps_seq_show() 323 int hash = *(loff_t *)v; in sctp_assocs_seq_show() local 325 if (hash >= sctp_assoc_hashsize) in sctp_assocs_seq_show() 328 head = &sctp_assoc_hashtable[hash]; in sctp_assocs_seq_show() 340 assoc->state, hash, in sctp_assocs_seq_show() 443 int hash = *(loff_t *)v; in sctp_remaddr_seq_show() local 445 if (hash >= sctp_assoc_hashsize) in sctp_remaddr_seq_show() [all …]
|
/linux-4.1.27/include/scsi/ |
D | libiscsi_tcp.h | 41 struct hash_desc *hash; member 114 struct hash_desc *hash); 119 iscsi_segment_done_fn_t *done, struct hash_desc *hash); 122 extern void iscsi_tcp_dgst_header(struct hash_desc *hash, const void *hdr,
|
/linux-4.1.27/arch/powerpc/platforms/pseries/ |
D | lpar.c | 339 unsigned long hash; in pSeries_lpar_hpte_find() local 344 hash = hpt_hash(vpn, mmu_psize_defs[psize].shift, ssize); in pSeries_lpar_hpte_find() 348 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in pSeries_lpar_hpte_find() 458 unsigned long shift, hidx, vpn = 0, hash, slot; in pSeries_lpar_hugepage_invalidate() local 472 hash = hpt_hash(vpn, shift, ssize); in pSeries_lpar_hugepage_invalidate() 474 hash = ~hash; in pSeries_lpar_hugepage_invalidate() 476 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in pSeries_lpar_hugepage_invalidate() 527 unsigned long hash, index, shift, hidx, slot; in pSeries_lpar_flush_hash_range() local 541 hash = hpt_hash(vpn, shift, ssize); in pSeries_lpar_flush_hash_range() 544 hash = ~hash; in pSeries_lpar_flush_hash_range() [all …]
|
/linux-4.1.27/scripts/ |
D | sign-file | 312 my $hash = 0; # Digest algorithm 324 $hash = 2; 330 $hash = 7; 336 $hash = 4; 342 $hash = 5; 348 $hash = 6; 391 $algo, $hash, $id_type,
|
/linux-4.1.27/arch/arm/crypto/ |
D | Kconfig | 16 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented 26 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented 36 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented 45 SHA-256 secure hash standard (DFIPS 180-2) implemented 53 SHA-256 secure hash standard (DFIPS 180-2) implemented 62 SHA-512 secure hash standard (DFIPS 180-2) implemented 65 This version of SHA implements a 512 bit hash with 256 bits of 68 This code also includes SHA-384, a 384 bit hash with 192 bits
|
/linux-4.1.27/security/tomoyo/ |
D | memory.c | 150 unsigned int hash; in tomoyo_get_name() local 157 hash = full_name_hash((const unsigned char *) name, len - 1); in tomoyo_get_name() 158 head = &tomoyo_name_list[hash_long(hash, TOMOYO_HASH_BITS)]; in tomoyo_get_name() 162 if (hash != ptr->entry.hash || strcmp(name, ptr->entry.name) || in tomoyo_get_name()
|
/linux-4.1.27/fs/jbd/ |
D | revoke.c | 107 struct list_head hash; member 133 static inline int hash(journal_t *journal, unsigned int block) in hash() function 153 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in insert_revoke_hash() 155 list_add(&record->hash, hash_list); in insert_revoke_hash() 175 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in find_revoke_record() 179 while (&(record->hash) != hash_list) { in find_revoke_record() 184 record = (struct jbd_revoke_record_s *) record->hash.next; in find_revoke_record() 450 list_del(&record->hash); in journal_cancel_revoke() 557 list_del(&record->hash); in journal_write_revoke_records() 729 list_del(&record->hash); in journal_clear_revoke()
|
/linux-4.1.27/arch/s390/kernel/vdso32/ |
D | vdso32.lds.S | 15 .hash : { *(.hash) } :text 16 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.1.27/arch/s390/kernel/vdso64/ |
D | vdso64.lds.S | 15 .hash : { *(.hash) } :text 16 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.1.27/fs/adfs/ |
D | dir.c | 198 unsigned long hash; in adfs_hash() local 210 hash = init_name_hash(); in adfs_hash() 218 hash = partial_name_hash(c, hash); in adfs_hash() 220 qstr->hash = end_name_hash(hash); in adfs_hash()
|
/linux-4.1.27/drivers/infiniband/core/ |
D | iwpm_util.c | 520 u32 hash = jhash_2words(ipv6_hash, (__force u32) ipv6_sockaddr->sin6_port, 0); in iwpm_ipv6_jhash() local 521 return hash; in iwpm_ipv6_jhash() 527 u32 hash = jhash_2words(ipv4_hash, (__force u32) ipv4_sockaddr->sin_port, 0); in iwpm_ipv4_jhash() local 528 return hash; in iwpm_ipv4_jhash() 532 struct sockaddr_storage *b_sockaddr, u32 *hash) in get_hash_bucket() argument 549 *hash = a_hash; in get_hash_bucket() 551 *hash = jhash_2words(a_hash, b_hash, 0); in get_hash_bucket() 559 u32 hash; in get_mapinfo_hash_bucket() local 562 ret = get_hash_bucket(local_sockaddr, mapped_sockaddr, &hash); in get_mapinfo_hash_bucket() 565 return &iwpm_hash_bucket[hash & IWPM_MAPINFO_HASH_MASK]; in get_mapinfo_hash_bucket() [all …]
|
/linux-4.1.27/fs/jbd2/ |
D | revoke.c | 107 struct list_head hash; member 134 static inline int hash(journal_t *journal, unsigned long long block) in hash() function 152 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in insert_revoke_hash() 154 list_add(&record->hash, hash_list); in insert_revoke_hash() 174 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in find_revoke_record() 178 while (&(record->hash) != hash_list) { in find_revoke_record() 183 record = (struct jbd2_revoke_record_s *) record->hash.next; in find_revoke_record() 447 list_del(&record->hash); in jbd2_journal_cancel_revoke() 556 list_del(&record->hash); in jbd2_journal_write_revoke_records() 760 list_del(&record->hash); in jbd2_journal_clear_revoke()
|
/linux-4.1.27/arch/powerpc/kernel/vdso32/ |
D | vdso32.lds.S | 19 .hash : { *(.hash) } :text 20 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.1.27/arch/powerpc/kernel/vdso64/ |
D | vdso64.lds.S | 19 .hash : { *(.hash) } :text 20 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.1.27/arch/powerpc/kvm/ |
D | book3s_64_mmu_host.c | 86 ulong hash, hpteg; in kvmppc_mmu_map_page() local 156 hash = hpt_hash(vpn, mmu_psize_defs[hpsize].shift, MMU_SEGSIZE_256M); in kvmppc_mmu_map_page() 167 hpteg = ((hash & htab_hash_mask) * HPTES_PER_GROUP); in kvmppc_mmu_map_page() 181 hash = ~hash; in kvmppc_mmu_map_page() 192 hash = ~hash; in kvmppc_mmu_map_page() 193 hpteg = ((hash & htab_hash_mask) * HPTES_PER_GROUP); in kvmppc_mmu_map_page()
|
D | book3s_32_mmu_host.c | 120 u32 page, hash; in kvmppc_mmu_get_pteg() local 125 hash = ((vsid ^ page) << 6); in kvmppc_mmu_get_pteg() 127 hash = ~hash; in kvmppc_mmu_get_pteg() 129 hash &= htabmask; in kvmppc_mmu_get_pteg() 131 pteg |= hash; in kvmppc_mmu_get_pteg() 134 htab, hash, htabmask, pteg); in kvmppc_mmu_get_pteg()
|
D | book3s_32_mmu.c | 115 u32 page, hash, pteg, htabmask; in kvmppc_mmu_book3s_32_get_pteg() local 121 hash = ((sr_vsid(sre) ^ page) << 6); in kvmppc_mmu_book3s_32_get_pteg() 123 hash = ~hash; in kvmppc_mmu_book3s_32_get_pteg() 124 hash &= htabmask; in kvmppc_mmu_book3s_32_get_pteg() 126 pteg = (vcpu_book3s->sdr1 & 0xffff0000) | hash; in kvmppc_mmu_book3s_32_get_pteg()
|
D | book3s_64_mmu.c | 138 u64 hash, pteg, htabsize; in kvmppc_mmu_book3s_64_get_pteg() local 147 hash = hpt_hash(vpn, kvmppc_mmu_book3s_64_get_pagesize(slbe), ssize); in kvmppc_mmu_book3s_64_get_pteg() 149 hash = ~hash; in kvmppc_mmu_book3s_64_get_pteg() 150 hash &= ((1ULL << 39ULL) - 1ULL); in kvmppc_mmu_book3s_64_get_pteg() 151 hash &= htabsize; in kvmppc_mmu_book3s_64_get_pteg() 152 hash <<= 7ULL; in kvmppc_mmu_book3s_64_get_pteg() 155 pteg |= hash; in kvmppc_mmu_book3s_64_get_pteg()
|
/linux-4.1.27/net/unix/ |
D | af_unix.c | 130 unsigned long hash = (unsigned long)addr; in unix_sockets_unbound() local 132 hash ^= hash >> 16; in unix_sockets_unbound() 133 hash ^= hash >> 8; in unix_sockets_unbound() 134 hash %= UNIX_HASH_SIZE; in unix_sockets_unbound() 135 return &unix_socket_table[UNIX_HASH_SIZE + hash]; in unix_sockets_unbound() 138 #define UNIX_ABSTRACT(sk) (unix_sk(sk)->addr->hash < UNIX_HASH_SIZE) 166 unsigned int hash = (__force unsigned int)csum_fold(n); in unix_hash_fold() local 168 hash ^= hash>>8; in unix_hash_fold() 169 return hash&(UNIX_HASH_SIZE-1); in unix_hash_fold() 265 int len, int type, unsigned int hash) in __unix_find_socket_byname() argument [all …]
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb3/ |
D | l2t.c | 240 int hash = arp_hash(e->addr, e->ifindex, d); in alloc_l2e() local 242 for (p = &d->l2tab[hash].first; *p; p = &(*p)->next) in alloc_l2e() 308 int hash; in t3_l2t_get() local 330 hash = arp_hash(addr, ifidx, d); in t3_l2t_get() 333 for (e = d->l2tab[hash].first; e; e = e->next) in t3_l2t_get() 346 e->next = d->l2tab[hash].first; in t3_l2t_get() 347 d->l2tab[hash].first = e; in t3_l2t_get() 405 int hash = arp_hash(addr, ifidx, d); in t3_l2t_update() local 408 for (e = d->l2tab[hash].first; e; e = e->next) in t3_l2t_update()
|
/linux-4.1.27/include/crypto/ |
D | sha.h | 91 unsigned int len, u8 *hash); 97 unsigned int len, u8 *hash); 103 unsigned int len, u8 *hash);
|
/linux-4.1.27/net/ceph/ |
D | ceph_hash.c | 86 unsigned long hash = 0; in ceph_str_hash_linux() local 91 hash = (hash + (c << 4) + (c >> 4)) * 11; in ceph_str_hash_linux() 93 return hash; in ceph_str_hash_linux()
|
/linux-4.1.27/drivers/net/ppp/ |
D | pppoe.c | 148 unsigned char hash = 0; in hash_item() local 152 hash ^= addr[i]; in hash_item() 154 hash ^= (__force __u32)sid >> i; in hash_item() 156 hash ^= hash >> i; in hash_item() 158 return hash & PPPOE_HASH_MASK; in hash_item() 169 int hash = hash_item(sid, addr); in __get_item() local 172 ret = pn->hash_table[hash]; in __get_item() 186 int hash = hash_item(po->pppoe_pa.sid, po->pppoe_pa.remote); in __set_item() local 189 ret = pn->hash_table[hash]; in __set_item() 198 po->next = pn->hash_table[hash]; in __set_item() [all …]
|
/linux-4.1.27/drivers/char/ |
D | random.c | 1076 } hash; in extract_buf() local 1084 sha_init(hash.w); in extract_buf() 1089 hash.l[i] = v; in extract_buf() 1095 sha_transform(hash.w, (__u8 *)(r->pool + i), workspace); in extract_buf() 1106 __mix_pool_bytes(r, hash.w, sizeof(hash.w)); in extract_buf() 1116 hash.w[0] ^= hash.w[3]; in extract_buf() 1117 hash.w[1] ^= hash.w[4]; in extract_buf() 1118 hash.w[2] ^= rol32(hash.w[2], 16); in extract_buf() 1120 memcpy(out, &hash, EXTRACT_SIZE); in extract_buf() 1121 memzero_explicit(&hash, sizeof(hash)); in extract_buf() [all …]
|
/linux-4.1.27/fs/logfs/ |
D | dir.c | 100 u32 hash = seed; in hash_32() local 104 hash = hash * 293 + s[i]; in hash_32() 105 return hash; in hash_32() 134 static pgoff_t hash_index(u32 hash, int round) in hash_index() argument 143 return hash % i0_blocks; in hash_index() 145 return i0_blocks + hash % (i1_blocks - i0_blocks); in hash_index() 147 return i1_blocks + hash % (i2_blocks - i1_blocks); in hash_index() 149 return i2_blocks + hash % (i3_blocks - i2_blocks); in hash_index() 151 return i3_blocks + 16 * (hash % (((1<<31) - i3_blocks) / 16)) in hash_index() 162 u32 hash = hash_32(name->name, name->len, 0); in logfs_get_dd_page() local [all …]
|
/linux-4.1.27/fs/hfsplus/ |
D | unicode.c | 343 unsigned long hash; in hfsplus_hash_dentry() local 349 hash = init_name_hash(); in hfsplus_hash_dentry() 368 hash = partial_name_hash(c2, hash); in hfsplus_hash_dentry() 375 hash = partial_name_hash(c2, hash); in hfsplus_hash_dentry() 378 str->hash = end_name_hash(hash); in hfsplus_hash_dentry()
|
/linux-4.1.27/net/sunrpc/ |
D | cache.c | 55 struct cache_head *key, int hash) in sunrpc_cache_lookup() argument 60 head = &detail->hash_table[hash]; in sunrpc_cache_lookup() 140 struct cache_head *new, struct cache_head *old, int hash) in sunrpc_cache_update() argument 171 head = &detail->hash_table[hash]; in sunrpc_cache_update() 530 hlist_del_init(&dreq->hash); in __unhash_deferred_req() 539 int hash = DFR_HASH(item); in __hash_deferred_req() local 542 hlist_add_head(&dreq->hash, &cache_defer_hash[hash]); in __hash_deferred_req() 594 if (!hlist_unhashed(&sleeper.handle.hash)) { in cache_wait_req() 665 int hash = DFR_HASH(item); in cache_revisit_request() local 670 hlist_for_each_entry_safe(dreq, tmp, &cache_defer_hash[hash], hash) in cache_revisit_request() [all …]
|
D | svcauth.c | 131 hlist_del(&dom->hash); in auth_domain_put() 148 hlist_for_each_entry(hp, head, hash) { in auth_domain_lookup() 156 hlist_add_head(&new->hash, head); in auth_domain_lookup()
|
/linux-4.1.27/fs/f2fs/ |
D | hash.c | 75 __u32 hash; in f2fs_dentry_hash() local 101 hash = buf[0]; in f2fs_dentry_hash() 102 f2fs_hash = cpu_to_le32(hash & ~F2FS_HASH_COL_BIT); in f2fs_dentry_hash()
|
/linux-4.1.27/fs/gfs2/ |
D | glock.c | 53 int hash; /* hash bucket index */ member 98 static inline void spin_lock_bucket(unsigned int hash) in spin_lock_bucket() argument 100 hlist_bl_lock(&gl_hash_table[hash]); in spin_lock_bucket() 103 static inline void spin_unlock_bucket(unsigned int hash) in spin_unlock_bucket() argument 105 hlist_bl_unlock(&gl_hash_table[hash]); in spin_unlock_bucket() 222 static struct gfs2_glock *search_bucket(unsigned int hash, in search_bucket() argument 229 hlist_bl_for_each_entry_rcu(gl, h, &gl_hash_table[hash], gl_list) { in search_bucket() 709 unsigned int hash = gl_hash(sdp, &name); in gfs2_glock_get() local 714 gl = search_bucket(hash, sdp, &name); in gfs2_glock_get() 749 gl->gl_hash = hash; in gfs2_glock_get() [all …]
|
D | recovery.c | 156 u32 hash; in get_log_header() local 163 hash = crc32_le((u32)~0, bh->b_data, sizeof(struct gfs2_log_header) - in get_log_header() 165 hash = crc32_le(hash, (unsigned char const *)¬hing, sizeof(nothing)); in get_log_header() 166 hash ^= (u32)~0; in get_log_header() 170 if (error || lh.lh_blkno != blk || lh.lh_hash != hash) in get_log_header() 387 u32 hash; in clean_journal() local 420 hash = gfs2_disk_hash((const char *)lh, sizeof(struct gfs2_log_header)); in clean_journal() 421 lh->lh_hash = cpu_to_be32(hash); in clean_journal()
|
D | quota.c | 99 static inline void spin_lock_bucket(unsigned int hash) in spin_lock_bucket() argument 101 hlist_bl_lock(&qd_hash_table[hash]); in spin_lock_bucket() 104 static inline void spin_unlock_bucket(unsigned int hash) in spin_unlock_bucket() argument 106 hlist_bl_unlock(&qd_hash_table[hash]); in spin_unlock_bucket() 214 static struct gfs2_quota_data *qd_alloc(unsigned hash, struct gfs2_sbd *sdp, struct kqid qid) in qd_alloc() argument 229 qd->qd_hash = hash; in qd_alloc() 243 static struct gfs2_quota_data *gfs2_qd_search_bucket(unsigned int hash, in gfs2_qd_search_bucket() argument 250 hlist_bl_for_each_entry_rcu(qd, h, &qd_hash_table[hash], qd_hlist) { in gfs2_qd_search_bucket() 269 unsigned int hash = gfs2_qd_hash(sdp, qid); in qd_get() local 272 *qdp = qd = gfs2_qd_search_bucket(hash, sdp, qid); in qd_get() [all …]
|
/linux-4.1.27/drivers/scsi/ |
D | libiscsi_tcp.c | 173 segment->hash = NULL; in iscsi_tcp_segment_splice_digest() 202 if (segment->hash && copied) { in iscsi_tcp_segment_done() 217 crypto_hash_update(segment->hash, &sg, copied); in iscsi_tcp_segment_done() 262 if (segment->hash) { in iscsi_tcp_segment_done() 263 crypto_hash_final(segment->hash, segment->digest); in iscsi_tcp_segment_done() 313 iscsi_tcp_dgst_header(struct hash_desc *hash, const void *hdr, size_t hdrlen, in iscsi_tcp_dgst_header() argument 319 crypto_hash_digest(hash, &sg, hdrlen, digest); in iscsi_tcp_dgst_header() 344 iscsi_segment_done_fn_t *done, struct hash_desc *hash) in __iscsi_segment_init() argument 350 if (hash) { in __iscsi_segment_init() 351 segment->hash = hash; in __iscsi_segment_init() [all …]
|
/linux-4.1.27/net/bridge/ |
D | br_fdb.c | 177 struct hlist_head *head = &br->hash[br_mac_hash(addr, vid)]; in br_fdb_find_delete_local() 200 hlist_for_each(h, &br->hash[i]) { in br_fdb_changeaddr() 281 hlist_for_each_entry_safe(f, n, &br->hash[i], hlist) { in br_fdb_cleanup() 306 hlist_for_each_entry_safe(f, n, &br->hash[i], hlist) { in br_fdb_flush() 327 hlist_for_each_safe(h, g, &br->hash[i]) { in br_fdb_delete_by_port() 353 &br->hash[br_mac_hash(addr, vid)], hlist) { in __br_fdb_get() 404 hlist_for_each_entry_rcu(f, &br->hash[i], hlist) { in br_fdb_fillbuf() 494 struct hlist_head *head = &br->hash[br_mac_hash(addr, vid)]; in fdb_insert() 538 struct hlist_head *head = &br->hash[br_mac_hash(addr, vid)]; in br_fdb_update() 696 hlist_for_each_entry_rcu(f, &br->hash[i], hlist) { in br_fdb_dump() [all …]
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/ |
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() 146 int hash; in cxgb4_clip_release() local 149 hash = clip_addr_hash(ctbl, addr, v6); in cxgb4_clip_release() 152 list_for_each_entry(cte, &ctbl->hash_list[hash], list) { in cxgb4_clip_release()
|
D | l2t.c | 294 for (p = &d->l2tab[e->hash].first; *p; p = &(*p)->next) in alloc_l2e() 371 int hash = addr_hash(addr, addr_len, ifidx); in cxgb4_l2t_get() local 384 for (e = d->l2tab[hash].first; e; e = e->next) in cxgb4_l2t_get() 402 e->hash = hash; in cxgb4_l2t_get() 408 e->next = d->l2tab[hash].first; in cxgb4_l2t_get() 409 d->l2tab[hash].first = e; in cxgb4_l2t_get() 484 int hash = addr_hash(addr, addr_len, ifidx); in t4_l2t_update() local 487 for (e = d->l2tab[hash].first; e; e = e->next) in t4_l2t_update()
|
/linux-4.1.27/drivers/firmware/google/ |
D | gsmi.c | 684 u64 hash = val; in local_hash_64() local 687 u64 n = hash; in local_hash_64() 689 hash -= n; in local_hash_64() 691 hash -= n; in local_hash_64() 693 hash += n; in local_hash_64() 695 hash -= n; in local_hash_64() 697 hash += n; in local_hash_64() 699 hash += n; in local_hash_64() 702 return hash >> (64 - bits); in local_hash_64() 725 u32 hash; in gsmi_system_valid() local [all …]
|
/linux-4.1.27/fs/dlm/ |
D | dir.c | 35 int dlm_hash2nodeid(struct dlm_ls *ls, uint32_t hash) in dlm_hash2nodeid() argument 42 node = (hash >> 16) % ls->ls_total_weight; in dlm_hash2nodeid() 203 uint32_t hash, bucket; in find_rsb_root() local 206 hash = jhash(name, len, 0); in find_rsb_root() 207 bucket = hash & (ls->ls_rsbtbl_size - 1); in find_rsb_root()
|
/linux-4.1.27/drivers/staging/skein/ |
D | skein_api.c | 221 int skein_final(struct skein_ctx *ctx, u8 *hash) in skein_final() argument 229 ret = skein_256_final(&ctx->m.s256, (u8 *)hash); in skein_final() 232 ret = skein_512_final(&ctx->m.s512, (u8 *)hash); in skein_final() 235 ret = skein_1024_final(&ctx->m.s1024, (u8 *)hash); in skein_final()
|
D | Kconfig | 7 Skein secure hash algorithm is one of 5 finalists from the NIST SHA3 13 http://www.skein-hash.info/sites/default/files/skein1.3.pdf
|
/linux-4.1.27/fs/xfs/ |
D | xfs_attr_list.c | 49 if (sa->hash < sb->hash) { in xfs_attr_shortform_compare() 51 } else if (sa->hash > sb->hash) { in xfs_attr_shortform_compare() 154 sbp->hash = xfs_da_hashname(sfe->nameval, sfe->namelen); in xfs_attr_shortform_list() 177 if (sbp->hash == cursor->hashval) { in xfs_attr_shortform_list() 182 } else if (sbp->hash > cursor->hashval) { in xfs_attr_shortform_list() 195 if (cursor->hashval != sbp->hash) { in xfs_attr_shortform_list() 196 cursor->hashval = sbp->hash; in xfs_attr_shortform_list()
|
/linux-4.1.27/Documentation/networking/ |
D | gianfar.txt | 26 The gianfar driver supports using the group hash table on the 27 TSEC (and the extended hash table on the eTSEC) for multicast 29 before the hash tables. See Linux documentation on how to join
|
D | scaling.txt | 34 The filter used in RSS is typically a hash function over the network 35 and/or transport layer headers-- for example, a 4-tuple hash over 39 by masking out the low order seven bits of the computed hash for the 40 packet (usually a Toeplitz hash), taking this number as a key into the 59 hash, is usually programmed by the driver at initialization. The 109 2) software filters can easily be added to hash over new protocols, 119 flow hash over the packet’s addresses or ports (2-tuple or 4-tuple hash 120 depending on the protocol). This serves as a consistent hash of the 121 associated flow of the packet. The hash is either provided by hardware 122 or will be computed in the stack. Capable hardware can pass the hash in [all …]
|
/linux-4.1.27/security/smack/ |
D | smack_access.c | 413 unsigned int hash; in smk_insert_entry() local 416 hash = full_name_hash(skp->smk_known, strlen(skp->smk_known)); in smk_insert_entry() 417 head = &smack_known_hash[hash & (SMACK_HASH_SLOTS - 1)]; in smk_insert_entry() 432 unsigned int hash; in smk_find_entry() local 436 hash = full_name_hash(string, strlen(string)); in smk_find_entry() 437 head = &smack_known_hash[hash & (SMACK_HASH_SLOTS - 1)]; in smk_find_entry()
|
/linux-4.1.27/Documentation/security/ |
D | IMA-templates.txt | 6 The original 'ima' template is fixed length, containing the filedata hash 7 and pathname. The filedata hash is limited to 20 bytes (md5/sha1). 62 calculated with the SHA1 or MD5 hash algorithm; 64 - 'd-ng': the digest of the event, calculated with an arbitrary hash 65 algorithm (field format: [<hash algo>:]digest, where the digest 66 prefix is shown only if the hash algorithm is not SHA1 or MD5);
|
/linux-4.1.27/drivers/mtd/tests/ |
D | nandbiterrs.c | 86 static uint8_t hash(unsigned offset) in hash() function 175 if (rbuffer[i] != hash(i+seed)) { in verify_page() 177 i, hash(i+seed), rbuffer[i]); in verify_page() 222 wbuffer[i] = hash(i+seed); in incremental_errors_test() 285 wbuffer[i] = hash(i+seed); in overwrite_test()
|
/linux-4.1.27/include/net/netfilter/ |
D | nf_conntrack.h | 122 nf_ct_tuplehash_to_ctrack(const struct nf_conntrack_tuple_hash *hash) in nf_ct_tuplehash_to_ctrack() argument 124 return container_of(hash, struct nf_conn, in nf_ct_tuplehash_to_ctrack() 125 tuplehash[hash->tuple.dst.dir]); in nf_ct_tuplehash_to_ctrack() 184 void nf_ct_free_hashtable(void *hash, unsigned int size);
|
/linux-4.1.27/arch/um/kernel/ |
D | dyn.lds.S | 22 .hash : { *(.hash) } 23 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.1.27/arch/powerpc/boot/ |
D | zImage.lds.S | 36 .hash : { *(.hash) }
|
/linux-4.1.27/drivers/net/ethernet/amd/ |
D | am79c961a.c | 199 static void am79c961_mc_hash(char *addr, u16 *hash) in am79c961_mc_hash() argument 209 hash[idx] |= 1 << bit; in am79c961_mc_hash() 212 static unsigned int am79c961_get_rx_mode(struct net_device *dev, u16 *hash) in am79c961_get_rx_mode() argument 218 memset(hash, 0xff, 4 * sizeof(*hash)); in am79c961_get_rx_mode() 220 memset(hash, 0xff, 4 * sizeof(*hash)); in am79c961_get_rx_mode() 224 memset(hash, 0, 4 * sizeof(*hash)); in am79c961_get_rx_mode() 227 am79c961_mc_hash(ha->addr, hash); in am79c961_get_rx_mode()
|
/linux-4.1.27/net/l2tp/ |
D | l2tp_core.c | 283 int hash; in l2tp_session_find_nth() local 288 for (hash = 0; hash < L2TP_HASH_SIZE; hash++) { in l2tp_session_find_nth() 289 hlist_for_each_entry(session, &tunnel->session_hlist[hash], hlist) { in l2tp_session_find_nth() 309 int hash; in l2tp_session_find_by_ifname() local 313 for (hash = 0; hash < L2TP_HASH_SIZE_2; hash++) { in l2tp_session_find_by_ifname() 314 hlist_for_each_entry_rcu(session, &pn->l2tp_session_hlist[hash], global_hlist) { in l2tp_session_find_by_ifname() 1240 int hash; in l2tp_tunnel_closeall() local 1251 for (hash = 0; hash < L2TP_HASH_SIZE; hash++) { in l2tp_tunnel_closeall() 1253 hlist_for_each_safe(walk, tmp, &tunnel->session_hlist[hash]) { in l2tp_tunnel_closeall() 1838 int hash; in l2tp_init_net() local [all …]
|
D | l2tp_debugfs.c | 106 int hash; in l2tp_dfs_seq_tunnel_show() local 111 for (hash = 0; hash < L2TP_HASH_SIZE; hash++) { in l2tp_dfs_seq_tunnel_show() 112 hlist_for_each_safe(walk, tmp, &tunnel->session_hlist[hash]) { in l2tp_dfs_seq_tunnel_show()
|
/linux-4.1.27/fs/lockd/ |
D | host.c | 69 unsigned int hash = (__force u32)n ^ ((__force u32)n >> 16); in __nlm_hash32() local 70 return hash ^ (hash >> 8); in __nlm_hash32() 91 unsigned int hash; in nlm_hash_address() local 95 hash = __nlm_hash_addr4(sap); in nlm_hash_address() 98 hash = __nlm_hash_addr6(sap); in nlm_hash_address() 101 hash = 0; in nlm_hash_address() 103 return hash & (NLM_HOST_NRHASH - 1); in nlm_hash_address()
|
/linux-4.1.27/Documentation/devicetree/bindings/net/ |
D | altera_tse.txt | 31 - altr,has-hash-multicast-filter: 32 If present, TSE supports a hash based multicast filter. 33 Otherwise, hash-based multicast filtering is not supported. 74 altr,has-hash-multicast-filter; 112 altr,has-hash-multicast-filter;
|
/linux-4.1.27/drivers/pcmcia/ |
D | ds.c | 50 u32 hash; in pcmcia_check_driver() local 61 hash = crc32(0, did->prod_id[i], strlen(did->prod_id[i])); in pcmcia_check_driver() 62 if (hash == did->prod_id_hash[i]) in pcmcia_check_driver() 68 did->prod_id_hash[i], hash); in pcmcia_check_driver() 930 u32 hash[4] = { 0, 0, 0, 0}; in pcmcia_bus_uevent() local 941 hash[i] = crc32(0, p_dev->prod_id[i], strlen(p_dev->prod_id[i])); in pcmcia_bus_uevent() 957 hash[0], in pcmcia_bus_uevent() 958 hash[1], in pcmcia_bus_uevent() 959 hash[2], in pcmcia_bus_uevent() 960 hash[3])) in pcmcia_bus_uevent() [all …]
|
/linux-4.1.27/arch/x86/crypto/ |
D | crc32-pclmul_glue.c | 91 static int crc32_pclmul_setkey(struct crypto_shash *hash, const u8 *key, in crc32_pclmul_setkey() argument 94 u32 *mctx = crypto_shash_ctx(hash); in crc32_pclmul_setkey() 97 crypto_shash_set_flags(hash, CRYPTO_TFM_RES_BAD_KEY_LEN); in crc32_pclmul_setkey()
|
/linux-4.1.27/Documentation/power/ |
D | s2ram.txt | 44 hash matches drivers/base/power/resume.c:28 45 hash matches device 0000:01:00.0 52 If no device matches the hash (or any matches appear to be false positives), 54 until after the hash is checked. You can check the hash against the current
|
/linux-4.1.27/drivers/staging/lustre/include/linux/libcfs/ |
D | libcfs_crypto.h | 132 unsigned char *hash, unsigned int *hash_len); 184 unsigned char *hash, unsigned int *hash_len);
|
/linux-4.1.27/drivers/net/ipvlan/ |
D | ipvlan_core.c | 60 u8 hash; in ipvlan_ht_addr_lookup() local 62 hash = is_v6 ? ipvlan_get_v6_hash(iaddr) : in ipvlan_ht_addr_lookup() 64 hlist_for_each_entry_rcu(addr, &port->hlhead[hash], hlnode) { in ipvlan_ht_addr_lookup() 79 u8 hash; in ipvlan_ht_addr_add() local 81 hash = (addr->atype == IPVL_IPV6) ? in ipvlan_ht_addr_add() 85 hlist_add_head_rcu(&addr->hlnode, &port->hlhead[hash]); in ipvlan_ht_addr_add() 186 u32 hash = jhash_1word(__get_unaligned_cpu32(addr+2), in ipvlan_mac_hash() local 189 return hash & IPVLAN_MAC_FILTER_MASK; in ipvlan_mac_hash()
|
/linux-4.1.27/arch/parisc/kernel/ |
D | vmlinux.lds.S | 156 *(.hash) 157 *(.gnu.hash)
|
/linux-4.1.27/drivers/crypto/ |
D | talitos.c | 1835 u8 *hash) in keyhash() argument 1857 ahash_request_set_crypt(req, sg, hash, keylen); in keyhash() 1885 u8 hash[SHA512_DIGEST_SIZE]; in ahash_setkey() local 1892 ret = keyhash(tfm, key, keylen, hash); in ahash_setkey() 1900 memcpy(ctx->key, hash, digestsize); in ahash_setkey() 1913 struct ahash_alg hash; member 2192 .alg.hash = { 2207 .alg.hash = { 2222 .alg.hash = { 2237 .alg.hash = { [all …]
|
/linux-4.1.27/drivers/crypto/ux500/ |
D | Kconfig | 21 This selects the hash driver for the UX500_HASH hardware. 25 bool "Activate ux500 platform debug-mode for crypto and hash block"
|