Lines Matching refs:key
91 union ubifs_key *key, ino_t inum) in ino_key_init() argument
93 key->u32[0] = inum; in ino_key_init()
94 key->u32[1] = UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS; in ino_key_init()
106 union ubifs_key *key = k; in ino_key_init_flash() local
108 key->j32[0] = cpu_to_le32(inum); in ino_key_init_flash()
109 key->j32[1] = cpu_to_le32(UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS); in ino_key_init_flash()
120 union ubifs_key *key, ino_t inum) in lowest_ino_key() argument
122 key->u32[0] = inum; in lowest_ino_key()
123 key->u32[1] = 0; in lowest_ino_key()
133 union ubifs_key *key, ino_t inum) in highest_ino_key() argument
135 key->u32[0] = inum; in highest_ino_key()
136 key->u32[1] = 0xffffffff; in highest_ino_key()
147 union ubifs_key *key, ino_t inum, in dent_key_init() argument
154 key->u32[0] = inum; in dent_key_init()
155 key->u32[1] = hash | (UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS); in dent_key_init()
167 union ubifs_key *key, ino_t inum, in dent_key_init_hash() argument
171 key->u32[0] = inum; in dent_key_init_hash()
172 key->u32[1] = hash | (UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS); in dent_key_init_hash()
186 union ubifs_key *key = k; in dent_key_init_flash() local
190 key->j32[0] = cpu_to_le32(inum); in dent_key_init_flash()
191 key->j32[1] = cpu_to_le32(hash | in dent_key_init_flash()
203 union ubifs_key *key, ino_t inum) in lowest_dent_key() argument
205 key->u32[0] = inum; in lowest_dent_key()
206 key->u32[1] = UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS; in lowest_dent_key()
217 union ubifs_key *key, ino_t inum, in xent_key_init() argument
223 key->u32[0] = inum; in xent_key_init()
224 key->u32[1] = hash | (UBIFS_XENT_KEY << UBIFS_S_KEY_HASH_BITS); in xent_key_init()
237 union ubifs_key *key = k; in xent_key_init_flash() local
241 key->j32[0] = cpu_to_le32(inum); in xent_key_init_flash()
242 key->j32[1] = cpu_to_le32(hash | in xent_key_init_flash()
254 union ubifs_key *key, ino_t inum) in lowest_xent_key() argument
256 key->u32[0] = inum; in lowest_xent_key()
257 key->u32[1] = UBIFS_XENT_KEY << UBIFS_S_KEY_HASH_BITS; in lowest_xent_key()
268 union ubifs_key *key, ino_t inum, in data_key_init() argument
272 key->u32[0] = inum; in data_key_init()
273 key->u32[1] = block | (UBIFS_DATA_KEY << UBIFS_S_KEY_BLOCK_BITS); in data_key_init()
283 union ubifs_key *key, ino_t inum) in highest_data_key() argument
285 data_key_init(c, key, inum, UBIFS_S_KEY_BLOCK_MASK); in highest_data_key()
298 union ubifs_key *key, ino_t inum) in trun_key_init() argument
300 key->u32[0] = inum; in trun_key_init()
301 key->u32[1] = UBIFS_TRUN_KEY << UBIFS_S_KEY_BLOCK_BITS; in trun_key_init()
312 union ubifs_key *key) in invalid_key_init() argument
314 key->u32[0] = 0xDEADBEAF; in invalid_key_init()
315 key->u32[1] = UBIFS_INVALID_KEY; in invalid_key_init()
324 const union ubifs_key *key) in key_type() argument
326 return key->u32[1] >> UBIFS_S_KEY_BLOCK_BITS; in key_type()
336 const union ubifs_key *key = k; in key_type_flash() local
338 return le32_to_cpu(key->j32[1]) >> UBIFS_S_KEY_BLOCK_BITS; in key_type_flash()
348 const union ubifs_key *key = k; in key_inum() local
350 return key->u32[0]; in key_inum()
360 const union ubifs_key *key = k; in key_inum_flash() local
362 return le32_to_cpu(key->j32[0]); in key_inum_flash()
371 const union ubifs_key *key) in key_hash() argument
373 return key->u32[1] & UBIFS_S_KEY_HASH_MASK; in key_hash()
383 const union ubifs_key *key = k; in key_hash_flash() local
385 return le32_to_cpu(key->j32[1]) & UBIFS_S_KEY_HASH_MASK; in key_hash_flash()
394 const union ubifs_key *key) in key_block() argument
396 return key->u32[1] & UBIFS_S_KEY_BLOCK_MASK; in key_block()
407 const union ubifs_key *key = k; in key_block_flash() local
409 return le32_to_cpu(key->j32[1]) & UBIFS_S_KEY_BLOCK_MASK; in key_block_flash()
523 const union ubifs_key *key) in is_hash_key() argument
525 int type = key_type(c, key); in is_hash_key()