Lines Matching refs:css
56 return s ? container_of(s, struct hugetlb_cgroup, css) : NULL; in hugetlb_cgroup_from_css()
73 return hugetlb_cgroup_from_css(h_cg->css.parent); in parent_hugetlb_cgroup()
168 return &h_cgroup->css; in hugetlb_cgroup_css_alloc()
175 static void hugetlb_cgroup_css_free(struct cgroup_subsys_state *css) in hugetlb_cgroup_css_free() argument
177 hugetlb_cgroup_free(hugetlb_cgroup_from_css(css)); in hugetlb_cgroup_css_free()
223 static void hugetlb_cgroup_css_offline(struct cgroup_subsys_state *css) in hugetlb_cgroup_css_offline() argument
225 struct hugetlb_cgroup *h_cg = hugetlb_cgroup_from_css(css); in hugetlb_cgroup_css_offline()
273 if (!css_tryget(&h_cg->css)) { in __hugetlb_cgroup_charge_cgroup()
284 css_put(&h_cg->css); in __hugetlb_cgroup_charge_cgroup()
291 css_put(&h_cg->css); in __hugetlb_cgroup_charge_cgroup()
366 css_put(&h_cg->css); in __hugetlb_cgroup_uncharge_page()
407 css_put(&h_cg->css); in __hugetlb_cgroup_uncharge_cgroup()
426 !resv->css) in hugetlb_cgroup_uncharge_counter()
431 css_put(resv->css); in hugetlb_cgroup_uncharge_counter()
451 css_put(rg->css); in hugetlb_cgroup_uncharge_file_region()
473 struct cgroup_subsys_state *css; in hugetlb_cgroup_read_numa_stat() local
505 css_for_each_descendant_pre(css, &h_cg->css) { in hugetlb_cgroup_read_numa_stat()
506 usage += READ_ONCE(hugetlb_cgroup_from_css(css) in hugetlb_cgroup_read_numa_stat()
519 static u64 hugetlb_cgroup_read_u64(struct cgroup_subsys_state *css, in hugetlb_cgroup_read_u64() argument
524 struct hugetlb_cgroup *h_cg = hugetlb_cgroup_from_css(css); in hugetlb_cgroup_read_u64()