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()
153 ubifs_assert(c, !nm->hash && !nm->minor_hash); in dent_key_init()
155 key->u32[1] = hash | (UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS); in dent_key_init()
168 uint32_t hash) in dent_key_init_hash() argument
170 ubifs_assert(c, !(hash & ~UBIFS_S_KEY_HASH_MASK)); in dent_key_init_hash()
172 key->u32[1] = hash | (UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS); in dent_key_init_hash()
187 uint32_t hash = c->key_hash(fname_name(nm), fname_len(nm)); in dent_key_init_flash() local
189 ubifs_assert(c, !(hash & ~UBIFS_S_KEY_HASH_MASK)); in dent_key_init_flash()
191 key->j32[1] = cpu_to_le32(hash | in dent_key_init_flash()
220 uint32_t hash = c->key_hash(fname_name(nm), fname_len(nm)); in xent_key_init() local
222 ubifs_assert(c, !(hash & ~UBIFS_S_KEY_HASH_MASK)); in xent_key_init()
224 key->u32[1] = hash | (UBIFS_XENT_KEY << UBIFS_S_KEY_HASH_BITS); in xent_key_init()
238 uint32_t hash = c->key_hash(fname_name(nm), fname_len(nm)); in xent_key_init_flash() local
240 ubifs_assert(c, !(hash & ~UBIFS_S_KEY_HASH_MASK)); in xent_key_init_flash()
242 key->j32[1] = cpu_to_le32(hash | in xent_key_init_flash()