/linux-master/include/linux/ |
H A D | cgroup_refcnt.h | 2 * css_get - obtain a reference on the specified css 3 * @css: target css 8 void css_get(struct cgroup_subsys_state *css) argument 10 if (!(css->flags & CSS_NO_REF)) 11 percpu_ref_get(&css->refcnt); 16 * css_get_many - obtain references on the specified css 17 * @css: target css 23 void css_get_many(struct cgroup_subsys_state *css, unsigne argument 42 css_tryget(struct cgroup_subsys_state *css) argument 61 css_tryget_online(struct cgroup_subsys_state *css) argument 76 css_put(struct cgroup_subsys_state *css) argument 91 css_put_many(struct cgroup_subsys_state *css, unsigned int n) argument [all...] |
H A D | misc_cgroup.h | 44 * @css: cgroup subsys state object. 49 struct cgroup_subsys_state css; member in struct:misc_cg 63 * css_misc() - Get misc cgroup from the css. 64 * @css: cgroup subsys state object. 68 * * %NULL - If @css is null. 69 * * struct misc_cg* - misc cgroup pointer of the passed css. 71 static inline struct misc_cg *css_misc(struct cgroup_subsys_state *css) argument 73 return css ? container_of(css, struct misc_cg, css) [all...] |
H A D | cgroup_rdma.h | 20 struct cgroup_subsys_state css; member in struct:rdma_cgroup
|
H A D | cgroup.h | 98 bool css_has_online_children(struct cgroup_subsys_state *css); 147 struct cgroup_subsys_state *css); 150 struct cgroup_subsys_state *css); 157 void css_task_iter_start(struct cgroup_subsys_state *css, unsigned int flags, 163 * css_for_each_child - iterate through children of a css 164 * @pos: the css * to use as the loop cursor 165 * @parent: css whose children to walk 170 * css which finished ->css_online() is guaranteed to be visible in the 172 * A css which hasn't finished ->css_online() or already finished 178 * the start of the next iteration by, for example, bumping the css refcn 344 css_is_dying(struct cgroup_subsys_state *css) argument 449 struct cgroup_subsys_state *css; local 641 css_get(struct cgroup_subsys_state *css) argument 642 css_put(struct cgroup_subsys_state *css) argument [all...] |
H A D | hugetlb_cgroup.h | 36 struct cgroup_subsys_state css; member in struct:hugetlb_cgroup 110 css_put(&h_cg->css); 116 if (resv_map->css) 117 css_get(resv_map->css); 123 if (resv_map->css) 124 css_put(resv_map->css);
|
H A D | cgroup-defs.h | 51 CSS_NO_REF = (1 << 0), /* no reference counting for this css */ 54 CSS_VISIBLE = (1 << 3), /* css is visible to userland */ 55 CSS_DYING = (1 << 4), /* css is dying */ 161 /* PI: the cgroup that this css is attached to */ 164 /* PI: the cgroup subsystem that this css is attached to */ 179 * matching css can be looked up using css_from_id(). 204 * PI: the parent css. Placed here for cache proximity to following 257 * On the default hierarchy, ->subsys[ssid] may point to a css 261 * iterate through all css's attached to a given cgroup. 398 /* self css wit [all...] |
/linux-master/drivers/staging/media/ipu3/ |
H A D | Makefile | 8 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
|
H A D | ipu3-css-fw.c | 9 #include "ipu3-css.h" 10 #include "ipu3-css-fw.h" 72 void *imgu_css_fw_pipeline_params(struct imgu_css *css, unsigned int pipe, argument 79 &css->fwp->binary_header[css->pipes[pipe].bindex]; 94 void imgu_css_fw_cleanup(struct imgu_css *css) argument 96 struct imgu_device *imgu = dev_get_drvdata(css->dev); 98 if (css->binary) { 101 for (i = 0; i < css->fwp->file_header.binary_nr; i++) 102 imgu_dmamap_free(imgu, &css 112 imgu_css_fw_init(struct imgu_css *css) argument [all...] |
H A D | ipu3-css-params.h | 7 int imgu_css_cfg_acc(struct imgu_css *css, unsigned int pipe, 13 int imgu_css_cfg_vmem0(struct imgu_css *css, unsigned int pipe, 18 int imgu_css_cfg_dmem0(struct imgu_css *css, unsigned int pipe,
|
H A D | ipu3-css.c | 9 #include "ipu3-css.h" 10 #include "ipu3-css-fw.h" 11 #include "ipu3-css-params.h" 173 /******************* css hw *******************/ 217 /* Reset the css */ 298 /* wait for css idle signal */ 301 dev_warn(dev, "wait css idle timeout\n"); 303 /* do halt-halted handshake with css */ 307 dev_warn(dev, "failed to halt css"); 313 static void imgu_css_hw_enable_irq(struct imgu_css *css) argument 361 imgu_css_hw_init(struct imgu_css *css) argument 469 imgu_css_hw_start_sp(struct imgu_css *css, int sp) argument 500 imgu_css_hw_start(struct imgu_css *css) argument 607 imgu_css_hw_stop(struct imgu_css *css) argument 627 imgu_css_hw_cleanup(struct imgu_css *css) argument 649 imgu_css_pipeline_cleanup(struct imgu_css *css, unsigned int pipe) argument 668 imgu_css_pipeline_init(struct imgu_css *css, unsigned int pipe) argument 1057 imgu_css_queue_pos(struct imgu_css *css, int queue, int thread) argument 1070 imgu_css_queue_data(struct imgu_css *css, int queue, int thread, u32 data) argument 1109 imgu_css_dequeue_data(struct imgu_css *css, int queue, u32 *data) argument 1156 imgu_css_binary_cleanup(struct imgu_css *css, unsigned int pipe) argument 1179 imgu_css_binary_preallocate(struct imgu_css *css, unsigned int pipe) argument 1214 imgu_css_binary_setup(struct imgu_css *css, unsigned int pipe) argument 1284 imgu_css_start_streaming(struct imgu_css *css) argument 1354 imgu_css_stop_streaming(struct imgu_css *css) argument 1392 imgu_css_pipe_queue_empty(struct imgu_css *css, unsigned int pipe) argument 1405 imgu_css_queue_empty(struct imgu_css *css) argument 1416 imgu_css_is_streaming(struct imgu_css *css) argument 1421 imgu_css_map_init(struct imgu_css *css, unsigned int pipe) argument 1463 imgu_css_pipe_cleanup(struct imgu_css *css, unsigned int pipe) argument 1488 imgu_css_cleanup(struct imgu_css *css) argument 1500 imgu_css_init(struct device *dev, struct imgu_css *css, void __iomem *base, int length) argument 1548 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]) argument 1672 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) argument 1828 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) argument 1891 imgu_css_buf_queue(struct imgu_css *css, unsigned int pipe, struct imgu_css_buffer *b) argument 1965 imgu_css_buf_dequeue(struct imgu_css *css) argument 2101 imgu_css_set_parameters(struct imgu_css *css, unsigned int pipe, struct ipu3_uapi_params *set_params) argument 2313 imgu_css_irq_ack(struct imgu_css *css) argument [all...] |
H A D | ipu3-css.h | 11 #include "ipu3-css-pool.h" 166 /******************* css v4l *******************/ 167 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); [all...] |
/linux-master/fs/xfs/scrub/ |
H A D | stats.c | 91 struct xchk_scrub_stats *css = &cs->cs_stats[0]; local 96 for (i = 0; i < XFS_SCRUB_TYPE_NR; i++, css++) { 103 (unsigned int)css->invocations, 104 (unsigned int)css->clean, 105 (unsigned int)css->corrupt, 106 (unsigned int)css->preen, 107 (unsigned int)css->xfail, 108 (unsigned int)css->xcorrupt, 109 (unsigned int)css->incomplete, 110 (unsigned int)css 132 struct xchk_scrub_stats *css = &cs->cs_stats[0]; local 165 struct xchk_scrub_stats *css = &cs->cs_stats[0]; local 188 struct xchk_scrub_stats *css; local 312 struct xchk_scrub_stats *css = &cs->cs_stats[0]; local [all...] |
/linux-master/net/core/ |
H A D | netclassid_cgroup.c | 16 static inline struct cgroup_cls_state *css_cls_state(struct cgroup_subsys_state *css) argument 18 return css ? container_of(css, struct cgroup_cls_state, css) : NULL; 37 return &cs->css; 40 static int cgrp_css_online(struct cgroup_subsys_state *css) argument 42 struct cgroup_cls_state *cs = css_cls_state(css); 43 struct cgroup_cls_state *parent = css_cls_state(css->parent); 51 static void cgrp_css_free(struct cgroup_subsys_state *css) argument 53 kfree(css_cls_state(css)); 107 struct cgroup_subsys_state *css; local 115 read_classid(struct cgroup_subsys_state *css, struct cftype *cft) argument 120 write_classid(struct cgroup_subsys_state *css, struct cftype *cft, u64 value) argument [all...] |
H A D | netprio_cgroup.c | 30 * css->id. Limiting css ID to 16bits doesn't lose anything. 88 * @css: css part of the target pair 93 static u32 netprio_prio(struct cgroup_subsys_state *css, struct net_device *dev) argument 96 int id = css->id; 105 * @css: css part of the target pair 109 * Set netprio to @prio on @css-@dev pair. Should be called under rtnl 112 static int netprio_set_prio(struct cgroup_subsys_state *css, argument 136 struct cgroup_subsys_state *css; local 145 cgrp_css_online(struct cgroup_subsys_state *css) argument 173 cgrp_css_free(struct cgroup_subsys_state *css) argument 178 read_prioidx(struct cgroup_subsys_state *css, struct cftype *cft) argument 232 struct cgroup_subsys_state *css; local [all...] |
/linux-master/block/ |
H A D | blk-cgroup-fc-appid.c | 14 struct cgroup_subsys_state *css; local 24 css = cgroup_get_e_css(cgrp, &io_cgrp_subsys); 25 if (!css) { 29 blkcg = css_to_blkcg(css); 38 css_put(css);
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | iters_css_task.c | 26 struct cgroup_subsys_state *css; local 38 css = &cgrp->self; 41 bpf_for_each(css_task, task, css, CSS_TASK_ITER_PROCS) 60 struct cgroup_subsys_state *css; local 75 css = &cgrp->self; 77 bpf_for_each(css_task, task, css, CSS_TASK_ITER_PROCS) { 90 struct cgroup_subsys_state *css; local 95 css = &cgrp->self; 97 bpf_for_each(css_task, task, css, CSS_TASK_ITER_PROCS) {
|
H A D | iters_css.c | 50 bpf_for_each(css, pos, root_css, BPF_CGROUP_ITER_DESCENDANTS_POST) { 56 bpf_for_each(css, pos, root_css, BPF_CGROUP_ITER_DESCENDANTS_PRE) { 63 bpf_for_each(css, pos, leaf_css, BPF_CGROUP_ITER_ANCESTORS_UP) 66 bpf_for_each(css, pos, root_css, BPF_CGROUP_ITER_ANCESTORS_UP)
|
H A D | iters_task_failure.c | 41 bpf_for_each(css, pos, root_css, BPF_CGROUP_ITER_DESCENDANTS_POST) { 77 bpf_for_each(css, pos, root_css, BPF_CGROUP_ITER_DESCENDANTS_POST) { 93 struct cgroup_subsys_state *css; local 98 css = &cgrp->self; 100 bpf_for_each(css_task, task, css, CSS_TASK_ITER_PROCS) {
|
/linux-master/include/net/ |
H A D | netprio_cgroup.h | 24 struct cgroup_subsys_state *css; local 28 css = task_css(p, net_prio_cgrp_id); 29 idx = css->id;
|
/linux-master/kernel/cgroup/ |
H A D | debug.c | 17 struct cgroup_subsys_state *css = kzalloc(sizeof(*css), GFP_KERNEL); local 19 if (!css) 22 return css; 25 static void debug_css_free(struct cgroup_subsys_state *css) argument 27 kfree(css); 34 static u64 debug_taskcount_read(struct cgroup_subsys_state *css, argument 37 return cgroup_task_count(css->cgroup); 45 struct cgroup_subsys_state *css; local 61 * Print the css'e 76 current_css_set_refcount_read(struct cgroup_subsys_state *css, struct cftype *cft) argument 116 struct cgroup_subsys_state *css = seq_css(seq); local 208 struct cgroup_subsys_state *css; local 271 releasable_read(struct cgroup_subsys_state *css, struct cftype *cft) argument [all...] |
H A D | pids.c | 42 struct cgroup_subsys_state css; member in struct:pids_cgroup 59 static struct pids_cgroup *css_pids(struct cgroup_subsys_state *css) argument 61 return container_of(css, struct pids_cgroup, css); 66 return css_pids(pids->css.parent); 81 return &pids->css; 84 static void pids_css_free(struct cgroup_subsys_state *css) argument 86 kfree(css_pids(css)); 240 struct cgroup_subsys_state *css; local 245 css 264 struct cgroup_subsys_state *css; local 285 struct cgroup_subsys_state *css = of_css(of); local 314 struct cgroup_subsys_state *css = seq_css(sf); local 326 pids_current_read(struct cgroup_subsys_state *css, struct cftype *cft) argument 334 pids_peak_read(struct cgroup_subsys_state *css, struct cftype *cft) argument [all...] |
H A D | legacy_freezer.c | 45 struct cgroup_subsys_state css; member in struct:freezer 51 static inline struct freezer *css_freezer(struct cgroup_subsys_state *css) argument 53 return css ? container_of(css, struct freezer, css) : NULL; 63 return css_freezer(freezer->css.parent); 101 return &freezer->css; 105 * freezer_css_online - commit creation of a freezer css 106 * @css: css bein 112 freezer_css_online(struct cgroup_subsys_state *css) argument 139 freezer_css_offline(struct cgroup_subsys_state *css) argument 155 freezer_css_free(struct cgroup_subsys_state *css) argument 256 update_if_frozen(struct cgroup_subsys_state *css) argument 297 struct cgroup_subsys_state *css = seq_css(m), *pos; local 443 freezer_self_freezing_read(struct cgroup_subsys_state *css, struct cftype *cft) argument 451 freezer_parent_freezing_read(struct cgroup_subsys_state *css, struct cftype *cft) argument [all...] |
H A D | cgroup.c | 110 * against file removal/re-creation across css hiding. 249 static void kill_css(struct cgroup_subsys_state *css); 250 static int cgroup_addrm_files(struct cgroup_subsys_state *css, 477 * cgroup_css - obtain a cgroup's css for the specified subsystem 481 * Return @cgrp's css (cgroup_subsys_state) associated with @ss. This 483 * the caller is responsible for pinning the returned css if it wants to 498 * cgroup_e_css_by_mask - obtain a cgroup's effective css for the specified ss 502 * Similar to cgroup_css() but returns the effective css, which is defined 503 * as the matching css of the nearest ancestor including self which has @ss 505 * function is guaranteed to return non-NULL css 544 struct cgroup_subsys_state *css; local 574 struct cgroup_subsys_state *css; local 912 css_set_hash(struct cgroup_subsys_state **css) argument 1240 struct cgroup_subsys_state *css = cset->subsys[ssid]; local 1678 struct cgroup_subsys_state *css = cgroup_css(cgrp, cft->ss); local 1695 css_clear_dir(struct cgroup_subsys_state *css) argument 1728 css_populate_dir(struct cgroup_subsys_state *css) argument 1825 struct cgroup_subsys_state *css = cgroup_css(scgrp, ss); local 3096 struct cgroup_subsys_state *css = cgroup_css(dsct, ss); local 3177 css_visible(struct cgroup_subsys_state *css) argument 3211 struct cgroup_subsys_state *css = cgroup_css(dsct, ss); local 3257 struct cgroup_subsys_state *css = cgroup_css(dsct, ss); local 3678 struct cgroup_subsys_state *css; local 3693 struct cgroup_subsys_state *css; local 3712 struct cgroup_subsys_state *css; local 3990 struct cgroup_subsys_state *css; local 4074 struct cgroup_subsys_state *css; local 4150 struct cgroup_subsys_state *css = seq_css(m); local 4191 cgroup_add_file(struct cgroup_subsys_state *css, struct cgroup *cgrp, struct cftype *cft) argument 4232 cgroup_addrm_files(struct cgroup_subsys_state *css, struct cgroup *cgrp, struct cftype cfts[], bool is_add) argument 4274 struct cgroup_subsys_state *css; local 4721 css_has_online_children(struct cgroup_subsys_state *css) argument 4919 css_task_iter_start(struct cgroup_subsys_state *css, unsigned int flags, struct css_task_iter *it) argument 5350 struct cgroup_subsys_state *css = container_of(to_rcu_work(work), local 5400 struct cgroup_subsys_state *css = local 5454 struct cgroup_subsys_state *css = local 5461 init_and_link_css(struct cgroup_subsys_state *css, struct cgroup_subsys *ss, struct cgroup *cgrp) argument 5490 online_css(struct cgroup_subsys_state *css) argument 5511 offline_css(struct cgroup_subsys_state *css) argument 5543 struct cgroup_subsys_state *css; local 5788 struct cgroup_subsys_state *css = local 5806 struct cgroup_subsys_state *css = local 5824 kill_css(struct cgroup_subsys_state *css) argument 5886 struct cgroup_subsys_state *css; variable in typeref:struct:cgroup_subsys_state 5980 struct cgroup_subsys_state *css; local 6103 struct cgroup_subsys_state *css = local 6344 struct cgroup_subsys_state *css; local 6791 struct cgroup_subsys_state *css = NULL; local [all...] |
/linux-master/kernel/sched/ |
H A D | cpuacct.c | 25 struct cgroup_subsys_state css; member in struct:cpuacct 31 static inline struct cpuacct *css_ca(struct cgroup_subsys_state *css) argument 33 return css ? container_of(css, struct cpuacct, css) : NULL; 44 return css_ca(ca->css.parent); 60 return &root_cpuacct.css; 74 return &ca->css; 85 static void cpuacct_css_free(struct cgroup_subsys_state *css) argument 87 struct cpuacct *ca = css_ca(css); 161 __cpuusage_read(struct cgroup_subsys_state *css, enum cpuacct_stat_index index) argument 174 cpuusage_user_read(struct cgroup_subsys_state *css, struct cftype *cft) argument 180 cpuusage_sys_read(struct cgroup_subsys_state *css, struct cftype *cft) argument 186 cpuusage_read(struct cgroup_subsys_state *css, struct cftype *cft) argument 191 cpuusage_write(struct cgroup_subsys_state *css, struct cftype *cft, u64 val) argument [all...] |
/linux-master/drivers/s390/cio/ |
H A D | css.c | 27 #include "css.h" 322 return sprintf(buf, "css:t%01X\n", sch->st); 851 css_generate_pgid(struct channel_subsystem *css, u32 tod_high) argument 856 css->global_pgid.pgid_high.ext_cssid.version = 0x80; 857 css->global_pgid.pgid_high.ext_cssid.cssid = 858 css->id_valid ? css->cssid : 0; 860 css->global_pgid.pgid_high.cpu_addr = stap(); 863 css->global_pgid.cpu_id = cpu_id.ident; 864 css 870 struct channel_subsystem *css = to_css(dev); local 879 struct channel_subsystem *css = to_css(dev); local 903 struct channel_subsystem *css = to_css(dev); local 915 struct channel_subsystem *css = to_css(dev); local 972 struct channel_subsystem *css; local 1040 struct channel_subsystem *css; local 1225 struct channel_subsystem *css = channel_subsystems[i]; local 1241 struct channel_subsystem *css; local [all...] |