Lines Matching refs:css
25 struct cgroup_subsys_state css; member
31 static inline struct cpuacct *css_ca(struct cgroup_subsys_state *css) in css_ca() argument
33 return css ? container_of(css, struct cpuacct, css) : NULL; in css_ca()
44 return css_ca(ca->css.parent); in parent_ca()
60 return &root_cpuacct.css; in cpuacct_css_alloc()
74 return &ca->css; in cpuacct_css_alloc()
85 static void cpuacct_css_free(struct cgroup_subsys_state *css) in cpuacct_css_free() argument
87 struct cpuacct *ca = css_ca(css); in cpuacct_css_free()
161 static u64 __cpuusage_read(struct cgroup_subsys_state *css, in __cpuusage_read() argument
164 struct cpuacct *ca = css_ca(css); in __cpuusage_read()
174 static u64 cpuusage_user_read(struct cgroup_subsys_state *css, in cpuusage_user_read() argument
177 return __cpuusage_read(css, CPUACCT_STAT_USER); in cpuusage_user_read()
180 static u64 cpuusage_sys_read(struct cgroup_subsys_state *css, in cpuusage_sys_read() argument
183 return __cpuusage_read(css, CPUACCT_STAT_SYSTEM); in cpuusage_sys_read()
186 static u64 cpuusage_read(struct cgroup_subsys_state *css, struct cftype *cft) in cpuusage_read() argument
188 return __cpuusage_read(css, CPUACCT_STAT_NSTATS); in cpuusage_read()
191 static int cpuusage_write(struct cgroup_subsys_state *css, struct cftype *cft, in cpuusage_write() argument
194 struct cpuacct *ca = css_ca(css); in cpuusage_write()