Lines Matching refs:list2

22 	struct list_head list2;  in list_test_list_init()  local
27 INIT_LIST_HEAD(&list2); in list_test_list_init()
38 KUNIT_EXPECT_TRUE(test, list_empty_careful(&list2)); in list_test_list_init()
193 LIST_HEAD(list2); in list_test_list_move()
196 list_add_tail(&b, &list2); in list_test_list_move()
199 list_move(&a, &list2); in list_test_list_move()
204 KUNIT_EXPECT_PTR_EQ(test, &a, list2.next); in list_test_list_move()
212 LIST_HEAD(list2); in list_test_list_move_tail()
215 list_add_tail(&b, &list2); in list_test_list_move_tail()
218 list_move_tail(&a, &list2); in list_test_list_move_tail()
223 KUNIT_EXPECT_PTR_EQ(test, &b, list2.next); in list_test_list_move_tail()
234 LIST_HEAD(list2); in list_test_list_bulk_move_tail()
240 list_add_tail(&a, &list2); in list_test_list_bulk_move_tail()
241 list_add_tail(&b, &list2); in list_test_list_bulk_move_tail()
242 list_add_tail(&c, &list2); in list_test_list_bulk_move_tail()
243 list_add_tail(&d, &list2); in list_test_list_bulk_move_tail()
255 list_for_each(ptr, &list2) { in list_test_list_bulk_move_tail()
308 LIST_HEAD(list2); in list_test_list_empty()
313 KUNIT_EXPECT_TRUE(test, list_empty(&list2)); in list_test_list_empty()
321 LIST_HEAD(list2); in list_test_list_empty_careful()
326 KUNIT_EXPECT_TRUE(test, list_empty_careful(&list2)); in list_test_list_empty_careful()
393 LIST_HEAD(list2); in list_test_list_cut_position()
401 list_cut_position(&list2, &list1, &entries[1]); in list_test_list_cut_position()
404 list_for_each(cur, &list2) { in list_test_list_cut_position()
421 LIST_HEAD(list2); in list_test_list_cut_before()
429 list_cut_before(&list2, &list1, &entries[1]); in list_test_list_cut_before()
432 list_for_each(cur, &list2) { in list_test_list_cut_before()
449 LIST_HEAD(list2); in list_test_list_splice()
454 list_add_tail(&entries[2], &list2); in list_test_list_splice()
455 list_add_tail(&entries[3], &list2); in list_test_list_splice()
459 list_splice(&list2, &entries[1]); in list_test_list_splice()
474 LIST_HEAD(list2); in list_test_list_splice_tail()
479 list_add_tail(&entries[2], &list2); in list_test_list_splice_tail()
480 list_add_tail(&entries[3], &list2); in list_test_list_splice_tail()
484 list_splice_tail(&list2, &entries[4]); in list_test_list_splice_tail()
499 LIST_HEAD(list2); in list_test_list_splice_init()
504 list_add_tail(&entries[2], &list2); in list_test_list_splice_init()
505 list_add_tail(&entries[3], &list2); in list_test_list_splice_init()
509 list_splice_init(&list2, &entries[1]); in list_test_list_splice_init()
519 KUNIT_EXPECT_TRUE(test, list_empty_careful(&list2)); in list_test_list_splice_init()
526 LIST_HEAD(list2); in list_test_list_splice_tail_init()
531 list_add_tail(&entries[2], &list2); in list_test_list_splice_tail_init()
532 list_add_tail(&entries[3], &list2); in list_test_list_splice_tail_init()
536 list_splice_tail_init(&list2, &entries[4]); in list_test_list_splice_tail_init()
546 KUNIT_EXPECT_TRUE(test, list_empty_careful(&list2)); in list_test_list_splice_tail_init()
821 struct hlist_head list2; in hlist_test_init() local
826 INIT_HLIST_HEAD(&list2); in hlist_test_init()
836 KUNIT_EXPECT_TRUE(test, hlist_empty(&list2)); in hlist_test_init()
998 HLIST_HEAD(list2); in hlist_test_move_list()
1003 KUNIT_EXPECT_TRUE(test, hlist_empty(&list2)); in hlist_test_move_list()
1004 hlist_move_list(&list1, &list2); in hlist_test_move_list()
1006 KUNIT_EXPECT_FALSE(test, hlist_empty(&list2)); in hlist_test_move_list()