Lines Matching refs:tree
15 int hfs_find_init(struct hfs_btree *tree, struct hfs_find_data *fd) in hfs_find_init() argument
19 fd->tree = tree; in hfs_find_init()
21 ptr = kmalloc(tree->max_key_len * 2 + 4, GFP_KERNEL); in hfs_find_init()
25 fd->key = ptr + tree->max_key_len + 2; in hfs_find_init()
27 tree->cnid, __builtin_return_address(0)); in hfs_find_init()
28 mutex_lock(&tree->tree_lock); in hfs_find_init()
37 fd->tree->cnid, __builtin_return_address(0)); in hfs_find_exit()
38 mutex_unlock(&fd->tree->tree_lock); in hfs_find_exit()
39 fd->tree = NULL; in hfs_find_exit()
63 cmpval = bnode->tree->keycmp(fd->key, fd->search_key); in __hfs_brec_find()
97 struct hfs_btree *tree; in hfs_brec_find() local
103 tree = fd->tree; in hfs_brec_find()
107 nidx = tree->root; in hfs_brec_find()
110 height = tree->depth; in hfs_brec_find()
114 bnode = hfs_bnode_find(tree, nidx); in hfs_brec_find()
164 struct hfs_btree *tree; in hfs_brec_goto() local
170 tree = bnode->tree; in hfs_brec_goto()
183 bnode = hfs_bnode_find(tree, idx); in hfs_brec_goto()
201 bnode = hfs_bnode_find(tree, idx); in hfs_brec_goto()