Lines Matching refs:key
17 static char *reiserfs_cpu_offset(struct cpu_key *key) in reiserfs_cpu_offset() argument
19 if (cpu_key_k_type(key) == TYPE_DIRENTRY) in reiserfs_cpu_offset()
22 GET_HASH_VALUE(cpu_key_k_offset(key)), in reiserfs_cpu_offset()
24 GET_GENERATION_NUMBER(cpu_key_k_offset(key))); in reiserfs_cpu_offset()
27 (unsigned long long)cpu_key_k_offset(key)); in reiserfs_cpu_offset()
31 static char *le_offset(struct reiserfs_key *key) in le_offset() argument
35 version = le_key_version(key); in le_offset()
36 if (le_key_k_type(version, key) == TYPE_DIRENTRY) in le_offset()
39 GET_HASH_VALUE(le_key_k_offset(version, key)), in le_offset()
41 GET_GENERATION_NUMBER(le_key_k_offset(version, key))); in le_offset()
44 (unsigned long long)le_key_k_offset(version, key)); in le_offset()
48 static char *cpu_type(struct cpu_key *key) in cpu_type() argument
50 if (cpu_key_k_type(key) == TYPE_STAT_DATA) in cpu_type()
52 if (cpu_key_k_type(key) == TYPE_DIRENTRY) in cpu_type()
54 if (cpu_key_k_type(key) == TYPE_DIRECT) in cpu_type()
56 if (cpu_key_k_type(key) == TYPE_INDIRECT) in cpu_type()
61 static char *le_type(struct reiserfs_key *key) in le_type() argument
65 version = le_key_version(key); in le_type()
67 if (le_key_k_type(version, key) == TYPE_STAT_DATA) in le_type()
69 if (le_key_k_type(version, key) == TYPE_DIRENTRY) in le_type()
71 if (le_key_k_type(version, key) == TYPE_DIRECT) in le_type()
73 if (le_key_k_type(version, key) == TYPE_INDIRECT) in le_type()
79 static void sprintf_le_key(char *buf, struct reiserfs_key *key) in sprintf_le_key() argument
81 if (key) in sprintf_le_key()
82 sprintf(buf, "[%d %d %s %s]", le32_to_cpu(key->k_dir_id), in sprintf_le_key()
83 le32_to_cpu(key->k_objectid), le_offset(key), in sprintf_le_key()
84 le_type(key)); in sprintf_le_key()
90 static void sprintf_cpu_key(char *buf, struct cpu_key *key) in sprintf_cpu_key() argument
92 if (key) in sprintf_cpu_key()
93 sprintf(buf, "[%d %d %s %s]", key->on_disk_key.k_dir_id, in sprintf_cpu_key()
94 key->on_disk_key.k_objectid, reiserfs_cpu_offset(key), in sprintf_cpu_key()
95 cpu_type(key)); in sprintf_cpu_key()
418 struct reiserfs_key *key; in print_internal() local
441 for (i = from, key = B_N_PDELIM_KEY(bh, from), dc++; i < to; in print_internal()
442 i++, key++, dc++) { in print_internal()
443 reiserfs_printk("KEY %d: %k PTR %d: %y ", i, key, i + 1, dc); in print_internal()