Lines Matching refs:css
93 static u32 netprio_prio(struct cgroup_subsys_state *css, struct net_device *dev) in netprio_prio() argument
96 int id = css->id; in netprio_prio()
112 static int netprio_set_prio(struct cgroup_subsys_state *css, in netprio_set_prio() argument
116 int id = css->id; in netprio_set_prio()
136 struct cgroup_subsys_state *css; in cgrp_css_alloc() local
138 css = kzalloc(sizeof(*css), GFP_KERNEL); in cgrp_css_alloc()
139 if (!css) in cgrp_css_alloc()
142 return css; in cgrp_css_alloc()
145 static int cgrp_css_online(struct cgroup_subsys_state *css) in cgrp_css_online() argument
147 struct cgroup_subsys_state *parent_css = css->parent; in cgrp_css_online()
151 if (css->id > NETPRIO_ID_MAX) in cgrp_css_online()
165 ret = netprio_set_prio(css, dev, prio); in cgrp_css_online()
173 static void cgrp_css_free(struct cgroup_subsys_state *css) in cgrp_css_free() argument
175 kfree(css); in cgrp_css_free()
178 static u64 read_prioidx(struct cgroup_subsys_state *css, struct cftype *cft) in read_prioidx() argument
180 return css->id; in read_prioidx()
232 struct cgroup_subsys_state *css; in net_prio_attach() local
234 cgroup_taskset_for_each(p, css, tset) { in net_prio_attach()
235 void *v = (void *)(unsigned long)css->id; in net_prio_attach()