Lines Matching full:goal

838  * quota goal directory
862 struct damos_sysfs_quota_goal *goal = container_of(kobj, in target_metric_show() local
866 damos_sysfs_quota_goal_metric_strs[goal->metric]); in target_metric_show()
872 struct damos_sysfs_quota_goal *goal = container_of(kobj, in target_metric_store() local
878 goal->metric = m; in target_metric_store()
888 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct in target_value_show() local
891 return sysfs_emit(buf, "%lu\n", goal->target_value); in target_value_show()
897 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct in target_value_store() local
899 int err = kstrtoul(buf, 0, &goal->target_value); in target_value_store()
907 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct in current_value_show() local
910 return sysfs_emit(buf, "%lu\n", goal->current_value); in current_value_show()
916 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct in current_value_store() local
918 int err = kstrtoul(buf, 0, &goal->current_value); in current_value_store()
984 struct damos_sysfs_quota_goal **goals_arr, *goal; in damos_sysfs_quota_goals_add_dirs() local
998 goal = damos_sysfs_quota_goal_alloc(); in damos_sysfs_quota_goals_add_dirs()
999 if (!goal) { in damos_sysfs_quota_goals_add_dirs()
1004 err = kobject_init_and_add(&goal->kobj, in damos_sysfs_quota_goals_add_dirs()
1008 kobject_put(&goal->kobj); in damos_sysfs_quota_goals_add_dirs()
1013 goals_arr[i] = goal; in damos_sysfs_quota_goals_add_dirs()
1967 struct damos_quota_goal *goal; in damos_sysfs_add_quota_score() local
1977 goal = damos_new_quota_goal(sysfs_goal->metric, in damos_sysfs_add_quota_score()
1979 if (!goal) in damos_sysfs_add_quota_score()
1982 goal->current_value = sysfs_goal->current_value; in damos_sysfs_add_quota_score()
1983 damos_add_quota_goal(quota, goal); in damos_sysfs_add_quota_score()