Lines Matching defs:hash
2 * linux/fs/ext3/hash.c
37 /* The old legacy hash */
42 __u32 hash = hash1 + (hash0 ^ (*name++ * 7152373));
44 if (hash & 0x80000000) hash -= 0x7fffffff;
46 hash0 = hash;
79 * Returns the hash of a filename. If len is 0 and name is NULL, then
80 * this function can be used to test whether or not a hash version is
84 * uniquify a hash. If the seed is all zero's, then some default seed
87 * A particular hash version specifies whether or not the seed is
88 * represented, and whether or not the returned hash is 32 bits or 64
89 * bits. 32 bit hashes will return 0 for the minor hash.
93 __u32 hash;
99 /* Initialize the default seed for the hash checksum functions */
117 hash = dx_hack_hash(name, len);
128 hash = buf[1];
138 hash = buf[0];
142 hinfo->hash = 0;
145 hash = hash & ~1;
146 if (hash == (EXT3_HTREE_EOF << 1))
147 hash = (EXT3_HTREE_EOF-1) << 1;
148 hinfo->hash = hash;