Lines Matching full:intervals

412  * intervals directory
426 struct damon_sysfs_intervals *intervals = kmalloc(sizeof(*intervals), in damon_sysfs_intervals_alloc() local
429 if (!intervals) in damon_sysfs_intervals_alloc()
432 intervals->kobj = (struct kobject){}; in damon_sysfs_intervals_alloc()
433 intervals->sample_us = sample_us; in damon_sysfs_intervals_alloc()
434 intervals->aggr_us = aggr_us; in damon_sysfs_intervals_alloc()
435 intervals->update_us = update_us; in damon_sysfs_intervals_alloc()
436 return intervals; in damon_sysfs_intervals_alloc()
442 struct damon_sysfs_intervals *intervals = container_of(kobj, in sample_us_show() local
445 return sysfs_emit(buf, "%lu\n", intervals->sample_us); in sample_us_show()
451 struct damon_sysfs_intervals *intervals = container_of(kobj, in sample_us_store() local
459 intervals->sample_us = us; in sample_us_store()
466 struct damon_sysfs_intervals *intervals = container_of(kobj, in aggr_us_show() local
469 return sysfs_emit(buf, "%lu\n", intervals->aggr_us); in aggr_us_show()
475 struct damon_sysfs_intervals *intervals = container_of(kobj, in aggr_us_store() local
483 intervals->aggr_us = us; in aggr_us_store()
490 struct damon_sysfs_intervals *intervals = container_of(kobj, in update_us_show() local
493 return sysfs_emit(buf, "%lu\n", intervals->update_us); in update_us_show()
499 struct damon_sysfs_intervals *intervals = container_of(kobj, in update_us_store() local
507 intervals->update_us = us; in update_us_store()
545 struct damon_sysfs_intervals *intervals; member
561 struct damon_sysfs_intervals *intervals; in damon_sysfs_attrs_add_dirs() local
565 intervals = damon_sysfs_intervals_alloc(5000, 100000, 60000000); in damon_sysfs_attrs_add_dirs()
566 if (!intervals) in damon_sysfs_attrs_add_dirs()
569 err = kobject_init_and_add(&intervals->kobj, in damon_sysfs_attrs_add_dirs()
571 "intervals"); in damon_sysfs_attrs_add_dirs()
574 attrs->intervals = intervals; in damon_sysfs_attrs_add_dirs()
594 kobject_put(&intervals->kobj); in damon_sysfs_attrs_add_dirs()
595 attrs->intervals = NULL; in damon_sysfs_attrs_add_dirs()
602 kobject_put(&attrs->intervals->kobj); in damon_sysfs_attrs_rm_dirs()
1086 struct damon_sysfs_intervals *sys_intervals = sys_attrs->intervals; in damon_sysfs_set_attrs()