Lines Matching refs:hash
70 static inline __init unsigned long rotate_xor(unsigned long hash,
74 const typeof(hash) *ptr = PTR_ALIGN(area, sizeof(hash));
77 if (size < diff + sizeof(hash))
78 return hash;
80 size = ALIGN_DOWN(size - diff, sizeof(hash));
82 for (i = 0; i < size / sizeof(hash); i++) {
84 hash = (hash << ((sizeof(hash) * 8) - 7)) | (hash >> 7);
85 hash ^= ptr[i];
88 return hash;
93 unsigned long hash = 0;
97 hash = rotate_xor(hash, linux_banner, strlen(linux_banner));
100 hash = rotate_xor(hash, &entropy, sizeof(entropy));
102 return hash;