• Home
  • Raw
  • Download

Lines Matching refs:cursor

30 	const struct assoc_array_ptr *cursor, *ptr, *parent;  in assoc_array_subtree_iterate()  local
34 cursor = root; in assoc_array_subtree_iterate()
37 if (assoc_array_ptr_is_shortcut(cursor)) { in assoc_array_subtree_iterate()
39 shortcut = assoc_array_ptr_to_shortcut(cursor); in assoc_array_subtree_iterate()
41 cursor = ACCESS_ONCE(shortcut->next_node); in assoc_array_subtree_iterate()
44 node = assoc_array_ptr_to_node(cursor); in assoc_array_subtree_iterate()
87 node = assoc_array_ptr_to_node(cursor); in assoc_array_subtree_iterate()
93 cursor = ptr; in assoc_array_subtree_iterate()
108 cursor = parent; in assoc_array_subtree_iterate()
116 cursor = parent; in assoc_array_subtree_iterate()
188 struct assoc_array_ptr *cursor, *ptr; in assoc_array_walk() local
196 cursor = ACCESS_ONCE(array->root); in assoc_array_walk()
197 if (!cursor) in assoc_array_walk()
213 if (assoc_array_ptr_is_shortcut(cursor)) in assoc_array_walk()
217 node = assoc_array_ptr_to_node(cursor); in assoc_array_walk()
242 cursor = ptr; in assoc_array_walk()
253 cursor = ptr; in assoc_array_walk()
255 shortcut = assoc_array_ptr_to_shortcut(cursor); in assoc_array_walk()
296 cursor = ACCESS_ONCE(shortcut->next_node); in assoc_array_walk()
364 struct assoc_array_ptr *cursor, *parent = NULL; in assoc_array_destroy_subtree() local
369 cursor = root; in assoc_array_destroy_subtree()
370 if (!cursor) { in assoc_array_destroy_subtree()
376 if (assoc_array_ptr_is_shortcut(cursor)) { in assoc_array_destroy_subtree()
379 BUG_ON(!assoc_array_ptr_is_shortcut(cursor)); in assoc_array_destroy_subtree()
380 shortcut = assoc_array_ptr_to_shortcut(cursor); in assoc_array_destroy_subtree()
383 parent = cursor; in assoc_array_destroy_subtree()
384 cursor = shortcut->next_node; in assoc_array_destroy_subtree()
386 BUG_ON(!assoc_array_ptr_is_node(cursor)); in assoc_array_destroy_subtree()
390 node = assoc_array_ptr_to_node(cursor); in assoc_array_destroy_subtree()
402 parent = cursor; in assoc_array_destroy_subtree()
403 cursor = ptr; in assoc_array_destroy_subtree()
424 BUG_ON(shortcut->next_node != cursor); in assoc_array_destroy_subtree()
425 cursor = parent; in assoc_array_destroy_subtree()
438 cursor = parent; in assoc_array_destroy_subtree()
439 node = assoc_array_ptr_to_node(cursor); in assoc_array_destroy_subtree()
1475 struct assoc_array_ptr *cursor, *ptr; in assoc_array_gc() local
1496 cursor = array->root; in assoc_array_gc()
1502 if (assoc_array_ptr_is_shortcut(cursor)) { in assoc_array_gc()
1503 shortcut = assoc_array_ptr_to_shortcut(cursor); in assoc_array_gc()
1517 cursor = shortcut->next_node; in assoc_array_gc()
1521 node = assoc_array_ptr_to_node(cursor); in assoc_array_gc()
1550 cursor = ptr; in assoc_array_gc()
1710 cursor = shortcut->back_pointer; in assoc_array_gc()
1711 if (!cursor) in assoc_array_gc()
1715 cursor = ptr; in assoc_array_gc()
1717 BUG_ON(!cursor); in assoc_array_gc()
1718 node = assoc_array_ptr_to_node(cursor); in assoc_array_gc()