Lines Matching refs:xas
18 XA_STATE_ORDER(xas, xa, index, order); in item_insert_order()
22 xas_lock(&xas); in item_insert_order()
23 xas_store(&xas, item); in item_insert_order()
24 xas_unlock(&xas); in item_insert_order()
25 } while (xas_nomem(&xas, GFP_KERNEL)); in item_insert_order()
27 if (!xas_error(&xas)) in item_insert_order()
31 return xas_error(&xas); in item_insert_order()
36 XA_STATE(xas, xa, 0); in multiorder_iteration()
56 xas_set(&xas, j); in multiorder_iteration()
57 xas_for_each(&xas, item, ULONG_MAX) { in multiorder_iteration()
62 assert((xas.xa_index | mask) == (index[i] | mask)); in multiorder_iteration()
63 assert(xas.xa_node->shift == shift); in multiorder_iteration()
76 XA_STATE(xas, xa, 0); in multiorder_tagged_iteration()
107 xas_set(&xas, j); in multiorder_tagged_iteration()
108 xas_for_each_marked(&xas, item, ULONG_MAX, XA_MARK_1) { in multiorder_tagged_iteration()
114 assert((xas.xa_index | mask) == (tag_index[i] | mask)); in multiorder_tagged_iteration()
135 xas_set(&xas, j); in multiorder_tagged_iteration()
136 xas_for_each_marked(&xas, item, ULONG_MAX, XA_MARK_2) { in multiorder_tagged_iteration()
141 assert((xas.xa_index | mask) == (tag_index[i] | mask)); in multiorder_tagged_iteration()
152 xas_set(&xas, 0); in multiorder_tagged_iteration()
153 xas_for_each_marked(&xas, item, ULONG_MAX, XA_MARK_0) { in multiorder_tagged_iteration()
154 assert(xas.xa_index == tag_index[i]); in multiorder_tagged_iteration()
182 XA_STATE(xas, ptr, 0); in iterator_func()
187 xas_for_each(&xas, item, ULONG_MAX) { in iterator_func()
188 if (xas_retry(&xas, item)) in iterator_func()
191 item_sanity(item, xas.xa_index); in iterator_func()