Lines Matching refs:t

20 	struct damon_target *t;  in damon_test_regions()  local
27 t = damon_new_target(); in damon_test_regions()
28 KUNIT_EXPECT_EQ(test, 0u, damon_nr_regions(t)); in damon_test_regions()
30 damon_add_region(r, t); in damon_test_regions()
31 KUNIT_EXPECT_EQ(test, 1u, damon_nr_regions(t)); in damon_test_regions()
33 damon_del_region(r, t); in damon_test_regions()
34 KUNIT_EXPECT_EQ(test, 0u, damon_nr_regions(t)); in damon_test_regions()
36 damon_free_target(t); in damon_test_regions()
41 struct damon_target *t; in nr_damon_targets() local
44 damon_for_each_target(t, ctx) in nr_damon_targets()
53 struct damon_target *t; in damon_test_target() local
55 t = damon_new_target(); in damon_test_target()
58 damon_add_target(c, t); in damon_test_target()
61 damon_destroy_target(t); in damon_test_target()
83 struct damon_target *t; in damon_test_aggregate() local
88 t = damon_new_target(); in damon_test_aggregate()
89 damon_add_target(ctx, t); in damon_test_aggregate()
93 damon_for_each_target(t, ctx) { in damon_test_aggregate()
97 damon_add_region(r, t); in damon_test_aggregate()
103 damon_for_each_target(t, ctx) { in damon_test_aggregate()
106 damon_for_each_region(r, t) { in damon_test_aggregate()
123 struct damon_target *t; in damon_test_split_at() local
126 t = damon_new_target(); in damon_test_split_at()
128 damon_add_region(r, t); in damon_test_split_at()
129 damon_split_region_at(t, r, 25); in damon_test_split_at()
137 damon_free_target(t); in damon_test_split_at()
143 struct damon_target *t; in damon_test_merge_two() local
147 t = damon_new_target(); in damon_test_merge_two()
150 damon_add_region(r, t); in damon_test_merge_two()
153 damon_add_region(r2, t); in damon_test_merge_two()
155 damon_merge_two_regions(t, r, r2); in damon_test_merge_two()
161 damon_for_each_region(r3, t) { in damon_test_merge_two()
167 damon_free_target(t); in damon_test_merge_two()
170 static struct damon_region *__nth_region_of(struct damon_target *t, int idx) in __nth_region_of() argument
175 damon_for_each_region(r, t) { in __nth_region_of()
185 struct damon_target *t; in damon_test_merge_regions_of() local
195 t = damon_new_target(); in damon_test_merge_regions_of()
199 damon_add_region(r, t); in damon_test_merge_regions_of()
202 damon_merge_regions_of(t, 9, 9999); in damon_test_merge_regions_of()
204 KUNIT_EXPECT_EQ(test, damon_nr_regions(t), 5u); in damon_test_merge_regions_of()
206 r = __nth_region_of(t, i); in damon_test_merge_regions_of()
210 damon_free_target(t); in damon_test_merge_regions_of()
216 struct damon_target *t; in damon_test_split_regions_of() local
219 t = damon_new_target(); in damon_test_split_regions_of()
221 damon_add_region(r, t); in damon_test_split_regions_of()
222 damon_split_regions_of(t, 2); in damon_test_split_regions_of()
223 KUNIT_EXPECT_LE(test, damon_nr_regions(t), 2u); in damon_test_split_regions_of()
224 damon_free_target(t); in damon_test_split_regions_of()
226 t = damon_new_target(); in damon_test_split_regions_of()
228 damon_add_region(r, t); in damon_test_split_regions_of()
229 damon_split_regions_of(t, 4); in damon_test_split_regions_of()
230 KUNIT_EXPECT_LE(test, damon_nr_regions(t), 4u); in damon_test_split_regions_of()
231 damon_free_target(t); in damon_test_split_regions_of()
272 struct damon_target *t = damon_new_target(); in damon_test_set_regions() local
280 damon_add_region(r1, t); in damon_test_set_regions()
281 damon_add_region(r2, t); in damon_test_set_regions()
282 damon_set_regions(t, &range, 1); in damon_test_set_regions()
284 KUNIT_EXPECT_EQ(test, damon_nr_regions(t), 3); in damon_test_set_regions()
285 damon_for_each_region(r, t) { in damon_test_set_regions()
289 damon_destroy_target(t); in damon_test_set_regions()
358 struct damon_target *t; in damos_test_filter_out() local
366 t = damon_new_target(); in damos_test_filter_out()
368 damon_add_region(r, t); in damos_test_filter_out()
371 KUNIT_EXPECT_TRUE(test, __damos_filter_out(NULL, t, r, f)); in damos_test_filter_out()
372 KUNIT_EXPECT_EQ(test, damon_nr_regions(t), 1); in damos_test_filter_out()
377 KUNIT_EXPECT_FALSE(test, __damos_filter_out(NULL, t, r, f)); in damos_test_filter_out()
378 KUNIT_EXPECT_EQ(test, damon_nr_regions(t), 1); in damos_test_filter_out()
383 KUNIT_EXPECT_FALSE(test, __damos_filter_out(NULL, t, r, f)); in damos_test_filter_out()
384 KUNIT_EXPECT_EQ(test, damon_nr_regions(t), 1); in damos_test_filter_out()
389 KUNIT_EXPECT_FALSE(test, __damos_filter_out(NULL, t, r, f)); in damos_test_filter_out()
393 KUNIT_EXPECT_EQ(test, damon_nr_regions(t), 2); in damos_test_filter_out()
397 damon_destroy_region(r2, t); in damos_test_filter_out()
402 KUNIT_EXPECT_TRUE(test, __damos_filter_out(NULL, t, r, f)); in damos_test_filter_out()
406 KUNIT_EXPECT_EQ(test, damon_nr_regions(t), 2); in damos_test_filter_out()
410 damon_destroy_region(r2, t); in damos_test_filter_out()
412 damon_free_target(t); in damos_test_filter_out()