Lines Matching refs:key

86 				union ubifs_key *key, ino_t inum)  in ino_key_init()  argument
88 key->u32[0] = inum; in ino_key_init()
89 key->u32[1] = UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS; in ino_key_init()
101 union ubifs_key *key = k; in ino_key_init_flash() local
103 key->j32[0] = cpu_to_le32(inum); in ino_key_init_flash()
104 key->j32[1] = cpu_to_le32(UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS); in ino_key_init_flash()
115 union ubifs_key *key, ino_t inum) in lowest_ino_key() argument
117 key->u32[0] = inum; in lowest_ino_key()
118 key->u32[1] = 0; in lowest_ino_key()
128 union ubifs_key *key, ino_t inum) in highest_ino_key() argument
130 key->u32[0] = inum; in highest_ino_key()
131 key->u32[1] = 0xffffffff; in highest_ino_key()
142 union ubifs_key *key, ino_t inum, in dent_key_init() argument
148 key->u32[0] = inum; in dent_key_init()
149 key->u32[1] = hash | (UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS); in dent_key_init()
161 union ubifs_key *key, ino_t inum, in dent_key_init_hash() argument
165 key->u32[0] = inum; in dent_key_init_hash()
166 key->u32[1] = hash | (UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS); in dent_key_init_hash()
179 union ubifs_key *key = k; in dent_key_init_flash() local
183 key->j32[0] = cpu_to_le32(inum); in dent_key_init_flash()
184 key->j32[1] = cpu_to_le32(hash | in dent_key_init_flash()
196 union ubifs_key *key, ino_t inum) in lowest_dent_key() argument
198 key->u32[0] = inum; in lowest_dent_key()
199 key->u32[1] = UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS; in lowest_dent_key()
210 union ubifs_key *key, ino_t inum, in xent_key_init() argument
216 key->u32[0] = inum; in xent_key_init()
217 key->u32[1] = hash | (UBIFS_XENT_KEY << UBIFS_S_KEY_HASH_BITS); in xent_key_init()
230 union ubifs_key *key = k; in xent_key_init_flash() local
234 key->j32[0] = cpu_to_le32(inum); in xent_key_init_flash()
235 key->j32[1] = cpu_to_le32(hash | in xent_key_init_flash()
247 union ubifs_key *key, ino_t inum) in lowest_xent_key() argument
249 key->u32[0] = inum; in lowest_xent_key()
250 key->u32[1] = UBIFS_XENT_KEY << UBIFS_S_KEY_HASH_BITS; in lowest_xent_key()
261 union ubifs_key *key, ino_t inum, in data_key_init() argument
265 key->u32[0] = inum; in data_key_init()
266 key->u32[1] = block | (UBIFS_DATA_KEY << UBIFS_S_KEY_BLOCK_BITS); in data_key_init()
276 union ubifs_key *key, ino_t inum) in highest_data_key() argument
278 data_key_init(c, key, inum, UBIFS_S_KEY_BLOCK_MASK); in highest_data_key()
291 union ubifs_key *key, ino_t inum) in trun_key_init() argument
293 key->u32[0] = inum; in trun_key_init()
294 key->u32[1] = UBIFS_TRUN_KEY << UBIFS_S_KEY_BLOCK_BITS; in trun_key_init()
305 union ubifs_key *key) in invalid_key_init() argument
307 key->u32[0] = 0xDEADBEAF; in invalid_key_init()
308 key->u32[1] = UBIFS_INVALID_KEY; in invalid_key_init()
317 const union ubifs_key *key) in key_type() argument
319 return key->u32[1] >> UBIFS_S_KEY_BLOCK_BITS; in key_type()
329 const union ubifs_key *key = k; in key_type_flash() local
331 return le32_to_cpu(key->j32[1]) >> UBIFS_S_KEY_BLOCK_BITS; in key_type_flash()
341 const union ubifs_key *key = k; in key_inum() local
343 return key->u32[0]; in key_inum()
353 const union ubifs_key *key = k; in key_inum_flash() local
355 return le32_to_cpu(key->j32[0]); in key_inum_flash()
364 const union ubifs_key *key) in key_hash() argument
366 return key->u32[1] & UBIFS_S_KEY_HASH_MASK; in key_hash()
376 const union ubifs_key *key = k; in key_hash_flash() local
378 return le32_to_cpu(key->j32[1]) & UBIFS_S_KEY_HASH_MASK; in key_hash_flash()
387 const union ubifs_key *key) in key_block() argument
389 return key->u32[1] & UBIFS_S_KEY_BLOCK_MASK; in key_block()
400 const union ubifs_key *key = k; in key_block_flash() local
402 return le32_to_cpu(key->j32[1]) & UBIFS_S_KEY_BLOCK_MASK; in key_block_flash()
516 const union ubifs_key *key) in is_hash_key() argument
518 int type = key_type(c, key); in is_hash_key()