Lines Matching refs:rb

100 	struct rb_node **p, *rb;  in drm_prime_add_buf_handle()  local
110 rb = NULL; in drm_prime_add_buf_handle()
115 rb = *p; in drm_prime_add_buf_handle()
116 pos = rb_entry(rb, struct drm_prime_member, dmabuf_rb); in drm_prime_add_buf_handle()
118 p = &rb->rb_right; in drm_prime_add_buf_handle()
120 p = &rb->rb_left; in drm_prime_add_buf_handle()
122 rb_link_node(&member->dmabuf_rb, rb, p); in drm_prime_add_buf_handle()
125 rb = NULL; in drm_prime_add_buf_handle()
130 rb = *p; in drm_prime_add_buf_handle()
131 pos = rb_entry(rb, struct drm_prime_member, handle_rb); in drm_prime_add_buf_handle()
133 p = &rb->rb_right; in drm_prime_add_buf_handle()
135 p = &rb->rb_left; in drm_prime_add_buf_handle()
137 rb_link_node(&member->handle_rb, rb, p); in drm_prime_add_buf_handle()
146 struct rb_node *rb; in drm_prime_lookup_buf_by_handle() local
148 rb = prime_fpriv->handles.rb_node; in drm_prime_lookup_buf_by_handle()
149 while (rb) { in drm_prime_lookup_buf_by_handle()
152 member = rb_entry(rb, struct drm_prime_member, handle_rb); in drm_prime_lookup_buf_by_handle()
156 rb = rb->rb_right; in drm_prime_lookup_buf_by_handle()
158 rb = rb->rb_left; in drm_prime_lookup_buf_by_handle()
168 struct rb_node *rb; in drm_prime_lookup_buf_handle() local
170 rb = prime_fpriv->dmabufs.rb_node; in drm_prime_lookup_buf_handle()
171 while (rb) { in drm_prime_lookup_buf_handle()
174 member = rb_entry(rb, struct drm_prime_member, dmabuf_rb); in drm_prime_lookup_buf_handle()
179 rb = rb->rb_right; in drm_prime_lookup_buf_handle()
181 rb = rb->rb_left; in drm_prime_lookup_buf_handle()
191 struct rb_node *rb; in drm_prime_remove_buf_handle() local
195 rb = prime_fpriv->handles.rb_node; in drm_prime_remove_buf_handle()
196 while (rb) { in drm_prime_remove_buf_handle()
199 member = rb_entry(rb, struct drm_prime_member, handle_rb); in drm_prime_remove_buf_handle()
208 rb = rb->rb_right; in drm_prime_remove_buf_handle()
210 rb = rb->rb_left; in drm_prime_remove_buf_handle()