Searched refs:xa_index (Results 1 – 9 of 9) sorted by relevance
| /linux/include/linux/ |
| H A D | xarray.h | 1356 unsigned long xa_index; member 1377 .xa_index = index, \ 1623 offset = (xas->xa_index >> node->shift) & XA_CHUNK_MASK; in xas_reload() 1645 xas->xa_index = index; in xas_set() 1663 xas->xa_index = index; in xas_advance() 1677 xas->xa_index = order < BITS_PER_LONG ? (index >> order) << order : 0; in xas_set_order() 1723 xas->xa_offset != (xas->xa_index & XA_CHUNK_MASK))) in xas_next_entry() 1727 if (unlikely(xas->xa_index >= max)) in xas_next_entry() 1735 xas->xa_index++; in xas_next_entry() 1785 xas->xa_index = (xas->xa_index & ~XA_CHUNK_MASK) + offset; in xas_next_marked() [all …]
|
| /linux/lib/ |
| H A D | idr.c | 400 if (xas.xa_index > min / IDA_BITMAP_BITS) in ida_alloc_range() 402 if (xas.xa_index * IDA_BITMAP_BITS + bit > max) in ida_alloc_range() 410 if (xas.xa_index * IDA_BITMAP_BITS + bit > max) in ida_alloc_range() 433 if (xas.xa_index * IDA_BITMAP_BITS + bit > max) in ida_alloc_range() 457 xas.xa_index = min / IDA_BITMAP_BITS; in ida_alloc_range() 465 return xas.xa_index * IDA_BITMAP_BITS + bit; in ida_alloc_range()
|
| H A D | test_xarray.c | 139 xas_store(&xas, xa_mk_index(xas.xa_index)); in check_xas_retry() 284 XA_BUG_ON(xa, !xa_get_mark(xa, xas.xa_index, XA_MARK_0)); in check_xa_mark_2() 617 XA_BUG_ON(xa, xas.xa_index != index); in check_multi_store_2() 1395 return entry ? xas.xa_index : -1; in xa_find_entry() 1558 XA_BUG_ON(xa, xas.xa_index != i); in check_move_small() 1565 XA_BUG_ON(xa, xas.xa_index != i); in check_move_small() 1572 XA_BUG_ON(xa, xas.xa_index != i); in check_move_small() 1581 XA_BUG_ON(xa, xas.xa_index != ULONG_MAX); in check_move_small() 1583 XA_BUG_ON(xa, xas.xa_index != 0); in check_move_small() 1585 XA_BUG_ON(xa, xas.xa_index != ULONG_MAX); in check_move_small() [all …]
|
| H A D | iov_iter.c | 990 pages[ret] = folio_file_page(folio, xas.xa_index); in iter_xarray_populate_pages() 1594 p[nr++] = folio_file_page(folio, xas.xa_index); in iov_iter_extract_xarray_pages()
|
| /linux/tools/testing/radix-tree/ |
| H A D | iteration_check_2.c | 26 assert(xas.xa_index >= 100); in iterator()
|
| H A D | test.c | 262 item_free(entry, xas.xa_index); in item_kill_tree()
|
| /linux/Documentation/translations/zh_CN/core-api/ |
| H A D | xarray.rst | 355 如果xas_load()遇到一个多索引条目,xa_state中的xa_index将不会被改变。当遍历一个XArray或者调用xas_find()
|
| /linux/drivers/iommu/iommufd/ |
| H A D | pages.c | 646 if (xas.xa_index != start_index) in pages_to_xarray() 647 clear_xarray(xa, start_index, xas.xa_index - 1); in pages_to_xarray()
|
| /linux/virt/kvm/ |
| H A D | kvm_main.c | 2458 if (xas.xa_index != index || in kvm_range_has_memory_attributes()
|