Home
last modified time | relevance | path

Searched refs:css (Results 1 – 25 of 106) sorted by relevance

12345

/linux/drivers/staging/media/ipu3/
H A Dipu3-css-fw.c72 void *imgu_css_fw_pipeline_params(struct imgu_css *css, unsigned int pipe, in imgu_css_fw_pipeline_params() argument
79 &css->fwp->binary_header[css->pipes[pipe].bindex]; in imgu_css_fw_pipeline_params()
94 void imgu_css_fw_cleanup(struct imgu_css *css) in imgu_css_fw_cleanup() argument
96 struct imgu_device *imgu = dev_get_drvdata(css->dev); in imgu_css_fw_cleanup()
98 if (css->binary) { in imgu_css_fw_cleanup()
101 for (i = 0; i < css->fwp->file_header.binary_nr; i++) in imgu_css_fw_cleanup()
102 imgu_dmamap_free(imgu, &css->binary[i]); in imgu_css_fw_cleanup()
103 kfree(css->binary); in imgu_css_fw_cleanup()
105 if (css->fw) in imgu_css_fw_cleanup()
106 release_firmware(css->fw); in imgu_css_fw_cleanup()
[all …]
H A Dipu3-css.c10 #include "ipu3-css.h"
11 #include "ipu3-css-fw.h"
12 #include "ipu3-css-params.h"
174 /******************* css hw *******************/
218 /* Reset the css */ in imgu_css_set_powerup()
298 /* wait for css idle signal */ in imgu_css_set_powerdown()
301 dev_warn(dev, "wait css idle timeout\n"); in imgu_css_set_powerdown()
303 /* do halt-halted handshake with css */ in imgu_css_set_powerdown()
307 dev_warn(dev, "failed to halt css"); in imgu_css_set_powerdown()
313 static void imgu_css_hw_enable_irq(struct imgu_css *css)
314 imgu_css_hw_enable_irq(struct imgu_css * css) imgu_css_hw_enable_irq() argument
362 imgu_css_hw_init(struct imgu_css * css) imgu_css_hw_init() argument
470 imgu_css_hw_start_sp(struct imgu_css * css,int sp) imgu_css_hw_start_sp() argument
501 imgu_css_hw_start(struct imgu_css * css) imgu_css_hw_start() argument
608 imgu_css_hw_stop(struct imgu_css * css) imgu_css_hw_stop() argument
628 imgu_css_hw_cleanup(struct imgu_css * css) imgu_css_hw_cleanup() argument
650 imgu_css_pipeline_cleanup(struct imgu_css * css,unsigned int pipe) imgu_css_pipeline_cleanup() argument
669 imgu_css_pipeline_init(struct imgu_css * css,unsigned int pipe) imgu_css_pipeline_init() argument
1058 imgu_css_queue_pos(struct imgu_css * css,int queue,int thread) imgu_css_queue_pos() argument
1071 imgu_css_queue_data(struct imgu_css * css,int queue,int thread,u32 data) imgu_css_queue_data() argument
1110 imgu_css_dequeue_data(struct imgu_css * css,int queue,u32 * data) imgu_css_dequeue_data() argument
1157 imgu_css_binary_cleanup(struct imgu_css * css,unsigned int pipe) imgu_css_binary_cleanup() argument
1180 imgu_css_binary_preallocate(struct imgu_css * css,unsigned int pipe) imgu_css_binary_preallocate() argument
1215 imgu_css_binary_setup(struct imgu_css * css,unsigned int pipe) imgu_css_binary_setup() argument
1285 imgu_css_start_streaming(struct imgu_css * css) imgu_css_start_streaming() argument
1355 imgu_css_stop_streaming(struct imgu_css * css) imgu_css_stop_streaming() argument
1393 imgu_css_pipe_queue_empty(struct imgu_css * css,unsigned int pipe) imgu_css_pipe_queue_empty() argument
1406 imgu_css_queue_empty(struct imgu_css * css) imgu_css_queue_empty() argument
1417 imgu_css_is_streaming(struct imgu_css * css) imgu_css_is_streaming() argument
1422 imgu_css_map_init(struct imgu_css * css,unsigned int pipe) imgu_css_map_init() argument
1464 imgu_css_pipe_cleanup(struct imgu_css * css,unsigned int pipe) imgu_css_pipe_cleanup() argument
1489 imgu_css_cleanup(struct imgu_css * css) imgu_css_cleanup() argument
1501 imgu_css_init(struct device * dev,struct imgu_css * css,void __iomem * base,int length) imgu_css_init() argument
1549 imgu_css_find_binary(struct imgu_css * css,unsigned int pipe,struct imgu_css_queue queue[IPU3_CSS_QUEUES],struct v4l2_rect rects[IPU3_CSS_RECTS]) imgu_css_find_binary() argument
1673 imgu_css_fmt_try(struct imgu_css * css,struct v4l2_pix_format_mplane * fmts[IPU3_CSS_QUEUES],struct v4l2_rect * rects[IPU3_CSS_RECTS],unsigned int pipe) imgu_css_fmt_try() argument
1829 imgu_css_fmt_set(struct imgu_css * css,struct v4l2_pix_format_mplane * fmts[IPU3_CSS_QUEUES],struct v4l2_rect * rects[IPU3_CSS_RECTS],unsigned int pipe) imgu_css_fmt_set() argument
1892 imgu_css_buf_queue(struct imgu_css * css,unsigned int pipe,struct imgu_css_buffer * b) imgu_css_buf_queue() argument
1966 imgu_css_buf_dequeue(struct imgu_css * css) imgu_css_buf_dequeue() argument
2101 imgu_css_set_parameters(struct imgu_css * css,unsigned int pipe,struct ipu3_uapi_params * set_params) imgu_css_set_parameters() argument
2313 imgu_css_irq_ack(struct imgu_css * css) imgu_css_irq_ack() argument
[all...]
H A Dipu3-css.h167 int imgu_css_init(struct device *dev, struct imgu_css *css,
169 void imgu_css_cleanup(struct imgu_css *css);
170 int imgu_css_fmt_try(struct imgu_css *css,
174 int imgu_css_fmt_set(struct imgu_css *css,
179 int imgu_css_buf_queue(struct imgu_css *css, unsigned int pipe,
181 struct imgu_css_buffer *imgu_css_buf_dequeue(struct imgu_css *css);
182 int imgu_css_start_streaming(struct imgu_css *css);
183 void imgu_css_stop_streaming(struct imgu_css *css);
184 bool imgu_css_queue_empty(struct imgu_css *css);
185 bool imgu_css_is_streaming(struct imgu_css *css);
[all …]
H A DMakefile8 ipu3-tables.o ipu3-css-pool.o \
9 ipu3-css-fw.o ipu3-css-params.o \
10 ipu3-css.o ipu3-v4l2.o ipu3.o
/linux/include/linux/
H A Dcgroup_refcnt.h8 void css_get(struct cgroup_subsys_state *css) in css_get() argument
10 if (!(css->flags & CSS_NO_REF)) in css_get()
11 percpu_ref_get(&css->refcnt); in css_get()
23 void css_get_many(struct cgroup_subsys_state *css, unsigned int n) in CGROUP_REF_EXPORT()
25 if (!(css->flags & CSS_NO_REF)) in CGROUP_REF_EXPORT()
26 percpu_ref_get_many(&css->refcnt, n); in CGROUP_REF_EXPORT()
42 bool css_tryget(struct cgroup_subsys_state *css) in CGROUP_REF_EXPORT()
44 if (!(css->flags & CSS_NO_REF)) in CGROUP_REF_EXPORT()
45 return percpu_ref_tryget(&css->refcnt); in CGROUP_REF_EXPORT()
61 bool css_tryget_online(struct cgroup_subsys_state *css) in CGROUP_REF_EXPORT()
[all …]
H A Dmisc_cgroup.h57 struct cgroup_subsys_state css; member
80 static inline struct misc_cg *css_misc(struct cgroup_subsys_state *css) in css_misc() argument
82 return css ? container_of(css, struct misc_cg, css) : NULL; in css_misc()
105 css_put(&cg->css); in put_misc_cg()
H A Dcgroup-defs.h52 CSS_NO_REF = (1 << 0), /* no reference counting for this css */
55 CSS_VISIBLE = (1 << 3), /* css is visible to userland */
56 CSS_DYING = (1 << 4), /* css is dying */
182 /* PI: the cgroup that this css is attached to */
185 /* PI: the cgroup subsystem that this css is attached to */
195 * when css is associated with cgroup::self
196 * when css->cgroup is the root cgroup
198 * when css->cgroup is not the root cgroup
200 * when css is associated with a subsystem
201 * when css
[all...]
/linux/kernel/cgroup/
H A Drstat.c24 static inline bool css_uses_rstat(struct cgroup_subsys_state *css) in css_uses_rstat() argument
26 return css_is_self(css) || css->ss->css_rstat_flush != NULL; in css_uses_rstat()
30 struct cgroup_subsys_state *css, int cpu) in css_rstat_cpu() argument
32 return per_cpu_ptr(css->rstat_cpu, cpu); in css_rstat_cpu()
71 void __css_rstat_updated(struct cgroup_subsys_state *css, int cpu) in __css_rstat_updated() argument
78 if (!css_uses_rstat(css)) in __css_rstat_updated()
90 rstatc = css_rstat_cpu(css, cpu); in __css_rstat_updated()
121 lhead = ss_lhead_cpu(css->ss, cpu); in __css_rstat_updated()
129 __bpf_kfunc void css_rstat_updated(struct cgroup_subsys_state *css, int cpu) in css_rstat_updated() argument
134 __css_rstat_updated(css, cpu); in css_rstat_updated()
[all …]
H A Ddebug.c17 struct cgroup_subsys_state *css = kzalloc_obj(*css); in debug_css_alloc() local
19 if (!css) in debug_css_alloc()
22 return css; in debug_css_alloc()
25 static void debug_css_free(struct cgroup_subsys_state *css) in debug_css_free() argument
27 kfree(css); in debug_css_free()
34 static u64 debug_taskcount_read(struct cgroup_subsys_state *css, in debug_taskcount_read() argument
37 return cgroup_task_count(css->cgroup); in debug_taskcount_read()
45 struct cgroup_subsys_state *css; in current_css_set_read() local
60 * Print the css'e in current_css_set_read()
74 current_css_set_refcount_read(struct cgroup_subsys_state * css,struct cftype * cft) current_css_set_refcount_read() argument
112 struct cgroup_subsys_state *css = seq_css(seq); cgroup_css_links_read() local
204 struct cgroup_subsys_state *css; cgroup_subsys_states_read() local
267 releasable_read(struct cgroup_subsys_state * css,struct cftype * cft) releasable_read() argument
[all...]
H A Dlegacy_freezer.c38 struct cgroup_subsys_state css; member
44 static inline struct freezer *css_freezer(struct cgroup_subsys_state *css) in css_freezer() argument
46 return css ? container_of(css, struct freezer, css) : NULL; in css_freezer()
56 return css_freezer(freezer->css.parent); in parent_freezer()
88 return &freezer->css; in freezer_css_alloc()
92 * freezer_css_online - commit creation of a freezer css
93 * @css: css bein
98 freezer_css_online(struct cgroup_subsys_state * css) freezer_css_online() argument
125 freezer_css_offline(struct cgroup_subsys_state * css) freezer_css_offline() argument
141 freezer_css_free(struct cgroup_subsys_state * css) freezer_css_free() argument
241 update_if_frozen(struct cgroup_subsys_state * css) update_if_frozen() argument
282 struct cgroup_subsys_state *css = seq_css(m), *pos; freezer_read() local
430 freezer_self_freezing_read(struct cgroup_subsys_state * css,struct cftype * cft) freezer_self_freezing_read() argument
438 freezer_parent_freezing_read(struct cgroup_subsys_state * css,struct cftype * cft) freezer_parent_freezing_read() argument
[all...]
H A Dcgroup.c118 * cgroup_offline_wq: use for css offline work
119 * cgroup_release_wq: use for css release work
123 * The cgroup root free work may depend on completion of other css offline
126 * - Free work waits for other css offline work to complete.
127 * - But other css offline work is queued after free work in the same queue.
205 * root css so the affected tasks are migrated there before
277 static void kill_css_sync(struct cgroup_subsys_state *css);
278 static void kill_css_finish(struct cgroup_subsys_state *css);
282 static int cgroup_addrm_files(struct cgroup_subsys_state *css,
505 * cgroup_e_css_by_mask - obtain a cgroup's effective css fo
551 struct cgroup_subsys_state *css; cgroup_e_css() local
581 struct cgroup_subsys_state *css; cgroup_get_e_css() local
684 for_each_css(css,ssid,cgrp) global() argument
781 css_update_populated(struct cgroup_subsys_state * css,bool populated) css_update_populated() argument
861 struct cgroup_subsys_state *css = cset->subsys[ssid]; css_set_update_populated() local
941 css_set_hash(struct cgroup_subsys_state ** css) css_set_hash() argument
1277 struct cgroup_subsys_state *css = cset->subsys[ssid]; find_css_set() local
1735 struct cgroup_subsys_state *css = cgroup_css(cgrp, cft->ss); cgroup_rm_file() local
1752 css_clear_dir(struct cgroup_subsys_state * css) css_clear_dir() argument
1785 css_populate_dir(struct cgroup_subsys_state * css) css_populate_dir() argument
1891 struct cgroup_subsys_state *css = cgroup_css(scgrp, ss); rebind_subsystems() local
3339 struct cgroup_subsys_state *css = cgroup_css(dsct, ss); cgroup_lock_and_drain_offline() local
3420 css_visible(struct cgroup_subsys_state * css) css_visible() argument
3454 struct cgroup_subsys_state *css = cgroup_css(dsct, ss); cgroup_apply_control_enable() local
3500 struct cgroup_subsys_state *css = cgroup_css(dsct, ss); cgroup_apply_control_disable() local
3902 struct cgroup_subsys_state *css; cgroup_stat_show() local
3972 struct cgroup_subsys_state *css; cgroup_tryget_css() local
3987 struct cgroup_subsys_state *css; cgroup_extra_stat_show() local
4006 struct cgroup_subsys_state *css; cgroup_local_stat_show() local
4309 struct cgroup_subsys_state *css; cgroup_kill() local
4394 struct cgroup_subsys_state *css; cgroup_file_write() local
4470 struct cgroup_subsys_state *css = seq_css(m); cgroup_seqfile_show() local
4511 cgroup_add_file(struct cgroup_subsys_state * css,struct cgroup * cgrp,struct cftype * cft) cgroup_add_file() argument
4550 cgroup_addrm_files(struct cgroup_subsys_state * css,struct cgroup * cgrp,struct cftype cfts[],bool is_add) cgroup_addrm_files() argument
4592 struct cgroup_subsys_state *css; cgroup_apply_cftypes() local
5053 css_has_online_children(struct cgroup_subsys_state * css) css_has_online_children() argument
5259 css_task_iter_start(struct cgroup_subsys_state * css,unsigned int flags,struct css_task_iter * it) css_task_iter_start() argument
5696 struct cgroup_subsys_state *css = container_of(to_rcu_work(work), css_free_rwork_fn() local
5747 struct cgroup_subsys_state *css = css_release_work_fn() local
5814 struct cgroup_subsys_state *css = css_release() local
5828 struct cgroup_subsys_state *css = kill_css_finish_work_fn() local
5837 init_and_link_css(struct cgroup_subsys_state * css,struct cgroup_subsys * ss,struct cgroup * cgrp) init_and_link_css() argument
5863 online_css(struct cgroup_subsys_state * css) online_css() argument
5887 offline_css(struct cgroup_subsys_state * css) offline_css() argument
5919 struct cgroup_subsys_state *css; css_create() local
6176 struct cgroup_subsys_state *css; css_killed_work_fn() local
6195 struct cgroup_subsys_state *css = css_killed_ref_fn() local
6210 kill_css_sync(struct cgroup_subsys_state * css) kill_css_sync() argument
6257 kill_css_finish(struct cgroup_subsys_state * css) kill_css_finish() argument
6322 struct cgroup_subsys_state *css; cgroup_destroy_locked() local
6423 struct cgroup_subsys_state *css; cgroup_init_subsys() local
6554 struct cgroup_subsys_state *css = cgroup_init() local
6818 struct cgroup_subsys_state *css; cgroup_v1v2_get_from_file() local
7328 struct cgroup_subsys_state *css = NULL; css_tryget_online_from_dir() local
[all...]
H A Dcpuset-internal.h77 struct cgroup_subsys_state css;
202 static inline struct cpuset *css_cs(struct cgroup_subsys_state *css) in task_cs()
204 return css ? container_of(css, struct cpuset, css) : NULL; in task_cs()
215 return css_cs(cs->css.parent); in is_cpuset_online()
221 return css_is_online(&cs->css) && !css_is_dying(&cs->css); in is_cpu_exclusive()
277 return cgroup_is_populated(cs->css.cgroup);
290 css_for_each_child((pos_css), &(parent_cs)->css) \
76 struct cgroup_subsys_state css; global() member
196 css_cs(struct cgroup_subsys_state * css) css_cs() argument
344 cpuset1_online_css(struct cgroup_subsys_state * css) cpuset1_online_css() argument
[all...]
H A Dpids.c50 struct cgroup_subsys_state css; member
68 static struct pids_cgroup *css_pids(struct cgroup_subsys_state *css) in css_pids() argument
70 return container_of(css, struct pids_cgroup, css); in css_pids()
75 return css_pids(pids->css.parent); in parent_pids()
88 return &pids->css; in pids_css_alloc()
91 static void pids_css_free(struct cgroup_subsys_state *css) in pids_css_free() argument
93 kfree(css_pids(css)); in pids_css_free()
251 pr_cont_cgroup_path(p->css.cgroup); in pids_event()
309 struct cgroup_subsys_state *css = of_css(of); in pids_max_write() local
310 struct pids_cgroup *pids = css_pids(css); in pids_max_write()
[all …]
H A Dcpuset-v1.c165 static int cpuset_write_s64(struct cgroup_subsys_state *css, struct cftype *cft, in cpuset_write_s64() argument
168 struct cpuset *cs = css_cs(css); in cpuset_write_s64()
190 static s64 cpuset_read_s64(struct cgroup_subsys_state *css, struct cftype *cft) in cpuset_read_s64() argument
192 struct cpuset *cs = css_cs(css); in cpuset_read_s64()
237 css_task_iter_start(&cs->css, 0, &it); in cpuset1_update_tasks_flags()
263 if (cgroup_transfer_tasks(parent->css.cgroup, cs->css.cgroup)) { in remove_tasks_in_empty_cpuset()
265 pr_cont_cgroup_name(cs->css.cgroup); in remove_tasks_in_empty_cpuset()
276 css_put(&s->cs->css); in cpuset_migrate_tasks_workfn()
310 if (is_empty && cgroup_has_tasks(cs->css in cpuset1_hotplug_update_tasks()
348 struct cgroup_subsys_state *css; cpuset1_validate_change() local
414 struct cgroup_subsys_state *css; proc_cpuset_show() local
444 cpuset_read_u64(struct cgroup_subsys_state * css,struct cftype * cft) cpuset_read_u64() argument
476 cpuset_write_u64(struct cgroup_subsys_state * css,struct cftype * cft,u64 val) cpuset_write_u64() argument
536 cpuset1_online_css(struct cgroup_subsys_state * css) cpuset1_online_css() argument
[all...]
/linux/fs/xfs/scrub/
H A Dstats.c98 struct xchk_scrub_stats *css = &cs->cs_stats[0]; in xchk_stats_format() local
103 for (i = 0; i < XFS_SCRUB_TYPE_NR; i++, css++) { in xchk_stats_format()
109 spin_lock(&css->css_lock); in xchk_stats_format()
110 memcpy(&fss, css, offsetof(struct xchk_scrub_stats, css_lock)); in xchk_stats_format()
111 spin_unlock(&css->css_lock); in xchk_stats_format()
179 struct xchk_scrub_stats *css = &cs->cs_stats[0]; in xchk_stats_clearall() local
182 for (i = 0; i < XFS_SCRUB_TYPE_NR; i++, css++) { in xchk_stats_clearall()
183 spin_lock(&css->css_lock); in xchk_stats_clearall()
184 memset(css, 0, offsetof(struct xchk_scrub_stats, css_lock)); in xchk_stats_clearall()
185 spin_unlock(&css in xchk_stats_clearall()
146 struct xchk_scrub_stats *css = &cs->cs_stats[0]; xchk_stats_estimate_bufsize() local
203 struct xchk_scrub_stats *css; xchk_stats_merge_one() local
340 struct xchk_scrub_stats *css = &cs->cs_stats[0]; xchk_stats_init() local
[all...]
/linux/net/core/
H A Dnetclassid_cgroup.c16 static inline struct cgroup_cls_state *css_cls_state(struct cgroup_subsys_state *css) in css_cls_state() argument
18 return css ? container_of(css, struct cgroup_cls_state, css) : NULL; in css_cls_state()
39 return &cs->css; in cgrp_css_alloc()
42 static int cgrp_css_online(struct cgroup_subsys_state *css) in cgrp_css_online() argument
44 struct cgroup_cls_state *cs = css_cls_state(css); in cgrp_css_online()
45 struct cgroup_cls_state *parent = css_cls_state(css->parent); in cgrp_css_online()
53 static void cgrp_css_free(struct cgroup_subsys_state *css) in cgrp_css_free() argument
55 kfree(css_cls_state(css)); in cgrp_css_free()
109 struct cgroup_subsys_state *css; in cgrp_attach() local
112 cgroup_taskset_for_each(p, css, tset) { in cgrp_attach()
[all …]
H A Dnetprio_cgroup.c93 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_obj(*css); 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()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dcgroup_read_xattr.c61 struct cgroup_subsys_state *css; in BPF_PROG() local
68 bpf_for_each(css, css, &cgrp->self, BPF_CGROUP_ITER_ANCESTORS_UP) in BPF_PROG()
69 read_xattr(css->cgroup); in BPF_PROG()
80 struct cgroup_subsys_state *css; in BPF_PROG() local
87 bpf_for_each(css, css, &cgrp->self, BPF_CGROUP_ITER_ANCESTORS_UP) in BPF_PROG()
88 read_xattr(css->cgroup); in BPF_PROG()
99 struct cgroup_subsys_state *css; in BPF_PROG() local
107 bpf_for_each(css, cs in BPF_PROG()
[all...]
H A Diters_css_task.c26 struct cgroup_subsys_state *css; in BPF_PROG() local
38 css = &cgrp->self; in BPF_PROG()
41 bpf_for_each(css_task, task, css, CSS_TASK_ITER_PROCS) in BPF_PROG()
60 struct cgroup_subsys_state *css; in cgroup_id_printer() local
75 css = &cgrp->self; in cgroup_id_printer()
77 bpf_for_each(css_task, task, css, CSS_TASK_ITER_PROCS) { in cgroup_id_printer()
90 struct cgroup_subsys_state *css; in BPF_PROG() local
95 css = &cgrp->self; in BPF_PROG()
97 bpf_for_each(css_task, task, css, CSS_TASK_ITER_PROCS) { in BPF_PROG()
/linux/kernel/sched/
H A Dcpuacct.c27 struct cgroup_subsys_state css; member
33 static inline struct cpuacct *css_ca(struct cgroup_subsys_state *css) in css_ca() argument
35 return css ? container_of(css, struct cpuacct, css) : NULL; in css_ca()
46 return css_ca(ca->css.parent); in parent_ca()
62 return &root_cpuacct.css; in cpuacct_css_alloc()
76 return &ca->css; in cpuacct_css_alloc()
87 static void cpuacct_css_free(struct cgroup_subsys_state *css) in cpuacct_css_free() argument
89 struct cpuacct *ca = css_ca(css); in cpuacct_css_free()
163 static u64 __cpuusage_read(struct cgroup_subsys_state *css, in __cpuusage_read() argument
166 struct cpuacct *ca = css_ca(css); in __cpuusage_read()
[all …]
/linux/tools/cgroup/
H A Dmemcg_slabinfo.py36 def find_memcg_ids(css=prog['root_mem_cgroup'].css, prefix=''): argument
37 if not list_empty(css.children.address_of_()):
38 for css in list_for_each_entry('struct cgroup_subsys_state',
39 css.children.address_of_(),
41 name = prefix + '/' + css.cgroup.kn.name.string_().decode('utf-8')
42 memcg = container_of(css, 'struct mem_cgroup', 'css')
43 MEMCGS[css.cgroup.kn.id.value_()] = memcg
44 find_memcg_ids(css, name)
/linux/block/
H A Dblk-cgroup-fc-appid.c14 struct cgroup_subsys_state *css; in blkcg_set_fc_appid() local
24 css = cgroup_get_e_css(cgrp, &io_cgrp_subsys); in blkcg_set_fc_appid()
25 if (!css) { in blkcg_set_fc_appid()
29 blkcg = css_to_blkcg(css); in blkcg_set_fc_appid()
38 css_put(css); in blkcg_set_fc_appid()
H A Dblk-cgroup.c53 struct cgroup_subsys_state * const blkcg_root_css = &blkcg_root.css;
101 * blkcg_css - find the current css
103 * Find the css associated with either the kthread or the current task.
104 * This may return a dying css, so it is up to the caller to use tryget logic
109 struct cgroup_subsys_state *css; in blkcg_css() local
111 css = kthread_blkcg(); in blkcg_css()
112 if (css) in blkcg_css()
113 return css; in blkcg_css()
148 * Release blkcg css ref only after blkg is removed from q->blkg_list, in blkg_free_workfn()
151 css_put(&blkg->blkcg->css); in blkg_free_workfn()
652 blkcg_reset_stats(struct cgroup_subsys_state * css,struct cftype * cftype,u64 val) blkcg_reset_stats() argument
1076 blkcg_rstat_flush(struct cgroup_subsys_state * css,int cpu) blkcg_rstat_flush() argument
1221 blkcg_get_cgwb_list(struct cgroup_subsys_state * css) blkcg_get_cgwb_list() argument
1342 blkcg_css_offline(struct cgroup_subsys_state * css) blkcg_css_offline() argument
1351 blkcg_css_free(struct cgroup_subsys_state * css) blkcg_css_free() argument
1446 blkcg_css_online(struct cgroup_subsys_state * css) blkcg_css_online() argument
2089 blkg_tryget_closest(struct bio * bio,struct cgroup_subsys_state * css) blkg_tryget_closest() argument
2133 bio_associate_blkg_from_css(struct bio * bio,struct cgroup_subsys_state * css) bio_associate_blkg_from_css() argument
2158 struct cgroup_subsys_state *css; bio_associate_blkg() local
[all...]
/linux/security/
H A Ddevice_cgroup.c44 struct cgroup_subsys_state css; member
51 return s ? container_of(s, struct dev_cgroup, css) : NULL; in css_to_devcgroup()
188 static int devcgroup_online(struct cgroup_subsys_state *css) in devcgroup_online() argument
190 struct dev_cgroup *dev_cgroup = css_to_devcgroup(css); in devcgroup_online()
191 struct dev_cgroup *parent_dev_cgroup = css_to_devcgroup(css->parent); in devcgroup_online()
209 static void devcgroup_offline(struct cgroup_subsys_state *css) in devcgroup_offline() argument
211 struct dev_cgroup *dev_cgroup = css_to_devcgroup(css); in devcgroup_offline()
232 return &dev_cgroup->css; in devcgroup_css_alloc()
235 static void devcgroup_css_free(struct cgroup_subsys_state *css) in devcgroup_css_free() argument
237 struct dev_cgroup *dev_cgroup = css_to_devcgroup(css); in devcgroup_css_free()
[all …]
/linux/mm/
H A Dhugetlb_cgroup.c59 return s ? container_of(s, struct hugetlb_cgroup, css) : NULL; in hugetlb_cgroup_from_css()
76 return hugetlb_cgroup_from_css(h_cg->css.parent); in parent_hugetlb_cgroup()
170 return &h_cgroup->css; in hugetlb_cgroup_css_alloc()
177 static void hugetlb_cgroup_css_free(struct cgroup_subsys_state *css) in hugetlb_cgroup_css_free() argument
179 hugetlb_cgroup_free(hugetlb_cgroup_from_css(css)); in hugetlb_cgroup_css_free()
255 static void hugetlb_cgroup_css_offline(struct cgroup_subsys_state *css)
257 struct hugetlb_cgroup *h_cg = hugetlb_cgroup_from_css(css); in __hugetlb_cgroup_charge_cgroup()
299 if (!css_tryget(&h_cg->css)) { in hugetlb_cgroup_charge_cgroup_rsvd()
310 css_put(&h_cg->css); in __hugetlb_cgroup_commit_charge()
313 /* Reservations take a reference to the css becaus in __hugetlb_cgroup_commit_charge()
225 hugetlb_cgroup_css_offline(struct cgroup_subsys_state * css) hugetlb_cgroup_css_offline() argument
466 struct cgroup_subsys_state *css; hugetlb_cgroup_read_numa_stat() local
512 hugetlb_cgroup_read_u64(struct cgroup_subsys_state * css,struct cftype * cft) hugetlb_cgroup_read_u64() argument
[all...]

12345