Lines Matching refs:entries
387 struct list_head entries[3], *cur; in list_test_list_cut_position() local
392 list_add_tail(&entries[0], &list1); in list_test_list_cut_position()
393 list_add_tail(&entries[1], &list1); in list_test_list_cut_position()
394 list_add_tail(&entries[2], &list1); in list_test_list_cut_position()
397 list_cut_position(&list2, &list1, &entries[1]); in list_test_list_cut_position()
401 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_cut_position()
408 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_cut_position()
415 struct list_head entries[3], *cur; in list_test_list_cut_before() local
420 list_add_tail(&entries[0], &list1); in list_test_list_cut_before()
421 list_add_tail(&entries[1], &list1); in list_test_list_cut_before()
422 list_add_tail(&entries[2], &list1); in list_test_list_cut_before()
425 list_cut_before(&list2, &list1, &entries[1]); in list_test_list_cut_before()
429 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_cut_before()
436 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_cut_before()
443 struct list_head entries[5], *cur; in list_test_list_splice() local
448 list_add_tail(&entries[0], &list1); in list_test_list_splice()
449 list_add_tail(&entries[1], &list1); in list_test_list_splice()
450 list_add_tail(&entries[2], &list2); in list_test_list_splice()
451 list_add_tail(&entries[3], &list2); in list_test_list_splice()
452 list_add_tail(&entries[4], &list1); in list_test_list_splice()
455 list_splice(&list2, &entries[1]); in list_test_list_splice()
459 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_splice()
468 struct list_head entries[5], *cur; in list_test_list_splice_tail() local
473 list_add_tail(&entries[0], &list1); in list_test_list_splice_tail()
474 list_add_tail(&entries[1], &list1); in list_test_list_splice_tail()
475 list_add_tail(&entries[2], &list2); in list_test_list_splice_tail()
476 list_add_tail(&entries[3], &list2); in list_test_list_splice_tail()
477 list_add_tail(&entries[4], &list1); in list_test_list_splice_tail()
480 list_splice_tail(&list2, &entries[4]); in list_test_list_splice_tail()
484 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_splice_tail()
493 struct list_head entries[5], *cur; in list_test_list_splice_init() local
498 list_add_tail(&entries[0], &list1); in list_test_list_splice_init()
499 list_add_tail(&entries[1], &list1); in list_test_list_splice_init()
500 list_add_tail(&entries[2], &list2); in list_test_list_splice_init()
501 list_add_tail(&entries[3], &list2); in list_test_list_splice_init()
502 list_add_tail(&entries[4], &list1); in list_test_list_splice_init()
505 list_splice_init(&list2, &entries[1]); in list_test_list_splice_init()
509 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_splice_init()
520 struct list_head entries[5], *cur; in list_test_list_splice_tail_init() local
525 list_add_tail(&entries[0], &list1); in list_test_list_splice_tail_init()
526 list_add_tail(&entries[1], &list1); in list_test_list_splice_tail_init()
527 list_add_tail(&entries[2], &list2); in list_test_list_splice_tail_init()
528 list_add_tail(&entries[3], &list2); in list_test_list_splice_tail_init()
529 list_add_tail(&entries[4], &list1); in list_test_list_splice_tail_init()
532 list_splice_tail_init(&list2, &entries[4]); in list_test_list_splice_tail_init()
536 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_splice_tail_init()
643 struct list_head entries[3], *cur; in list_test_list_for_each() local
647 list_add_tail(&entries[0], &list); in list_test_list_for_each()
648 list_add_tail(&entries[1], &list); in list_test_list_for_each()
649 list_add_tail(&entries[2], &list); in list_test_list_for_each()
652 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_for_each()
661 struct list_head entries[3], *cur; in list_test_list_for_each_prev() local
665 list_add_tail(&entries[0], &list); in list_test_list_for_each_prev()
666 list_add_tail(&entries[1], &list); in list_test_list_for_each_prev()
667 list_add_tail(&entries[2], &list); in list_test_list_for_each_prev()
670 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_for_each_prev()
679 struct list_head entries[3], *cur, *n; in list_test_list_for_each_safe() local
684 list_add_tail(&entries[0], &list); in list_test_list_for_each_safe()
685 list_add_tail(&entries[1], &list); in list_test_list_for_each_safe()
686 list_add_tail(&entries[2], &list); in list_test_list_for_each_safe()
689 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_for_each_safe()
690 list_del(&entries[i]); in list_test_list_for_each_safe()
700 struct list_head entries[3], *cur, *n; in list_test_list_for_each_prev_safe() local
704 list_add_tail(&entries[0], &list); in list_test_list_for_each_prev_safe()
705 list_add_tail(&entries[1], &list); in list_test_list_for_each_prev_safe()
706 list_add_tail(&entries[2], &list); in list_test_list_for_each_prev_safe()
709 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_for_each_prev_safe()
710 list_del(&entries[i]); in list_test_list_for_each_prev_safe()
720 struct list_test_struct entries[5], *cur; in list_test_list_for_each_entry() local
725 entries[i].data = i; in list_test_list_for_each_entry()
726 list_add_tail(&entries[i].list, &list); in list_test_list_for_each_entry()
741 struct list_test_struct entries[5], *cur; in list_test_list_for_each_entry_reverse() local
746 entries[i].data = i; in list_test_list_for_each_entry_reverse()
747 list_add_tail(&entries[i].list, &list); in list_test_list_for_each_entry_reverse()
1030 struct hlist_node entries[3], *cur; in hlist_test_for_each() local
1034 hlist_add_head(&entries[0], &list); in hlist_test_for_each()
1035 hlist_add_behind(&entries[1], &entries[0]); in hlist_test_for_each()
1036 hlist_add_behind(&entries[2], &entries[1]); in hlist_test_for_each()
1039 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in hlist_test_for_each()
1049 struct hlist_node entries[3], *cur, *n; in hlist_test_for_each_safe() local
1053 hlist_add_head(&entries[0], &list); in hlist_test_for_each_safe()
1054 hlist_add_behind(&entries[1], &entries[0]); in hlist_test_for_each_safe()
1055 hlist_add_behind(&entries[2], &entries[1]); in hlist_test_for_each_safe()
1058 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in hlist_test_for_each_safe()
1059 hlist_del(&entries[i]); in hlist_test_for_each_safe()
1069 struct hlist_test_struct entries[5], *cur; in hlist_test_for_each_entry() local
1073 entries[0].data = 0; in hlist_test_for_each_entry()
1074 hlist_add_head(&entries[0].list, &list); in hlist_test_for_each_entry()
1076 entries[i].data = i; in hlist_test_for_each_entry()
1077 hlist_add_behind(&entries[i].list, &entries[i-1].list); in hlist_test_for_each_entry()
1092 struct hlist_test_struct entries[5], *cur; in hlist_test_for_each_entry_continue() local
1096 entries[0].data = 0; in hlist_test_for_each_entry_continue()
1097 hlist_add_head(&entries[0].list, &list); in hlist_test_for_each_entry_continue()
1099 entries[i].data = i; in hlist_test_for_each_entry_continue()
1100 hlist_add_behind(&entries[i].list, &entries[i-1].list); in hlist_test_for_each_entry_continue()
1106 cur = &entries[0]; in hlist_test_for_each_entry_continue()
1116 KUNIT_EXPECT_EQ(test, entries[0].data, 0); in hlist_test_for_each_entry_continue()
1118 KUNIT_EXPECT_EQ(test, entries[1].data, 42); in hlist_test_for_each_entry_continue()
1123 struct hlist_test_struct entries[5], *cur; in hlist_test_for_each_entry_from() local
1127 entries[0].data = 0; in hlist_test_for_each_entry_from()
1128 hlist_add_head(&entries[0].list, &list); in hlist_test_for_each_entry_from()
1130 entries[i].data = i; in hlist_test_for_each_entry_from()
1131 hlist_add_behind(&entries[i].list, &entries[i-1].list); in hlist_test_for_each_entry_from()
1136 cur = &entries[0]; in hlist_test_for_each_entry_from()
1146 KUNIT_EXPECT_EQ(test, entries[0].data, 42); in hlist_test_for_each_entry_from()
1151 struct hlist_test_struct entries[5], *cur; in hlist_test_for_each_entry_safe() local
1156 entries[0].data = 0; in hlist_test_for_each_entry_safe()
1157 hlist_add_head(&entries[0].list, &list); in hlist_test_for_each_entry_safe()
1159 entries[i].data = i; in hlist_test_for_each_entry_safe()
1160 hlist_add_behind(&entries[i].list, &entries[i-1].list); in hlist_test_for_each_entry_safe()