Lines Matching defs:hash
3 * linux/fs/ext4/hash.c
102 /* The old legacy hash */
105 __u32 hash, hash0 = 0x12a3fe2d, hash1 = 0x37abe8f9;
109 hash = hash1 + (hash0 ^ (((int) *ucp++) * 7152373));
111 if (hash & 0x80000000)
112 hash -= 0x7fffffff;
114 hash0 = hash;
121 __u32 hash, hash0 = 0x12a3fe2d, hash1 = 0x37abe8f9;
125 hash = hash1 + (hash0 ^ (((int) *scp++) * 7152373));
127 if (hash & 0x80000000)
128 hash -= 0x7fffffff;
130 hash0 = hash;
188 * Returns the hash of a filename. If len is 0 and name is NULL, then
189 * this function can be used to test whether or not a hash version is
193 * uniquify a hash. If the seed is all zero's, then some default seed
196 * A particular hash version specifies whether or not the seed is
197 * represented, and whether or not the returned hash is 32 bits or 64
198 * bits. 32 bit hashes will return 0 for the minor hash.
203 __u32 hash;
211 /* Initialize the default seed for the hash checksum functions */
229 hash = dx_hack_hash_unsigned(name, len);
232 hash = dx_hack_hash_signed(name, len);
246 hash = buf[1];
259 hash = buf[0];
274 hash = (__u32)(combined_hash >> 32);
279 hinfo->hash = 0;
282 "invalid/unsupported hash tree version %u",
286 hash = hash & ~1;
287 if (hash == (EXT4_HTREE_EOF_32BIT << 1))
288 hash = (EXT4_HTREE_EOF_32BIT - 1) << 1;
289 hinfo->hash = hash;