Lines Matching refs:key
103 union ubifs_key *key, ino_t inum) in ino_key_init() argument
105 key->u32[0] = inum; in ino_key_init()
106 key->u32[1] = UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS; in ino_key_init()
118 union ubifs_key *key = k; in ino_key_init_flash() local
120 key->j32[0] = cpu_to_le32(inum); in ino_key_init_flash()
121 key->j32[1] = cpu_to_le32(UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS); in ino_key_init_flash()
132 union ubifs_key *key, ino_t inum) in lowest_ino_key() argument
134 key->u32[0] = inum; in lowest_ino_key()
135 key->u32[1] = 0; in lowest_ino_key()
145 union ubifs_key *key, ino_t inum) in highest_ino_key() argument
147 key->u32[0] = inum; in highest_ino_key()
148 key->u32[1] = 0xffffffff; in highest_ino_key()
159 union ubifs_key *key, ino_t inum, in dent_key_init() argument
166 key->u32[0] = inum; in dent_key_init()
167 key->u32[1] = hash | (UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS); in dent_key_init()
179 union ubifs_key *key, ino_t inum, in dent_key_init_hash() argument
183 key->u32[0] = inum; in dent_key_init_hash()
184 key->u32[1] = hash | (UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS); in dent_key_init_hash()
198 union ubifs_key *key = k; in dent_key_init_flash() local
202 key->j32[0] = cpu_to_le32(inum); in dent_key_init_flash()
203 key->j32[1] = cpu_to_le32(hash | in dent_key_init_flash()
215 union ubifs_key *key, ino_t inum) in lowest_dent_key() argument
217 key->u32[0] = inum; in lowest_dent_key()
218 key->u32[1] = UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS; in lowest_dent_key()
229 union ubifs_key *key, ino_t inum, in xent_key_init() argument
235 key->u32[0] = inum; in xent_key_init()
236 key->u32[1] = hash | (UBIFS_XENT_KEY << UBIFS_S_KEY_HASH_BITS); in xent_key_init()
249 union ubifs_key *key = k; in xent_key_init_flash() local
253 key->j32[0] = cpu_to_le32(inum); in xent_key_init_flash()
254 key->j32[1] = cpu_to_le32(hash | in xent_key_init_flash()
266 union ubifs_key *key, ino_t inum) in lowest_xent_key() argument
268 key->u32[0] = inum; in lowest_xent_key()
269 key->u32[1] = UBIFS_XENT_KEY << UBIFS_S_KEY_HASH_BITS; in lowest_xent_key()
280 union ubifs_key *key, ino_t inum, in data_key_init() argument
284 key->u32[0] = inum; in data_key_init()
285 key->u32[1] = block | (UBIFS_DATA_KEY << UBIFS_S_KEY_BLOCK_BITS); in data_key_init()
295 union ubifs_key *key, ino_t inum) in highest_data_key() argument
297 data_key_init(c, key, inum, UBIFS_S_KEY_BLOCK_MASK); in highest_data_key()
310 union ubifs_key *key, ino_t inum) in trun_key_init() argument
312 key->u32[0] = inum; in trun_key_init()
313 key->u32[1] = UBIFS_TRUN_KEY << UBIFS_S_KEY_BLOCK_BITS; in trun_key_init()
324 union ubifs_key *key) in invalid_key_init() argument
326 key->u32[0] = 0xDEADBEAF; in invalid_key_init()
327 key->u32[1] = UBIFS_INVALID_KEY; in invalid_key_init()
336 const union ubifs_key *key) in key_type() argument
338 return key->u32[1] >> UBIFS_S_KEY_BLOCK_BITS; in key_type()
348 const union ubifs_key *key = k; in key_type_flash() local
350 return le32_to_cpu(key->j32[1]) >> UBIFS_S_KEY_BLOCK_BITS; in key_type_flash()
360 const union ubifs_key *key = k; in key_inum() local
362 return key->u32[0]; in key_inum()
372 const union ubifs_key *key = k; in key_inum_flash() local
374 return le32_to_cpu(key->j32[0]); in key_inum_flash()
383 const union ubifs_key *key) in key_hash() argument
385 return key->u32[1] & UBIFS_S_KEY_HASH_MASK; in key_hash()
395 const union ubifs_key *key = k; in key_hash_flash() local
397 return le32_to_cpu(key->j32[1]) & UBIFS_S_KEY_HASH_MASK; in key_hash_flash()
406 const union ubifs_key *key) in key_block() argument
408 return key->u32[1] & UBIFS_S_KEY_BLOCK_MASK; in key_block()
419 const union ubifs_key *key = k; in key_block_flash() local
421 return le32_to_cpu(key->j32[1]) & UBIFS_S_KEY_BLOCK_MASK; in key_block_flash()
535 const union ubifs_key *key) in is_hash_key() argument
537 int type = key_type(c, key); in is_hash_key()