Lines Matching refs:list
32 struct qdf_slist list; in qdf_slist_test_empty() local
36 qdf_slist_init(&list); in qdf_slist_test_empty()
39 QDF_BUG(qdf_slist_empty(&list)); in qdf_slist_test_empty()
42 QDF_BUG(!qdf_slist_pop(&list, item, node)); in qdf_slist_test_empty()
44 qdf_slist_deinit(&list); in qdf_slist_test_empty()
51 struct qdf_slist list; in qdf_slist_test_push_pop() local
56 qdf_slist_init(&list); in qdf_slist_test_push_pop()
60 qdf_slist_push(&list, &items[i], node); in qdf_slist_test_push_pop()
63 QDF_BUG(!qdf_slist_empty(&list)); in qdf_slist_test_push_pop()
67 QDF_BUG(qdf_slist_pop(&list, item, node)); in qdf_slist_test_push_pop()
70 QDF_BUG(qdf_slist_empty(&list)); in qdf_slist_test_push_pop()
72 qdf_slist_deinit(&list); in qdf_slist_test_push_pop()
79 struct qdf_slist list; in qdf_slist_test_for_each() local
85 qdf_slist_init(&list); in qdf_slist_test_for_each()
89 qdf_slist_push(&list, &items[i], node); in qdf_slist_test_for_each()
93 qdf_slist_for_each(&list, item, node) { in qdf_slist_test_for_each()
100 qdf_slist_for_each_del(&list, prev, item, node) { in qdf_slist_test_for_each()
103 QDF_BUG(qdf_slist_remove(&list, prev, node)->id == item->id); in qdf_slist_test_for_each()
108 QDF_BUG(!qdf_slist_pop(&list, item, node)); in qdf_slist_test_for_each()
109 QDF_BUG(qdf_slist_empty(&list)); in qdf_slist_test_for_each()
111 qdf_slist_deinit(&list); in qdf_slist_test_for_each()