Lines Matching refs:toptree

28 struct toptree *toptree_alloc(int level, int id)  in toptree_alloc()
30 struct toptree *res = kzalloc(sizeof(struct toptree), GFP_KERNEL); in toptree_alloc()
50 static void toptree_remove(struct toptree *cand) in toptree_remove()
52 struct toptree *oldparent; in toptree_remove()
68 void toptree_free(struct toptree *cand) in toptree_free()
70 struct toptree *child, *tmp; in toptree_free()
91 void toptree_update_mask(struct toptree *cand) in toptree_update_mask()
93 struct toptree *child; in toptree_update_mask()
113 static int toptree_insert(struct toptree *cand, struct toptree *target) in toptree_insert()
132 static void toptree_move_children(struct toptree *cand, struct toptree *target) in toptree_move_children()
134 struct toptree *child, *tmp; in toptree_move_children()
148 void toptree_unify(struct toptree *cand) in toptree_unify()
150 struct toptree *child, *tmp, *cand_copy; in toptree_unify()
158 struct toptree *tmpchild; in toptree_unify()
189 void toptree_move(struct toptree *cand, struct toptree *target) in toptree_move()
191 struct toptree *stack_target, *real_insert_point, *ptr, *tmp; in toptree_move()
227 struct toptree *toptree_get_child(struct toptree *cand, int id) in toptree_get_child()
229 struct toptree *child; in toptree_get_child()
248 struct toptree *toptree_first(struct toptree *context, int level) in toptree_first()
250 struct toptree *child, *tmp; in toptree_first()
273 static struct toptree *toptree_next_sibling(struct toptree *cur) in toptree_next_sibling()
279 struct toptree, sibling)) in toptree_next_sibling()
281 return (struct toptree *) list_next_entry(cur, sibling); in toptree_next_sibling()
295 struct toptree *toptree_next(struct toptree *cur, struct toptree *context, in toptree_next()
298 struct toptree *cur_context, *tmp; in toptree_next()
334 int toptree_count(struct toptree *context, int level) in toptree_count()
336 struct toptree *cur; in toptree_count()