Lines Matching refs:xa_mk_value
36 return mtree_insert(mt, index, xa_mk_value(index & LONG_MAX), gfp); in mtree_insert_index()
41 MT_BUG_ON(mt, mtree_erase(mt, index) != xa_mk_value(index & LONG_MAX)); in mtree_erase_index()
179 return check_load(mt, index, xa_mk_value(index & LONG_MAX)); in check_index_load()
314 check_insert(mt, 0, xa_mk_value(0)); in check_mid_split()
326 xa_mk_value(i), GFP_KERNEL); in check_rev_find()
331 MT_BUG_ON(mt, val != xa_mk_value(100)); in check_rev_find()
341 MT_BUG_ON(mt, val != xa_mk_value(100)); in check_rev_find()
343 MT_BUG_ON(mt, val != xa_mk_value(99)); in check_rev_find()
347 MT_BUG_ON(mt, val != xa_mk_value(2)); in check_rev_find()
349 MT_BUG_ON(mt, val != xa_mk_value(1)); in check_rev_find()
351 MT_BUG_ON(mt, val != xa_mk_value(0)); in check_rev_find()
398 MT_BUG_ON(mt, xa_mk_value(val) != entry); in check_find()
414 MT_BUG_ON(mt, xa_mk_value(val) != entry); in check_find()
430 MT_BUG_ON(mt, xa_mk_value(val) != entry); in check_find()
447 MT_BUG_ON(mt, xa_mk_value(val) != entry); in check_find()
462 MT_BUG_ON(mt, entry != xa_mk_value(LONG_MAX)); in check_find()
464 MT_BUG_ON(mt, xa_mk_value(val) != entry); in check_find()
485 MT_BUG_ON(mt, xa_mk_value(256) != entry); in check_find()
504 MT_BUG_ON(mt, entry != xa_mk_value(LONG_MAX)); in check_find()
506 MT_BUG_ON(mt, xa_mk_value(val) != entry); in check_find()
591 MT_BUG_ON(mt, entry != xa_mk_value(j)); in check_find_2()
607 MT_BUG_ON(mt, entry != xa_mk_value(j)); in check_find_2()
733 xa_mk_value(range[i] >> 12), 0); in check_alloc_rev_range()
774 xa_mk_value(req_range[i] >> 12)); /* pointer */ in check_alloc_rev_range()
899 xa_mk_value(range[i] >> 12), 0); in check_alloc_range()
934 xa_mk_value(req_range[i] >> 12)); /* pointer */ in check_alloc_range()
959 check_insert_range(mt, r[0], r[1], xa_mk_value(r[0]), 0); in check_ranges()
960 check_insert_range(mt, r[2], r[3], xa_mk_value(r[2]), 0); in check_ranges()
961 check_insert_range(mt, r[4], r[5], xa_mk_value(r[4]), -EEXIST); in check_ranges()
964 check_store_range(mt, r[4], r[5], xa_mk_value(r[4]), 0); in check_ranges()
965 check_store_range(mt, r[6], r[7], xa_mk_value(r[6]), 0); in check_ranges()
966 check_store_range(mt, r[8], r[9], xa_mk_value(r[8]), 0); in check_ranges()
973 check_store_range(mt, 5, 47, xa_mk_value(47), 0); in check_ranges()
981 check_store_range(mt, r[10], r[11], xa_mk_value(r[10]), 0); in check_ranges()
988 check_store_range(mt, r[10], r[11], xa_mk_value(r[10]), 0); in check_ranges()
993 check_store_range(mt, 6, 18, xa_mk_value(6), 0); in check_ranges()
1002 check_store_range(mt, r[12], r[13], xa_mk_value(r[12]), 0); in check_ranges()
1014 check_load(mt, r[12], xa_mk_value(r[12])); in check_ranges()
1015 check_load(mt, r[13], xa_mk_value(r[12])); in check_ranges()
1016 check_load(mt, r[13] - 1, xa_mk_value(r[12])); in check_ranges()
1017 check_load(mt, r[13] + 1, xa_mk_value(r[13] + 1)); in check_ranges()
1029 check_store_range(mt, 353, 361, xa_mk_value(353), 0); in check_ranges()
1030 check_store_range(mt, 347, 352, xa_mk_value(347), 0); in check_ranges()
1032 check_load(mt, 346, xa_mk_value(346)); in check_ranges()
1034 check_load(mt, i, xa_mk_value(347)); in check_ranges()
1036 check_load(mt, i, xa_mk_value(353)); in check_ranges()
1037 check_load(mt, 362, xa_mk_value(362)); in check_ranges()
1045 check_store_range(mt, 351, 363, xa_mk_value(352), 0); in check_ranges()
1046 check_load(mt, 350, xa_mk_value(350)); in check_ranges()
1047 check_load(mt, 351, xa_mk_value(352)); in check_ranges()
1049 check_load(mt, i, xa_mk_value(352)); in check_ranges()
1051 check_load(mt, 365, xa_mk_value(365)); in check_ranges()
1059 check_store_range(mt, 351, 364, xa_mk_value(352), 0); in check_ranges()
1060 check_load(mt, 350, xa_mk_value(350)); in check_ranges()
1061 check_load(mt, 351, xa_mk_value(352)); in check_ranges()
1063 check_load(mt, i, xa_mk_value(352)); in check_ranges()
1064 check_load(mt, 365, xa_mk_value(365)); in check_ranges()
1072 check_store_range(mt, 362, 367, xa_mk_value(362), 0); in check_ranges()
1073 check_store_range(mt, 353, 361, xa_mk_value(353), 0); in check_ranges()
1099 check_store_range(mt, val, val2, xa_mk_value(val), 0); in check_ranges()
1101 check_store_range(mt, 2400, 2400, xa_mk_value(2400), 0); in check_ranges()
1102 check_store_range(mt, 2411, 2411, xa_mk_value(2411), 0); in check_ranges()
1103 check_store_range(mt, 2412, 2412, xa_mk_value(2412), 0); in check_ranges()
1104 check_store_range(mt, 2396, 2400, xa_mk_value(4052020), 0); in check_ranges()
1105 check_store_range(mt, 2402, 2402, xa_mk_value(2402), 0); in check_ranges()
1113 check_store_range(mt, val, val2, xa_mk_value(val), 0); in check_ranges()
1115 check_store_range(mt, 2422, 2422, xa_mk_value(2422), 0); in check_ranges()
1116 check_store_range(mt, 2424, 2424, xa_mk_value(2424), 0); in check_ranges()
1117 check_store_range(mt, 2425, 2425, xa_mk_value(2), 0); in check_ranges()
1119 check_store_range(mt, 2435, 2460, xa_mk_value(2435), 0); in check_ranges()
1120 check_store_range(mt, 2461, 2470, xa_mk_value(2461), 0); in check_ranges()
1131 check_store_range(mt, val, val2, xa_mk_value(val), 0); in check_ranges()
1133 check_store_range(mt, 161, 161, xa_mk_value(161), 0); in check_ranges()
1134 check_store_range(mt, 162, 162, xa_mk_value(162), 0); in check_ranges()
1135 check_store_range(mt, 163, 163, xa_mk_value(163), 0); in check_ranges()
1149 check_store_range(mt, val, val2, xa_mk_value(val), 0); in check_ranges()
1151 check_store_range(mt, 4600, 4959, xa_mk_value(1), 0); in check_ranges()
1160 check_store_range(mt, val, val2, xa_mk_value(val), 0); in check_ranges()
1162 check_store_range(mt, 4811, 4811, xa_mk_value(4811), 0); in check_ranges()
1163 check_store_range(mt, 4812, 4812, xa_mk_value(4812), 0); in check_ranges()
1164 check_store_range(mt, 4861, 4861, xa_mk_value(4861), 0); in check_ranges()
1165 check_store_range(mt, 4862, 4862, xa_mk_value(4862), 0); in check_ranges()
1175 check_store_range(mt, val, val2, xa_mk_value(val), 0); in check_ranges()
1196 check_store_range(mt, val, val2, xa_mk_value(val), 0); in check_ranges()
1205 xa_mk_value(8185+i), 0); in check_ranges()
1208 check_store_range(mt, 8184, 8184, xa_mk_value(8184), 0); in check_ranges()
1225 MT_BUG_ON(mt, mas_walk(&mas) != xa_mk_value(i++)); in check_next_entry()
1231 MT_BUG_ON(mt, xa_mk_value(i) != entry); in check_next_entry()
1250 MT_BUG_ON(mt, value != xa_mk_value(index)); in check_prev_entry()
1252 MT_BUG_ON(mt, value != xa_mk_value(index - 1)); in check_prev_entry()
1261 mas_store_gfp(&mas, xa_mk_value(i), GFP_KERNEL); in check_prev_entry()
1266 MT_BUG_ON(mt, value != xa_mk_value(2)); in check_prev_entry()
1273 MT_BUG_ON(mt, value != xa_mk_value(8)); in check_prev_entry()
1436 MT_BUG_ON(mt, entry != xa_mk_value(index)); in check_gap_combining()
1440 MT_BUG_ON(mt, entry != xa_mk_value(index + 4)); in check_gap_combining()
1467 MT_BUG_ON(mt, entry != xa_mk_value(index)); in check_gap_combining()
1470 MT_BUG_ON(mt, entry != xa_mk_value(index + 4)); in check_gap_combining()
1488 check_load(mt, seq100[14], xa_mk_value(seq100[14])); in check_gap_combining()
1546 xa_mk_value(seq400[2])); in check_gap_combining()
1548 xa_mk_value(seq400[3])); in check_gap_combining()
1550 xa_mk_value(seq400[4])); in check_gap_combining()
1552 xa_mk_value(seq400[5])); in check_gap_combining()
1554 xa_mk_value(seq400[0])); in check_gap_combining()
1556 xa_mk_value(seq400[6])); in check_gap_combining()
1558 xa_mk_value(seq400[7])); in check_gap_combining()
1560 xa_mk_value(seq400[8])); in check_gap_combining()
1562 xa_mk_value(seq400[10])); in check_gap_combining()
1572 mtree_test_store_range(mt, i*100, i*100 + 50, xa_mk_value(i*100)); in check_node_overwrite()
1585 mtree_store_range(mt, i, i + 5, xa_mk_value(i), GFP_KERNEL); in bench_slot_store()
1589 mtree_store_range(mt, brk_start, brk, xa_mk_value(brk), in bench_slot_store()
1601 mtree_store_range(mt, i, i + 5, xa_mk_value(i), GFP_KERNEL); in bench_node_store()
1605 xa_mk_value(overwrite), GFP_KERNEL); in bench_node_store()
1621 mtree_store_range(mt, i, i + 5, xa_mk_value(i), GFP_KERNEL); in bench_awalk()
1638 mtree_store_range(mt, i, i + 5, xa_mk_value(i), GFP_KERNEL); in bench_walk()
1656 mtree_store_range(mt, i, i + 4, xa_mk_value(i), GFP_KERNEL); in bench_mt_for_each()
1662 MT_BUG_ON(mt, entry != xa_mk_value(j)); in bench_mt_for_each()
1684 xa_mk_value(i), GFP_KERNEL); in check_forking()
1723 xa_mk_value(i), GFP_KERNEL); in check_mas_store_gfp()
1756 xa_mk_value(i), GFP_KERNEL); in bench_forking()
1807 xa_mk_value(i), GFP_KERNEL); in next_prev_test()
1842 MT_BUG_ON(mt, val != xa_mk_value(690 / 10)); in next_prev_test()
1847 MT_BUG_ON(mt, val != xa_mk_value(680 / 10)); in next_prev_test()
1852 MT_BUG_ON(mt, val != xa_mk_value(690 / 10)); in next_prev_test()
1857 MT_BUG_ON(mt, val != xa_mk_value(700 / 10)); in next_prev_test()
1864 MT_BUG_ON(mt, val != xa_mk_value(70 / 10)); in next_prev_test()
1869 MT_BUG_ON(mt, val != xa_mk_value(80 / 10)); in next_prev_test()
1874 MT_BUG_ON(mt, val != xa_mk_value(70 / 10)); in next_prev_test()
1884 MT_BUG_ON(mt, val != xa_mk_value(level2[2] / 10)); in next_prev_test()
1890 MT_BUG_ON(mt, val != xa_mk_value(level2[4] / 10)); in next_prev_test()
1896 MT_BUG_ON(mt, val != xa_mk_value(level2[2] / 10)); in next_prev_test()
1903 MT_BUG_ON(mt, val != xa_mk_value(nr_entries)); in next_prev_test()
1913 MT_BUG_ON(mt, val != xa_mk_value(nr_entries)); in next_prev_test()
1921 MT_BUG_ON(mt, val != xa_mk_value(1)); in next_prev_test()
1926 MT_BUG_ON(mt, val != xa_mk_value(0)); in next_prev_test()
1951 mtree_store_range(mt, 0, 0, xa_mk_value(0), GFP_KERNEL); in next_prev_test()
1952 mtree_store_range(mt, 5, 5, xa_mk_value(5), GFP_KERNEL); in next_prev_test()
1970 xa_mk_value(i), GFP_KERNEL); in check_spanning_relatives()
2390 xa_mk_value(i), GFP_KERNEL); in check_dup_gaps()