/linux-4.4.14/net/batman-adv/ |
D | hash.c | 26 static void batadv_hash_init(struct batadv_hashtable *hash) in batadv_hash_init() argument 30 for (i = 0; i < hash->size; i++) { in batadv_hash_init() 31 INIT_HLIST_HEAD(&hash->table[i]); in batadv_hash_init() 32 spin_lock_init(&hash->list_locks[i]); in batadv_hash_init() 37 void batadv_hash_destroy(struct batadv_hashtable *hash) in batadv_hash_destroy() argument 39 kfree(hash->list_locks); in batadv_hash_destroy() 40 kfree(hash->table); in batadv_hash_destroy() 41 kfree(hash); in batadv_hash_destroy() 47 struct batadv_hashtable *hash; in batadv_hash_new() local 49 hash = kmalloc(sizeof(*hash), GFP_ATOMIC); in batadv_hash_new() [all …]
|
D | hash.h | 55 void batadv_hash_set_lock_class(struct batadv_hashtable *hash, 59 void batadv_hash_destroy(struct batadv_hashtable *hash); 65 static inline void batadv_hash_delete(struct batadv_hashtable *hash, in batadv_hash_delete() argument 74 for (i = 0; i < hash->size; i++) { in batadv_hash_delete() 75 head = &hash->table[i]; in batadv_hash_delete() 76 list_lock = &hash->list_locks[i]; in batadv_hash_delete() 88 batadv_hash_destroy(hash); in batadv_hash_delete() 102 static inline int batadv_hash_add(struct batadv_hashtable *hash, in batadv_hash_add() argument 114 if (!hash) in batadv_hash_add() 117 index = choose(data, hash->size); in batadv_hash_add() [all …]
|
D | bridge_loop_avoidance.c | 65 u32 hash = 0; in batadv_choose_claim() local 67 hash = jhash(&claim->addr, sizeof(claim->addr), hash); in batadv_choose_claim() 68 hash = jhash(&claim->vid, sizeof(claim->vid), hash); in batadv_choose_claim() 70 return hash % size; in batadv_choose_claim() 77 u32 hash = 0; in batadv_choose_backbone_gw() local 79 hash = jhash(&claim->addr, sizeof(claim->addr), hash); in batadv_choose_backbone_gw() 80 hash = jhash(&claim->vid, sizeof(claim->vid), hash); in batadv_choose_backbone_gw() 82 return hash % size; in batadv_choose_backbone_gw() 155 struct batadv_hashtable *hash = bat_priv->bla.claim_hash; in batadv_claim_hash_find() local 161 if (!hash) in batadv_claim_hash_find() [all …]
|
D | distributed-arp-table.c | 107 if (!bat_priv->dat.hash) in __batadv_dat_purge() 110 for (i = 0; i < bat_priv->dat.hash->size; i++) { in __batadv_dat_purge() 111 head = &bat_priv->dat.hash->table[i]; in __batadv_dat_purge() 112 list_lock = &bat_priv->dat.hash->list_locks[i]; in __batadv_dat_purge() 226 u32 hash = 0; in batadv_hash_dat() local 233 hash += key[i]; in batadv_hash_dat() 234 hash += (hash << 10); in batadv_hash_dat() 235 hash ^= (hash >> 6); in batadv_hash_dat() 240 hash += key[i]; in batadv_hash_dat() 241 hash += (hash << 10); in batadv_hash_dat() [all …]
|
D | originator.h | 86 u32 hash = 0; in batadv_choose_orig() local 88 hash = jhash(data, ETH_ALEN, hash); in batadv_choose_orig() 89 return hash % size; in batadv_choose_orig() 95 struct batadv_hashtable *hash = bat_priv->orig_hash; in batadv_orig_hash_find() local 100 if (!hash) in batadv_orig_hash_find() 103 index = batadv_choose_orig(data, hash->size); in batadv_orig_hash_find() 104 head = &hash->table[index]; in batadv_orig_hash_find()
|
D | network-coding.c | 378 struct batadv_hashtable *hash = bat_priv->orig_hash; in batadv_nc_purge_orig_hash() local 383 if (!hash) in batadv_nc_purge_orig_hash() 387 for (i = 0; i < hash->size; i++) { in batadv_nc_purge_orig_hash() 388 head = &hash->table[i]; in batadv_nc_purge_orig_hash() 409 struct batadv_hashtable *hash, in batadv_nc_purge_paths() argument 419 for (i = 0; i < hash->size; i++) { in batadv_nc_purge_paths() 420 head = &hash->table[i]; in batadv_nc_purge_paths() 421 lock = &hash->list_locks[i]; in batadv_nc_purge_paths() 480 u32 hash = 0; in batadv_nc_hash_choose() local 482 hash = jhash(&nc_path->prev_hop, sizeof(nc_path->prev_hop), hash); in batadv_nc_hash_choose() [all …]
|
D | translation-table.c | 93 u32 hash = 0; in batadv_choose_tt() local 96 hash = jhash(&tt->addr, ETH_ALEN, hash); in batadv_choose_tt() 97 hash = jhash(&tt->vid, sizeof(tt->vid), hash); in batadv_choose_tt() 99 return hash % size; in batadv_choose_tt() 112 batadv_tt_hash_find(struct batadv_hashtable *hash, const u8 *addr, in batadv_tt_hash_find() argument 119 if (!hash) in batadv_tt_hash_find() 125 index = batadv_choose_tt(&to_search, hash->size); in batadv_tt_hash_find() 126 head = &hash->table[index]; in batadv_tt_hash_find() 939 struct batadv_hashtable *hash = bat_priv->tt.local_hash; in batadv_tt_local_seq_print_text() local 963 for (i = 0; i < hash->size; i++) { in batadv_tt_local_seq_print_text() [all …]
|
D | originator.c | 606 struct batadv_hashtable *hash = bat_priv->orig_hash; in batadv_originator_free() local 613 if (!hash) in batadv_originator_free() 620 for (i = 0; i < hash->size; i++) { in batadv_originator_free() 621 head = &hash->table[i]; in batadv_originator_free() 622 list_lock = &hash->list_locks[i]; in batadv_originator_free() 633 batadv_hash_destroy(hash); in batadv_originator_free() 963 struct batadv_hashtable *hash = bat_priv->orig_hash; in _batadv_purge_orig() local 970 if (!hash) in _batadv_purge_orig() 974 for (i = 0; i < hash->size; i++) { in _batadv_purge_orig() 975 head = &hash->table[i]; in _batadv_purge_orig() [all …]
|
/linux-4.4.14/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 | 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.4.14/net/ceph/crush/ |
D | hash.c | 28 __u32 hash = crush_hash_seed ^ a; in crush_hash32_rjenkins1() local 32 crush_hashmix(b, x, hash); in crush_hash32_rjenkins1() 33 crush_hashmix(y, a, hash); in crush_hash32_rjenkins1() 34 return hash; in crush_hash32_rjenkins1() 39 __u32 hash = crush_hash_seed ^ a ^ b; in crush_hash32_rjenkins1_2() local 42 crush_hashmix(a, b, hash); in crush_hash32_rjenkins1_2() 43 crush_hashmix(x, a, hash); in crush_hash32_rjenkins1_2() 44 crush_hashmix(b, y, hash); in crush_hash32_rjenkins1_2() 45 return hash; in crush_hash32_rjenkins1_2() 50 __u32 hash = crush_hash_seed ^ a ^ b ^ c; in crush_hash32_rjenkins1_3() local [all …]
|
/linux-4.4.14/include/linux/ |
D | rhashtable.h | 181 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 183 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 186 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 187 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 206 unsigned int hash) in rht_bucket_index() argument 208 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index() 215 unsigned int hash; in rht_key_hashfn() local 219 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn() 224 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn() 226 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn() [all …]
|
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 | 53 extern int tpm_pcr_extend(u32 chip_num, int pcr_idx, const u8 *hash); 70 static inline int tpm_pcr_extend(u32 chip_num, int pcr_idx, const u8 *hash) { in tpm_pcr_extend() argument
|
/linux-4.4.14/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…
|
D | crypto-API.xml.db | 59 API-crypto-alloc-hash 60 API-crypto-free-hash 61 API-crypto-has-hash 62 API-crypto-hash-blocksize 63 API-crypto-hash-digestsize 64 API-crypto-hash-init 65 API-crypto-hash-update 66 API-crypto-hash-final 67 API-crypto-hash-digest 68 API-crypto-hash-setkey [all …]
|
/linux-4.4.14/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.4.14/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 | 363 __u32 hash; member 418 int ext4_htree_store_dirent(struct file *dir_file, __u32 hash, in ext4_htree_store_dirent() argument 436 new_fn->hash = hash; in ext4_htree_store_dirent() 452 if ((new_fn->hash == fname->hash) && in ext4_htree_store_dirent() 459 if (new_fn->hash < fname->hash) in ext4_htree_store_dirent() 461 else if (new_fn->hash > fname->hash) in ext4_htree_store_dirent() 494 ctx->pos = hash2pos(file, fname->hash, fname->minor_hash); in call_filldir() 570 info->curr_hash = fname->hash; in ext4_dx_readdir() 579 info->curr_hash = fname->hash; in ext4_dx_readdir()
|
D | xattr.c | 1533 __u32 hash = le32_to_cpu(BHDR(bh)->h_hash); in ext4_xattr_cache_insert() local 1542 error = mb_cache_entry_insert(ce, bh->b_bdev, bh->b_blocknr, hash); in ext4_xattr_cache_insert() 1550 ea_bdebug(bh, "inserting [%x]", (int)hash); in ext4_xattr_cache_insert() 1607 __u32 hash = le32_to_cpu(header->h_hash); in ext4_xattr_cache_find() local 1613 ea_idebug(inode, "looking for cached blocks [%x]", (int)hash); in ext4_xattr_cache_find() 1616 hash); in ext4_xattr_cache_find() 1640 ce = mb_cache_entry_find_next(ce, inode->i_sb->s_bdev, hash); in ext4_xattr_cache_find() 1656 __u32 hash = 0; in ext4_xattr_hash_entry() local 1661 hash = (hash << NAME_HASH_SHIFT) ^ in ext4_xattr_hash_entry() 1662 (hash >> (8*sizeof(hash) - NAME_HASH_SHIFT)) ^ in ext4_xattr_hash_entry() [all …]
|
/linux-4.4.14/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() 380 unsigned int hash) in rhashtable_check_elasticity() argument 385 rht_for_each(head, tbl, hash) in rhashtable_check_elasticity() 447 unsigned int hash; in rhashtable_insert_slow() local 451 hash = head_hashfn(ht, tbl, obj); in rhashtable_insert_slow() 452 spin_lock_nested(rht_bucket_lock(tbl, hash), SINGLE_DEPTH_NESTING); in rhashtable_insert_slow() 463 if (rhashtable_check_elasticity(ht, tbl, hash) || in rhashtable_insert_slow() 469 head = rht_dereference_bucket(tbl->buckets[hash], tbl, hash); in rhashtable_insert_slow() 473 rcu_assign_pointer(tbl->buckets[hash], obj); in rhashtable_insert_slow() [all …]
|
D | digsig.c | 196 unsigned char hash[SHA1_DIGEST_SIZE]; in digsig_verify() local 236 crypto_shash_final(desc, hash); in digsig_verify() 242 hash, sizeof(hash)); in digsig_verify()
|
/linux-4.4.14/kernel/bpf/ |
D | hashtab.c | 30 u32 hash; member 123 static inline struct hlist_head *select_bucket(struct bpf_htab *htab, u32 hash) in select_bucket() argument 125 return &htab->buckets[hash & (htab->n_buckets - 1)]; in select_bucket() 128 static struct htab_elem *lookup_elem_raw(struct hlist_head *head, u32 hash, in lookup_elem_raw() argument 134 if (l->hash == hash && !memcmp(&l->key, key, key_size)) in lookup_elem_raw() 146 u32 hash, key_size; in htab_map_lookup_elem() local 153 hash = htab_map_hash(key, key_size); in htab_map_lookup_elem() 155 head = select_bucket(htab, hash); in htab_map_lookup_elem() 157 l = lookup_elem_raw(head, hash, key, key_size); in htab_map_lookup_elem() 171 u32 hash, key_size; in htab_map_get_next_key() local [all …]
|
/linux-4.4.14/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.4.14/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(MD5_H0); in octeon_md5_init() 73 mctx->hash[1] = cpu_to_le32(MD5_H1); in octeon_md5_init() 74 mctx->hash[2] = cpu_to_le32(MD5_H2); in octeon_md5_init() 75 mctx->hash[3] = cpu_to_le32(MD5_H3); 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.4.14/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.4.14/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.4.14/arch/powerpc/crypto/ |
D | md5-glue.c | 40 sctx->hash[0] = MD5_H0; in ppc_md5_init() 41 sctx->hash[1] = MD5_H1; in ppc_md5_init() 42 sctx->hash[2] = MD5_H2; in ppc_md5_init() 43 sctx->hash[3] = MD5_H3; 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.4.14/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_cmdbuf_res.c | 45 struct drm_hash_item hash; member 84 struct drm_hash_item *hash; in vmw_cmdbuf_res_lookup() local 88 ret = drm_ht_find_item(&man->resources, key, &hash); in vmw_cmdbuf_res_lookup() 93 (drm_hash_entry(hash, struct vmw_cmdbuf_res, hash)->res); in vmw_cmdbuf_res_lookup() 109 WARN_ON(drm_ht_remove_item(&man->resources, &entry->hash)); in vmw_cmdbuf_res_free() 173 &entry->hash); in vmw_cmdbuf_res_revert() 211 cres->hash.key = user_key | (res_type << 24); in vmw_cmdbuf_res_add() 212 ret = drm_ht_insert_item(&man->resources, &cres->hash); in vmw_cmdbuf_res_add() 248 struct drm_hash_item *hash; in vmw_cmdbuf_res_remove() local 252 &hash); in vmw_cmdbuf_res_remove() [all …]
|
/linux-4.4.14/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() 371 unsigned int hash, reply_hash; in nf_ct_delete_from_lists() local 379 hash = hash_conntrack(net, in nf_ct_delete_from_lists() 383 } while (nf_conntrack_double_lock(net, hash, reply_hash, sequence)); in nf_ct_delete_from_lists() 386 nf_conntrack_double_unlock(hash, reply_hash); in nf_ct_delete_from_lists() 449 const struct nf_conntrack_tuple *tuple, u32 hash) in ____nf_conntrack_find() argument 453 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 | 298 u32 hash; in count_them() local 301 hash = connlimit_iphash6(addr, mask); in count_them() 302 root = &data->climit_root6[hash]; in count_them() 304 hash = connlimit_iphash(addr->ip & mask->ip); in count_them() 305 root = &data->climit_root4[hash]; in count_them() 308 spin_lock_bh(&xt_connlimit_locks[hash % CONNLIMIT_LOCK_SLOTS]); in count_them() 312 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.4.14/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.4.14/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 | 99 } hash; in ima_store_template() local 105 hash.hdr.algo = HASH_ALGO_SHA1; in ima_store_template() 108 num_fields, &hash.hdr); in ima_store_template() 115 memcpy(entry->digest, hash.hdr.digest, hash.hdr.length); in ima_store_template() 202 } hash; in ima_collect_measurement() local 217 hash.hdr.algo = ima_hash_algo; in ima_collect_measurement() 220 ima_get_hash_algo(*xattr_value, *xattr_len, &hash.hdr); in ima_collect_measurement() 222 result = ima_calc_file_hash(file, &hash.hdr); in ima_collect_measurement() 224 int length = sizeof(hash.hdr) + hash.hdr.length; in ima_collect_measurement() 229 memcpy(iint->ima_hash, &hash, length); in ima_collect_measurement() [all …]
|
D | ima_init.c | 59 } hash; in ima_add_boot_aggregate() local 62 memset(&hash, 0, sizeof(hash)); in ima_add_boot_aggregate() 63 iint->ima_hash = &hash.hdr; in ima_add_boot_aggregate() 68 result = ima_calc_boot_aggregate(&hash.hdr); in ima_add_boot_aggregate()
|
D | ima_template_lib.c | 205 } hash; in ima_eventdigest_init() local 211 memset(&hash, 0, sizeof(hash)); in ima_eventdigest_init() 226 hash.hdr.algo = ima_template_hash_algo_allowed(ima_hash_algo) ? in ima_eventdigest_init() 228 result = ima_calc_file_hash(event_data->file, &hash.hdr); in ima_eventdigest_init() 235 cur_digest = hash.hdr.digest; in ima_eventdigest_init() 236 cur_digestsize = hash.hdr.length; in ima_eventdigest_init()
|
D | ima.h | 108 int ima_calc_file_hash(struct file *file, struct ima_digest_data *hash); 111 struct ima_digest_data *hash); 112 int __init ima_calc_boot_aggregate(struct ima_digest_data *hash); 187 struct ima_digest_data *hash); 221 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.4.14/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.4.14/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] = MD5_H0; in md5_init() 55 mctx->hash[1] = MD5_H1; in md5_init() 56 mctx->hash[2] = MD5_H2; in md5_init() 57 mctx->hash[3] = MD5_H3; 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 356 struct crypto_ahash *hash; in hash_bind() local 362 hash = crypto_alloc_ahash(name, type, mask); in hash_bind() 363 if (IS_ERR(hash)) { in hash_bind() 365 return ERR_CAST(hash); in hash_bind() 368 tfm->hash = hash; in hash_bind() 377 crypto_free_ahash(tfm->hash); in hash_release() 386 err = crypto_ahash_setkey(tfm->hash, key, keylen); in hash_setkey() 408 struct crypto_ahash *hash = tfm->hash; in hash_accept_parent_nokey() local 409 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 | 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 | authenc.c | 147 u8 *hash = areq_ctx->tail; in crypto_authenc_genicv() local 150 hash = (u8 *)ALIGN((unsigned long)hash + crypto_ahash_alignmask(auth), in crypto_authenc_genicv() 154 ahash_request_set_crypt(ahreq, req->dst, hash, in crypto_authenc_genicv() 163 scatterwalk_map_and_copy(hash, req->dst, req->assoclen + req->cryptlen, in crypto_authenc_genicv() 296 u8 *hash = areq_ctx->tail; in crypto_authenc_decrypt() local 299 hash = (u8 *)ALIGN((unsigned long)hash + crypto_ahash_alignmask(auth), in crypto_authenc_decrypt() 303 ahash_request_set_crypt(ahreq, req->src, hash, in crypto_authenc_decrypt()
|
D | testmgr.c | 137 struct hash_test_suite hash; member 1678 err = test_hash(tfm, desc->suite.hash.vecs, in alg_test_hash() 1679 desc->suite.hash.count, true); in alg_test_hash() 1681 err = test_hash(tfm, desc->suite.hash.vecs, in alg_test_hash() 1682 desc->suite.hash.count, false); in alg_test_hash() 2499 .hash = { 2509 .hash = { 2521 .hash = { 2531 .hash = { 2541 .hash = { [all …]
|
D | sha512_generic.c | 150 static int sha512_final(struct shash_desc *desc, u8 *hash) in sha512_final() argument 153 return sha512_base_finish(desc, hash); in sha512_final() 157 unsigned int len, u8 *hash) in crypto_sha512_finup() argument 160 return sha512_final(desc, hash); in crypto_sha512_finup()
|
/linux-4.4.14/net/ipv4/ |
D | tcp_metrics.c | 27 struct net *net, unsigned int hash); 154 unsigned int hash) in tcpm_new() argument 166 tm = __tcp_get_metrics(saddr, daddr, net, hash); in tcpm_new() 179 oldest = deref_locked(tcp_metrics_hash[hash].chain); in tcpm_new() 198 tm->tcpm_next = tcp_metrics_hash[hash].chain; in tcpm_new() 199 rcu_assign_pointer(tcp_metrics_hash[hash].chain, tm); in tcpm_new() 218 struct net *net, unsigned int hash) in __tcp_get_metrics() argument 223 for (tm = rcu_dereference(tcp_metrics_hash[hash].chain); tm; in __tcp_get_metrics() 239 unsigned int hash; in __tcp_get_metrics_req() local 248 hash = ipv4_addr_hash(inet_rsk(req)->ir_rmt_addr); 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() 168 evicted += inet_evict_bucket(f, &f->hash[i]); in inet_frag_worker() 195 struct inet_frag_bucket *hb = &f->hash[i]; in inet_frags_init() 231 inet_evict_bucket(f, &f->hash[i]); in inet_frags_exit_net() 249 unsigned int seq, hash; in get_frag_bucket_locked() local 254 hash = inet_frag_hashfn(f, fq); in get_frag_bucket_locked() 255 hb = &f->hash[hash]; in get_frag_bucket_locked() 401 unsigned int hash) in inet_frag_find() argument 410 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() 306 unsigned int hash; in fib_find_info() local 308 hash = fib_info_hashfn(nfi); in fib_find_info() 309 head = &fib_info_hash[hash]; in fib_find_info() 338 unsigned int hash; in ip_fib_check_default() local 342 hash = fib_devindex_hashfn(dev->ifindex); in ip_fib_check_default() [all …]
|
D | inet_hashtables.c | 214 unsigned int hash = inet_lhashfn(net, hnum); in __inet_lookup_listener() local 215 struct inet_listen_hashbucket *ilb = &hashinfo->listening_hash[hash]; in __inet_lookup_listener() 246 if (get_nulls_value(node) != hash + LISTENING_NULLS_BASE) in __inet_lookup_listener() 296 unsigned int hash = inet_ehashfn(net, daddr, hnum, saddr, sport); in __inet_lookup_established() local 297 unsigned int slot = hash & hashinfo->ehash_mask; in __inet_lookup_established() 303 if (sk->sk_hash != hash) in __inet_lookup_established() 345 unsigned int hash = inet_ehashfn(net, daddr, lport, in __inet_check_established() local 347 struct inet_ehash_bucket *head = inet_ehash_bucket(hinfo, hash); in __inet_check_established() 348 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.4.14/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.4.14/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 | 200 unsigned long hash, hpteg; in htab_bolt_mapping() local 232 hash = hpt_hash(vpn, shift, ssize); in htab_bolt_mapping() 233 hpteg = ((hash & htab_hash_mask) * HPTES_PER_GROUP); in htab_bolt_mapping() 1295 unsigned long hash, index, shift, hidx, slot; in flush_hash_page() local 1300 hash = hpt_hash(vpn, shift, ssize); in flush_hash_page() 1303 hash = ~hash; in flush_hash_page() 1304 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in flush_hash_page() 1339 unsigned long hidx, shift, vpn, hash, slot; in flush_hash_hugepage() local 1375 hash = hpt_hash(vpn, shift, ssize); in flush_hash_hugepage() 1377 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() 638 unsigned long hash, index, hidx, shift, slot; in native_flush_hash_range() local 656 hash = hpt_hash(vpn, shift, ssize); in native_flush_hash_range() 659 hash = ~hash; in native_flush_hash_range() [all …]
|
/linux-4.4.14/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.4.14/net/sched/ |
D | cls_tcindex.c | 47 u32 hash; /* hash table size; 0 if undefined */ member 70 fp = &p->h[key % p->hash]; in tcindex_lookup() 130 p->hash = DEFAULT_HASH_SIZE; in tcindex_init() 167 for (i = 0; i < p->hash; i++) { in tcindex_delete() 211 return p->hash > (p->mask >> p->shift); in valid_perfect_hash() 265 cp->hash = p->hash; in tcindex_set_parms() 274 sizeof(*r) * cp->hash, GFP_KERNEL); in tcindex_set_parms() 277 for (i = 0; i < cp->hash; i++) in tcindex_set_parms() 290 cp->hash = nla_get_u32(tb[TCA_TCINDEX_HASH]); in tcindex_set_parms() 305 cp->hash > cp->alloc_hash) in tcindex_set_parms() [all …]
|
D | sch_sfq.c | 109 unsigned short hash; /* hash value (index in ht[]) */ member 321 q->ht[slot->hash] = SFQ_EMPTY_SLOT; in sfq_drop() 349 unsigned int hash, dropped; in sfq_enqueue() local 356 hash = sfq_classify(skb, sch, &ret); in sfq_enqueue() 357 if (hash == 0) { in sfq_enqueue() 363 hash--; in sfq_enqueue() 365 x = q->ht[hash]; in sfq_enqueue() 371 q->ht[hash] = x; in sfq_enqueue() 373 slot->hash = hash; in sfq_enqueue() 504 q->ht[slot->hash] = SFQ_EMPTY_SLOT; in sfq_dequeue() [all …]
|
D | sch_sfb.c | 131 u32 hash = sfbhash & SFB_BUCKET_MASK; in increment_one_qlen() local 134 if (b[hash].qlen < 0xFFFF) in increment_one_qlen() 135 b[hash].qlen++; in increment_one_qlen() 160 u32 hash = sfbhash & SFB_BUCKET_MASK; in decrement_one_qlen() local 163 if (b[hash].qlen > 0) in decrement_one_qlen() 164 b[hash].qlen--; in decrement_one_qlen() 327 u32 hash = sfbhash & SFB_BUCKET_MASK; in sfb_enqueue() local 328 struct sfb_bucket *b = &q->bins[slot].bins[i][hash]; in sfb_enqueue() 360 u32 hash = sfbhash & SFB_BUCKET_MASK; in sfb_enqueue() local 361 struct sfb_bucket *b = &q->bins[slot].bins[i][hash]; in sfb_enqueue()
|
D | sch_hhf.c | 179 static struct hh_flow_state *seek_list(const u32 hash, in seek_list() argument 201 } else if (flow->hash_id == hash) { in seek_list() 249 u32 tmp_hash, hash; in hhf_classify() local 266 hash = skb_get_hash_perturb(skb, q->perturbation); in hhf_classify() 269 flow_pos = hash & HHF_BIT_MASK; in hhf_classify() 270 flow = seek_list(hash, &q->hh_flows[flow_pos], q); in hhf_classify() 277 tmp_hash = hash; in hhf_classify() 309 flow->hash_id = hash; in hhf_classify()
|
/linux-4.4.14/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.4.14/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.4.14/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() 68 unsigned int hash = IP_VS_PROTO_HASH(pp->protocol); in register_ip_vs_proto_netns() local 76 pd->next = ipvs->proto_data_table[hash]; in register_ip_vs_proto_netns() 77 ipvs->proto_data_table[hash] = pd; in register_ip_vs_proto_netns() 84 ipvs->proto_data_table[hash] = pd->next; in register_ip_vs_proto_netns() 99 unsigned int hash = IP_VS_PROTO_HASH(pp->protocol); in unregister_ip_vs_protocol() local 101 pp_p = &ip_vs_proto_table[hash]; in unregister_ip_vs_protocol() 121 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 | 368 __u16 hash; in udp_register_app() local 373 hash = udp_app_hashkey(port); in udp_register_app() 375 list_for_each_entry(i, &ipvs->udp_apps[hash], p_list) { in udp_register_app() 381 list_add_rcu(&inc->p_list, &ipvs->udp_apps[hash]); in udp_register_app() 402 int hash; in udp_app_conn_bind() local 411 hash = udp_app_hashkey(cp->vport); in udp_app_conn_bind() 414 list_for_each_entry_rcu(inc, &ipvs->udp_apps[hash], p_list) { in udp_app_conn_bind()
|
/linux-4.4.14/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.4.14/kernel/trace/ |
D | ftrace.c | 519 struct hlist_head *hash; member 696 memset(stat->hash, 0, in ftrace_profile_reset() 763 if (stat->hash) { in ftrace_profile_init_cpu() 775 stat->hash = kzalloc(sizeof(struct hlist_head) * size, GFP_KERNEL); in ftrace_profile_init_cpu() 777 if (!stat->hash) in ftrace_profile_init_cpu() 782 kfree(stat->hash); in ftrace_profile_init_cpu() 783 stat->hash = NULL; in ftrace_profile_init_cpu() 813 hhd = &stat->hash[key]; in ftrace_find_profiled_func() 832 hlist_add_head_rcu(&rec->node, &stat->hash[key]); in ftrace_add_profile() 885 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.4.14/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.4.14/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); 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.4.14/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.4.14/drivers/staging/lustre/lustre/llite/ |
D | remote_perm.c | 82 struct hlist_head *hash; in alloc_rmtperm_hash() local 85 hash = kmem_cache_alloc(ll_rmtperm_hash_cachep, GFP_NOFS | __GFP_ZERO); in alloc_rmtperm_hash() 86 if (!hash) in alloc_rmtperm_hash() 90 INIT_HLIST_HEAD(hash + i); in alloc_rmtperm_hash() 92 return hash; in alloc_rmtperm_hash() 95 void free_rmtperm_hash(struct hlist_head *hash) in free_rmtperm_hash() argument 101 if (!hash) in free_rmtperm_hash() 105 hlist_for_each_entry_safe(lrp, next, hash + i, lrp_list) in free_rmtperm_hash() 107 kmem_cache_free(ll_rmtperm_hash_cachep, hash); in free_rmtperm_hash() 308 struct hlist_head *hash = lli->lli_remote_perms; [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() 220 hash = le64_to_cpu(dp->ldp_hash_start); in ll_dir_filler() 223 offset = hash_x_index(hash, hash64); in ll_dir_filler() 263 static struct page *ll_dir_page_locate(struct inode *dir, __u64 *hash, in ll_dir_page_locate() argument 273 unsigned long offset = hash_x_index(*hash, hash64); in ll_dir_page_locate() 299 *hash = *hash >> 32; in ll_dir_page_locate() 304 LASSERTF(*start <= *hash, "start = %#llx,end = %#llx,hash = %#llx\n", in ll_dir_page_locate() 305 *start, *end, *hash); in ll_dir_page_locate() [all …]
|
/linux-4.4.14/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.4.14/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.4.14/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 | 70 #define LNET_PROC_POS_MAKE(cpt, ver, hash, off) \ argument 73 ((((loff_t)(hash)) & LNET_PROC_HASH_MASK) << LNET_PROC_HOFF_BITS) | \ 422 int hash = LNET_PROC_HASH_GET(*ppos); in proc_lnet_peers() local 472 while (hash < LNET_PEER_HASH_SIZE) { in proc_lnet_peers() 474 p = ptable->pt_hash[hash].next; in proc_lnet_peers() 476 while (p != &ptable->pt_hash[hash]) { in proc_lnet_peers() 486 &ptable->pt_hash[hash]) { in proc_lnet_peers() 488 hash++; in proc_lnet_peers() 505 hash++; in proc_lnet_peers() 552 if (hash == LNET_PEER_HASH_SIZE) { in proc_lnet_peers() [all …]
|
/linux-4.4.14/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.4.14/fs/kernfs/ |
D | dir.c | 210 unsigned long hash = init_name_hash(); in kernfs_name_hash() local 213 hash = partial_name_hash(*name++, hash); in kernfs_name_hash() 214 hash = (end_name_hash(hash) ^ hash_ptr((void *)ns, 31)); in kernfs_name_hash() 215 hash &= 0x7fffffffU; in kernfs_name_hash() 217 if (hash < 2) in kernfs_name_hash() 218 hash += 2; in kernfs_name_hash() 219 if (hash >= INT_MAX) in kernfs_name_hash() 220 hash = INT_MAX - 1; in kernfs_name_hash() 221 return hash; in kernfs_name_hash() 224 static int kernfs_name_compare(unsigned int hash, const char *name, in kernfs_name_compare() argument [all …]
|
/linux-4.4.14/kernel/locking/ |
D | qspinlock_paravirt.h | 94 #define for_each_hash_entry(he, offset, hash) \ argument 95 for (hash &= ~(PV_HE_PER_LINE - 1), he = &pv_lock_hash[hash], offset = 0; \ 97 offset++, he = &pv_lock_hash[(hash + offset) & ((1 << pv_lock_hash_bits) - 1)]) 101 unsigned long offset, hash = hash_ptr(lock, pv_lock_hash_bits); in pv_hash() local 104 for_each_hash_entry(he, offset, hash) { in pv_hash() 125 unsigned long offset, hash = hash_ptr(lock, pv_lock_hash_bits); in pv_unhash() local 129 for_each_hash_entry(he, offset, hash) { in pv_unhash()
|
/linux-4.4.14/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.4.14/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.4.14/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() 133 unsigned int hash = inet_lhashfn(net, hnum); in inet6_lookup_listener() local 134 struct inet_listen_hashbucket *ilb = &hashinfo->listening_hash[hash]; in inet6_lookup_listener() 163 if (get_nulls_value(node) != hash + LISTENING_NULLS_BASE) in inet6_lookup_listener() 205 const unsigned int hash = inet6_ehashfn(net, daddr, lport, saddr, in __inet6_check_established() local 207 struct inet_ehash_bucket *head = inet_ehash_bucket(hinfo, hash); in __inet6_check_established() 208 spinlock_t *lock = inet_ehash_lockp(hinfo, hash); in __inet6_check_established() 216 if (sk2->sk_hash != hash) in __inet6_check_established() [all …]
|
D | output_core.c | 17 u32 hash, id; in __ipv6_select_ident() local 19 hash = __ipv6_addr_jhash(dst, hashrnd); in __ipv6_select_ident() 20 hash = __ipv6_addr_jhash(src, hash); in __ipv6_select_ident() 21 hash ^= net_hash_mix(net); in __ipv6_select_ident() 27 id = ip_idents_reserve(hash, 1); in __ipv6_select_ident()
|
D | udp.c | 111 unsigned int hash, mix = net_hash_mix(net); in udp6_portaddr_hash() local 114 hash = jhash_1word(0, mix); in udp6_portaddr_hash() 116 hash = jhash_1word((__force u32)addr6->s6_addr32[3], mix); in udp6_portaddr_hash() 118 hash = jhash2((__force u32 *)addr6->s6_addr32, 4, mix); in udp6_portaddr_hash() 120 return hash ^ port; in udp6_portaddr_hash() 243 u32 hash = 0; in udp6_lib_lookup2() local 256 hash = udp6_ehashfn(net, daddr, hnum, in udp6_lib_lookup2() 262 if (reciprocal_scale(hash, matches) == 0) in udp6_lib_lookup2() 264 hash = next_pseudo_random32(hash); in udp6_lib_lookup2() 296 struct udp_hslot *hslot2, *hslot = &udptable->hash[slot]; in __udp6_lib_lookup() [all …]
|
/linux-4.4.14/drivers/crypto/sunxi-ss/ |
D | sun4i-ss-hash.c | 39 algt = container_of(alg, struct sun4i_ss_alg_template, alg.hash); in sun4i_hash_init() 59 octx->hash[i] = op->hash[i]; in sun4i_hash_export_md5() 61 octx->hash[0] = SHA1_H0; in sun4i_hash_export_md5() 62 octx->hash[1] = SHA1_H1; in sun4i_hash_export_md5() 63 octx->hash[2] = SHA1_H2; in sun4i_hash_export_md5() 64 octx->hash[3] = SHA1_H3; in sun4i_hash_export_md5() 84 op->hash[i] = ictx->hash[i]; in sun4i_hash_import_md5() 101 octx->state[i] = op->hash[i]; in sun4i_hash_export_sha1() 127 op->hash[i] = ictx->state[i]; in sun4i_hash_import_sha1() 187 op->len, op->hash[0]); in sun4i_hash_update() [all …]
|
D | sun4i-ss-core.c | 32 .alg.hash = { 60 .alg.hash = { 352 err = crypto_register_ahash(&ss_algs[i].alg.hash); in sun4i_ss_probe() 355 ss_algs[i].alg.hash.halg.base.cra_name); in sun4i_ss_probe() 371 crypto_unregister_ahash(&ss_algs[i].alg.hash); in sun4i_ss_probe() 395 crypto_unregister_ahash(&ss_algs[i].alg.hash); in sun4i_ss_remove()
|
/linux-4.4.14/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.4.14/arch/sparc/crypto/ |
D | md5_glue.c | 36 mctx->hash[0] = cpu_to_le32(MD5_H0); in md5_sparc64_init() 37 mctx->hash[1] = cpu_to_le32(MD5_H1); in md5_sparc64_init() 38 mctx->hash[2] = cpu_to_le32(MD5_H2); in md5_sparc64_init() 39 mctx->hash[3] = cpu_to_le32(MD5_H3); 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.4.14/drivers/staging/lustre/lustre/fld/ |
D | fld_request.c | 121 int hash; in fld_rrb_scan() local 129 hash = fld_rrb_hash(fld, seq); in fld_rrb_scan() 131 hash = 0; in fld_rrb_scan() 135 if (target->ft_idx == hash) in fld_rrb_scan() 139 if (hash != 0) { in fld_rrb_scan() 143 hash = 0; in fld_rrb_scan() 148 fld->lcf_name, hash, seq, fld->lcf_count); in fld_rrb_scan() 318 static inline int hash_is_sane(int hash) in hash_is_sane() argument 320 return (hash >= 0 && hash < ARRAY_SIZE(fld_hash)); in hash_is_sane() 324 const char *prefix, int hash) in fld_client_init() argument [all …]
|
D | lproc_fld.c | 94 struct lu_fld_hash *hash = NULL; in fld_debugfs_hash_seq_write() local 112 hash = &fld_hash[i]; in fld_debugfs_hash_seq_write() 117 if (hash != NULL) { in fld_debugfs_hash_seq_write() 119 fld->lcf_hash = hash; in fld_debugfs_hash_seq_write() 123 fld->lcf_name, hash->fh_name); in fld_debugfs_hash_seq_write()
|
/linux-4.4.14/drivers/target/tcm_fc/ |
D | tfc_sess.c | 77 INIT_HLIST_HEAD(&tport->hash[i]); in ft_tport_get() 174 head = &tport->hash[ft_sess_hash(port_id)]; in ft_sess_get() 175 hlist_for_each_entry_rcu(sess, head, hash) { in ft_sess_get() 199 head = &tport->hash[ft_sess_hash(port_id)]; in ft_sess_create() 200 hlist_for_each_entry_rcu(sess, head, hash) in ft_sess_create() 219 hlist_add_head_rcu(&sess->hash, head); in ft_sess_create() 237 hlist_del_rcu(&sess->hash); in ft_sess_unhash() 253 head = &tport->hash[ft_sess_hash(port_id)]; in ft_sess_delete() 254 hlist_for_each_entry_rcu(sess, head, hash) { in ft_sess_delete() 272 for (head = tport->hash; in ft_sess_delete_all() [all …]
|
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/linux/ |
D | linux-crypto.c | 95 unsigned char *hash, unsigned int *hash_len) in cfs_crypto_hash_digest() argument 109 if (hash == NULL || *hash_len < type->cht_size) { in cfs_crypto_hash_digest() 117 err = crypto_hash_digest(&hdesc, &sl, sl.length, hash); in cfs_crypto_hash_digest() 173 unsigned char *hash, unsigned int *hash_len) in cfs_crypto_hash_final() argument 183 if (hash == NULL || *hash_len < size) { in cfs_crypto_hash_final() 187 err = crypto_hash_final((struct hash_desc *) hdesc, hash); in cfs_crypto_hash_final() 206 unsigned char hash[64]; in cfs_crypto_performance_test() local 212 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.4.14/arch/x86/um/vdso/ |
D | vdso-layout.lds.S | 11 .hash : { *(.hash) } :text 12 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.4.14/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.4.14/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.4.14/drivers/staging/lustre/lustre/include/ |
D | lustre_lite.h | 136 static inline unsigned long hash_x_index(__u64 hash, int hash64) in hash_x_index() argument 139 hash >>= 32; in hash_x_index() 144 return ~0UL - (hash + !hash); in hash_x_index()
|
/linux-4.4.14/arch/sh/kernel/vsyscall/ |
D | vsyscall.lds.S | 22 .hash : { *(.hash) } :text 23 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.4.14/arch/arm/vdso/ |
D | vdso.lds.S | 37 .hash : { *(.hash) } :text 38 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.4.14/arch/tile/kernel/vdso/ |
D | vdso.lds.S | 28 .hash : { *(.hash) } :text 29 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.4.14/fs/ext2/ |
D | xattr.c | 828 __u32 hash = le32_to_cpu(HDR(bh)->h_hash); in ext2_xattr_cache_insert() local 835 error = mb_cache_entry_insert(ce, bh->b_bdev, bh->b_blocknr, hash); in ext2_xattr_cache_insert() 844 ea_bdebug(bh, "inserting [%x] (%d cache entries)", (int)hash, in ext2_xattr_cache_insert() 902 __u32 hash = le32_to_cpu(header->h_hash); in ext2_xattr_cache_find() local 907 ea_idebug(inode, "looking for cached blocks [%x]", (int)hash); in ext2_xattr_cache_find() 910 hash); in ext2_xattr_cache_find() 942 ce = mb_cache_entry_find_next(ce, inode->i_sb->s_bdev, hash); in ext2_xattr_cache_find() 958 __u32 hash = 0; in ext2_xattr_hash_entry() local 963 hash = (hash << NAME_HASH_SHIFT) ^ in ext2_xattr_hash_entry() 964 (hash >> (8*sizeof(hash) - NAME_HASH_SHIFT)) ^ in ext2_xattr_hash_entry() [all …]
|
/linux-4.4.14/arch/arm64/kernel/vdso/ |
D | vdso.lds.S | 34 .hash : { *(.hash) } :text 35 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.4.14/net/openvswitch/ |
D | flow_table.c | 318 static struct hlist_head *find_bucket(struct table_instance *ti, u32 hash) in find_bucket() argument 320 hash = jhash_1word(hash, ti->hash_seed); in find_bucket() 322 (hash & (ti->n_buckets - 1))); in find_bucket() 330 head = find_bucket(ti, flow->flow_table.hash); in table_instance_insert() 339 head = find_bucket(ti, flow->ufid_table.hash); in ufid_table_instance_insert() 477 u32 hash; in masked_flow_lookup() local 481 hash = flow_hash(&masked_key, &mask->range); in masked_flow_lookup() 482 head = find_bucket(ti, hash); in masked_flow_lookup() 484 if (flow->mask == mask && flow->flow_table.hash == hash && in masked_flow_lookup() 562 u32 hash; in ovs_flow_tbl_lookup_ufid() local [all …]
|
D | vport.c | 70 unsigned int hash = jhash(name, strlen(name), (unsigned long) net); in hash_bucket() local 71 return &dev_table[hash & (VPORT_HASH_BUCKETS - 1)]; in hash_bucket() 417 u32 hash; in ovs_vport_find_upcall_portid() local 424 hash = skb_get_hash(skb); in ovs_vport_find_upcall_portid() 425 ids_index = hash - ids->n_ids * reciprocal_divide(hash, ids->rn_ids); in ovs_vport_find_upcall_portid()
|
/linux-4.4.14/arch/mips/vdso/ |
D | vdso.lds.S | 39 .hash : { *(.hash) } :text 40 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.4.14/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.4.14/arch/x86/entry/vdso/ |
D | vdso-layout.lds.S | 42 .hash : { *(.hash) } :text 43 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.4.14/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.4.14/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.4.14/arch/ia64/kernel/ |
D | gate.lds.S | 14 .hash : { *(.hash) } :readable 15 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/security/selinux/ss/ |
D | avtab.c | 41 u32 hash = 0; in avtab_hash() local 48 hash ^= v; \ in avtab_hash() 49 hash = (hash << r2) | (hash >> (32 - r2)); \ in avtab_hash() 50 hash = hash * m + n; \ in avtab_hash() 59 hash ^= hash >> 16; in avtab_hash() 60 hash *= 0x85ebca6b; in avtab_hash() 61 hash ^= hash >> 13; in avtab_hash() 62 hash *= 0xc2b2ae35; in avtab_hash() 63 hash ^= hash >> 16; in avtab_hash() 65 return hash & mask; in avtab_hash()
|
/linux-4.4.14/arch/s390/kernel/vdso64/ |
D | vdso64.lds.S | 15 .hash : { *(.hash) } :text 16 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.4.14/arch/s390/kernel/vdso32/ |
D | vdso32.lds.S | 15 .hash : { *(.hash) } :text 16 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.4.14/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.4.14/drivers/infiniband/core/ |
D | iwpm_util.c | 528 u32 hash = jhash_2words(ipv6_hash, (__force u32) ipv6_sockaddr->sin6_port, 0); in iwpm_ipv6_jhash() local 529 return hash; in iwpm_ipv6_jhash() 535 u32 hash = jhash_2words(ipv4_hash, (__force u32) ipv4_sockaddr->sin_port, 0); in iwpm_ipv4_jhash() local 536 return hash; in iwpm_ipv4_jhash() 540 struct sockaddr_storage *b_sockaddr, u32 *hash) in get_hash_bucket() argument 557 *hash = a_hash; in get_hash_bucket() 559 *hash = jhash_2words(a_hash, b_hash, 0); in get_hash_bucket() 567 u32 hash; in get_mapinfo_hash_bucket() local 570 ret = get_hash_bucket(local_sockaddr, mapped_sockaddr, &hash); in get_mapinfo_hash_bucket() 573 return &iwpm_hash_bucket[hash & IWPM_MAPINFO_HASH_MASK]; in get_mapinfo_hash_bucket() [all …]
|
/linux-4.4.14/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 154 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in insert_revoke_hash() 156 list_add(&record->hash, hash_list); in insert_revoke_hash() 169 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in find_revoke_record() 173 while (&(record->hash) != hash_list) { in find_revoke_record() 178 record = (struct jbd2_revoke_record_s *) record->hash.next; in find_revoke_record() 442 list_del(&record->hash); in jbd2_journal_cancel_revoke() 551 list_del(&record->hash); in jbd2_journal_write_revoke_records() 755 list_del(&record->hash); in jbd2_journal_clear_revoke()
|
/linux-4.4.14/arch/powerpc/kernel/vdso32/ |
D | vdso32.lds.S | 19 .hash : { *(.hash) } :text 20 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.4.14/arch/powerpc/kernel/vdso64/ |
D | vdso64.lds.S | 19 .hash : { *(.hash) } :text 20 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.4.14/arch/powerpc/kvm/ |
D | book3s_64_mmu_host.c | 87 ulong hash, hpteg; in kvmppc_mmu_map_page() local 157 hash = hpt_hash(vpn, mmu_psize_defs[hpsize].shift, MMU_SEGSIZE_256M); in kvmppc_mmu_map_page() 168 hpteg = ((hash & htab_hash_mask) * HPTES_PER_GROUP); in kvmppc_mmu_map_page() 182 hash = ~hash; in kvmppc_mmu_map_page() 193 hash = ~hash; in kvmppc_mmu_map_page() 194 hpteg = ((hash & htab_hash_mask) * HPTES_PER_GROUP); in kvmppc_mmu_map_page()
|
D | book3s_32_mmu_host.c | 121 u32 page, hash; in kvmppc_mmu_get_pteg() local 126 hash = ((vsid ^ page) << 6); in kvmppc_mmu_get_pteg() 128 hash = ~hash; in kvmppc_mmu_get_pteg() 130 hash &= htabmask; in kvmppc_mmu_get_pteg() 132 pteg |= hash; in kvmppc_mmu_get_pteg() 135 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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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) 176 unsigned int hash = (__force unsigned int)csum_fold(n); in unix_hash_fold() local 178 hash ^= hash>>8; in unix_hash_fold() 179 return hash&(UNIX_HASH_SIZE-1); in unix_hash_fold() 275 int len, int type, unsigned int hash) in __unix_find_socket_byname() argument [all …]
|
/linux-4.4.14/net/sunrpc/ |
D | cache.c | 58 struct cache_head *key, int hash) in sunrpc_cache_lookup() argument 63 head = &detail->hash_table[hash]; in sunrpc_cache_lookup() 145 struct cache_head *new, struct cache_head *old, int hash) in sunrpc_cache_update() argument 181 hlist_add_head(&tmp->cache_list, &detail->hash_table[hash]); in sunrpc_cache_update() 537 hlist_del_init(&dreq->hash); in __unhash_deferred_req() 546 int hash = DFR_HASH(item); in __hash_deferred_req() local 549 hlist_add_head(&dreq->hash, &cache_defer_hash[hash]); in __hash_deferred_req() 601 if (!hlist_unhashed(&sleeper.handle.hash)) { in cache_wait_req() 672 int hash = DFR_HASH(item); in cache_revisit_request() local 677 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.4.14/fs/f2fs/ |
D | hash.c | 75 __u32 hash; in f2fs_dentry_hash() local 100 hash = buf[0]; in f2fs_dentry_hash() 101 f2fs_hash = cpu_to_le32(hash & ~F2FS_HASH_COL_BIT); in f2fs_dentry_hash()
|
/linux-4.4.14/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.4.14/drivers/char/ |
D | random.c | 1096 } hash; in extract_buf() local 1104 sha_init(hash.w); in extract_buf() 1109 hash.l[i] = v; in extract_buf() 1115 sha_transform(hash.w, (__u8 *)(r->pool + i), workspace); in extract_buf() 1126 __mix_pool_bytes(r, hash.w, sizeof(hash.w)); in extract_buf() 1136 hash.w[0] ^= hash.w[3]; in extract_buf() 1137 hash.w[1] ^= hash.w[4]; in extract_buf() 1138 hash.w[2] ^= rol32(hash.w[2], 16); in extract_buf() 1140 memcpy(out, &hash, EXTRACT_SIZE); in extract_buf() 1141 memzero_explicit(&hash, sizeof(hash)); in extract_buf() [all …]
|
/linux-4.4.14/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 | 297 for (p = &d->l2tab[e->hash].first; *p; p = &(*p)->next) in alloc_l2e() 374 int hash = addr_hash(d, addr, addr_len, ifidx); in cxgb4_l2t_get() local 387 for (e = d->l2tab[hash].first; e; e = e->next) in cxgb4_l2t_get() 405 e->hash = hash; in cxgb4_l2t_get() 411 e->next = d->l2tab[hash].first; in cxgb4_l2t_get() 412 d->l2tab[hash].first = e; in cxgb4_l2t_get() 487 int hash = addr_hash(d, addr, addr_len, ifidx); in t4_l2t_update() local 490 for (e = d->l2tab[hash].first; e; e = e->next) in t4_l2t_update()
|
/linux-4.4.14/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.4.14/drivers/gpu/drm/nouveau/nvkm/core/ |
D | ramht.c | 28 u32 hash = 0; in nvkm_ramht_hash() local 31 hash ^= (handle & ((1 << ramht->bits) - 1)); in nvkm_ramht_hash() 35 hash ^= chid << (ramht->bits - 4); in nvkm_ramht_hash() 36 return hash; in nvkm_ramht_hash()
|
/linux-4.4.14/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 61 SHA-512 secure hash standard (DFIPS 180-2) implemented
|
/linux-4.4.14/fs/gfs2/ |
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.4.14/kernel/ |
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 …]
|
D | module_signing.c | 30 u8 hash; /* Digest algorithm [0] */ member 66 ms.hash != 0 || in mod_verify_sig()
|
/linux-4.4.14/net/bridge/ |
D | br_fdb.c | 200 struct hlist_head *head = &br->hash[br_mac_hash(addr, vid)]; in br_fdb_find_delete_local() 223 hlist_for_each(h, &br->hash[i]) { in br_fdb_changeaddr() 304 hlist_for_each_entry_safe(f, n, &br->hash[i], hlist) { in br_fdb_cleanup() 331 hlist_for_each_entry_safe(f, n, &br->hash[i], hlist) { in br_fdb_flush() 354 hlist_for_each_safe(h, g, &br->hash[i]) { in br_fdb_delete_by_port() 381 &br->hash[br_mac_hash(addr, vid)], hlist) { in __br_fdb_get() 432 hlist_for_each_entry_rcu(f, &br->hash[i], hlist) { in br_fdb_fillbuf() 524 struct hlist_head *head = &br->hash[br_mac_hash(addr, vid)]; in fdb_insert() 567 struct hlist_head *head = &br->hash[br_mac_hash(addr, vid)]; in br_fdb_update() 726 hlist_for_each_entry_rcu(f, &br->hash[i], hlist) { in br_fdb_dump() [all …]
|
/linux-4.4.14/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.4.14/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | dmacnv50.c | 37 int hash; member 45 nvkm_ramht_remove(object->root->ramht, object->hash); in nv50_disp_dmac_child_del_() 75 object->hash = chan->func->bind(chan, object->oproxy.object, in nv50_disp_dmac_child_new_() 77 if (object->hash < 0) in nv50_disp_dmac_child_new_() 78 return object->hash; in nv50_disp_dmac_child_new_()
|
/linux-4.4.14/drivers/staging/skein/ |
D | skein_api.c | 220 int skein_final(struct skein_ctx *ctx, u8 *hash) in skein_final() argument 228 ret = skein_256_final(&ctx->m.s256, (u8 *)hash); in skein_final() 231 ret = skein_512_final(&ctx->m.s512, (u8 *)hash); in skein_final() 234 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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/arch/um/kernel/ |
D | dyn.lds.S | 22 .hash : { *(.hash) } 23 .gnu.hash : { *(.gnu.hash) }
|
/linux-4.4.14/arch/powerpc/boot/ |
D | zImage.lds.S | 36 .hash : { *(.hash) }
|
/linux-4.4.14/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.4.14/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() 1835 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.4.14/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.4.14/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.4.14/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() 942 u32 hash[4] = { 0, 0, 0, 0}; in pcmcia_bus_uevent() local 953 hash[i] = crc32(0, p_dev->prod_id[i], strlen(p_dev->prod_id[i])); in pcmcia_bus_uevent() 969 hash[0], in pcmcia_bus_uevent() 970 hash[1], in pcmcia_bus_uevent() 971 hash[2], in pcmcia_bus_uevent() 972 hash[3])) in pcmcia_bus_uevent() [all …]
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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() 184 u32 hash = jhash_1word(__get_unaligned_cpu32(addr+2), in ipvlan_mac_hash() local 187 return hash & IPVLAN_MAC_FILTER_MASK; in ipvlan_mac_hash()
|
/linux-4.4.14/drivers/gpu/drm/ |
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.4.14/arch/parisc/kernel/ |
D | vmlinux.lds.S | 159 *(.hash) 160 *(.gnu.hash)
|
/linux-4.4.14/drivers/net/wireless/zd1211rw/ |
D | zd_chip.h | 954 static inline void zd_mc_clear(struct zd_mc_hash *hash) in zd_mc_clear() argument 956 hash->low = 0; in zd_mc_clear() 960 hash->high = 0x80000000; in zd_mc_clear() 963 static inline void zd_mc_add_all(struct zd_mc_hash *hash) in zd_mc_add_all() argument 965 hash->low = hash->high = 0xffffffff; in zd_mc_add_all() 968 static inline void zd_mc_add_addr(struct zd_mc_hash *hash, u8 *addr) in zd_mc_add_addr() argument 972 hash->low |= 1 << i; in zd_mc_add_addr() 974 hash->high |= 1 << (i-32); in zd_mc_add_addr() 979 struct zd_mc_hash *hash);
|
/linux-4.4.14/drivers/crypto/ux500/ |
D | Kconfig | 22 This selects the hash driver for the UX500_HASH hardware. 26 bool "Activate ux500 platform debug-mode for crypto and hash block"
|
/linux-4.4.14/drivers/crypto/qat/qat_common/ |
D | qat_algs.c | 96 struct icp_qat_hw_auth_algo_blk hash; member 99 struct icp_qat_hw_auth_algo_blk hash; member 144 static int qat_alg_do_precomputes(struct icp_qat_hw_auth_algo_blk *hash, in qat_alg_do_precomputes() argument 191 hash_state_out = (__be32 *)hash->sha.state1; in qat_alg_do_precomputes() 224 hash_state_out = (__be32 *)(hash->sha.state1 + offset); in qat_alg_do_precomputes() 281 struct icp_qat_hw_auth_algo_blk *hash = in qat_alg_aead_init_enc_session() local 294 hash->sha.inner_setup.auth_config.config = in qat_alg_aead_init_enc_session() 297 hash->sha.inner_setup.auth_counter.counter = in qat_alg_aead_init_enc_session() 300 if (qat_alg_do_precomputes(hash, ctx, keys->authkey, keys->authkeylen)) in qat_alg_aead_init_enc_session() 322 hash_cd_ctrl->hash_cfg_offset = ((char *)hash - (char *)cipher) >> 3; in qat_alg_aead_init_enc_session() [all …]
|
/linux-4.4.14/net/decnet/ |
D | dn_route.c | 332 static int dn_insert_route(struct dn_route *rt, unsigned int hash, struct dn_route **rp) in dn_insert_route() argument 338 rthp = &dn_rt_hash_table[hash].chain; in dn_insert_route() 340 spin_lock_bh(&dn_rt_hash_table[hash].lock); in dn_insert_route() 342 lockdep_is_held(&dn_rt_hash_table[hash].lock))) != NULL) { in dn_insert_route() 347 dn_rt_hash_table[hash].chain); in dn_insert_route() 348 rcu_assign_pointer(dn_rt_hash_table[hash].chain, rth); in dn_insert_route() 351 spin_unlock_bh(&dn_rt_hash_table[hash].lock); in dn_insert_route() 360 rcu_assign_pointer(rt->dst.dn_next, dn_rt_hash_table[hash].chain); in dn_insert_route() 361 rcu_assign_pointer(dn_rt_hash_table[hash].chain, rt); in dn_insert_route() 364 spin_unlock_bh(&dn_rt_hash_table[hash].lock); in dn_insert_route() [all …]
|
/linux-4.4.14/drivers/crypto/ |
D | talitos.c | 2024 u8 *hash) in keyhash() argument 2046 ahash_request_set_crypt(req, sg, hash, keylen); in keyhash() 2074 u8 hash[SHA512_DIGEST_SIZE]; in ahash_setkey() local 2081 ret = keyhash(tfm, key, keylen, hash); in ahash_setkey() 2089 memcpy(ctx->key, hash, digestsize); in ahash_setkey() 2102 struct ahash_alg hash; member 2399 .alg.hash = { 2415 .alg.hash = { 2431 .alg.hash = { 2447 .alg.hash = { [all …]
|