Lines Matching refs:css
97 static u32 netprio_prio(struct cgroup_subsys_state *css, struct net_device *dev) in netprio_prio() argument
100 int id = css->cgroup->id; in netprio_prio()
116 static int netprio_set_prio(struct cgroup_subsys_state *css, in netprio_set_prio() argument
120 int id = css->cgroup->id; in netprio_set_prio()
140 struct cgroup_subsys_state *css; in cgrp_css_alloc() local
142 css = kzalloc(sizeof(*css), GFP_KERNEL); in cgrp_css_alloc()
143 if (!css) in cgrp_css_alloc()
146 return css; in cgrp_css_alloc()
149 static int cgrp_css_online(struct cgroup_subsys_state *css) in cgrp_css_online() argument
151 struct cgroup_subsys_state *parent_css = css->parent; in cgrp_css_online()
155 if (css->id > NETPRIO_ID_MAX) in cgrp_css_online()
169 ret = netprio_set_prio(css, dev, prio); in cgrp_css_online()
177 static void cgrp_css_free(struct cgroup_subsys_state *css) in cgrp_css_free() argument
179 kfree(css); in cgrp_css_free()
182 static u64 read_prioidx(struct cgroup_subsys_state *css, struct cftype *cft) in read_prioidx() argument
184 return css->cgroup->id; in read_prioidx()
241 struct cgroup_subsys_state *css; in net_prio_attach() local
243 cgroup_taskset_for_each(p, css, tset) { in net_prio_attach()
244 void *v = (void *)(unsigned long)css->cgroup->id; in net_prio_attach()