Lines Matching refs:val
16 #define hash_long(val, bits) hash_32(val, bits) argument
18 #define hash_long(val, bits) hash_64(val, bits) argument
60 static inline u32 __hash_32_generic(u32 val) in __hash_32_generic() argument
62 return val * GOLDEN_RATIO_32; in __hash_32_generic()
65 static inline u32 hash_32(u32 val, unsigned int bits) in hash_32() argument
68 return __hash_32(val) >> (32 - bits); in hash_32()
74 static __always_inline u32 hash_64_generic(u64 val, unsigned int bits) in hash_64_generic() argument
78 return val * GOLDEN_RATIO_64 >> (64 - bits); in hash_64_generic()
81 return hash_32((u32)val ^ __hash_32(val >> 32), bits); in hash_64_generic()
93 unsigned long val = (unsigned long)ptr; in hash32_ptr() local
96 val ^= (val >> 32); in hash32_ptr()
98 return (u32)val; in hash32_ptr()