/linux/fs/hfs/ |
H A D | catalog.c | 108 hfs_cat_build_key(sb, fd.search_key, cnid, NULL); in hfs_cat_create() 122 hfs_cat_build_key(sb, fd.search_key, dir->i_ino, str); in hfs_cat_create() 142 hfs_cat_build_key(sb, fd.search_key, cnid, NULL); in hfs_cat_create() 193 hfs_cat_build_key(sb, fd->search_key, cnid, NULL); in hfs_cat_find_brec() 204 fd->search_key->cat.ParID = rec.thread.ParID; in hfs_cat_find_brec() 205 len = fd->search_key->cat.CName.len = rec.thread.CName.len; in hfs_cat_find_brec() 210 memcpy(fd->search_key->cat.CName.name, rec.thread.CName.name, len); in hfs_cat_find_brec() 234 hfs_cat_build_key(sb, fd.search_key, dir->i_ino, str); in hfs_cat_delete() 254 if (fd.tree->keycmp(fd.search_key, (void *)&rd->key) < 0) in hfs_cat_delete() 263 hfs_cat_build_key(sb, fd.search_key, cnid, NULL); in hfs_cat_delete() [all …]
|
H A D | brec.c | 85 key_len = (fd->search_key->key_len | 1) + 1; in hfs_brec_insert() 132 hfs_bnode_write(node, fd->search_key, data_off, key_len); in hfs_brec_insert() 141 hfs_bnode_read_key(node, fd->search_key, data_off + size); in hfs_brec_insert() 159 hfs_bnode_read_key(new_node, fd->search_key, 14); in hfs_brec_insert() 166 key_len = fd->search_key->key_len + 1; in hfs_brec_insert() 168 fd->search_key->key_len = tree->max_key_len; in hfs_brec_insert() 434 hfs_bnode_read_key(new_node, fd->search_key, 14); in hfs_brec_update_parent() 446 hfs_bnode_read_key(node, fd->search_key, 14); in hfs_brec_update_parent()
|
H A D | bfind.c | 24 fd->search_key = ptr; in hfs_find_init() 47 kfree(fd->search_key); in hfs_find_exit() 75 cmpval = bnode->tree->keycmp(fd->key, fd->search_key); in __hfs_brec_find()
|
H A D | attr.c | 36 fd.search_key->cat = HFS_I(inode)->cat_key; in __hfs_setxattr() 83 fd.search_key->cat = HFS_I(inode)->cat_key; in __hfs_getxattr()
|
H A D | dir.c | 31 hfs_cat_build_key(dir->i_sb, fd.search_key, dir->i_ino, &dentry->d_name); in hfs_lookup() 37 inode = hfs_iget(dir->i_sb, &fd.search_key->cat, &rec); in hfs_lookup() 65 hfs_cat_build_key(sb, fd.search_key, inode->i_ino, NULL); in hfs_readdir()
|
H A D | extent.c | 114 hfs_ext_build_key(fd->search_key, inode->i_ino, HFS_I(inode)->cached_start, in __hfs_ext_write_extent() 155 hfs_ext_build_key(fd->search_key, cnid, block, type); in __hfs_ext_read_extent() 160 if (fd->key->ext.FNum != fd->search_key->ext.FNum || in __hfs_ext_read_extent() 161 fd->key->ext.FkType != fd->search_key->ext.FkType) in __hfs_ext_read_extent()
|
H A D | btree.h | 79 btree_key *search_key; member
|
H A D | inode.c | 462 fd.search_key->cat = HFS_I(main_inode)->cat_key; in hfs_write_inode() 538 fd.search_key->cat = HFS_I(dir)->cat_key; in hfs_file_lookup()
|
H A D | super.c | 431 root_inode = hfs_iget(sb, &fd.search_key->cat, &rec); in hfs_fill_super()
|
/linux/fs/hfsplus/ |
H A D | catalog.c | 201 hfsplus_cat_build_key_with_cnid(sb, fd->search_key, cnid); in hfsplus_find_cat() 217 hfsplus_cat_build_key_uni(fd->search_key, in hfsplus_find_cat() 276 hfsplus_cat_build_key_with_cnid(sb, fd.search_key, cnid); in hfsplus_create_cat() 296 err = hfsplus_cat_build_key(sb, fd.search_key, dir->i_ino, str); in hfsplus_create_cat() 322 hfsplus_cat_build_key_with_cnid(sb, fd.search_key, cnid); in hfsplus_create_cat() 355 hfsplus_cat_build_key_with_cnid(sb, fd.search_key, cnid); in hfsplus_delete_cat() 362 fd.search_key->cat.parent = cpu_to_be32(dir->i_ino); in hfsplus_delete_cat() 364 &fd.search_key->cat.name.length, off, 2); in hfsplus_delete_cat() 365 len = be16_to_cpu(fd.search_key->cat.name.length) * 2; in hfsplus_delete_cat() 367 &fd.search_key->cat.name.unicode, in hfsplus_delete_cat() [all …]
|
H A D | bfind.c | 24 fd->search_key = ptr; in hfs_find_init() 36 kfree(fd->search_key); in hfs_find_exit() 54 search_cnid = fd->search_key->ext.cnid; in hfs_find_1st_rec_by_cnid() 57 search_cnid = fd->search_key->cat.parent; in hfs_find_1st_rec_by_cnid() 60 search_cnid = fd->search_key->attr.cnid; in hfs_find_1st_rec_by_cnid() 89 cmpval = bnode->tree->keycmp(fd->key, fd->search_key); in hfs_find_rec_by_key()
|
H A D | attributes.c | 150 err = hfsplus_attr_build_key(sb, fd->search_key, cnid, name); in hfsplus_find_attr() 157 err = hfsplus_attr_build_key(sb, fd->search_key, cnid, NULL); in hfsplus_find_attr() 226 err = hfsplus_attr_build_key(sb, fd.search_key, in hfsplus_create_attr() 296 hfs_bnode_read(fd->bnode, fd->search_key, in __hfsplus_delete_attr() 331 err = hfsplus_attr_build_key(sb, fd.search_key, in hfsplus_delete_attr()
|
H A D | brec.c | 83 key_len = be16_to_cpu(fd->search_key->key_len) + 2; in hfs_brec_insert() 132 hfs_bnode_write(node, fd->search_key, data_off, key_len); in hfs_brec_insert() 141 hfs_bnode_read_key(node, fd->search_key, data_off + size); in hfs_brec_insert() 159 hfs_bnode_read_key(new_node, fd->search_key, 14); in hfs_brec_insert() 167 key_len = be16_to_cpu(fd->search_key->key_len) + 2; in hfs_brec_insert() 169 fd->search_key->key_len = in hfs_brec_insert() 438 hfs_bnode_read_key(new_node, fd->search_key, 14); in hfs_brec_update_parent() 450 hfs_bnode_read_key(node, fd->search_key, 14); in hfs_brec_update_parent()
|
H A D | extents.c | 95 hfsplus_ext_build_key(fd->search_key, inode->i_ino, hip->cached_start, in __hfsplus_ext_write_extent() 162 hfsplus_ext_build_key(fd->search_key, cnid, block, type); in __hfsplus_ext_read_extent() 167 if (fd->key->ext.cnid != fd->search_key->ext.cnid || in __hfsplus_ext_read_extent() 168 fd->key->ext.fork_type != fd->search_key->ext.fork_type) in __hfsplus_ext_read_extent()
|
H A D | dir.c | 47 err = hfsplus_cat_build_key(sb, fd.search_key, dir->i_ino, in hfsplus_lookup() 103 err = hfsplus_cat_build_key(sb, fd.search_key, in hfsplus_lookup() 152 hfsplus_cat_build_key_with_cnid(sb, fd.search_key, inode->i_ino); in hfsplus_readdir()
|
H A D | hfsplus_fs.h | 288 hfsplus_btree_key *search_key; member
|
H A D | super.c | 528 err = hfsplus_cat_build_key(sb, fd.search_key, HFSPLUS_ROOT_CNID, &str); in hfsplus_fill_super()
|
/linux/fs/btrfs/ |
H A D | tree-log.c | 1081 struct btrfs_key search_key; in __add_inode_ref() local 1086 search_key.objectid = inode_objectid; in __add_inode_ref() 1087 search_key.type = BTRFS_INODE_REF_KEY; in __add_inode_ref() 1088 search_key.offset = parent_objectid; in __add_inode_ref() 1089 ret = btrfs_search_slot(NULL, root, &search_key, path, 0, 0); in __add_inode_ref() 1100 if (search_key.objectid == search_key.offset) in __add_inode_ref() 1119 ret = backref_in_log(log_root, &search_key, in __add_inode_ref() 1173 search_key.objectid = inode_objectid; in __add_inode_ref() 1174 search_key.type = BTRFS_INODE_EXTREF_KEY; in __add_inode_ref() 1175 search_key.offset = btrfs_extref_hash(parent_objectid, in __add_inode_ref() [all …]
|
H A D | root-tree.c | 67 int btrfs_find_root(struct btrfs_root *root, const struct btrfs_key *search_key, in btrfs_find_root() argument 76 ret = btrfs_search_slot(NULL, root, search_key, path, 0, 0); in btrfs_find_root() 80 if (search_key->offset != -1ULL) { /* the search key is exact */ in btrfs_find_root() 102 if (found_key.objectid != search_key->objectid || in btrfs_find_root()
|
H A D | root-tree.h | 33 int btrfs_find_root(struct btrfs_root *root, const struct btrfs_key *search_key,
|
H A D | block-group.c | 590 struct btrfs_key search_key; in sample_block_group_extent_item() local 611 search_key.objectid = block_group->start + search_offset; in sample_block_group_extent_item() 612 search_key.type = BTRFS_EXTENT_ITEM_KEY; in sample_block_group_extent_item() 613 search_key.offset = 0; in sample_block_group_extent_item() 615 btrfs_for_each_slot(extent_root, &search_key, found_key, path, ret) { in sample_block_group_extent_item()
|
H A D | disk-io.c | 4897 struct btrfs_key search_key; in btrfs_init_root_free_objectid() local 4905 search_key.objectid = BTRFS_LAST_FREE_OBJECTID; in btrfs_init_root_free_objectid() 4906 search_key.type = -1; in btrfs_init_root_free_objectid() 4907 search_key.offset = (u64)-1; in btrfs_init_root_free_objectid() 4908 ret = btrfs_search_slot(NULL, root, &search_key, path, 0, 0); in btrfs_init_root_free_objectid()
|
/linux/fs/bcachefs/ |
H A D | btree_iter.c | 2194 static struct bkey_s_c __bch2_btree_iter_peek(struct btree_iter *iter, struct bpos search_key) in __bch2_btree_iter_peek() argument 2206 iter->path = bch2_btree_path_set_pos(trans, iter->path, search_key, in __bch2_btree_iter_peek() 2258 search_key = !bpos_eq(search_key, k.k->p) in __bch2_btree_iter_peek() 2268 search_key = bpos_successor(l->b->key.k.p); in __bch2_btree_iter_peek() 2293 struct bpos search_key = btree_iter_search_key(iter); in bch2_btree_iter_peek_upto() local 2310 k = __bch2_btree_iter_peek(iter, search_key); in bch2_btree_iter_peek_upto() 2345 search_key = bpos_successor(k.k->p); in bch2_btree_iter_peek_upto() 2377 search_key = bpos_successor(k.k->p); in bch2_btree_iter_peek_upto() 2383 search_key = bkey_successor(iter, k.k->p); in bch2_btree_iter_peek_upto() 2464 struct bpos search_key = iter->pos; in bch2_btree_iter_peek_prev() local [all …]
|
/linux/drivers/firewire/ |
H A D | core-device.c | 51 static const u32 *search_directory(const u32 *directory, int search_key) in search_directory() argument 56 search_key |= CSR_DIRECTORY; in search_directory() 60 if (key == search_key) in search_directory() 67 static const u32 *search_leaf(const u32 *directory, int search_key) in search_leaf() argument 74 if (last_key == search_key && in search_leaf()
|