• Home
  • Raw
  • Download

Lines Matching refs:t

20 	struct damon_target *t;  in damon_test_regions()  local
27 t = damon_new_target(42); 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(42); in damon_test_target()
56 KUNIT_EXPECT_EQ(test, 42ul, t->id); in damon_test_target()
59 damon_add_target(c, t); in damon_test_target()
62 damon_destroy_target(t); in damon_test_target()
85 struct damon_target *t; in damon_test_aggregate() local
92 damon_for_each_target(t, ctx) { in damon_test_aggregate()
96 damon_add_region(r, t); in damon_test_aggregate()
102 damon_for_each_target(t, ctx) { in damon_test_aggregate()
105 damon_for_each_region(r, t) { in damon_test_aggregate()
122 struct damon_target *t; in damon_test_split_at() local
125 t = damon_new_target(42); in damon_test_split_at()
127 damon_add_region(r, t); in damon_test_split_at()
128 damon_split_region_at(c, t, r, 25); in damon_test_split_at()
136 damon_free_target(t); in damon_test_split_at()
142 struct damon_target *t; in damon_test_merge_two() local
146 t = damon_new_target(42); in damon_test_merge_two()
149 damon_add_region(r, t); in damon_test_merge_two()
152 damon_add_region(r2, t); in damon_test_merge_two()
154 damon_merge_two_regions(t, r, r2); in damon_test_merge_two()
160 damon_for_each_region(r3, t) { in damon_test_merge_two()
166 damon_free_target(t); in damon_test_merge_two()
169 static struct damon_region *__nth_region_of(struct damon_target *t, int idx) in __nth_region_of() argument
174 damon_for_each_region(r, t) { in __nth_region_of()
184 struct damon_target *t; in damon_test_merge_regions_of() local
194 t = damon_new_target(42); in damon_test_merge_regions_of()
198 damon_add_region(r, t); in damon_test_merge_regions_of()
201 damon_merge_regions_of(t, 9, 9999); in damon_test_merge_regions_of()
203 KUNIT_EXPECT_EQ(test, damon_nr_regions(t), 5u); in damon_test_merge_regions_of()
205 r = __nth_region_of(t, i); in damon_test_merge_regions_of()
209 damon_free_target(t); in damon_test_merge_regions_of()
215 struct damon_target *t; in damon_test_split_regions_of() local
218 t = damon_new_target(42); in damon_test_split_regions_of()
220 damon_add_region(r, t); in damon_test_split_regions_of()
221 damon_split_regions_of(c, t, 2); in damon_test_split_regions_of()
222 KUNIT_EXPECT_LE(test, damon_nr_regions(t), 2u); in damon_test_split_regions_of()
223 damon_free_target(t); in damon_test_split_regions_of()
225 t = damon_new_target(42); in damon_test_split_regions_of()
227 damon_add_region(r, t); in damon_test_split_regions_of()
228 damon_split_regions_of(c, t, 4); in damon_test_split_regions_of()
229 KUNIT_EXPECT_LE(test, damon_nr_regions(t), 4u); in damon_test_split_regions_of()
230 damon_free_target(t); in damon_test_split_regions_of()