Lines Matching refs:xa_mk_index

35 static void *xa_mk_index(unsigned long index)  in xa_mk_index()  function
42 return xa_store(xa, index, xa_mk_index(index), gfp); in xa_store_index()
47 XA_BUG_ON(xa, xa_insert(xa, index, xa_mk_index(index), in xa_insert_index()
55 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_index(index), xa_limit_32b, in xa_alloc_index()
62 XA_BUG_ON(xa, xa_erase(xa, index) != xa_mk_index(index)); in xa_erase_index()
139 xas_store(&xas, xa_mk_index(xas.xa_index)); in check_xas_retry()
217 xa_store_order(xa, index, order, xa_mk_index(index), in check_xa_mark_1()
299 xa_store_order(xa, 0x40, 2, xa_mk_index(0x40), GFP_KERNEL); in check_xa_mark_3()
305 XA_BUG_ON(xa, entry != xa_mk_index(0x40)); in check_xa_mark_3()
556 xas_store(&xas, xa_mk_index(j)); in check_xas_erase()
574 XA_BUG_ON(xa, entry != xa_mk_index(j)); in check_xas_erase()
591 xa_store_order(xa, index, order, xa_mk_index(index), GFP_KERNEL); in check_multi_store_1()
592 XA_BUG_ON(xa, xa_load(xa, min) != xa_mk_index(index)); in check_multi_store_1()
593 XA_BUG_ON(xa, xa_load(xa, max - 1) != xa_mk_index(index)); in check_multi_store_1()
598 XA_BUG_ON(xa, xas_store(&xas, xa_mk_index(min)) != xa_mk_index(index)); in check_multi_store_1()
600 XA_BUG_ON(xa, xa_load(xa, min) != xa_mk_index(min)); in check_multi_store_1()
601 XA_BUG_ON(xa, xa_load(xa, max - 1) != xa_mk_index(min)); in check_multi_store_1()
630 xa_store_order(xa, index, order, xa_mk_index(index), GFP_KERNEL); in check_multi_store_3()
634 XA_BUG_ON(xa, entry != xa_mk_index(index)); in check_multi_store_3()
640 XA_BUG_ON(xa, entry != xa_mk_index(index)); in check_multi_store_3()
700 xa_store_order(xa, 0, i, xa_mk_index(i), GFP_KERNEL); in check_multi_store()
701 xa_store_order(xa, 0, j, xa_mk_index(j), GFP_KERNEL); in check_multi_store()
708 XA_BUG_ON(xa, entry != xa_mk_index(j)); in check_multi_store()
961 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_index(UINT_MAX - 1), in check_xa_alloc_1()
965 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_index(UINT_MAX), in check_xa_alloc_1()
970 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_index(0), in check_xa_alloc_1()
976 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_index(10), XA_LIMIT(10, 5), in check_xa_alloc_1()
979 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_index(10), XA_LIMIT(10, 5), in check_xa_alloc_1()
1013 XA_BUG_ON(xa, xa_store(xa, 3, xa_mk_index(3), GFP_KERNEL) != NULL); in check_xa_alloc_2()
1014 XA_BUG_ON(xa, xa_store(xa, 4, xa_mk_index(4), GFP_KERNEL) != NULL); in check_xa_alloc_2()
1015 XA_BUG_ON(xa, xa_store(xa, 4, NULL, GFP_KERNEL) != xa_mk_index(4)); in check_xa_alloc_2()
1044 XA_BUG_ON(xa, xa_alloc_cyclic(xa, &id, xa_mk_index(1), limit, in check_xa_alloc_3()
1049 XA_BUG_ON(xa, xa_alloc_cyclic(xa, &id, xa_mk_index(0x3ffd), limit, in check_xa_alloc_3()
1058 entry = xa_mk_index(i); in check_xa_alloc_3()
1060 entry = xa_mk_index(i - 0x3fff); in check_xa_alloc_3()
1063 XA_BUG_ON(xa, xa_mk_index(id) != entry); in check_xa_alloc_3()
1071 XA_BUG_ON(xa, xa_alloc_cyclic(xa, &id, xa_mk_index(UINT_MAX), in check_xa_alloc_3()
1074 XA_BUG_ON(xa, xa_alloc_cyclic(xa, &id, xa_mk_index(base), in check_xa_alloc_3()
1077 XA_BUG_ON(xa, xa_alloc_cyclic(xa, &id, xa_mk_index(base + 1), in check_xa_alloc_3()
1111 XA_BUG_ON(xa, entry < xa_mk_index(start)); in __check_store_iter()
1112 XA_BUG_ON(xa, entry > xa_mk_index(start + (1UL << order) - 1)); in __check_store_iter()
1115 xas_store(&xas, xa_mk_index(start)); in __check_store_iter()
1123 XA_BUG_ON(xa, xa_load(xa, start) != xa_mk_index(start)); in __check_store_iter()
1125 xa_mk_index(start)); in __check_store_iter()
1210 xa_store_order(xa, index, i, xa_mk_index(index), in check_multi_find_2()
1231 xa_store_order(xa, 0, order - 4, xa_mk_index(0), GFP_KERNEL); in check_multi_find_3()
1298 XA_BUG_ON(xa, xa_mk_index(index) != entry); in check_find_2()
1339 XA_BUG_ON(xa, entry != xa_mk_index(ULONG_MAX)); in check_find_4()
1397 xa_mk_index(index), GFP_KERNEL); in check_find_entry()
1399 xa_mk_index(index)); in check_find_entry()
1401 xa_mk_index(index)) != index); in check_find_entry()
1412 XA_BUG_ON(xa, xa_find_entry(xa, xa_mk_index(ULONG_MAX)) != -1); in check_find_entry()
1427 xa_mk_index(index), GFP_KERNEL)); in check_pause()
1433 XA_BUG_ON(xa, entry != xa_mk_index(1UL << count)); in check_pause()
1443 XA_BUG_ON(xa, entry != xa_mk_index(1UL << count)); in check_pause()
1465 XA_BUG_ON(xa, xas_next(&xas) != xa_mk_index(0)); in check_move_tiny()
1468 XA_BUG_ON(xa, xas_prev(&xas) != xa_mk_index(0)); in check_move_tiny()
1481 XA_BUG_ON(xa, xas_find(&xas, ULONG_MAX) != xa_mk_index(ULONG_MAX)); in check_move_max()
1487 XA_BUG_ON(xa, xas_find(&xas, ULONG_MAX) != xa_mk_index(ULONG_MAX)); in check_move_max()
1511 XA_BUG_ON(xa, entry != xa_mk_index(i)); in check_move_small()
1525 XA_BUG_ON(xa, entry != xa_mk_index(i)); in check_move_small()
1556 XA_BUG_ON(xa, entry != xa_mk_index(i)); in check_move()
1565 XA_BUG_ON(xa, entry != xa_mk_index(i)); in check_move()
1581 XA_BUG_ON(xa, entry != xa_mk_index(i)); in check_move()
1593 XA_BUG_ON(xa, entry != xa_mk_index(i)); in check_move()
1626 XA_BUG_ON(xa, xas_store(&xas, xa_mk_index(index + i))); in xa_store_many_order()
1681 void *old = xas_store(&xas, xa_mk_index(base + i)); in check_create_range_4()
1683 XA_BUG_ON(xa, old != xa_mk_index(base + i)); in check_create_range_4()
1705 xa_store_order(xa, index, order, xa_mk_index(index), GFP_KERNEL); in check_create_range_5()
1757 xa_store_range(xa, first, last, xa_mk_index(first), GFP_KERNEL); in __check_store_range()
1759 XA_BUG_ON(xa, xa_load(xa, first) != xa_mk_index(first)); in __check_store_range()
1760 XA_BUG_ON(xa, xa_load(xa, last) != xa_mk_index(first)); in __check_store_range()
1801 __xa_store(xa, index + i, xa_mk_index(index + i), 0); in check_split_1()
1806 XA_BUG_ON(xa, xa_load(xa, index + i) != xa_mk_index(val)); in check_split_1()
1971 xa_store_order(xa, 1 << order, order, xa_mk_index(1UL << order), in check_account()
1996 xa_mk_index(i << order), GFP_KERNEL); in check_get_order()