Lines Matching full:entries

391 	struct list_head entries[3], *cur;  in list_test_list_cut_position()  local
396 list_add_tail(&entries[0], &list1); in list_test_list_cut_position()
397 list_add_tail(&entries[1], &list1); in list_test_list_cut_position()
398 list_add_tail(&entries[2], &list1); in list_test_list_cut_position()
400 /* before: [list1] -> entries[0] -> entries[1] -> entries[2] */ in list_test_list_cut_position()
401 list_cut_position(&list2, &list1, &entries[1]); in list_test_list_cut_position()
402 /* after: [list2] -> entries[0] -> entries[1], [list1] -> entries[2] */ in list_test_list_cut_position()
405 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_cut_position()
412 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_cut_position()
419 struct list_head entries[3], *cur; in list_test_list_cut_before() local
424 list_add_tail(&entries[0], &list1); in list_test_list_cut_before()
425 list_add_tail(&entries[1], &list1); in list_test_list_cut_before()
426 list_add_tail(&entries[2], &list1); in list_test_list_cut_before()
428 /* before: [list1] -> entries[0] -> entries[1] -> entries[2] */ in list_test_list_cut_before()
429 list_cut_before(&list2, &list1, &entries[1]); in list_test_list_cut_before()
430 /* after: [list2] -> entries[0], [list1] -> entries[1] -> entries[2] */ in list_test_list_cut_before()
433 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_cut_before()
440 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_cut_before()
447 struct list_head entries[5], *cur; in list_test_list_splice() local
452 list_add_tail(&entries[0], &list1); in list_test_list_splice()
453 list_add_tail(&entries[1], &list1); 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()
456 list_add_tail(&entries[4], &list1); in list_test_list_splice()
459 list_splice(&list2, &entries[1]); in list_test_list_splice()
463 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_splice()
472 struct list_head entries[5], *cur; in list_test_list_splice_tail() local
477 list_add_tail(&entries[0], &list1); in list_test_list_splice_tail()
478 list_add_tail(&entries[1], &list1); 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()
481 list_add_tail(&entries[4], &list1); in list_test_list_splice_tail()
484 list_splice_tail(&list2, &entries[4]); in list_test_list_splice_tail()
488 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_splice_tail()
497 struct list_head entries[5], *cur; in list_test_list_splice_init() local
502 list_add_tail(&entries[0], &list1); in list_test_list_splice_init()
503 list_add_tail(&entries[1], &list1); 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()
506 list_add_tail(&entries[4], &list1); in list_test_list_splice_init()
509 list_splice_init(&list2, &entries[1]); in list_test_list_splice_init()
513 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_splice_init()
524 struct list_head entries[5], *cur; in list_test_list_splice_tail_init() local
529 list_add_tail(&entries[0], &list1); in list_test_list_splice_tail_init()
530 list_add_tail(&entries[1], &list1); 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()
533 list_add_tail(&entries[4], &list1); in list_test_list_splice_tail_init()
536 list_splice_tail_init(&list2, &entries[4]); in list_test_list_splice_tail_init()
540 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_splice_tail_init()
647 struct list_head entries[3], *cur; in list_test_list_for_each() local
651 list_add_tail(&entries[0], &list); in list_test_list_for_each()
652 list_add_tail(&entries[1], &list); in list_test_list_for_each()
653 list_add_tail(&entries[2], &list); in list_test_list_for_each()
656 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_for_each()
665 struct list_head entries[3], *cur; in list_test_list_for_each_prev() local
669 list_add_tail(&entries[0], &list); in list_test_list_for_each_prev()
670 list_add_tail(&entries[1], &list); in list_test_list_for_each_prev()
671 list_add_tail(&entries[2], &list); in list_test_list_for_each_prev()
674 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_for_each_prev()
683 struct list_head entries[3], *cur, *n; in list_test_list_for_each_safe() local
688 list_add_tail(&entries[0], &list); in list_test_list_for_each_safe()
689 list_add_tail(&entries[1], &list); in list_test_list_for_each_safe()
690 list_add_tail(&entries[2], &list); in list_test_list_for_each_safe()
693 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_for_each_safe()
694 list_del(&entries[i]); in list_test_list_for_each_safe()
704 struct list_head entries[3], *cur, *n; in list_test_list_for_each_prev_safe() local
708 list_add_tail(&entries[0], &list); in list_test_list_for_each_prev_safe()
709 list_add_tail(&entries[1], &list); in list_test_list_for_each_prev_safe()
710 list_add_tail(&entries[2], &list); in list_test_list_for_each_prev_safe()
713 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_for_each_prev_safe()
714 list_del(&entries[i]); in list_test_list_for_each_prev_safe()
724 struct list_test_struct entries[5], *cur; in list_test_list_for_each_entry() local
729 entries[i].data = i; in list_test_list_for_each_entry()
730 list_add_tail(&entries[i].list, &list); in list_test_list_for_each_entry()
745 struct list_test_struct entries[5], *cur; in list_test_list_for_each_entry_reverse() local
750 entries[i].data = i; in list_test_list_for_each_entry_reverse()
751 list_add_tail(&entries[i].list, &list); in list_test_list_for_each_entry_reverse()
1034 struct hlist_node entries[3], *cur; in hlist_test_for_each() local
1038 hlist_add_head(&entries[0], &list); in hlist_test_for_each()
1039 hlist_add_behind(&entries[1], &entries[0]); in hlist_test_for_each()
1040 hlist_add_behind(&entries[2], &entries[1]); in hlist_test_for_each()
1043 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in hlist_test_for_each()
1053 struct hlist_node entries[3], *cur, *n; in hlist_test_for_each_safe() local
1057 hlist_add_head(&entries[0], &list); in hlist_test_for_each_safe()
1058 hlist_add_behind(&entries[1], &entries[0]); in hlist_test_for_each_safe()
1059 hlist_add_behind(&entries[2], &entries[1]); in hlist_test_for_each_safe()
1062 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in hlist_test_for_each_safe()
1063 hlist_del(&entries[i]); in hlist_test_for_each_safe()
1073 struct hlist_test_struct entries[5], *cur; in hlist_test_for_each_entry() local
1077 entries[0].data = 0; in hlist_test_for_each_entry()
1078 hlist_add_head(&entries[0].list, &list); in hlist_test_for_each_entry()
1080 entries[i].data = i; in hlist_test_for_each_entry()
1081 hlist_add_behind(&entries[i].list, &entries[i-1].list); in hlist_test_for_each_entry()
1096 struct hlist_test_struct entries[5], *cur; in hlist_test_for_each_entry_continue() local
1100 entries[0].data = 0; in hlist_test_for_each_entry_continue()
1101 hlist_add_head(&entries[0].list, &list); in hlist_test_for_each_entry_continue()
1103 entries[i].data = i; in hlist_test_for_each_entry_continue()
1104 hlist_add_behind(&entries[i].list, &entries[i-1].list); in hlist_test_for_each_entry_continue()
1110 cur = &entries[0]; in hlist_test_for_each_entry_continue()
1120 KUNIT_EXPECT_EQ(test, entries[0].data, 0); in hlist_test_for_each_entry_continue()
1122 KUNIT_EXPECT_EQ(test, entries[1].data, 42); in hlist_test_for_each_entry_continue()
1127 struct hlist_test_struct entries[5], *cur; in hlist_test_for_each_entry_from() local
1131 entries[0].data = 0; in hlist_test_for_each_entry_from()
1132 hlist_add_head(&entries[0].list, &list); in hlist_test_for_each_entry_from()
1134 entries[i].data = i; in hlist_test_for_each_entry_from()
1135 hlist_add_behind(&entries[i].list, &entries[i-1].list); in hlist_test_for_each_entry_from()
1140 cur = &entries[0]; in hlist_test_for_each_entry_from()
1150 KUNIT_EXPECT_EQ(test, entries[0].data, 42); in hlist_test_for_each_entry_from()
1155 struct hlist_test_struct entries[5], *cur; in hlist_test_for_each_entry_safe() local
1160 entries[0].data = 0; in hlist_test_for_each_entry_safe()
1161 hlist_add_head(&entries[0].list, &list); in hlist_test_for_each_entry_safe()
1163 entries[i].data = i; in hlist_test_for_each_entry_safe()
1164 hlist_add_behind(&entries[i].list, &entries[i-1].list); in hlist_test_for_each_entry_safe()