Lines Matching refs:a
49 struct list_head a, b; in list_test_list_add() local
52 list_add(&a, &list); in list_test_list_add()
58 KUNIT_EXPECT_PTR_EQ(test, b.next, &a); in list_test_list_add()
63 struct list_head a, b; in list_test_list_add_tail() local
66 list_add_tail(&a, &list); in list_test_list_add_tail()
70 KUNIT_EXPECT_PTR_EQ(test, list.next, &a); in list_test_list_add_tail()
71 KUNIT_EXPECT_PTR_EQ(test, a.prev, &list); in list_test_list_add_tail()
72 KUNIT_EXPECT_PTR_EQ(test, a.next, &b); in list_test_list_add_tail()
77 struct list_head a, b; in list_test_list_del() local
80 list_add_tail(&a, &list); in list_test_list_del()
84 list_del(&a); in list_test_list_del()
128 struct list_head a, b; in list_test_list_swap() local
131 list_add_tail(&a, &list); in list_test_list_swap()
135 list_swap(&a, &b); in list_test_list_swap()
139 KUNIT_EXPECT_PTR_EQ(test, &a, list.prev); in list_test_list_swap()
141 KUNIT_EXPECT_PTR_EQ(test, &a, b.next); in list_test_list_swap()
144 KUNIT_EXPECT_PTR_EQ(test, &list, a.next); in list_test_list_swap()
145 KUNIT_EXPECT_PTR_EQ(test, &b, a.prev); in list_test_list_swap()
150 struct list_head a, b; in list_test_list_del_init() local
153 list_add_tail(&a, &list); in list_test_list_del_init()
157 list_del_init(&a); in list_test_list_del_init()
162 KUNIT_EXPECT_TRUE(test, list_empty_careful(&a)); in list_test_list_del_init()
170 struct list_head a, b; in list_test_list_del_init_careful() local
173 list_add_tail(&a, &list); in list_test_list_del_init_careful()
177 list_del_init_careful(&a); in list_test_list_del_init_careful()
182 KUNIT_EXPECT_TRUE(test, list_empty_careful(&a)); in list_test_list_del_init_careful()
187 struct list_head a, b; in list_test_list_move() local
191 list_add_tail(&a, &list1); in list_test_list_move()
195 list_move(&a, &list2); in list_test_list_move()
200 KUNIT_EXPECT_PTR_EQ(test, &a, list2.next); in list_test_list_move()
201 KUNIT_EXPECT_PTR_EQ(test, &b, a.next); in list_test_list_move()
206 struct list_head a, b; in list_test_list_move_tail() local
210 list_add_tail(&a, &list1); in list_test_list_move_tail()
214 list_move_tail(&a, &list2); in list_test_list_move_tail()
220 KUNIT_EXPECT_PTR_EQ(test, &a, b.next); in list_test_list_move_tail()
225 struct list_head a, b, c, d, x, y; in list_test_list_bulk_move_tail() local
227 struct list_head *list2_values[] = { &a, &d }; in list_test_list_bulk_move_tail()
236 list_add_tail(&a, &list2); in list_test_list_bulk_move_tail()
260 struct list_head a, b, c; in list_test_list_is_head() local
263 INIT_LIST_HEAD(&a); in list_test_list_is_head()
265 list_add_tail(&b, &a); in list_test_list_is_head()
267 KUNIT_EXPECT_TRUE_MSG(test, list_is_head(&a, &a), in list_test_list_is_head()
269 KUNIT_EXPECT_FALSE_MSG(test, list_is_head(&a, &b), in list_test_list_is_head()
271 KUNIT_EXPECT_FALSE_MSG(test, list_is_head(&a, &c), in list_test_list_is_head()
278 struct list_head a, b; in list_test_list_is_first() local
281 list_add_tail(&a, &list); in list_test_list_is_first()
284 KUNIT_EXPECT_TRUE(test, list_is_first(&a, &list)); in list_test_list_is_first()
290 struct list_head a, b; in list_test_list_is_last() local
293 list_add_tail(&a, &list); in list_test_list_is_last()
296 KUNIT_EXPECT_FALSE(test, list_is_last(&a, &list)); in list_test_list_is_last()
302 struct list_head a; in list_test_list_empty() local
306 list_add_tail(&a, &list1); in list_test_list_empty()
315 struct list_head a; in list_test_list_empty_careful() local
319 list_add_tail(&a, &list1); in list_test_list_empty_careful()
327 struct list_head a, b; in list_test_list_rotate_left() local
330 list_add_tail(&a, &list); in list_test_list_rotate_left()
339 KUNIT_EXPECT_PTR_EQ(test, b.next, &a); in list_test_list_rotate_left()
344 struct list_head a, b, c, d; in list_test_list_rotate_to_front() local
345 struct list_head *list_values[] = { &c, &d, &a, &b }; in list_test_list_rotate_to_front()
350 list_add_tail(&a, &list); in list_test_list_rotate_to_front()
368 struct list_head a, b; in list_test_list_is_singular() local
374 list_add_tail(&a, &list); in list_test_list_is_singular()
843 struct hlist_node a; in hlist_test_unhashed() local
846 INIT_HLIST_NODE(&a); in hlist_test_unhashed()
849 KUNIT_EXPECT_TRUE(test, hlist_unhashed(&a)); in hlist_test_unhashed()
851 hlist_add_head(&a, &list); in hlist_test_unhashed()
854 KUNIT_EXPECT_FALSE(test, hlist_unhashed(&a)); in hlist_test_unhashed()
856 hlist_del_init(&a); in hlist_test_unhashed()
859 KUNIT_EXPECT_TRUE(test, hlist_unhashed(&a)); in hlist_test_unhashed()
865 struct hlist_node a; in hlist_test_unhashed_lockless() local
868 INIT_HLIST_NODE(&a); in hlist_test_unhashed_lockless()
871 KUNIT_EXPECT_TRUE(test, hlist_unhashed_lockless(&a)); in hlist_test_unhashed_lockless()
873 hlist_add_head(&a, &list); in hlist_test_unhashed_lockless()
876 KUNIT_EXPECT_FALSE(test, hlist_unhashed_lockless(&a)); in hlist_test_unhashed_lockless()
878 hlist_del_init(&a); in hlist_test_unhashed_lockless()
881 KUNIT_EXPECT_TRUE(test, hlist_unhashed_lockless(&a)); in hlist_test_unhashed_lockless()
886 struct hlist_node a, b; in hlist_test_del() local
889 hlist_add_head(&a, &list); in hlist_test_del()
890 hlist_add_behind(&b, &a); in hlist_test_del()
893 hlist_del(&a); in hlist_test_del()
902 struct hlist_node a, b; in hlist_test_del_init() local
905 hlist_add_head(&a, &list); in hlist_test_del_init()
906 hlist_add_behind(&b, &a); in hlist_test_del_init()
909 hlist_del_init(&a); in hlist_test_del_init()
916 KUNIT_EXPECT_PTR_EQ(test, a.next, NULL); in hlist_test_del_init()
917 KUNIT_EXPECT_PTR_EQ(test, a.pprev, NULL); in hlist_test_del_init()
923 struct hlist_node a, b, c, d; in hlist_test_add() local
926 hlist_add_head(&a, &list); in hlist_test_add()
928 hlist_add_before(&c, &a); in hlist_test_add()
929 hlist_add_behind(&d, &a); in hlist_test_add()
937 KUNIT_EXPECT_PTR_EQ(test, a.pprev, &(c.next)); in hlist_test_add()
938 KUNIT_EXPECT_PTR_EQ(test, c.next, &a); in hlist_test_add()
940 KUNIT_EXPECT_PTR_EQ(test, d.pprev, &(a.next)); in hlist_test_add()
941 KUNIT_EXPECT_PTR_EQ(test, a.next, &d); in hlist_test_add()
947 struct hlist_node a; in hlist_test_fake() local
949 INIT_HLIST_NODE(&a); in hlist_test_fake()
952 KUNIT_EXPECT_FALSE(test, hlist_fake(&a)); in hlist_test_fake()
954 hlist_add_fake(&a); in hlist_test_fake()
957 KUNIT_EXPECT_TRUE(test, hlist_fake(&a)); in hlist_test_fake()
962 struct hlist_node a, b; in hlist_test_is_singular_node() local
965 INIT_HLIST_NODE(&a); in hlist_test_is_singular_node()
966 KUNIT_EXPECT_FALSE(test, hlist_is_singular_node(&a, &list)); in hlist_test_is_singular_node()
968 hlist_add_head(&a, &list); in hlist_test_is_singular_node()
969 KUNIT_EXPECT_TRUE(test, hlist_is_singular_node(&a, &list)); in hlist_test_is_singular_node()
972 KUNIT_EXPECT_FALSE(test, hlist_is_singular_node(&a, &list)); in hlist_test_is_singular_node()
978 struct hlist_node a; in hlist_test_empty() local
984 hlist_add_head(&a, &list); in hlist_test_empty()
992 struct hlist_node a; in hlist_test_move_list() local
996 hlist_add_head(&a, &list1); in hlist_test_move_list()
1227 struct klist_node a, b; in klist_test_add_tail() local
1234 klist_add_tail(&a, &mylist); in klist_test_add_tail()
1236 KUNIT_EXPECT_PTR_EQ(test, last_node, &a); in klist_test_add_tail()
1245 KUNIT_EXPECT_PTR_EQ(test, klist_next(&i), &a); in klist_test_add_tail()
1255 struct klist_node a, b; in klist_test_add_head() local
1262 klist_add_head(&a, &mylist); in klist_test_add_head()
1264 KUNIT_EXPECT_PTR_EQ(test, last_node, &a); in klist_test_add_head()
1274 KUNIT_EXPECT_PTR_EQ(test, klist_next(&i), &a); in klist_test_add_head()
1283 struct klist_node a, b, c, d; in klist_test_add_behind() local
1290 klist_add_head(&a, &mylist); in klist_test_add_behind()
1293 klist_add_behind(&c, &a); in klist_test_add_behind()
1306 KUNIT_EXPECT_PTR_EQ(test, klist_next(&i), &a); in klist_test_add_behind()
1316 struct klist_node a, b, c, d; in klist_test_add_before() local
1323 klist_add_head(&a, &mylist); in klist_test_add_before()
1325 klist_add_before(&c, &a); in klist_test_add_before()
1339 KUNIT_EXPECT_PTR_EQ(test, klist_next(&i), &a); in klist_test_add_before()
1352 struct klist_node a, b, c, d; in klist_test_del_refcount_greater_than_zero() local
1360 klist_add_tail(&a, &mylist); in klist_test_del_refcount_greater_than_zero()
1367 KUNIT_EXPECT_PTR_EQ(test, klist_next(&i), &a); in klist_test_del_refcount_greater_than_zero()
1403 struct klist_node a, b, c, d; in klist_test_del_refcount_zero() local
1411 klist_add_tail(&a, &mylist); in klist_test_del_refcount_zero()
1425 KUNIT_EXPECT_PTR_EQ(test, klist_next(&i), &a); in klist_test_del_refcount_zero()
1437 struct klist_node a, b, c, d; in klist_test_remove() local
1445 klist_add_tail(&a, &mylist); in klist_test_remove()
1459 KUNIT_EXPECT_PTR_EQ(test, klist_next(&i), &a); in klist_test_remove()
1470 struct klist_node a = {}; in klist_test_node_attached() local
1475 KUNIT_EXPECT_FALSE(test, klist_node_attached(&a)); in klist_test_node_attached()
1476 klist_add_head(&a, &mylist); in klist_test_node_attached()
1477 KUNIT_EXPECT_TRUE(test, klist_node_attached(&a)); in klist_test_node_attached()
1478 klist_del(&a); in klist_test_node_attached()
1479 KUNIT_EXPECT_FALSE(test, klist_node_attached(&a)); in klist_test_node_attached()