Lines Matching refs:css

6324 			  struct task_group, css);  in sched_change_group()
6371 static inline struct task_group *css_tg(struct cgroup_subsys_state *css) in css_tg() argument
6373 return css ? container_of(css, struct task_group, css) : NULL; in css_tg()
6384 return &root_task_group.css; in cpu_cgroup_css_alloc()
6391 return &tg->css; in cpu_cgroup_css_alloc()
6395 static int cpu_cgroup_css_online(struct cgroup_subsys_state *css) in cpu_cgroup_css_online() argument
6397 struct task_group *tg = css_tg(css); in cpu_cgroup_css_online()
6398 struct task_group *parent = css_tg(css->parent); in cpu_cgroup_css_online()
6405 static void cpu_cgroup_css_released(struct cgroup_subsys_state *css) in cpu_cgroup_css_released() argument
6407 struct task_group *tg = css_tg(css); in cpu_cgroup_css_released()
6412 static void cpu_cgroup_css_free(struct cgroup_subsys_state *css) in cpu_cgroup_css_free() argument
6414 struct task_group *tg = css_tg(css); in cpu_cgroup_css_free()
6442 struct cgroup_subsys_state *css; in cpu_cgroup_can_attach() local
6445 cgroup_taskset_for_each(task, css, tset) { in cpu_cgroup_can_attach()
6447 if (!sched_rt_can_attach(css_tg(css), task)) in cpu_cgroup_can_attach()
6477 struct cgroup_subsys_state *css; in cpu_cgroup_attach() local
6479 cgroup_taskset_for_each(task, css, tset) in cpu_cgroup_attach()
6484 static int cpu_shares_write_u64(struct cgroup_subsys_state *css, in cpu_shares_write_u64() argument
6487 return sched_group_set_shares(css_tg(css), scale_load(shareval)); in cpu_shares_write_u64()
6490 static u64 cpu_shares_read_u64(struct cgroup_subsys_state *css, in cpu_shares_read_u64() argument
6493 struct task_group *tg = css_tg(css); in cpu_shares_read_u64()
6628 static s64 cpu_cfs_quota_read_s64(struct cgroup_subsys_state *css, in cpu_cfs_quota_read_s64() argument
6631 return tg_get_cfs_quota(css_tg(css)); in cpu_cfs_quota_read_s64()
6634 static int cpu_cfs_quota_write_s64(struct cgroup_subsys_state *css, in cpu_cfs_quota_write_s64() argument
6637 return tg_set_cfs_quota(css_tg(css), cfs_quota_us); in cpu_cfs_quota_write_s64()
6640 static u64 cpu_cfs_period_read_u64(struct cgroup_subsys_state *css, in cpu_cfs_period_read_u64() argument
6643 return tg_get_cfs_period(css_tg(css)); in cpu_cfs_period_read_u64()
6646 static int cpu_cfs_period_write_u64(struct cgroup_subsys_state *css, in cpu_cfs_period_write_u64() argument
6649 return tg_set_cfs_period(css_tg(css), cfs_period_us); in cpu_cfs_period_write_u64()
6760 static int cpu_rt_runtime_write(struct cgroup_subsys_state *css, in cpu_rt_runtime_write() argument
6763 return sched_group_set_rt_runtime(css_tg(css), val); in cpu_rt_runtime_write()
6766 static s64 cpu_rt_runtime_read(struct cgroup_subsys_state *css, in cpu_rt_runtime_read() argument
6769 return sched_group_rt_runtime(css_tg(css)); in cpu_rt_runtime_read()
6772 static int cpu_rt_period_write_uint(struct cgroup_subsys_state *css, in cpu_rt_period_write_uint() argument
6775 return sched_group_set_rt_period(css_tg(css), rt_period_us); in cpu_rt_period_write_uint()
6778 static u64 cpu_rt_period_read_uint(struct cgroup_subsys_state *css, in cpu_rt_period_read_uint() argument
6781 return sched_group_rt_period(css_tg(css)); in cpu_rt_period_read_uint()
6825 struct cgroup_subsys_state *css) in cpu_extra_stat_show() argument
6829 struct task_group *tg = css_tg(css); in cpu_extra_stat_show()
6847 static u64 cpu_weight_read_u64(struct cgroup_subsys_state *css, in cpu_weight_read_u64() argument
6850 struct task_group *tg = css_tg(css); in cpu_weight_read_u64()
6856 static int cpu_weight_write_u64(struct cgroup_subsys_state *css, in cpu_weight_write_u64() argument
6871 return sched_group_set_shares(css_tg(css), scale_load(weight)); in cpu_weight_write_u64()
6874 static s64 cpu_weight_nice_read_s64(struct cgroup_subsys_state *css, in cpu_weight_nice_read_s64() argument
6877 unsigned long weight = scale_load_down(css_tg(css)->shares); in cpu_weight_nice_read_s64()
6892 static int cpu_weight_nice_write_s64(struct cgroup_subsys_state *css, in cpu_weight_nice_write_s64() argument
6905 return sched_group_set_shares(css_tg(css), scale_load(weight)); in cpu_weight_nice_write_s64()