Lines Matching refs:next
29 tail->next = a; in merge()
30 a = a->next; in merge()
32 tail->next = b; in merge()
33 b = b->next; in merge()
35 tail = tail->next; in merge()
37 tail->next = a?:b; in merge()
38 return head.next; in merge()
60 tail->next = a; in merge_and_restore_back_links()
62 a = a->next; in merge_and_restore_back_links()
64 tail->next = b; in merge_and_restore_back_links()
66 b = b->next; in merge_and_restore_back_links()
68 tail = tail->next; in merge_and_restore_back_links()
70 tail->next = a ? : b; in merge_and_restore_back_links()
80 (*cmp)(priv, tail->next, tail->next); in merge_and_restore_back_links()
82 tail->next->prev = tail; in merge_and_restore_back_links()
83 tail = tail->next; in merge_and_restore_back_links()
84 } while (tail->next); in merge_and_restore_back_links()
86 tail->next = head; in merge_and_restore_back_links()
119 head->prev->next = NULL; in list_sort()
120 list = head->next; in list_sort()
124 list = list->next; in list_sort()
125 cur->next = NULL; in list_sort()
245 for (cur = head.next; cur->next != &head; cur = cur->next) { in list_sort_test()
249 if (cur->next->prev != cur) { in list_sort_test()
254 cmp_result = cmp(NULL, cur, cur->next); in list_sort_test()
261 el1 = container_of(cur->next, struct debug_el, list); in list_sort_test()