Lines Matching refs:key

85 				union ubifs_key *key, ino_t inum)  in ino_key_init()  argument
87 key->u32[0] = inum; in ino_key_init()
88 key->u32[1] = UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS; in ino_key_init()
100 union ubifs_key *key = k; in ino_key_init_flash() local
102 key->j32[0] = cpu_to_le32(inum); in ino_key_init_flash()
103 key->j32[1] = cpu_to_le32(UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS); in ino_key_init_flash()
114 union ubifs_key *key, ino_t inum) in lowest_ino_key() argument
116 key->u32[0] = inum; in lowest_ino_key()
117 key->u32[1] = 0; in lowest_ino_key()
127 union ubifs_key *key, ino_t inum) in highest_ino_key() argument
129 key->u32[0] = inum; in highest_ino_key()
130 key->u32[1] = 0xffffffff; in highest_ino_key()
141 union ubifs_key *key, ino_t inum, in dent_key_init() argument
147 key->u32[0] = inum; in dent_key_init()
148 key->u32[1] = hash | (UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS); in dent_key_init()
160 union ubifs_key *key, ino_t inum, in dent_key_init_hash() argument
164 key->u32[0] = inum; in dent_key_init_hash()
165 key->u32[1] = hash | (UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS); in dent_key_init_hash()
178 union ubifs_key *key = k; in dent_key_init_flash() local
182 key->j32[0] = cpu_to_le32(inum); in dent_key_init_flash()
183 key->j32[1] = cpu_to_le32(hash | in dent_key_init_flash()
195 union ubifs_key *key, ino_t inum) in lowest_dent_key() argument
197 key->u32[0] = inum; in lowest_dent_key()
198 key->u32[1] = UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS; in lowest_dent_key()
209 union ubifs_key *key, ino_t inum, in xent_key_init() argument
215 key->u32[0] = inum; in xent_key_init()
216 key->u32[1] = hash | (UBIFS_XENT_KEY << UBIFS_S_KEY_HASH_BITS); in xent_key_init()
229 union ubifs_key *key = k; in xent_key_init_flash() local
233 key->j32[0] = cpu_to_le32(inum); in xent_key_init_flash()
234 key->j32[1] = cpu_to_le32(hash | in xent_key_init_flash()
246 union ubifs_key *key, ino_t inum) in lowest_xent_key() argument
248 key->u32[0] = inum; in lowest_xent_key()
249 key->u32[1] = UBIFS_XENT_KEY << UBIFS_S_KEY_HASH_BITS; in lowest_xent_key()
260 union ubifs_key *key, ino_t inum, in data_key_init() argument
264 key->u32[0] = inum; in data_key_init()
265 key->u32[1] = block | (UBIFS_DATA_KEY << UBIFS_S_KEY_BLOCK_BITS); in data_key_init()
275 union ubifs_key *key, ino_t inum) in highest_data_key() argument
277 data_key_init(c, key, inum, UBIFS_S_KEY_BLOCK_MASK); in highest_data_key()
290 union ubifs_key *key, ino_t inum) in trun_key_init() argument
292 key->u32[0] = inum; in trun_key_init()
293 key->u32[1] = UBIFS_TRUN_KEY << UBIFS_S_KEY_BLOCK_BITS; in trun_key_init()
304 union ubifs_key *key) in invalid_key_init() argument
306 key->u32[0] = 0xDEADBEAF; in invalid_key_init()
307 key->u32[1] = UBIFS_INVALID_KEY; in invalid_key_init()
316 const union ubifs_key *key) in key_type() argument
318 return key->u32[1] >> UBIFS_S_KEY_BLOCK_BITS; in key_type()
328 const union ubifs_key *key = k; in key_type_flash() local
330 return le32_to_cpu(key->j32[1]) >> UBIFS_S_KEY_BLOCK_BITS; in key_type_flash()
340 const union ubifs_key *key = k; in key_inum() local
342 return key->u32[0]; in key_inum()
352 const union ubifs_key *key = k; in key_inum_flash() local
354 return le32_to_cpu(key->j32[0]); in key_inum_flash()
363 const union ubifs_key *key) in key_hash() argument
365 return key->u32[1] & UBIFS_S_KEY_HASH_MASK; in key_hash()
375 const union ubifs_key *key = k; in key_hash_flash() local
377 return le32_to_cpu(key->j32[1]) & UBIFS_S_KEY_HASH_MASK; in key_hash_flash()
386 const union ubifs_key *key) in key_block() argument
388 return key->u32[1] & UBIFS_S_KEY_BLOCK_MASK; in key_block()
399 const union ubifs_key *key = k; in key_block_flash() local
401 return le32_to_cpu(key->j32[1]) & UBIFS_S_KEY_BLOCK_MASK; in key_block_flash()
515 const union ubifs_key *key) in is_hash_key() argument
517 int type = key_type(c, key); in is_hash_key()