Lines Matching refs:hash
105 __u32 hash, hash0 = 0x12a3fe2d, hash1 = 0x37abe8f9; in dx_hack_hash_unsigned() local
109 hash = hash1 + (hash0 ^ (((int) *ucp++) * 7152373)); in dx_hack_hash_unsigned()
111 if (hash & 0x80000000) in dx_hack_hash_unsigned()
112 hash -= 0x7fffffff; in dx_hack_hash_unsigned()
114 hash0 = hash; in dx_hack_hash_unsigned()
121 __u32 hash, hash0 = 0x12a3fe2d, hash1 = 0x37abe8f9; in dx_hack_hash_signed() local
125 hash = hash1 + (hash0 ^ (((int) *scp++) * 7152373)); in dx_hack_hash_signed()
127 if (hash & 0x80000000) in dx_hack_hash_signed()
128 hash -= 0x7fffffff; in dx_hack_hash_signed()
130 hash0 = hash; in dx_hack_hash_signed()
203 __u32 hash; in __ext4fs_dirhash() local
229 hash = dx_hack_hash_unsigned(name, len); in __ext4fs_dirhash()
232 hash = dx_hack_hash_signed(name, len); in __ext4fs_dirhash()
246 hash = buf[1]; in __ext4fs_dirhash()
259 hash = buf[0]; in __ext4fs_dirhash()
274 hash = (__u32)(combined_hash >> 32); in __ext4fs_dirhash()
279 hinfo->hash = 0; in __ext4fs_dirhash()
286 hash = hash & ~1; in __ext4fs_dirhash()
287 if (hash == (EXT4_HTREE_EOF_32BIT << 1)) in __ext4fs_dirhash()
288 hash = (EXT4_HTREE_EOF_32BIT - 1) << 1; in __ext4fs_dirhash()
289 hinfo->hash = hash; in __ext4fs_dirhash()