Lines Matching refs:t
94 static struct damon_region *__nth_region_of(struct damon_target *t, int idx) in __nth_region_of() argument
99 damon_for_each_region(r, t) { in __nth_region_of()
134 struct damon_target *t; in damon_do_test_apply_three_regions() local
138 t = damon_new_target(); in damon_do_test_apply_three_regions()
141 damon_add_region(r, t); in damon_do_test_apply_three_regions()
144 damon_set_regions(t, three_regions, 3); in damon_do_test_apply_three_regions()
147 r = __nth_region_of(t, i); in damon_do_test_apply_three_regions()
152 damon_destroy_target(t); in damon_do_test_apply_three_regions()
252 struct damon_target *t = damon_new_target(); in damon_test_split_evenly_fail() local
255 damon_add_region(r, t); in damon_test_split_evenly_fail()
257 damon_va_evenly_split_region(t, r, nr_pieces), -EINVAL); in damon_test_split_evenly_fail()
258 KUNIT_EXPECT_EQ(test, damon_nr_regions(t), 1u); in damon_test_split_evenly_fail()
260 damon_for_each_region(r, t) { in damon_test_split_evenly_fail()
265 damon_free_target(t); in damon_test_split_evenly_fail()
271 struct damon_target *t = damon_new_target(); in damon_test_split_evenly_succ() local
276 damon_add_region(r, t); in damon_test_split_evenly_succ()
278 damon_va_evenly_split_region(t, r, nr_pieces), 0); in damon_test_split_evenly_succ()
279 KUNIT_EXPECT_EQ(test, damon_nr_regions(t), nr_pieces); in damon_test_split_evenly_succ()
281 damon_for_each_region(r, t) { in damon_test_split_evenly_succ()
292 damon_free_target(t); in damon_test_split_evenly_succ()