Lines Matching refs:assert
19 assert(item->index == id); in item_idr_free()
28 assert(item->index == id); in item_idr_remove()
38 assert(idr_alloc_cyclic(&idr, DUMMY_PTR, 0, 0x4000, GFP_KERNEL) == 0); in idr_alloc_test()
39 assert(idr_alloc_cyclic(&idr, DUMMY_PTR, 0x3ffd, 0x4000, GFP_KERNEL) == 0x3ffd); in idr_alloc_test()
53 assert(id == item->index); in idr_alloc_test()
81 assert(idr_is_empty(&idr)); in idr_null_test()
83 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0); in idr_null_test()
84 assert(!idr_is_empty(&idr)); in idr_null_test()
86 assert(idr_is_empty(&idr)); in idr_null_test()
88 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0); in idr_null_test()
89 assert(!idr_is_empty(&idr)); in idr_null_test()
91 assert(idr_is_empty(&idr)); in idr_null_test()
94 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == i); in idr_null_test()
97 assert(idr_replace(&idr, DUMMY_PTR, 3) == NULL); in idr_null_test()
98 assert(idr_replace(&idr, DUMMY_PTR, 4) == NULL); in idr_null_test()
99 assert(idr_replace(&idr, NULL, 4) == DUMMY_PTR); in idr_null_test()
100 assert(idr_replace(&idr, DUMMY_PTR, 11) == ERR_PTR(-ENOENT)); in idr_null_test()
102 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 5); in idr_null_test()
107 assert(!idr_is_empty(&idr)); in idr_null_test()
110 assert(!idr_is_empty(&idr)); in idr_null_test()
112 assert(idr_is_empty(&idr)); in idr_null_test()
114 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0); in idr_null_test()
115 assert(idr_replace(&idr, DUMMY_PTR, 3) == ERR_PTR(-ENOENT)); in idr_null_test()
116 assert(idr_replace(&idr, DUMMY_PTR, 0) == NULL); in idr_null_test()
117 assert(idr_replace(&idr, NULL, 0) == DUMMY_PTR); in idr_null_test()
120 assert(idr_is_empty(&idr)); in idr_null_test()
123 assert(idr_alloc(&idr, NULL, 1, 0, GFP_KERNEL) == i); in idr_null_test()
127 assert(idr_is_empty(&idr)); in idr_null_test()
139 assert(idr_alloc(&idr, item, i, i + 1, GFP_NOWAIT) == i); in idr_nowait_test()
159 assert(idr_alloc(&idr, item, indices[i], indices[i+1], in idr_get_next_test()
165 assert(nextid == indices[i]); in idr_get_next_test()
347 assert(idr_alloc(&idr, item, 0, 20000, GFP_KERNEL) == i); in idr_checks()
350 assert(idr_alloc(&idr, DUMMY_PTR, 5, 30, GFP_KERNEL) < 0); in idr_checks()
360 assert(idr_is_empty(&idr)); in idr_checks()
365 assert(idr_alloc(&idr, DUMMY_PTR, 0, 0, GFP_KERNEL) == 0); in idr_checks()
368 assert(idr_alloc(&idr, DUMMY_PTR, 0, 0, GFP_KERNEL) == i); in idr_checks()
374 assert(idr_alloc(&idr, item, i, i + 10, GFP_KERNEL) == i); in idr_checks()
376 assert(idr_alloc(&idr, DUMMY_PTR, i - 2, i, GFP_KERNEL) == -ENOSPC); in idr_checks()
377 assert(idr_alloc(&idr, DUMMY_PTR, i - 2, i + 10, GFP_KERNEL) == -ENOSPC); in idr_checks()
383 assert(idr_is_empty(&idr)); in idr_checks()
395 assert(id == item->index); in idr_checks()
400 assert(idr_is_empty(&idr)); in idr_checks()
404 assert(idr_alloc(&idr, item, 1, 20000, GFP_KERNEL) == i); in idr_checks()
428 #define dump_stack() assert(0)
507 assert(ida_simple_get(&ida, 0, 20000, GFP_KERNEL) == i); in ida_simple_get_remove_test()
509 assert(ida_simple_get(&ida, 5, 30, GFP_KERNEL) < 0); in ida_simple_get_remove_test()
514 assert(ida_is_empty(&ida)); in ida_simple_get_remove_test()
580 assert(ida_is_empty(&ida)); in ida_thread_tests()