Lines Matching refs:xa_store_index
40 static void *xa_store_index(struct xarray *xa, unsigned long index, gfp_t gfp) in xa_store_index() function
88 XA_BUG_ON(xa, xa_err(xa_store_index(xa, 0, GFP_NOWAIT)) != 0); in check_xa_err()
92 XA_BUG_ON(xa, xa_err(xa_store_index(xa, 1, GFP_NOWAIT)) != -ENOMEM); in check_xa_err()
93 XA_BUG_ON(xa, xa_err(xa_store_index(xa, 1, GFP_NOWAIT)) != -ENOMEM); in check_xa_err()
95 XA_BUG_ON(xa, xa_err(xa_store_index(xa, 1, GFP_KERNEL)) != 0); in check_xa_err()
107 xa_store_index(xa, 0, GFP_KERNEL); in check_xas_retry()
108 xa_store_index(xa, 1, GFP_KERNEL); in check_xas_retry()
122 XA_BUG_ON(xa, xa_store_index(xa, 1, GFP_KERNEL) != NULL); in check_xas_retry()
159 XA_BUG_ON(xa, xa_store_index(xa, i, GFP_KERNEL) != NULL); in check_xa_load()
186 XA_BUG_ON(xa, xa_store_index(xa, index, GFP_KERNEL) != NULL); in check_xa_mark_1()
212 XA_BUG_ON(xa, xa_store_index(xa, index + 1, GFP_KERNEL)); in check_xa_mark_1()
214 XA_BUG_ON(xa, xa_store_index(xa, index + 2, GFP_KERNEL)); in check_xa_mark_1()
216 XA_BUG_ON(xa, xa_store_index(xa, next, GFP_KERNEL)); in check_xa_mark_1()
261 xa_store_index(xa, 0, GFP_KERNEL); in check_xa_mark_2()
270 xa_store_index(xa, index, GFP_KERNEL); in check_xa_mark_2()
332 XA_BUG_ON(xa, xa_store_index(xa, 0, GFP_KERNEL) != NULL); in check_xa_shrink()
333 XA_BUG_ON(xa, xa_store_index(xa, 1, GFP_KERNEL) != NULL); in check_xa_shrink()
361 XA_BUG_ON(xa, xa_store_index(xa, ULONG_MAX, GFP_KERNEL) != in check_xa_shrink()
411 XA_BUG_ON(xa, xa_store_index(xa, 12345678, GFP_KERNEL) != NULL); in check_cmpxchg()
442 XA_BUG_ON(xa, xa_store_index(xa, 12345678, GFP_NOWAIT) != NULL); in check_reserve()
464 xa_store_index(xa, 5, GFP_KERNEL); in check_reserve()
466 xa_store_index(xa, 7, GFP_KERNEL); in check_reserve()
640 xa_store_index(xa, 1, GFP_KERNEL); in check_multi_store()
641 xa_store_index(xa, 2, GFP_KERNEL); in check_multi_store()
711 xa_store_index(xa, base + 1, GFP_KERNEL); in check_xa_alloc_1()
745 XA_BUG_ON(xa, xa_store_index(xa, 3, GFP_KERNEL) != 0); in check_xa_alloc_1()
909 xa_store_index(xa, min, GFP_KERNEL); in check_store_iter()
912 xa_store_index(xa, max, GFP_KERNEL); in check_store_iter()
917 xa_store_index(xa, j, GFP_KERNEL); in check_store_iter()
921 xa_store_index(xa, min + j, GFP_KERNEL); in check_store_iter()
926 xa_store_index(xa, 63, GFP_KERNEL); in check_store_iter()
927 xa_store_index(xa, 65, GFP_KERNEL); in check_store_iter()
942 XA_BUG_ON(xa, xa_store_index(xa, next, GFP_KERNEL) != NULL); in check_multi_find_1()
943 XA_BUG_ON(xa, xa_store_index(xa, next + 1, GFP_KERNEL) != NULL); in check_multi_find_1()
976 xa_store_index(xa, index - 1, GFP_KERNEL); in check_multi_find_2()
1015 XA_BUG_ON(xa, xa_store_index(xa, i, GFP_KERNEL) != NULL); in check_find_1()
1018 XA_BUG_ON(xa, xa_store_index(xa, j, GFP_KERNEL) != in check_find_1()
1062 xa_store_index(xa, index, GFP_KERNEL); in check_find_2()
1092 xa_store_index(xa, i, GFP_KERNEL); in check_find_3()
1103 xa_store_index(xa, ULONG_MAX, GFP_KERNEL); in check_find_4()
1177 xa_store_index(xa, ULONG_MAX, GFP_KERNEL); in check_find_entry()
1229 xa_store_index(xa, 0, GFP_KERNEL); in check_move_tiny()
1246 xa_store_index(xa, ULONG_MAX, GFP_KERNEL); in check_move_max()
1268 xa_store_index(xa, 0, GFP_KERNEL); in check_move_small()
1269 xa_store_index(xa, idx, GFP_KERNEL); in check_move_small()
1317 XA_BUG_ON(xa, xa_store_index(xa, i, GFP_KERNEL) != NULL); in check_move()
1441 xa_store_index(xa, index, GFP_KERNEL); in check_create_range_4()
1771 xa_store_index(xa, index, GFP_KERNEL); in check_destroy()