Lines Matching refs:hash
42 static inline uint32_t key_mask_hash(uint32_t hash) in key_mask_hash() argument
44 hash &= UBIFS_S_KEY_HASH_MASK; in key_mask_hash()
45 if (unlikely(hash <= 2)) in key_mask_hash()
46 hash += 3; in key_mask_hash()
47 return hash; in key_mask_hash()
150 uint32_t hash = c->key_hash(fname_name(nm), fname_len(nm)); in dent_key_init() local
152 ubifs_assert(c, !(hash & ~UBIFS_S_KEY_HASH_MASK)); in dent_key_init()
154 key->u32[1] = hash | (UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS); in dent_key_init()
167 uint32_t hash) in dent_key_init_hash() argument
169 ubifs_assert(c, !(hash & ~UBIFS_S_KEY_HASH_MASK)); in dent_key_init_hash()
171 key->u32[1] = hash | (UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS); in dent_key_init_hash()
186 uint32_t hash = c->key_hash(fname_name(nm), fname_len(nm)); in dent_key_init_flash() local
188 ubifs_assert(c, !(hash & ~UBIFS_S_KEY_HASH_MASK)); in dent_key_init_flash()
190 key->j32[1] = cpu_to_le32(hash | in dent_key_init_flash()
219 uint32_t hash = c->key_hash(fname_name(nm), fname_len(nm)); in xent_key_init() local
221 ubifs_assert(c, !(hash & ~UBIFS_S_KEY_HASH_MASK)); in xent_key_init()
223 key->u32[1] = hash | (UBIFS_XENT_KEY << UBIFS_S_KEY_HASH_BITS); in xent_key_init()
237 uint32_t hash = c->key_hash(fname_name(nm), fname_len(nm)); in xent_key_init_flash() local
239 ubifs_assert(c, !(hash & ~UBIFS_S_KEY_HASH_MASK)); in xent_key_init_flash()
241 key->j32[1] = cpu_to_le32(hash | in xent_key_init_flash()