Lines Matching defs:key
64 return "unknown/invalid key";
91 const union ubifs_key *key, char *buffer, int len)
94 int type = key_type(c, key);
100 (unsigned long)key_inum(c, key),
106 (unsigned long)key_inum(c, key),
107 get_key_type(type), key_hash(c, key));
111 (unsigned long)key_inum(c, key),
112 get_key_type(type), key_block(c, key));
116 (unsigned long)key_inum(c, key),
120 len -= snprintf(p, len, "(bad key type: %#08x, %#08x)",
121 key->u32[0], key->u32[1]);
124 len -= snprintf(p, len, "bad key format %d", c->key_fmt);
228 union ubifs_key key;
271 lowest_dent_key(c, &key, inode->i_ino);
273 dent = ubifs_tnc_next_ent(c, &key, &nm);
289 key_read(c, &dent->key, &key);
297 union ubifs_key key;
442 key_read(c, &ino->key, &key);
444 dbg_snprintf_key(c, &key, key_buf, DBG_KEY_BUF_LEN));
477 key_read(c, &dent->key, &key);
479 dbg_snprintf_key(c, &key, key_buf, DBG_KEY_BUF_LEN));
502 key_read(c, &dn->key, &key);
504 dbg_snprintf_key(c, &key, key_buf, DBG_KEY_BUF_LEN));
544 key_read(c, &br->key, &key);
545 pr_err("\t%d: LEB %d:%d len %d key %s\n",
548 dbg_snprintf_key(c, &key, key_buf,
895 pr_err("\t%d: znode %p LEB %d:%d len %d key %s\n",
897 dbg_snprintf_key(c, &zbr->key, key_buf,
900 pr_err("\t%d: LNC %p LEB %d:%d len %d key %s\n",
902 dbg_snprintf_key(c, &zbr->key, key_buf,
1127 union ubifs_key key;
1138 lowest_dent_key(c, &key, dir->i_ino);
1142 dent = ubifs_tnc_next_ent(c, &key, &nm);
1158 key_read(c, &dent->key, &key);
1199 union ubifs_key key;
1202 ubifs_assert(c, !keys_cmp(c, &zbr1->key, &zbr2->key));
1228 key_read(c, &dent1->key, &key);
1229 if (keys_cmp(c, &zbr1->key, &key)) {
1230 ubifs_err(c, "1st entry at %d:%d has key %s", zbr1->lnum,
1231 zbr1->offs, dbg_snprintf_key(c, &key, key_buf,
1233 ubifs_err(c, "but it should have key %s according to tnc",
1234 dbg_snprintf_key(c, &zbr1->key, key_buf,
1240 key_read(c, &dent2->key, &key);
1241 if (keys_cmp(c, &zbr2->key, &key)) {
1242 ubifs_err(c, "2nd entry at %d:%d has key %s", zbr1->lnum,
1243 zbr1->offs, dbg_snprintf_key(c, &key, key_buf,
1245 ubifs_err(c, "but it should have key %s according to tnc",
1246 dbg_snprintf_key(c, &zbr2->key, key_buf,
1263 ubifs_err(c, "bad order of colliding key %s",
1264 dbg_snprintf_key(c, &key, key_buf, DBG_KEY_BUF_LEN));
1342 err = ubifs_search_zbranch(c, zp, &zbr->key, &n);
1356 if (keys_cmp(c, &zp->zbranch[n].key,
1357 &zp->zbranch[znode->iip].key)) {
1365 * Make sure that the first key in our znode is greater than or
1366 * equal to the key in the pointing zbranch.
1368 min = &zbr->key;
1369 cmp = keys_cmp(c, min, &znode->zbranch[0].key);
1376 max = &zp->zbranch[n + 1].key;
1379 * Make sure the last key in our znode is less or
1380 * equivalent than the key in the zbranch which goes
1384 &znode->zbranch[znode->child_cnt - 1].key);
1399 * Make sure that next key is greater or equivalent then the previous
1403 cmp = keys_cmp(c, &znode->zbranch[n - 1].key,
1404 &znode->zbranch[n].key);
1411 if (!is_hash_key(c, &znode->zbranch[n].key)) {
1529 * If the last key of this znode is equivalent to the first key
1534 !keys_cmp(c, &prev->zbranch[last].key,
1535 &znode->zbranch[0].key)) {
1819 ino_t inum = key_inum_flash(c, &ino->key);
1930 union ubifs_key key;
1940 ino_key_init(c, &key, inum);
1941 err = ubifs_lookup_level0(c, &key, &znode, &n);
2003 int err, type = key_type(c, &zbr->key);
2060 inum = key_inum_flash(c, &dn->key);
2070 blk_offs = key_block_flash(c, &dn->key);
2106 inum = key_inum_flash(c, &dent->key);
2165 union ubifs_key key;
2240 ino_key_init(c, &key, fscki->inum);
2241 err = ubifs_lookup_level0(c, &key, &znode, &n);
2347 inuma = key_inum(c, &sa->key);
2348 inumb = key_inum(c, &sb->key);
2358 blka = key_block(c, &sa->key);
2359 blkb = key_block(c, &sb->key);
2437 inuma = key_inum(c, &sa->key);
2438 inumb = key_inum(c, &sb->key);
2448 hasha = key_block(c, &sa->key);
2449 hashb = key_block(c, &sb->key);