Lines Matching refs:p
32 struct rb_node *p; in ubifs_search_bud() local
36 p = c->buds.rb_node; in ubifs_search_bud()
37 while (p) { in ubifs_search_bud()
38 bud = rb_entry(p, struct ubifs_bud, rb); in ubifs_search_bud()
40 p = p->rb_left; in ubifs_search_bud()
42 p = p->rb_right; in ubifs_search_bud()
61 struct rb_node *p; in ubifs_get_wbuf() local
69 p = c->buds.rb_node; in ubifs_get_wbuf()
70 while (p) { in ubifs_get_wbuf()
71 bud = rb_entry(p, struct ubifs_bud, rb); in ubifs_get_wbuf()
73 p = p->rb_left; in ubifs_get_wbuf()
75 p = p->rb_right; in ubifs_get_wbuf()
114 struct rb_node **p, *parent = NULL; in ubifs_add_bud() local
119 p = &c->buds.rb_node; in ubifs_add_bud()
120 while (*p) { in ubifs_add_bud()
121 parent = *p; in ubifs_add_bud()
125 p = &(*p)->rb_left; in ubifs_add_bud()
127 p = &(*p)->rb_right; in ubifs_add_bud()
130 rb_link_node(&bud->rb, parent, p); in ubifs_add_bud()
299 struct rb_node *p; in remove_buds() local
304 p = rb_first(&c->buds); in remove_buds()
305 while (p) { in remove_buds()
306 struct rb_node *p1 = p; in remove_buds()
310 p = rb_next(p); in remove_buds()
563 struct rb_node **p = &done_tree->rb_node, *parent = NULL; in done_already() local
566 while (*p) { in done_already()
567 parent = *p; in done_already()
570 p = &(*p)->rb_left; in done_already()
572 p = &(*p)->rb_right; in done_already()
583 rb_link_node(&dr->rb, parent, p); in done_already()