Lines Matching full:goal
931 * quota goal directory
955 struct damos_sysfs_quota_goal *goal = container_of(kobj, in target_metric_show() local
959 damos_sysfs_quota_goal_metric_strs[goal->metric]); in target_metric_show()
965 struct damos_sysfs_quota_goal *goal = container_of(kobj, in target_metric_store() local
971 goal->metric = m; in target_metric_store()
981 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct in target_value_show() local
984 return sysfs_emit(buf, "%lu\n", goal->target_value); in target_value_show()
990 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct in target_value_store() local
992 int err = kstrtoul(buf, 0, &goal->target_value); in target_value_store()
1000 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct in current_value_show() local
1003 return sysfs_emit(buf, "%lu\n", goal->current_value); in current_value_show()
1009 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct in current_value_store() local
1011 int err = kstrtoul(buf, 0, &goal->current_value); in current_value_store()
1077 struct damos_sysfs_quota_goal **goals_arr, *goal; in damos_sysfs_quota_goals_add_dirs() local
1091 goal = damos_sysfs_quota_goal_alloc(); in damos_sysfs_quota_goals_add_dirs()
1092 if (!goal) { in damos_sysfs_quota_goals_add_dirs()
1097 err = kobject_init_and_add(&goal->kobj, in damos_sysfs_quota_goals_add_dirs()
1101 kobject_put(&goal->kobj); in damos_sysfs_quota_goals_add_dirs()
1106 goals_arr[i] = goal; in damos_sysfs_quota_goals_add_dirs()
2109 struct damos_quota_goal *goal; in damos_sysfs_add_quota_score() local
2119 goal = damos_new_quota_goal(sysfs_goal->metric, in damos_sysfs_add_quota_score()
2121 if (!goal) in damos_sysfs_add_quota_score()
2124 goal->current_value = sysfs_goal->current_value; in damos_sysfs_add_quota_score()
2125 damos_add_quota_goal(quota, goal); in damos_sysfs_add_quota_score()