Lines Matching refs:xa_index
148 xas->xa_offset = get_offset(xas->xa_index, xas->xa_node); in xas_set_offset()
155 xas->xa_index &= ~XA_CHUNK_MASK << shift; in xas_move_index()
156 xas->xa_index += offset << shift; in xas_move_index()
189 if (xas->xa_index) in xas_start()
192 if ((xas->xa_index >> xa_to_node(entry)->shift) > XA_CHUNK_MASK) in xas_start()
202 unsigned int offset = get_offset(xas->xa_index, node); in xas_descend()
410 unsigned long max = xas->xa_index; in xas_max()
701 unsigned long index = xas->xa_index; in xas_create_range()
705 xas->xa_index |= ((sibs + 1) << shift) - 1; in xas_create_range()
715 if (xas->xa_index <= (index | XA_CHUNK_MASK)) in xas_create_range()
717 xas->xa_index -= XA_CHUNK_SIZE; in xas_create_range()
731 xas->xa_index = index; in xas_create_range()
734 xas->xa_index = index; in xas_create_range()
976 xas->xa_index += (offset - xas->xa_offset) << node->shift; in xas_pause()
978 xas->xa_index++; in xas_pause()
996 xas->xa_index--; in __xas_prev()
1002 if (xas->xa_offset != get_offset(xas->xa_index, xas->xa_node)) in __xas_prev()
1035 xas->xa_index++; in __xas_next()
1041 if (xas->xa_offset != get_offset(xas->xa_index, xas->xa_node)) in __xas_next()
1086 xas->xa_index = 1; in xas_find()
1093 xas->xa_offset != (xas->xa_index & XA_CHUNK_MASK)) { in xas_find()
1094 xas->xa_offset = ((xas->xa_index - 1) & XA_CHUNK_MASK) + 1; in xas_find()
1099 while (xas->xa_node && (xas->xa_index <= max)) { in xas_find()
1155 xas->xa_index = 1; in xas_find_marked()
1161 if (xas->xa_index > max_index(entry)) in xas_find_marked()
1166 xas->xa_index = 1; in xas_find_marked()
1170 xas->xa_offset = xas->xa_index >> xas->xa_node->shift; in xas_find_marked()
1173 while (xas->xa_index <= max) { in xas_find_marked()
1196 if ((xas->xa_index - 1) >= max) in xas_find_marked()
1211 if (xas->xa_index > max) in xas_find_marked()
1619 xas.xa_index = limit.min; in __xa_alloc()
1624 *id = xas.xa_index; in __xa_alloc()
1822 *indexp = xas.xa_index; in xa_find()
1859 if (xas.xa_index & ((1UL << xas.xa_shift) - 1)) in xa_find_after()
1862 if (xas.xa_offset < (xas.xa_index & XA_CHUNK_MASK)) in xa_find_after()
1871 *indexp = xas.xa_index; in xa_find_after()