Lines Matching refs:XA_BUG_ON
22 #undef XA_BUG_ON
23 #define XA_BUG_ON(xa, x) do { \
47 XA_BUG_ON(xa, xa_insert(xa, index, xa_mk_index(index),
55 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_index(index), xa_limit_32b,
57 XA_BUG_ON(xa, id != index);
62 XA_BUG_ON(xa, xa_erase(xa, index) != xa_mk_index(index));
63 XA_BUG_ON(xa, xa_load(xa, index) != NULL);
88 XA_BUG_ON(xa, xa_err(xa_store_index(xa, 0, GFP_NOWAIT)) != 0);
89 XA_BUG_ON(xa, xa_err(xa_erase(xa, 0)) != 0);
92 XA_BUG_ON(xa, xa_err(xa_store_index(xa, 1, GFP_NOWAIT)) != -ENOMEM);
93 XA_BUG_ON(xa, xa_err(xa_store_index(xa, 1, GFP_NOWAIT)) != -ENOMEM);
95 XA_BUG_ON(xa, xa_err(xa_store_index(xa, 1, GFP_KERNEL)) != 0);
96 XA_BUG_ON(xa, xa_err(xa_store(xa, 1, xa_mk_value(0), GFP_KERNEL)) != 0);
97 XA_BUG_ON(xa, xa_err(xa_erase(xa, 1)) != 0);
99 // XA_BUG_ON(xa, xa_err(xa_store(xa, 0, xa_mk_internal(0), 0)) != -EINVAL);
111 XA_BUG_ON(xa, xas_find(&xas, ULONG_MAX) != xa_mk_value(0));
113 XA_BUG_ON(xa, !xa_is_retry(xas_reload(&xas)));
114 XA_BUG_ON(xa, xas_retry(&xas, NULL));
115 XA_BUG_ON(xa, xas_retry(&xas, xa_mk_value(0)));
117 XA_BUG_ON(xa, xas.xa_node != XAS_RESTART);
118 XA_BUG_ON(xa, xas_next_entry(&xas, ULONG_MAX) != xa_mk_value(0));
119 XA_BUG_ON(xa, xas.xa_node != NULL);
122 XA_BUG_ON(xa, xa_store_index(xa, 1, GFP_KERNEL) != NULL);
125 XA_BUG_ON(xa, !xa_is_internal(xas_reload(&xas)));
127 XA_BUG_ON(xa, xas_next_entry(&xas, ULONG_MAX) != xa_mk_value(0));
155 XA_BUG_ON(xa, xa_to_value(entry) != j);
157 XA_BUG_ON(xa, entry);
159 XA_BUG_ON(xa, xa_store_index(xa, i, GFP_KERNEL) != NULL);
166 XA_BUG_ON(xa, xa_to_value(entry) != j);
168 XA_BUG_ON(xa, entry);
172 XA_BUG_ON(xa, !xa_empty(xa));
181 XA_BUG_ON(xa, xa_get_mark(xa, index, XA_MARK_0));
183 XA_BUG_ON(xa, xa_get_mark(xa, index, XA_MARK_0));
186 XA_BUG_ON(xa, xa_store_index(xa, index, GFP_KERNEL) != NULL);
187 XA_BUG_ON(xa, xa_get_mark(xa, index, XA_MARK_0));
189 XA_BUG_ON(xa, !xa_get_mark(xa, index, XA_MARK_0));
192 XA_BUG_ON(xa, xa_get_mark(xa, index + 1, XA_MARK_0));
193 XA_BUG_ON(xa, xa_get_mark(xa, index, XA_MARK_1));
197 XA_BUG_ON(xa, !xa_empty(xa));
198 XA_BUG_ON(xa, xa_get_mark(xa, index, XA_MARK_0));
200 XA_BUG_ON(xa, xa_get_mark(xa, index, XA_MARK_0));
212 XA_BUG_ON(xa, xa_store_index(xa, index + 1, GFP_KERNEL));
214 XA_BUG_ON(xa, xa_store_index(xa, index + 2, GFP_KERNEL));
216 XA_BUG_ON(xa, xa_store_index(xa, next, GFP_KERNEL));
224 XA_BUG_ON(xa, !xa_get_mark(xa, i, XA_MARK_0));
225 XA_BUG_ON(xa, xa_get_mark(xa, i, XA_MARK_1));
226 XA_BUG_ON(xa, !xa_get_mark(xa, i, XA_MARK_2));
233 XA_BUG_ON(xa, seen != 2);
242 XA_BUG_ON(xa, seen != 1);
244 XA_BUG_ON(xa, xa_get_mark(xa, next, XA_MARK_0));
245 XA_BUG_ON(xa, xa_get_mark(xa, next, XA_MARK_1));
246 XA_BUG_ON(xa, xa_get_mark(xa, next, XA_MARK_2));
249 XA_BUG_ON(xa, !xa_empty(xa));
251 XA_BUG_ON(xa, !xa_empty(xa));
267 XA_BUG_ON(xa, !xa_get_mark(xa, 0, XA_MARK_0) == 0);
279 XA_BUG_ON(xa, count != 1000);
284 XA_BUG_ON(xa, !xa_get_mark(xa, xas.xa_index, XA_MARK_0));
285 XA_BUG_ON(xa, !xas_get_mark(&xas, XA_MARK_0));
305 XA_BUG_ON(xa, entry != xa_mk_index(0x40));
307 XA_BUG_ON(xa, count != 1);
331 XA_BUG_ON(xa, !xa_empty(xa));
332 XA_BUG_ON(xa, xa_store_index(xa, 0, GFP_KERNEL) != NULL);
333 XA_BUG_ON(xa, xa_store_index(xa, 1, GFP_KERNEL) != NULL);
340 XA_BUG_ON(xa, xas_load(&xas) != xa_mk_value(1));
342 XA_BUG_ON(xa, xa_entry_locked(xa, node, 0) != xa_mk_value(0));
343 XA_BUG_ON(xa, xas_store(&xas, NULL) != xa_mk_value(1));
344 XA_BUG_ON(xa, xa_load(xa, 1) != NULL);
345 XA_BUG_ON(xa, xas.xa_node != XAS_BOUNDS);
346 XA_BUG_ON(xa, xa_entry_locked(xa, node, 0) != XA_RETRY_ENTRY);
347 XA_BUG_ON(xa, xas_load(&xas) != NULL);
349 XA_BUG_ON(xa, xa_load(xa, 0) != xa_mk_value(0));
351 XA_BUG_ON(xa, !xa_empty(xa));
356 XA_BUG_ON(xa, xa_load(xa, max) != xa_mk_value(0));
357 XA_BUG_ON(xa, xa_load(xa, max + 1) != NULL);
361 XA_BUG_ON(xa, xa_store_index(xa, ULONG_MAX, GFP_KERNEL) !=
364 XA_BUG_ON(xa, xa_head(xa) == node);
366 XA_BUG_ON(xa, xa_load(xa, max + 1) != NULL);
368 XA_BUG_ON(xa, xa->xa_head != node);
379 XA_BUG_ON(xa, xa_load(xa, i - 1) != NULL);
380 XA_BUG_ON(xa, xa_load(xa, i + 1) != NULL);
386 XA_BUG_ON(xa, xa_load(xa, (1UL << i) - 1) != NULL);
387 XA_BUG_ON(xa, xa_load(xa, (1UL << i) + 1) != NULL);
391 XA_BUG_ON(xa, xa_load(xa, (1UL << i) - 2) != NULL);
392 XA_BUG_ON(xa, xa_load(xa, 1UL << i) != NULL);
397 XA_BUG_ON(xa, xa_load(xa, 0UL) != NULL);
398 XA_BUG_ON(xa, xa_load(xa, ~1UL) != NULL);
401 XA_BUG_ON(xa, !xa_empty(xa));
410 XA_BUG_ON(xa, !xa_empty(xa));
411 XA_BUG_ON(xa, xa_store_index(xa, 12345678, GFP_KERNEL) != NULL);
412 XA_BUG_ON(xa, xa_insert(xa, 12345678, xa, GFP_KERNEL) != -EBUSY);
413 XA_BUG_ON(xa, xa_cmpxchg(xa, 12345678, SIX, FIVE, GFP_KERNEL) != LOTS);
414 XA_BUG_ON(xa, xa_cmpxchg(xa, 12345678, LOTS, FIVE, GFP_KERNEL) != LOTS);
415 XA_BUG_ON(xa, xa_cmpxchg(xa, 12345678, FIVE, LOTS, GFP_KERNEL) != FIVE);
416 XA_BUG_ON(xa, xa_cmpxchg(xa, 5, FIVE, NULL, GFP_KERNEL) != NULL);
417 XA_BUG_ON(xa, xa_cmpxchg(xa, 5, NULL, FIVE, GFP_KERNEL) != NULL);
418 XA_BUG_ON(xa, xa_insert(xa, 5, FIVE, GFP_KERNEL) != -EBUSY);
419 XA_BUG_ON(xa, xa_cmpxchg(xa, 5, FIVE, NULL, GFP_KERNEL) != FIVE);
420 XA_BUG_ON(xa, xa_insert(xa, 5, FIVE, GFP_KERNEL) == -EBUSY);
423 XA_BUG_ON(xa, !xa_empty(xa));
433 XA_BUG_ON(xa, !xa_empty(xa));
434 XA_BUG_ON(xa, xa_reserve(xa, 12345678, GFP_KERNEL) != 0);
435 XA_BUG_ON(xa, xa_empty(xa));
436 XA_BUG_ON(xa, xa_load(xa, 12345678));
438 XA_BUG_ON(xa, !xa_empty(xa));
441 XA_BUG_ON(xa, xa_reserve(xa, 12345678, GFP_KERNEL) != 0);
442 XA_BUG_ON(xa, xa_store_index(xa, 12345678, GFP_NOWAIT) != NULL);
445 XA_BUG_ON(xa, !xa_empty(xa));
448 XA_BUG_ON(xa, xa_reserve(xa, 12345678, GFP_KERNEL) != 0);
449 XA_BUG_ON(xa, xa_cmpxchg(xa, 12345678, XA_ZERO_ENTRY,
453 XA_BUG_ON(xa, !xa_empty(xa));
456 XA_BUG_ON(xa, xa_reserve(xa, 12345678, GFP_KERNEL) != 0);
457 XA_BUG_ON(xa, xa_insert(xa, 12345678, xa_mk_value(12345678), 0) !=
459 XA_BUG_ON(xa, xa_empty(xa));
460 XA_BUG_ON(xa, xa_erase(xa, 12345678) != NULL);
461 XA_BUG_ON(xa, !xa_empty(xa));
465 XA_BUG_ON(xa, xa_reserve(xa, 6, GFP_KERNEL) != 0);
470 XA_BUG_ON(xa, index != 5 && index != 7);
473 XA_BUG_ON(xa, count != 2);
479 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_value(8),
481 XA_BUG_ON(xa, id != 8);
484 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_value(6),
486 XA_BUG_ON(xa, id != 6);
521 XA_BUG_ON(xa, entry != xa_mk_index(j));
526 XA_BUG_ON(xa, !xa_empty(xa));
539 XA_BUG_ON(xa, xa_load(xa, min) != xa_mk_index(index));
540 XA_BUG_ON(xa, xa_load(xa, max - 1) != xa_mk_index(index));
541 XA_BUG_ON(xa, xa_load(xa, max) != NULL);
542 XA_BUG_ON(xa, xa_load(xa, min - 1) != NULL);
545 XA_BUG_ON(xa, xas_store(&xas, xa_mk_index(min)) != xa_mk_index(index));
547 XA_BUG_ON(xa, xa_load(xa, min) != xa_mk_index(min));
548 XA_BUG_ON(xa, xa_load(xa, max - 1) != xa_mk_index(min));
549 XA_BUG_ON(xa, xa_load(xa, max) != NULL);
550 XA_BUG_ON(xa, xa_load(xa, min - 1) != NULL);
553 XA_BUG_ON(xa, !xa_empty(xa));
563 XA_BUG_ON(xa, xas_store(&xas, xa_mk_value(1)) != xa_mk_value(0));
564 XA_BUG_ON(xa, xas.xa_index != index);
565 XA_BUG_ON(xa, xas_store(&xas, NULL) != xa_mk_value(1));
567 XA_BUG_ON(xa, !xa_empty(xa));
581 XA_BUG_ON(xa, entry != xa_mk_index(index));
584 XA_BUG_ON(xa, n != 1);
587 XA_BUG_ON(xa, entry != xa_mk_index(index));
590 XA_BUG_ON(xa, n != 2);
605 XA_BUG_ON(xa, xa_load(xa, 0) != xa_mk_value(0));
606 XA_BUG_ON(xa, xa_load(xa, 1) != xa_mk_value(0));
607 XA_BUG_ON(xa, xa_load(xa, 2) != NULL);
609 XA_BUG_ON(xa, xa_to_node(xa_head(xa))->count != 2);
610 XA_BUG_ON(xa, xa_to_node(xa_head(xa))->nr_values != 2);
615 XA_BUG_ON(xa, xa_load(xa, 0) != xa_mk_value(0));
616 XA_BUG_ON(xa, xa_load(xa, 1) != xa_mk_value(0));
617 XA_BUG_ON(xa, xa_load(xa, 2) != NULL);
619 XA_BUG_ON(xa, xa_to_node(xa_head(xa))->count != 3);
620 XA_BUG_ON(xa, xa_to_node(xa_head(xa))->nr_values != 2);
625 XA_BUG_ON(xa, xa_load(xa, 0) != xa_mk_value(1));
626 XA_BUG_ON(xa, xa_load(xa, 1) != xa_mk_value(1));
627 XA_BUG_ON(xa, xa_load(xa, 2) != xa_mk_value(1));
628 XA_BUG_ON(xa, xa_load(xa, 3) != xa_mk_value(1));
629 XA_BUG_ON(xa, xa_load(xa, 4) != NULL);
631 XA_BUG_ON(xa, xa_to_node(xa_head(xa))->count != 4);
632 XA_BUG_ON(xa, xa_to_node(xa_head(xa))->nr_values != 4);
637 XA_BUG_ON(xa, !xa_empty(xa));
643 XA_BUG_ON(xa, !xa_empty(xa));
653 XA_BUG_ON(xa, entry != NULL);
655 XA_BUG_ON(xa, entry != xa_mk_index(j));
659 XA_BUG_ON(xa, !xa_empty(xa));
682 XA_BUG_ON(xa, !xa_empty(xa));
688 XA_BUG_ON(xa, !xa_empty(xa));
728 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_index(UINT_MAX - 1),
731 XA_BUG_ON(xa, id != 0xfffffffeU);
732 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_index(UINT_MAX),
735 XA_BUG_ON(xa, id != 0xffffffffU);
737 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_index(0),
740 XA_BUG_ON(xa, id != 3);
743 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_index(10), XA_LIMIT(10, 5),
745 XA_BUG_ON(xa, xa_store_index(xa, 3, GFP_KERNEL) != 0);
746 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_index(10), XA_LIMIT(10, 5),
749 XA_BUG_ON(xa, !xa_empty(xa));
759 XA_BUG_ON(xa, !xa_empty(xa));
760 XA_BUG_ON(xa, xa_alloc(xa, &id, NULL, xa_limit_32b, GFP_KERNEL) != 0);
761 XA_BUG_ON(xa, id != base);
762 XA_BUG_ON(xa, xa_empty(xa));
763 XA_BUG_ON(xa, xa_erase(xa, id) != NULL);
764 XA_BUG_ON(xa, !xa_empty(xa));
767 XA_BUG_ON(xa, !xa_empty(xa));
768 XA_BUG_ON(xa, xa_alloc(xa, &id, NULL, xa_limit_32b, GFP_KERNEL) != 0);
769 XA_BUG_ON(xa, id != base);
770 XA_BUG_ON(xa, xa_empty(xa));
772 XA_BUG_ON(xa, !xa_empty(xa));
775 XA_BUG_ON(xa, xa_alloc(xa, &id, NULL, xa_limit_32b,
777 XA_BUG_ON(xa, id != i);
780 XA_BUG_ON(xa, xa_store(xa, 3, xa_mk_index(3), GFP_KERNEL) != NULL);
781 XA_BUG_ON(xa, xa_store(xa, 4, xa_mk_index(4), GFP_KERNEL) != NULL);
782 XA_BUG_ON(xa, xa_store(xa, 4, NULL, GFP_KERNEL) != xa_mk_index(4));
783 XA_BUG_ON(xa, xa_erase(xa, 5) != NULL);
784 XA_BUG_ON(xa, xa_alloc(xa, &id, NULL, xa_limit_32b, GFP_KERNEL) != 0);
785 XA_BUG_ON(xa, id != 5);
792 XA_BUG_ON(xa, xa_erase(xa, i) != NULL);
793 XA_BUG_ON(xa, xa_empty(xa));
795 XA_BUG_ON(xa, xa_erase(xa, 8) != NULL);
796 XA_BUG_ON(xa, xa_empty(xa));
797 XA_BUG_ON(xa, xa_erase(xa, base + 9) != NULL);
798 XA_BUG_ON(xa, !xa_empty(xa));
811 XA_BUG_ON(xa, xa_alloc_cyclic(xa, &id, xa_mk_index(1), limit,
813 XA_BUG_ON(xa, id != 1);
816 XA_BUG_ON(xa, xa_alloc_cyclic(xa, &id, xa_mk_index(0x3ffd), limit,
818 XA_BUG_ON(xa, id != 0x3ffd);
821 XA_BUG_ON(xa, !xa_empty(xa));
828 XA_BUG_ON(xa, xa_alloc_cyclic(xa, &id, entry, limit,
830 XA_BUG_ON(xa, xa_mk_index(id) != entry);
838 XA_BUG_ON(xa, xa_alloc_cyclic(xa, &id, xa_mk_index(UINT_MAX),
840 XA_BUG_ON(xa, id != UINT_MAX);
841 XA_BUG_ON(xa, xa_alloc_cyclic(xa, &id, xa_mk_index(base),
843 XA_BUG_ON(xa, id != base);
844 XA_BUG_ON(xa, xa_alloc_cyclic(xa, &id, xa_mk_index(base + 1),
846 XA_BUG_ON(xa, id != base + 1);
851 XA_BUG_ON(xa, !xa_empty(xa));
877 XA_BUG_ON(xa, !xa_is_value(entry));
878 XA_BUG_ON(xa, entry < xa_mk_index(start));
879 XA_BUG_ON(xa, entry > xa_mk_index(start + (1UL << order) - 1));
888 XA_BUG_ON(xa, xas_error(&xas));
889 XA_BUG_ON(xa, count != present);
890 XA_BUG_ON(xa, xa_load(xa, start) != xa_mk_index(start));
891 XA_BUG_ON(xa, xa_load(xa, start + (1UL << order) - 1) !=
905 XA_BUG_ON(xa, !xa_empty(xa));
907 XA_BUG_ON(xa, !xa_empty(xa));
911 XA_BUG_ON(xa, !xa_empty(xa));
914 XA_BUG_ON(xa, !xa_empty(xa));
919 XA_BUG_ON(xa, !xa_empty(xa));
923 XA_BUG_ON(xa, !xa_empty(xa));
931 XA_BUG_ON(xa, !xa_empty(xa));
942 XA_BUG_ON(xa, xa_store_index(xa, next, GFP_KERNEL) != NULL);
943 XA_BUG_ON(xa, xa_store_index(xa, next + 1, GFP_KERNEL) != NULL);
946 XA_BUG_ON(xa, xa_find(xa, &index, ULONG_MAX, XA_PRESENT) !=
948 XA_BUG_ON(xa, index != multi);
950 XA_BUG_ON(xa, xa_find(xa, &index, ULONG_MAX, XA_PRESENT) !=
952 XA_BUG_ON(xa, (index < multi) || (index >= next));
953 XA_BUG_ON(xa, xa_find_after(xa, &index, ULONG_MAX, XA_PRESENT) !=
955 XA_BUG_ON(xa, index != next);
956 XA_BUG_ON(xa, xa_find_after(xa, &index, next, XA_PRESENT) != NULL);
957 XA_BUG_ON(xa, index != next);
962 XA_BUG_ON(xa, !xa_empty(xa));
985 XA_BUG_ON(xa, !xa_empty(xa));
997 XA_BUG_ON(xa, !xa_empty(xa));
999 XA_BUG_ON(xa, xa_find_after(xa, &index, ULONG_MAX, XA_PRESENT));
1008 XA_BUG_ON(xa, !xa_empty(xa));
1015 XA_BUG_ON(xa, xa_store_index(xa, i, GFP_KERNEL) != NULL);
1018 XA_BUG_ON(xa, xa_store_index(xa, j, GFP_KERNEL) !=
1026 XA_BUG_ON(xa, index != j);
1028 XA_BUG_ON(xa, index != i);
1030 XA_BUG_ON(xa, entry != NULL);
1036 XA_BUG_ON(xa, index != j);
1038 XA_BUG_ON(xa, index != i);
1040 XA_BUG_ON(xa, entry != NULL);
1043 XA_BUG_ON(xa, xa_get_mark(xa, j, XA_MARK_0));
1044 XA_BUG_ON(xa, !xa_get_mark(xa, i, XA_MARK_0));
1047 XA_BUG_ON(xa, xa_get_mark(xa, i, XA_MARK_0));
1049 XA_BUG_ON(xa, !xa_empty(xa));
1058 XA_BUG_ON(xa, true);
1065 XA_BUG_ON(xa, xa_mk_index(index) != entry);
1066 XA_BUG_ON(xa, index != j++);
1087 XA_BUG_ON(xa,
1106 XA_BUG_ON(xa, entry != xa_mk_index(ULONG_MAX));
1109 XA_BUG_ON(xa, entry);
1165 XA_BUG_ON(xa, xa_load(xa, index) !=
1167 XA_BUG_ON(xa, xa_find_entry(xa,
1170 XA_BUG_ON(xa, xa_find_entry(xa, xa) != -1);
1176 XA_BUG_ON(xa, xa_find_entry(xa, xa) != -1);
1178 XA_BUG_ON(xa, xa_find_entry(xa, xa) != -1);
1179 XA_BUG_ON(xa, xa_find_entry(xa, xa_mk_index(ULONG_MAX)) != -1);
1181 XA_BUG_ON(xa, !xa_empty(xa));
1193 XA_BUG_ON(xa, xa_store_order(xa, index, order,
1200 XA_BUG_ON(xa, entry != xa_mk_index(1UL << count));
1204 XA_BUG_ON(xa, count != order_limit);
1210 XA_BUG_ON(xa, entry != xa_mk_index(1UL << count));
1215 XA_BUG_ON(xa, count != order_limit);
1224 XA_BUG_ON(xa, !xa_empty(xa));
1226 XA_BUG_ON(xa, xas_next(&xas) != NULL);
1227 XA_BUG_ON(xa, xas_next(&xas) != NULL);
1232 XA_BUG_ON(xa, xas_next(&xas) != xa_mk_index(0));
1233 XA_BUG_ON(xa, xas_next(&xas) != NULL);
1235 XA_BUG_ON(xa, xas_prev(&xas) != xa_mk_index(0));
1236 XA_BUG_ON(xa, xas_prev(&xas) != NULL);
1239 XA_BUG_ON(xa, !xa_empty(xa));
1248 XA_BUG_ON(xa, xas_find(&xas, ULONG_MAX) != xa_mk_index(ULONG_MAX));
1249 XA_BUG_ON(xa, xas_find(&xas, ULONG_MAX) != NULL);
1254 XA_BUG_ON(xa, xas_find(&xas, ULONG_MAX) != xa_mk_index(ULONG_MAX));
1256 XA_BUG_ON(xa, xas_find(&xas, ULONG_MAX) != NULL);
1260 XA_BUG_ON(xa, !xa_empty(xa));
1275 XA_BUG_ON(xa, xas.xa_node == XAS_RESTART);
1276 XA_BUG_ON(xa, xas.xa_index != i);
1278 XA_BUG_ON(xa, entry != xa_mk_index(i));
1280 XA_BUG_ON(xa, entry != NULL);
1283 XA_BUG_ON(xa, xas.xa_index != i);
1289 XA_BUG_ON(xa, xas.xa_node == XAS_RESTART);
1290 XA_BUG_ON(xa, xas.xa_index != i);
1292 XA_BUG_ON(xa, entry != xa_mk_index(i));
1294 XA_BUG_ON(xa, entry != NULL);
1298 XA_BUG_ON(xa, xas_next(&xas) != NULL);
1299 XA_BUG_ON(xa, xas.xa_index != ULONG_MAX);
1300 XA_BUG_ON(xa, xas_next(&xas) != xa_mk_value(0));
1301 XA_BUG_ON(xa, xas.xa_index != 0);
1302 XA_BUG_ON(xa, xas_prev(&xas) != NULL);
1303 XA_BUG_ON(xa, xas.xa_index != ULONG_MAX);
1308 XA_BUG_ON(xa, !xa_empty(xa));
1317 XA_BUG_ON(xa, xa_store_index(xa, i, GFP_KERNEL) != NULL);
1323 XA_BUG_ON(xa, entry != xa_mk_index(i));
1324 XA_BUG_ON(xa, i != xas.xa_index);
1327 XA_BUG_ON(xa, xas_prev(&xas) != NULL);
1328 XA_BUG_ON(xa, xas.xa_index != ULONG_MAX);
1332 XA_BUG_ON(xa, entry != xa_mk_index(i));
1333 XA_BUG_ON(xa, i != xas.xa_index);
1348 XA_BUG_ON(xa, entry != xa_mk_index(i));
1350 XA_BUG_ON(xa, entry != NULL);
1351 XA_BUG_ON(xa, i != xas.xa_index);
1354 XA_BUG_ON(xa, xas_prev(&xas) != NULL);
1355 XA_BUG_ON(xa, xas.xa_index != ULONG_MAX);
1360 XA_BUG_ON(xa, entry != xa_mk_index(i));
1362 XA_BUG_ON(xa, entry != NULL);
1363 XA_BUG_ON(xa, i != xas.xa_index);
1388 XA_BUG_ON(xa, xas_find_conflict(&xas));
1393 XA_BUG_ON(xa, xas_store(&xas, xa_mk_index(index + i)));
1400 XA_BUG_ON(xa, xas_error(&xas));
1411 XA_BUG_ON(xa, !xa_empty(xa));
1423 XA_BUG_ON(xa, !xa_empty(xa));
1431 XA_BUG_ON(NULL, xas_error(&xas) != -EEXIST);
1450 XA_BUG_ON(xa, old != xa_mk_index(base + i));
1452 XA_BUG_ON(xa, old != NULL);
1459 XA_BUG_ON(xa, xas_error(&xas));
1463 XA_BUG_ON(xa, !xa_empty(xa));
1526 XA_BUG_ON(xa, xa_load(xa, first) != xa_mk_index(first));
1527 XA_BUG_ON(xa, xa_load(xa, last) != xa_mk_index(first));
1528 XA_BUG_ON(xa, xa_load(xa, first - 1) != NULL);
1529 XA_BUG_ON(xa, xa_load(xa, last + 1) != NULL);
1534 XA_BUG_ON(xa, !xa_empty(xa));
1571 XA_BUG_ON(xa, xa_load(xa, index + i) != xa_mk_index(val));
1575 XA_BUG_ON(xa, !xa_get_mark(xa, index, XA_MARK_0));
1584 XA_BUG_ON(xa, !xa_empty(xa));
1606 XA_BUG_ON(xa, xa_alloc(xa, &id, name + i, xa_limit_32b,
1608 XA_BUG_ON(xa, id != i);
1611 XA_BUG_ON(xa, xa_is_err(entry));
1623 XA_BUG_ON(xa, !xa_empty(xa));
1626 XA_BUG_ON(xa, xa_store(xa, 0, name + i, GFP_KERNEL) != NULL);
1631 XA_BUG_ON(xa, xa_reserve(xa, 0, GFP_KERNEL) != 0);
1632 XA_BUG_ON(xa, xa_store(xa, 0, name + i, 0) != NULL);
1636 XA_BUG_ON(xa, !xa_empty(xa));
1670 XA_BUG_ON(xa, node->array != xa);
1690 XA_BUG_ON(xa, list_empty(&shadow_nodes));
1695 XA_BUG_ON(xa, !list_empty(&shadow_nodes));
1699 XA_BUG_ON(xa, list_empty(&shadow_nodes));
1702 XA_BUG_ON(xa, !list_empty(&shadow_nodes));
1703 XA_BUG_ON(xa, !xa_empty(xa));
1721 XA_BUG_ON(xa, xas.xa_node->count == 0);
1722 XA_BUG_ON(xa, xas.xa_node->count > (1 << order));
1723 XA_BUG_ON(xa, xas.xa_node->nr_values != 0);
1728 XA_BUG_ON(xa, xas.xa_node->count != xas.xa_node->nr_values * 2);
1731 XA_BUG_ON(xa, xas.xa_node->nr_values != 0);
1734 XA_BUG_ON(xa, !xa_empty(xa));
1746 XA_BUG_ON(xa, xa_get_order(xa, i) != 0);
1753 XA_BUG_ON(xa, xa_get_order(xa, j) != order);
1763 XA_BUG_ON(xa, !xa_empty(xa));
1767 XA_BUG_ON(xa, !xa_empty(xa));
1772 XA_BUG_ON(xa, xa_empty(xa));
1774 XA_BUG_ON(xa, !xa_empty(xa));
1779 XA_BUG_ON(xa, xa_empty(xa));
1781 XA_BUG_ON(xa, !xa_empty(xa));
1786 XA_BUG_ON(xa, xa_empty(xa));
1788 XA_BUG_ON(xa, !xa_empty(xa));