Lines Matching refs:t

29 static inline struct task_struct *damon_get_task_struct(struct damon_target *t)  in damon_get_task_struct()  argument
31 return get_pid_task(t->pid, PIDTYPE_PID); in damon_get_task_struct()
41 static struct mm_struct *damon_get_mm(struct damon_target *t) in damon_get_mm() argument
46 task = damon_get_task_struct(t); in damon_get_mm()
64 static int damon_va_evenly_split_region(struct damon_target *t, in damon_va_evenly_split_region() argument
88 damon_insert_region(n, r, next, t); in damon_va_evenly_split_region()
175 static int damon_va_three_regions(struct damon_target *t, in damon_va_three_regions() argument
181 mm = damon_get_mm(t); in damon_va_three_regions()
236 struct damon_target *t) in __damon_va_init_regions() argument
244 if (damon_va_three_regions(t, regions)) { in __damon_va_init_regions()
246 if (ti == t) in __damon_va_init_regions()
268 damon_add_region(r, t); in __damon_va_init_regions()
271 damon_va_evenly_split_region(t, r, nr_pieces); in __damon_va_init_regions()
278 struct damon_target *t; in damon_va_init() local
280 damon_for_each_target(t, ctx) { in damon_va_init()
282 if (!damon_nr_regions(t)) in damon_va_init()
283 __damon_va_init_regions(ctx, t); in damon_va_init()
293 struct damon_target *t; in damon_va_update() local
295 damon_for_each_target(t, ctx) { in damon_va_update()
296 if (damon_va_three_regions(t, three_regions)) in damon_va_update()
298 damon_set_regions(t, three_regions, 3); in damon_va_update()
419 struct damon_target *t; in damon_va_prepare_access_checks() local
423 damon_for_each_target(t, ctx) { in damon_va_prepare_access_checks()
424 mm = damon_get_mm(t); in damon_va_prepare_access_checks()
427 damon_for_each_region(r, t) in damon_va_prepare_access_checks()
586 struct damon_target *t; in damon_va_check_accesses() local
592 damon_for_each_target(t, ctx) { in damon_va_check_accesses()
593 mm = damon_get_mm(t); in damon_va_check_accesses()
597 damon_for_each_region(r, t) { in damon_va_check_accesses()
612 static bool damon_va_target_valid(struct damon_target *t) in damon_va_target_valid() argument
616 task = damon_get_task_struct(t); in damon_va_target_valid()
652 struct damon_target *t, struct damon_region *r, in damon_va_apply_scheme() argument
682 return damos_madvise(t, r, madv_action); in damon_va_apply_scheme()
686 struct damon_target *t, struct damon_region *r, in damon_va_scheme_score() argument