Lines Matching defs:key
42 /* Generates key for catalog file/folders record. */
44 hfsplus_btree_key *key, u32 parent, const struct qstr *str)
48 key->cat.parent = cpu_to_be32(parent);
49 err = hfsplus_asc2uni(sb, &key->cat.name, HFSPLUS_MAX_STRLEN,
54 len = be16_to_cpu(key->cat.name.length);
55 key->key_len = cpu_to_be16(6 + 2 * len);
59 /* Generates key for catalog thread record. */
61 hfsplus_btree_key *key, u32 parent)
63 key->cat.parent = cpu_to_be32(parent);
64 key->cat.name.length = 0;
65 key->key_len = cpu_to_be16(6);
68 static void hfsplus_cat_build_key_uni(hfsplus_btree_key *key, u32 parent,
74 key->cat.parent = cpu_to_be32(parent);
75 key->cat.name.length = cpu_to_be16(ustrlen);
77 memcpy(key->cat.name.unicode, name->unicode, ustrlen);
78 key->key_len = cpu_to_be16(6 + ustrlen);
399 if (fd.tree->keycmp(fd.search_key, (void *)&rd->key) < 0)