Lines Matching refs:key
97 union ubifs_key *key, ino_t inum) in ino_key_init() argument
99 key->u32[0] = inum; in ino_key_init()
100 key->u32[1] = UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS; in ino_key_init()
112 union ubifs_key *key = k; in ino_key_init_flash() local
114 key->j32[0] = cpu_to_le32(inum); in ino_key_init_flash()
115 key->j32[1] = cpu_to_le32(UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS); in ino_key_init_flash()
126 union ubifs_key *key, ino_t inum) in lowest_ino_key() argument
128 key->u32[0] = inum; in lowest_ino_key()
129 key->u32[1] = 0; in lowest_ino_key()
139 union ubifs_key *key, ino_t inum) in highest_ino_key() argument
141 key->u32[0] = inum; in highest_ino_key()
142 key->u32[1] = 0xffffffff; in highest_ino_key()
153 union ubifs_key *key, ino_t inum, in dent_key_init() argument
159 key->u32[0] = inum; in dent_key_init()
160 key->u32[1] = hash | (UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS); in dent_key_init()
172 union ubifs_key *key, ino_t inum, in dent_key_init_hash() argument
176 key->u32[0] = inum; in dent_key_init_hash()
177 key->u32[1] = hash | (UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS); in dent_key_init_hash()
190 union ubifs_key *key = k; in dent_key_init_flash() local
194 key->j32[0] = cpu_to_le32(inum); in dent_key_init_flash()
195 key->j32[1] = cpu_to_le32(hash | in dent_key_init_flash()
207 union ubifs_key *key, ino_t inum) in lowest_dent_key() argument
209 key->u32[0] = inum; in lowest_dent_key()
210 key->u32[1] = UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS; in lowest_dent_key()
221 union ubifs_key *key, ino_t inum, in xent_key_init() argument
227 key->u32[0] = inum; in xent_key_init()
228 key->u32[1] = hash | (UBIFS_XENT_KEY << UBIFS_S_KEY_HASH_BITS); in xent_key_init()
241 union ubifs_key *key = k; in xent_key_init_flash() local
245 key->j32[0] = cpu_to_le32(inum); in xent_key_init_flash()
246 key->j32[1] = cpu_to_le32(hash | in xent_key_init_flash()
258 union ubifs_key *key, ino_t inum) in lowest_xent_key() argument
260 key->u32[0] = inum; in lowest_xent_key()
261 key->u32[1] = UBIFS_XENT_KEY << UBIFS_S_KEY_HASH_BITS; in lowest_xent_key()
272 union ubifs_key *key, ino_t inum, in data_key_init() argument
276 key->u32[0] = inum; in data_key_init()
277 key->u32[1] = block | (UBIFS_DATA_KEY << UBIFS_S_KEY_BLOCK_BITS); in data_key_init()
287 union ubifs_key *key, ino_t inum) in highest_data_key() argument
289 data_key_init(c, key, inum, UBIFS_S_KEY_BLOCK_MASK); in highest_data_key()
302 union ubifs_key *key, ino_t inum) in trun_key_init() argument
304 key->u32[0] = inum; in trun_key_init()
305 key->u32[1] = UBIFS_TRUN_KEY << UBIFS_S_KEY_BLOCK_BITS; in trun_key_init()
316 union ubifs_key *key) in invalid_key_init() argument
318 key->u32[0] = 0xDEADBEAF; in invalid_key_init()
319 key->u32[1] = UBIFS_INVALID_KEY; in invalid_key_init()
328 const union ubifs_key *key) in key_type() argument
330 return key->u32[1] >> UBIFS_S_KEY_BLOCK_BITS; in key_type()
340 const union ubifs_key *key = k; in key_type_flash() local
342 return le32_to_cpu(key->j32[1]) >> UBIFS_S_KEY_BLOCK_BITS; in key_type_flash()
352 const union ubifs_key *key = k; in key_inum() local
354 return key->u32[0]; in key_inum()
364 const union ubifs_key *key = k; in key_inum_flash() local
366 return le32_to_cpu(key->j32[0]); in key_inum_flash()
375 const union ubifs_key *key) in key_hash() argument
377 return key->u32[1] & UBIFS_S_KEY_HASH_MASK; in key_hash()
387 const union ubifs_key *key = k; in key_hash_flash() local
389 return le32_to_cpu(key->j32[1]) & UBIFS_S_KEY_HASH_MASK; in key_hash_flash()
398 const union ubifs_key *key) in key_block() argument
400 return key->u32[1] & UBIFS_S_KEY_BLOCK_MASK; in key_block()
411 const union ubifs_key *key = k; in key_block_flash() local
413 return le32_to_cpu(key->j32[1]) & UBIFS_S_KEY_BLOCK_MASK; in key_block_flash()
527 const union ubifs_key *key) in is_hash_key() argument
529 int type = key_type(c, key); in is_hash_key()