Lines Matching refs:head

11         LIST_HEAD(list_item, head);  in main()
15 LIST_HEAD_INIT(head); in main()
17 assert_se(head == NULL); in main()
23 LIST_PREPEND(item, head, &items[i]); in main()
47 assert_se(!LIST_JUST_US(item, head)); in main()
66 LIST_REMOVE(item, head, &items[1]); in main()
77 LIST_INSERT_AFTER(item, head, &items[3], &items[1]); in main()
88 LIST_REMOVE(item, head, &items[1]); in main()
99 LIST_INSERT_BEFORE(item, head, &items[2], &items[1]); in main()
110 LIST_REMOVE(item, head, &items[0]); in main()
121 LIST_INSERT_BEFORE(item, head, &items[3], &items[0]); in main()
131 assert_se(head == &items[0]); in main()
133 LIST_REMOVE(item, head, &items[0]); in main()
144 LIST_INSERT_BEFORE(item, head, NULL, &items[0]); in main()
155 LIST_REMOVE(item, head, &items[0]); in main()
166 LIST_REMOVE(item, head, &items[1]); in main()
175 LIST_REMOVE(item, head, &items[2]); in main()
177 assert_se(LIST_JUST_US(item, head)); in main()
179 LIST_REMOVE(item, head, &items[3]); in main()
182 assert_se(head == NULL); in main()
186 LIST_APPEND(item, head, &items[i]); in main()
189 assert_se(!LIST_JUST_US(item, head)); in main()
202 LIST_REMOVE(item, head, &items[i]); in main()
204 assert_se(head == NULL); in main()
209 LIST_PREPEND(item, head, &items[i]); in main()
228 LIST_JOIN(item, head2, head); in main()
229 assert_se(head == NULL); in main()
241 LIST_JOIN(item, head, head2); in main()
243 assert_se(!LIST_IS_EMPTY(head)); in main()
246 LIST_REMOVE(item, head, &items[i]); in main()
248 assert_se(head == NULL); in main()
250 LIST_PREPEND(item, head, items + 0); in main()
251 LIST_PREPEND(item, head, items + 1); in main()
252 LIST_PREPEND(item, head, items + 2); in main()
254 assert_se(LIST_POP(item, head) == items + 2); in main()
255 assert_se(LIST_POP(item, head) == items + 1); in main()
256 assert_se(LIST_POP(item, head) == items + 0); in main()
257 assert_se(LIST_POP(item, head) == NULL); in main()