Lines Matching refs:p
35 struct rb_node *p; in ubifs_search_bud() local
39 p = c->buds.rb_node; in ubifs_search_bud()
40 while (p) { in ubifs_search_bud()
41 bud = rb_entry(p, struct ubifs_bud, rb); in ubifs_search_bud()
43 p = p->rb_left; in ubifs_search_bud()
45 p = p->rb_right; in ubifs_search_bud()
64 struct rb_node *p; in ubifs_get_wbuf() local
72 p = c->buds.rb_node; in ubifs_get_wbuf()
73 while (p) { in ubifs_get_wbuf()
74 bud = rb_entry(p, struct ubifs_bud, rb); in ubifs_get_wbuf()
76 p = p->rb_left; in ubifs_get_wbuf()
78 p = p->rb_right; in ubifs_get_wbuf()
117 struct rb_node **p, *parent = NULL; in ubifs_add_bud() local
122 p = &c->buds.rb_node; in ubifs_add_bud()
123 while (*p) { in ubifs_add_bud()
124 parent = *p; in ubifs_add_bud()
128 p = &(*p)->rb_left; in ubifs_add_bud()
130 p = &(*p)->rb_right; in ubifs_add_bud()
133 rb_link_node(&bud->rb, parent, p); in ubifs_add_bud()
293 struct rb_node *p; in remove_buds() local
298 p = rb_first(&c->buds); in remove_buds()
299 while (p) { in remove_buds()
300 struct rb_node *p1 = p; in remove_buds()
304 p = rb_next(p); in remove_buds()
545 struct rb_node **p = &done_tree->rb_node, *parent = NULL; in done_already() local
548 while (*p) { in done_already()
549 parent = *p; in done_already()
552 p = &(*p)->rb_left; in done_already()
554 p = &(*p)->rb_right; in done_already()
565 rb_link_node(&dr->rb, parent, p); in done_already()