Lines Matching refs:iter
145 struct rb_node *iter; in drm_vma_offset_lookup_locked() local
148 iter = mgr->vm_addr_space_mm.interval_tree.rb_root.rb_node; in drm_vma_offset_lookup_locked()
151 while (likely(iter)) { in drm_vma_offset_lookup_locked()
152 node = rb_entry(iter, struct drm_mm_node, rb); in drm_vma_offset_lookup_locked()
155 iter = iter->rb_right; in drm_vma_offset_lookup_locked()
160 iter = iter->rb_left; in drm_vma_offset_lookup_locked()
246 struct rb_node **iter; in vma_node_allow() local
259 iter = &node->vm_files.rb_node; in vma_node_allow()
261 while (likely(*iter)) { in vma_node_allow()
262 parent = *iter; in vma_node_allow()
263 entry = rb_entry(*iter, struct drm_vma_offset_file, vm_rb); in vma_node_allow()
270 iter = &(*iter)->rb_right; in vma_node_allow()
272 iter = &(*iter)->rb_left; in vma_node_allow()
283 rb_link_node(&new->vm_rb, parent, iter); in vma_node_allow()
361 struct rb_node *iter; in drm_vma_node_revoke() local
365 iter = node->vm_files.rb_node; in drm_vma_node_revoke()
366 while (likely(iter)) { in drm_vma_node_revoke()
367 entry = rb_entry(iter, struct drm_vma_offset_file, vm_rb); in drm_vma_node_revoke()
375 iter = iter->rb_right; in drm_vma_node_revoke()
377 iter = iter->rb_left; in drm_vma_node_revoke()
402 struct rb_node *iter; in drm_vma_node_is_allowed() local
406 iter = node->vm_files.rb_node; in drm_vma_node_is_allowed()
407 while (likely(iter)) { in drm_vma_node_is_allowed()
408 entry = rb_entry(iter, struct drm_vma_offset_file, vm_rb); in drm_vma_node_is_allowed()
412 iter = iter->rb_right; in drm_vma_node_is_allowed()
414 iter = iter->rb_left; in drm_vma_node_is_allowed()
419 return iter; in drm_vma_node_is_allowed()