Searched refs:xa_index (Results 1 – 20 of 20) sorted by relevance
/linux/lib/ |
A D | xarray.c | 190 if (xas->xa_index) in xas_start() 735 xas->xa_index = index; in xas_create_range() 738 xas->xa_index = index; in xas_create_range() 1133 xas->xa_index++; in xas_pause() 1150 xas->xa_index--; in __xas_prev() 1189 xas->xa_index++; in __xas_next() 1242 xas->xa_index = 1; in xas_find() 1313 xas->xa_index = 1; in xas_find_marked() 1324 xas->xa_index = 1; in xas_find_marked() 1824 *id = xas.xa_index; in __xa_alloc() [all …]
|
A D | idr.c | 398 if (xas.xa_index > min / IDA_BITMAP_BITS) in ida_alloc_range() 400 if (xas.xa_index * IDA_BITMAP_BITS + bit > max) in ida_alloc_range() 408 if (xas.xa_index * IDA_BITMAP_BITS + bit > max) in ida_alloc_range() 431 if (xas.xa_index * IDA_BITMAP_BITS + bit > max) in ida_alloc_range() 455 xas.xa_index = min / IDA_BITMAP_BITS; in ida_alloc_range() 463 return xas.xa_index * IDA_BITMAP_BITS + bit; in ida_alloc_range()
|
A D | test_xarray.c | 1149 return entry ? xas.xa_index : -1; in xa_find_entry() 1276 XA_BUG_ON(xa, xas.xa_index != i); in check_move_small() 1283 XA_BUG_ON(xa, xas.xa_index != i); in check_move_small() 1290 XA_BUG_ON(xa, xas.xa_index != i); in check_move_small() 1301 XA_BUG_ON(xa, xas.xa_index != 0); in check_move_small() 1324 XA_BUG_ON(xa, i != xas.xa_index); in check_move() 1333 XA_BUG_ON(xa, i != xas.xa_index); in check_move() 1341 i = xas.xa_index; in check_move() 1351 XA_BUG_ON(xa, i != xas.xa_index); in check_move() 1363 XA_BUG_ON(xa, i != xas.xa_index); in check_move() [all …]
|
A D | iov_iter.c | 1422 pages[ret] = find_subpage(page, xas.xa_index); in iter_xarray_populate_pages()
|
/linux/tools/testing/radix-tree/ |
A D | multiorder.c | 62 assert((xas.xa_index | mask) == (index[i] | mask)); in multiorder_iteration() 114 assert((xas.xa_index | mask) == (tag_index[i] | mask)); in multiorder_tagged_iteration() 141 assert((xas.xa_index | mask) == (tag_index[i] | mask)); in multiorder_tagged_iteration() 154 assert(xas.xa_index == tag_index[i]); in multiorder_tagged_iteration() 191 item_sanity(item, xas.xa_index); in iterator_func()
|
A D | iteration_check_2.c | 26 assert(xas.xa_index >= 100); in iterator()
|
A D | test.c | 262 item_free(entry, xas.xa_index); in item_kill_tree()
|
/linux/include/linux/ |
A D | xarray.h | 1312 unsigned long xa_index; member 1332 .xa_index = index, \ 1557 offset = (xas->xa_index >> node->shift) & XA_CHUNK_MASK; in xas_reload() 1579 xas->xa_index = index; in xas_set() 1633 xas->xa_offset != (xas->xa_index & XA_CHUNK_MASK))) in xas_next_entry() 1637 if (unlikely(xas->xa_index >= max)) in xas_next_entry() 1645 xas->xa_index++; in xas_next_entry() 1695 xas->xa_index = (xas->xa_index & ~XA_CHUNK_MASK) + offset; in xas_next_marked() 1696 if (xas->xa_index > max) in xas_next_marked() 1791 xas->xa_index--; in xas_prev() [all …]
|
/linux/mm/ |
A D | filemap.c | 321 if (page->index == xas.xa_index) in page_cache_delete_batch() 1759 if (xas.xa_index == 0) in page_cache_next_miss() 1763 return xas.xa_index; in page_cache_next_miss() 1795 if (xas.xa_index == ULONG_MAX) in page_cache_prev_miss() 1799 return xas.xa_index; in page_cache_prev_miss() 2064 indices[ret] = xas.xa_index; in find_get_entries() 2116 indices[pvec->nr] = xas.xa_index; in find_lock_entries() 2130 if (xas.xa_index < nr_pages) in find_lock_entries() 2179 *start = xas.xa_index + 1; in find_get_pages_range() 3263 if (xas->xa_index >= max_idx) in next_uptodate_page() [all …]
|
A D | memfd.c | 42 page = find_subpage(page, xas->xa_index); in memfd_tag_pins() 92 page = find_subpage(page, xas.xa_index); in memfd_wait_for_pins()
|
A D | khugepaged.c | 1699 VM_BUG_ON(index != xas.xa_index); in collapse_file() 1955 if (!page || xas.xa_index < page->index) { in collapse_file() 1964 VM_BUG_ON_PAGE(page->index != xas.xa_index, page); in collapse_file()
|
A D | swap_state.c | 122 VM_BUG_ON_PAGE(xas.xa_index != idx + i, page); in add_to_swap_cache()
|
A D | shmem.c | 1193 indices[ret] = xas.xa_index; in shmem_find_swap_entries()
|
/linux/fs/ |
A D | dax.c | 161 unsigned long index = xas->xa_index; in dax_entry_waitqueue() 490 unsigned long index = xas->xa_index; in grab_mapping_entry() 531 xas->xa_index & ~PG_PMD_COLOUR, in grab_mapping_entry() 754 unsigned long index = xas->xa_index; in dax_insert_entry() 938 index = xas->xa_index & ~(count - 1); in dax_writeback_one() 983 trace_dax_writeback_range(inode, xas.xa_index, end_index); in dax_writeback_mapping_range() 985 tag_pages_for_writeback(mapping, xas.xa_index, end_index); in dax_writeback_mapping_range() 1381 loff_t pos = (loff_t)xas->xa_index << PAGE_SHIFT; in dax_fault_iter() 1528 if ((xas->xa_index | PG_PMD_COLOUR) >= max_pgoff) in dax_fault_check_fallback() 1561 if (xas.xa_index >= max_pgoff) { in dax_iomap_pmd_fault() [all …]
|
/linux/drivers/infiniband/core/ |
A D | ib_core_uverbs.c | 298 xa_first = xas.xa_index; in rdma_user_mmap_entry_insert_range() 309 if (xas.xa_node == XAS_BOUNDS || xas.xa_index >= xa_last) in rdma_user_mmap_entry_insert_range()
|
A D | device.c | 169 *indexp = xas.xa_index; in xan_find_marked()
|
/linux/arch/arm64/mm/ |
A D | mteswap.c | 88 __xa_erase(&mte_pages, xa_state.xa_index); in mte_invalidate_tags_area()
|
/linux/arch/arm64/kernel/ |
A D | hibernate.c | 304 unsigned long pfn = xa_state.xa_index; in swsusp_mte_restore_tags()
|
/linux/Documentation/translations/zh_CN/core-api/ |
A D | xarray.rst | 353 如果xas_load()遇到一个多索引条目,xa_state中的xa_index将不会被改变。当遍历一个XArray或者调用xas_find()
|
/linux/Documentation/core-api/ |
A D | xarray.rst | 470 If xas_load() encounters a multi-index entry, the xa_index
|
Completed in 49 milliseconds