/linux-master/arch/mips/cavium-octeon/crypto/ |
H A D | octeon-sha512.c | 24 #include <crypto/internal/hash.h> 138 static int octeon_sha512_final(struct shash_desc *desc, u8 *hash) argument 143 __be64 *dst = (__be64 *)hash; 179 static int octeon_sha384_final(struct shash_desc *desc, u8 *hash) argument 185 memcpy(hash, D, 48);
|
/linux-master/drivers/scsi/ |
H A D | libiscsi_tcp.c | 18 #include <crypto/hash.h> 171 segment->hash = NULL; 200 if (segment->hash && copied) { 215 ahash_request_set_crypt(segment->hash, &sg, NULL, copied); 216 crypto_ahash_update(segment->hash); 261 if (segment->hash) { 262 ahash_request_set_crypt(segment->hash, NULL, 264 crypto_ahash_final(segment->hash); 285 * If hash digest is enabled, the function will update the 286 * hash whil 314 iscsi_tcp_dgst_header(struct ahash_request *hash, const void *hdr, size_t hdrlen, unsigned char digest[ISCSI_DIGEST_SIZE]) argument 345 __iscsi_segment_init(struct iscsi_segment *segment, size_t size, iscsi_segment_done_fn_t *done, struct ahash_request *hash) argument 359 iscsi_segment_init_linear(struct iscsi_segment *segment, void *data, size_t size, iscsi_segment_done_fn_t *done, struct ahash_request *hash) argument 370 iscsi_segment_seek_sg(struct iscsi_segment *segment, struct scatterlist *sg_list, unsigned int sg_count, unsigned int offset, size_t size, iscsi_segment_done_fn_t *done, struct ahash_request *hash) argument [all...] |
/linux-master/net/netfilter/ |
H A D | xt_RATEEST.c | 24 struct hlist_head hash[RATEEST_HSIZE]; member in struct:xt_rateest_net 43 hlist_add_head(&est->list, &xn->hash[h]); 53 hlist_for_each_entry(est, &xn->hash[h], list) { 200 for (i = 0; i < ARRAY_SIZE(xn->hash); i++) 201 INIT_HLIST_HEAD(&xn->hash[i]);
|
/linux-master/drivers/mtd/tests/ |
H A D | nandbiterrs.c | 73 static uint8_t hash(unsigned offset) function 162 if (rbuffer[i] != hash(i+seed)) { 164 i, hash(i+seed), rbuffer[i]); 209 wbuffer[i] = hash(i+seed); 272 wbuffer[i] = hash(i+seed);
|
/linux-master/fs/unicode/ |
H A D | utf8-core.c | 126 unsigned long hash = init_name_hash(salt); local 134 hash = partial_name_hash((unsigned char)c, hash); 136 str->hash = end_name_hash(hash);
|
/linux-master/fs/dlm/ |
H A D | dir.c | 25 * We use the upper 16 bits of the hash value to select the directory node. 26 * Low bits are used for distribution of rsb's among hash buckets on each node. 29 * num_nodes to the hash value. This value in the desired range is used as an 33 int dlm_hash2nodeid(struct dlm_ls *ls, uint32_t hash) argument 40 node = (hash >> 16) % ls->ls_total_weight; 203 uint32_t hash, bucket; local 206 hash = jhash(name, len, 0); 207 bucket = hash & (ls->ls_rsbtbl_size - 1);
|
/linux-master/net/netfilter/ipvs/ |
H A D | ip_vs_sh.c | 11 * The sh algorithm is to select server by the hash key of source IP 21 * Notes that servernode is a 256-bucket hash table that maps the hash 59 * for IPVS SH entry hash table 81 * Returns hash value for IPVS SH entry 107 unsigned int hash = ip_vs_sh_hashkey(svc->af, addr, port, 0); local 108 struct ip_vs_dest *dest = rcu_dereference(s->buckets[hash].dest); 117 * point (in fact, it is chosen to be the original hash value to make the 125 unsigned int hash, ihash; local 144 hash [all...] |
H A D | ip_vs_conn.c | 45 * Connection hash size. Default is what was selected at compile time. 49 MODULE_PARM_DESC(conn_tab_bits, "Set connections' hash size"); 56 * Connection hash table: for input and output packets lookups of IPVS 66 /* random value for IPVS connection hash */ 70 * Fine locking granularity for big connection hash table 105 * Returns hash value for IPVS connection entry 165 unsigned int hash; local 172 hash = ip_vs_conn_hashkey_conn(cp); 174 ct_write_lock_bh(hash); 180 hlist_add_head_rcu(&cp->c_list, &ip_vs_conn_tab[hash]); 201 unsigned int hash; local 229 unsigned int hash; local 265 unsigned int hash; local 351 unsigned int hash; local 403 unsigned int hash; local 1311 unsigned int hash = get_random_u32() & ip_vs_conn_tab_mask; local [all...] |
/linux-master/net/l2tp/ |
H A D | l2tp_core.c | 42 #include <linux/hash.h> 128 /* Session hash global list for L2TPv3. 131 * hash on the session_id, rather than a simple bitmask. 139 /* Session hash list. 142 * session_ids. So we do a real hash on the session_id, rather than a 288 int hash; local 293 for (hash = 0; hash < L2TP_HASH_SIZE; hash++) { 294 hlist_for_each_entry_rcu(session, &tunnel->session_hlist[hash], hlis 316 int hash; local 1195 int hash; local 1643 int hash; local 1661 int hash; local [all...] |
H A D | l2tp_debugfs.c | 12 #include <linux/hash.h> 126 int hash; local 129 for (hash = 0; hash < L2TP_HASH_SIZE; hash++) { 130 hlist_for_each_entry_rcu(session, &tunnel->session_hlist[hash], hlist) {
|
/linux-master/arch/powerpc/crypto/ |
H A D | crc32c-vpmsum_glue.c | 3 #include <crypto/internal/hash.h> 71 static int crc32c_vpmsum_setkey(struct crypto_shash *hash, const u8 *key, argument 74 u32 *mctx = crypto_shash_ctx(hash);
|
/linux-master/arch/x86/crypto/ |
H A D | crc32-pclmul_glue.c | 34 #include <crypto/internal/hash.h> 92 static int crc32_pclmul_setkey(struct crypto_shash *hash, const u8 *key, argument 95 u32 *mctx = crypto_shash_ctx(hash);
|
/linux-master/arch/sparc/crypto/ |
H A D | sha256_glue.c | 14 #include <crypto/internal/hash.h> 100 static int sha224_sparc64_final(struct shash_desc *desc, u8 *hash) argument 106 memcpy(hash, D, SHA224_DIGEST_SIZE);
|
H A D | sha512_glue.c | 13 #include <crypto/internal/hash.h> 104 static int sha384_sparc64_final(struct shash_desc *desc, u8 *hash) argument 110 memcpy(hash, D, 48);
|
H A D | crc32c_glue.c | 19 #include <crypto/internal/hash.h> 32 static int crc32c_sparc64_setkey(struct crypto_shash *hash, const u8 *key, argument 35 u32 *mctx = crypto_shash_ctx(hash);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lag/ |
H A D | debugfs.c | 106 bool hash = false; local 118 hash = true; 130 if (hash)
|
/linux-master/net/sunrpc/ |
H A D | cache.c | 63 int hash) 65 struct hlist_head *head = &detail->hash_table[hash]; 101 int hash) 104 struct hlist_head *head = &detail->hash_table[hash]; 147 struct cache_head *key, int hash) 151 ret = sunrpc_cache_find_rcu(detail, key, hash); 155 return sunrpc_cache_add_entry(detail, key, hash); 203 struct cache_head *new, struct cache_head *old, int hash) 233 hlist_add_head(&tmp->cache_list, &detail->hash_table[hash]); 565 * All deferred requests are stored in a hash tabl 61 sunrpc_cache_find_rcu(struct cache_detail *detail, struct cache_head *key, int hash) argument 99 sunrpc_cache_add_entry(struct cache_detail *detail, struct cache_head *key, int hash) argument 146 sunrpc_cache_lookup_rcu(struct cache_detail *detail, struct cache_head *key, int hash) argument 202 sunrpc_cache_update(struct cache_detail *detail, struct cache_head *new, struct cache_head *old, int hash) argument 596 int hash = DFR_HASH(item); local 736 int hash = DFR_HASH(item); local 1344 unsigned int hash, entry; local 1373 int hash = (*pos >> 32); local [all...] |
/linux-master/security/smack/ |
H A D | smack_access.c | 397 * smk_insert_entry - insert a smack label into a hash map, 404 unsigned int hash; local 407 hash = full_name_hash(NULL, skp->smk_known, strlen(skp->smk_known)); 408 head = &smack_known_hash[hash & (SMACK_HASH_SLOTS - 1)]; 423 unsigned int hash; local 427 hash = full_name_hash(NULL, string, strlen(string)); 428 head = &smack_known_hash[hash & (SMACK_HASH_SLOTS - 1)];
|
/linux-master/arch/powerpc/kernel/ |
H A D | vmlinux.lds.S | 341 .hash : AT(ADDR(.hash) - LOAD_OFFSET) { *(.hash) } 342 .gnu.hash : AT(ADDR(.gnu.hash) - LOAD_OFFSET) { *(.gnu.hash) }
|
/linux-master/net/core/ |
H A D | net-procfs.c | 215 int hash; local 243 hash = 0; 246 hash = ntohs(pt->type) & PTYPE_HASH_MASK; 248 while (nxt == &ptype_base[hash]) { 249 if (++hash >= PTYPE_HASH_SIZE) 251 nxt = ptype_base[hash].next;
|
/linux-master/drivers/net/ethernet/ti/ |
H A D | tlan.h | 517 * hash = XOR8(DA(a,0), DA(a, 6), DA(a,12), DA(a,18), DA(a,24), 519 * hash |= XOR8(DA(a,1), DA(a, 7), DA(a,13), DA(a,19), DA(a,25), 521 * hash |= XOR8(DA(a,2), DA(a, 8), DA(a,14), DA(a,20), DA(a,26), 523 * hash |= XOR8(DA(a,3), DA(a, 9), DA(a,15), DA(a,21), DA(a,27), 525 * hash |= XOR8(DA(a,4), DA(a,10), DA(a,16), DA(a,22), DA(a,28), 527 * hash |= XOR8(DA(a,5), DA(a,11), DA(a,17), DA(a,23), DA(a,29), 533 u8 hash; local 535 hash = (a[0]^a[3]); /* & 077 */ 536 hash ^= ((a[0]^a[3])>>6); /* & 003 */ 537 hash [all...] |
/linux-master/fs/hfsplus/ |
H A D | unicode.c | 390 unsigned long hash; local 397 hash = init_name_hash(dentry); 416 hash = partial_name_hash(c2, hash); 423 hash = partial_name_hash(c2, hash); 426 str->hash = end_name_hash(hash);
|
/linux-master/drivers/crypto/bcm/ |
H A D | util.c | 194 * do_shash() - Do a synchronous hash operation in software 195 * @name: The name of the hash algorithm 197 * @data1: First part of data to hash. May be NULL. 199 * @data2: Second part of data to hash. May be NULL. 201 * @key: Key (if keyed hash) 202 * @key_len: Length of key, in bytes (or 0 if non-keyed hash) 207 * Return: 0 if hash successfully stored in result 217 struct crypto_shash *hash; local 220 hash = crypto_alloc_shash(name, 0, 0); 221 if (IS_ERR(hash)) { [all...] |
/linux-master/drivers/target/tcm_fc/ |
H A D | tcm_fc.h | 29 u32 port_id; /* for hash lookup use only */ 35 struct hlist_node hash; /* linkage in ft_sess_hash table */ member in struct:ft_sess 37 struct kref kref; /* ref for hash and outstanding I/Os */ 57 u32 sess_count; /* number of sessions in hash */ 59 struct hlist_head hash[FT_SESS_HASH_SIZE]; /* list of sessions */ member in struct:ft_tport
|
/linux-master/include/crypto/ |
H A D | sha2.h | 85 unsigned int len, u8 *hash); 91 unsigned int len, u8 *hash); 97 * hash APIs from include/crypto/hash.h. Especially when hashing large
|