Lines Matching refs:xa_index

152 	xas->xa_offset = get_offset(xas->xa_index, xas->xa_node);  in xas_set_offset()
159 xas->xa_index &= ~XA_CHUNK_MASK << shift; in xas_move_index()
160 xas->xa_index += offset << shift; in xas_move_index()
193 if (xas->xa_index) in xas_start()
196 if ((xas->xa_index >> xa_to_node(entry)->shift) > XA_CHUNK_MASK) in xas_start()
207 unsigned int offset = get_offset(xas->xa_index, node); in xas_descend()
418 unsigned long max = xas->xa_index; in xas_max()
714 unsigned long index = xas->xa_index; in xas_create_range()
718 xas->xa_index |= ((sibs + 1UL) << shift) - 1; in xas_create_range()
728 if (xas->xa_index <= (index | XA_CHUNK_MASK)) in xas_create_range()
730 xas->xa_index -= XA_CHUNK_SIZE; in xas_create_range()
746 xas->xa_index = index; in xas_create_range()
749 xas->xa_index = index; in xas_create_range()
1289 xas->xa_index &= ~0UL << node->shift; in xas_pause()
1290 xas->xa_index += (offset - xas->xa_offset) << node->shift; in xas_pause()
1291 if (xas->xa_index == 0) in xas_pause()
1294 xas->xa_index++; in xas_pause()
1311 xas->xa_index--; in __xas_prev()
1317 if (xas->xa_offset != get_offset(xas->xa_index, xas->xa_node)) in __xas_prev()
1350 xas->xa_index++; in __xas_next()
1356 if (xas->xa_offset != get_offset(xas->xa_index, xas->xa_node)) in __xas_next()
1399 if (xas->xa_index > max) in xas_find()
1403 xas->xa_index = 1; in xas_find()
1410 xas->xa_offset != (xas->xa_index & XA_CHUNK_MASK)) { in xas_find()
1411 xas->xa_offset = ((xas->xa_index - 1) & XA_CHUNK_MASK) + 1; in xas_find()
1416 while (xas->xa_node && (xas->xa_index <= max)) { in xas_find()
1470 if (xas->xa_index > max) in xas_find_marked()
1474 xas->xa_index = 1; in xas_find_marked()
1480 if (xas->xa_index > max_index(entry)) in xas_find_marked()
1485 xas->xa_index = 1; in xas_find_marked()
1489 xas->xa_offset = xas->xa_index >> xas->xa_node->shift; in xas_find_marked()
1492 while (xas->xa_index <= max) { in xas_find_marked()
1515 if ((xas->xa_index - 1) >= max) in xas_find_marked()
1534 if (xas->xa_index > max) in xas_find_marked()
1993 xas.xa_index = limit.min; in __xa_alloc()
1998 *id = xas.xa_index; in __xa_alloc()
2199 *indexp = xas.xa_index; in xa_find()
2212 return (xas->xa_index & mask) > in xas_sibling()
2239 if (xas.xa_index == 0) in xa_find_after()
2259 *indexp = xas.xa_index; in xa_find_after()
2355 .xa_index = (unsigned long)node->offset << in xa_delete_node()