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
153 key->u32[0] = inum; in dent_key_init()
154 key->u32[1] = hash | (UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS); in dent_key_init()
166 union ubifs_key *key, ino_t inum, in dent_key_init_hash() argument
170 key->u32[0] = inum; in dent_key_init_hash()
171 key->u32[1] = hash | (UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS); in dent_key_init_hash()
185 union ubifs_key *key = k; in dent_key_init_flash() local
189 key->j32[0] = cpu_to_le32(inum); in dent_key_init_flash()
190 key->j32[1] = cpu_to_le32(hash | in dent_key_init_flash()
202 union ubifs_key *key, ino_t inum) in lowest_dent_key() argument
204 key->u32[0] = inum; in lowest_dent_key()
205 key->u32[1] = UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS; in lowest_dent_key()
216 union ubifs_key *key, ino_t inum, in xent_key_init() argument
222 key->u32[0] = inum; in xent_key_init()
223 key->u32[1] = hash | (UBIFS_XENT_KEY << UBIFS_S_KEY_HASH_BITS); in xent_key_init()
236 union ubifs_key *key = k; in xent_key_init_flash() local
240 key->j32[0] = cpu_to_le32(inum); in xent_key_init_flash()
241 key->j32[1] = cpu_to_le32(hash | in xent_key_init_flash()
253 union ubifs_key *key, ino_t inum) in lowest_xent_key() argument
255 key->u32[0] = inum; in lowest_xent_key()
256 key->u32[1] = UBIFS_XENT_KEY << UBIFS_S_KEY_HASH_BITS; in lowest_xent_key()
267 union ubifs_key *key, ino_t inum, in data_key_init() argument
271 key->u32[0] = inum; in data_key_init()
272 key->u32[1] = block | (UBIFS_DATA_KEY << UBIFS_S_KEY_BLOCK_BITS); in data_key_init()
282 union ubifs_key *key, ino_t inum) in highest_data_key() argument
284 data_key_init(c, key, inum, UBIFS_S_KEY_BLOCK_MASK); in highest_data_key()
297 union ubifs_key *key, ino_t inum) in trun_key_init() argument
299 key->u32[0] = inum; in trun_key_init()
300 key->u32[1] = UBIFS_TRUN_KEY << UBIFS_S_KEY_BLOCK_BITS; in trun_key_init()
311 union ubifs_key *key) in invalid_key_init() argument
313 key->u32[0] = 0xDEADBEAF; in invalid_key_init()
314 key->u32[1] = UBIFS_INVALID_KEY; in invalid_key_init()
323 const union ubifs_key *key) in key_type() argument
325 return key->u32[1] >> UBIFS_S_KEY_BLOCK_BITS; in key_type()
335 const union ubifs_key *key = k; in key_type_flash() local
337 return le32_to_cpu(key->j32[1]) >> UBIFS_S_KEY_BLOCK_BITS; in key_type_flash()
347 const union ubifs_key *key = k; in key_inum() local
349 return key->u32[0]; in key_inum()
359 const union ubifs_key *key = k; in key_inum_flash() local
361 return le32_to_cpu(key->j32[0]); in key_inum_flash()
370 const union ubifs_key *key) in key_hash() argument
372 return key->u32[1] & UBIFS_S_KEY_HASH_MASK; in key_hash()
382 const union ubifs_key *key = k; in key_hash_flash() local
384 return le32_to_cpu(key->j32[1]) & UBIFS_S_KEY_HASH_MASK; in key_hash_flash()
393 const union ubifs_key *key) in key_block() argument
395 return key->u32[1] & UBIFS_S_KEY_BLOCK_MASK; in key_block()
406 const union ubifs_key *key = k; in key_block_flash() local
408 return le32_to_cpu(key->j32[1]) & UBIFS_S_KEY_BLOCK_MASK; in key_block_flash()
522 const union ubifs_key *key) in is_hash_key() argument
524 int type = key_type(c, key); in is_hash_key()