Home
last modified time | relevance | path

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

12345

/linux-6.6.21/drivers/staging/media/ipu3/
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 …]
Dipu3-css.c313 static void imgu_css_hw_enable_irq(struct imgu_css *css) in imgu_css_hw_enable_irq() argument
315 void __iomem *const base = css->base; in imgu_css_hw_enable_irq()
361 static int imgu_css_hw_init(struct imgu_css *css) in imgu_css_hw_init() argument
412 struct device *dev = css->dev; in imgu_css_hw_init()
413 void __iomem *const base = css->base; in imgu_css_hw_init()
419 &css->fwp->binary_header[css->fw_sp[i]]; in imgu_css_hw_init()
421 writel(css->binary[css->fw_sp[i]].daddr, in imgu_css_hw_init()
427 writel(css->binary[css->fw_bl].daddr, base + IMGU_REG_ISP_ICACHE_ADDR); in imgu_css_hw_init()
469 static int imgu_css_hw_start_sp(struct imgu_css *css, int sp) in imgu_css_hw_start_sp() argument
471 void __iomem *const base = css->base; in imgu_css_hw_start_sp()
[all …]
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 …]
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
Dipu3.c233 if (!imgu_css_is_streaming(&imgu->css)) in imgu_queue_buffers()
239 if (!imgu_css_pipe_queue_empty(&imgu->css, pipe)) { in imgu_queue_buffers()
266 r = imgu_css_set_parameters(&imgu->css, pipe, in imgu_queue_buffers()
287 r = imgu_css_buf_queue(&imgu->css, pipe, buf); in imgu_queue_buffers()
353 for_each_set_bit(pipe, imgu->css.enabled_pipes, IMGU_MAX_PIPE_NUM) { in imgu_powerup()
385 imgu_css_stop_streaming(&imgu->css); in imgu_s_stream()
409 r = imgu_css_start_streaming(&imgu->css); in imgu_s_stream()
415 for_each_set_bit(pipe, imgu->css.enabled_pipes, IMGU_MAX_PIPE_NUM) { in imgu_s_stream()
433 for_each_set_bit(pipe, imgu->css.enabled_pipes, IMGU_MAX_PIPE_NUM) in imgu_s_stream()
436 imgu_css_stop_streaming(&imgu->css); in imgu_s_stream()
[all …]
/linux-6.6.21/fs/xfs/scrub/
Dstats.c89 struct xchk_scrub_stats *css = &cs->cs_stats[0]; in xchk_stats_format() local
94 for (i = 0; i < XFS_SCRUB_TYPE_NR; i++, css++) { in xchk_stats_format()
101 (unsigned int)css->invocations, in xchk_stats_format()
102 (unsigned int)css->clean, in xchk_stats_format()
103 (unsigned int)css->corrupt, in xchk_stats_format()
104 (unsigned int)css->preen, in xchk_stats_format()
105 (unsigned int)css->xfail, in xchk_stats_format()
106 (unsigned int)css->xcorrupt, in xchk_stats_format()
107 (unsigned int)css->incomplete, in xchk_stats_format()
108 (unsigned int)css->warning, in xchk_stats_format()
[all …]
/linux-6.6.21/include/linux/
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 …]
Dcgroup.h99 bool css_has_online_children(struct cgroup_subsys_state *css);
148 struct cgroup_subsys_state *css);
151 struct cgroup_subsys_state *css);
158 void css_task_iter_start(struct cgroup_subsys_state *css, unsigned int flags,
241 #define css_for_each_descendant_pre(pos, css) \ argument
242 for ((pos) = css_next_descendant_pre(NULL, (css)); (pos); \
243 (pos) = css_next_descendant_pre((pos), (css)))
264 #define css_for_each_descendant_post(pos, css) \ argument
265 for ((pos) = css_next_descendant_post(NULL, (css)); (pos); \
266 (pos) = css_next_descendant_post((pos), (css)))
[all …]
Dmisc_cgroup.h49 struct cgroup_subsys_state css; member
71 static inline struct misc_cg *css_misc(struct cgroup_subsys_state *css) in css_misc() argument
73 return css ? container_of(css, struct misc_cg, css) : NULL; in css_misc()
96 css_put(&cg->css); in put_misc_cg()
Dcgroup-defs.h620 u64 (*read_u64)(struct cgroup_subsys_state *css, struct cftype *cft);
624 s64 (*read_s64)(struct cgroup_subsys_state *css, struct cftype *cft);
639 int (*write_u64)(struct cgroup_subsys_state *css, struct cftype *cft,
644 int (*write_s64)(struct cgroup_subsys_state *css, struct cftype *cft,
670 int (*css_online)(struct cgroup_subsys_state *css);
671 void (*css_offline)(struct cgroup_subsys_state *css);
672 void (*css_released)(struct cgroup_subsys_state *css);
673 void (*css_free)(struct cgroup_subsys_state *css);
674 void (*css_reset)(struct cgroup_subsys_state *css);
675 void (*css_rstat_flush)(struct cgroup_subsys_state *css, int cpu);
[all …]
/linux-6.6.21/net/core/
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()
37 return &cs->css; in cgrp_css_alloc()
40 static int cgrp_css_online(struct cgroup_subsys_state *css) in cgrp_css_online() argument
42 struct cgroup_cls_state *cs = css_cls_state(css); in cgrp_css_online()
43 struct cgroup_cls_state *parent = css_cls_state(css->parent); in cgrp_css_online()
51 static void cgrp_css_free(struct cgroup_subsys_state *css) in cgrp_css_free() argument
53 kfree(css_cls_state(css)); in cgrp_css_free()
101 struct cgroup_subsys_state *css; in cgrp_attach() local
104 cgroup_taskset_for_each(p, css, tset) { in cgrp_attach()
[all …]
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(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()
[all …]
/linux-6.6.21/kernel/cgroup/
Ddebug.c17 struct cgroup_subsys_state *css = kzalloc(sizeof(*css), GFP_KERNEL); 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
64 css = cset->subsys[ss->id]; in current_css_set_read()
65 if (!css) in current_css_set_read()
[all …]
Dlegacy_freezer.c45 struct cgroup_subsys_state css; member
51 static inline struct freezer *css_freezer(struct cgroup_subsys_state *css) in css_freezer() argument
53 return css ? container_of(css, struct freezer, css) : NULL; in css_freezer()
63 return css_freezer(freezer->css.parent); in parent_freezer()
101 return &freezer->css; in freezer_css_alloc()
112 static int freezer_css_online(struct cgroup_subsys_state *css) in freezer_css_online() argument
114 struct freezer *freezer = css_freezer(css); in freezer_css_online()
139 static void freezer_css_offline(struct cgroup_subsys_state *css) in freezer_css_offline() argument
141 struct freezer *freezer = css_freezer(css); in freezer_css_offline()
155 static void freezer_css_free(struct cgroup_subsys_state *css) in freezer_css_free() argument
[all …]
Dpids.c42 struct cgroup_subsys_state css; member
59 static struct pids_cgroup *css_pids(struct cgroup_subsys_state *css) in css_pids() argument
61 return container_of(css, struct pids_cgroup, css); in css_pids()
66 return css_pids(pids->css.parent); in parent_pids()
81 return &pids->css; in pids_css_alloc()
84 static void pids_css_free(struct cgroup_subsys_state *css) in pids_css_free() argument
86 kfree(css_pids(css)); in pids_css_free()
240 struct cgroup_subsys_state *css; in pids_can_fork() local
245 css = cset->subsys[pids_cgrp_id]; in pids_can_fork()
247 css = task_css_check(current, pids_cgrp_id, true); in pids_can_fork()
[all …]
Dcgroup.c247 static void kill_css(struct cgroup_subsys_state *css);
248 static int cgroup_addrm_files(struct cgroup_subsys_state *css,
542 struct cgroup_subsys_state *css; in cgroup_e_css() local
548 css = cgroup_css(cgrp, ss); in cgroup_e_css()
550 if (css) in cgroup_e_css()
551 return css; in cgroup_e_css()
572 struct cgroup_subsys_state *css; in cgroup_get_e_css() local
580 css = cgroup_css(cgrp, ss); in cgroup_get_e_css()
582 if (css && css_tryget_online(css)) in cgroup_get_e_css()
587 css = init_css_set.subsys[ss->id]; in cgroup_get_e_css()
[all …]
Dcpuset.c91 struct cgroup_subsys_state css; member
217 static inline struct cpuset *css_cs(struct cgroup_subsys_state *css) in css_cs() argument
219 return css ? container_of(css, struct cpuset, css) : NULL; in css_cs()
230 return css_cs(cs->css.parent); in parent_cs()
262 return test_bit(CS_ONLINE, &cs->flags) && !css_is_dying(&cs->css); in is_cpuset_online()
349 css_for_each_child((pos_css), &(parent_cs)->css) \
364 css_for_each_descendant_pre((pos_css), &(root_cs)->css) \
467 struct cgroup_subsys_state *css; in partition_is_populated() local
470 if (cs->css.cgroup->nr_populated_csets) in partition_is_populated()
473 return cgroup_is_populated(cs->css.cgroup); in partition_is_populated()
[all …]
/linux-6.6.21/drivers/s390/cio/
Dcss.c862 css_generate_pgid(struct channel_subsystem *css, u32 tod_high) in css_generate_pgid() argument
867 css->global_pgid.pgid_high.ext_cssid.version = 0x80; in css_generate_pgid()
868 css->global_pgid.pgid_high.ext_cssid.cssid = in css_generate_pgid()
869 css->id_valid ? css->cssid : 0; in css_generate_pgid()
871 css->global_pgid.pgid_high.cpu_addr = stap(); in css_generate_pgid()
874 css->global_pgid.cpu_id = cpu_id.ident; in css_generate_pgid()
875 css->global_pgid.cpu_model = cpu_id.machine; in css_generate_pgid()
876 css->global_pgid.tod_high = tod_high; in css_generate_pgid()
881 struct channel_subsystem *css = to_css(dev); in channel_subsystem_release() local
883 mutex_destroy(&css->mutex); in channel_subsystem_release()
[all …]
/linux-6.6.21/kernel/sched/
Dcpuacct.c25 struct cgroup_subsys_state css; member
31 static inline struct cpuacct *css_ca(struct cgroup_subsys_state *css) in css_ca() argument
33 return css ? container_of(css, struct cpuacct, css) : NULL; in css_ca()
44 return css_ca(ca->css.parent); in parent_ca()
60 return &root_cpuacct.css; in cpuacct_css_alloc()
74 return &ca->css; in cpuacct_css_alloc()
85 static void cpuacct_css_free(struct cgroup_subsys_state *css) in cpuacct_css_free() argument
87 struct cpuacct *ca = css_ca(css); in cpuacct_css_free()
161 static u64 __cpuusage_read(struct cgroup_subsys_state *css, in __cpuusage_read() argument
164 struct cpuacct *ca = css_ca(css); in __cpuusage_read()
[all …]
/linux-6.6.21/block/
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()
Dblk-cgroup.c52 struct cgroup_subsys_state * const blkcg_root_css = &blkcg_root.css;
105 struct cgroup_subsys_state *css; in blkcg_css() local
107 css = kthread_blkcg(); in blkcg_css()
108 if (css) in blkcg_css()
109 return css; in blkcg_css()
188 css_put(&blkg->blkcg->css); in __blkg_release()
282 return &bio->bi_blkg->blkcg->css; in bio_blkcg_css()
294 return css_to_blkcg(blkcg->css.parent); in blkcg_parent()
390 if (!css_tryget_online(&blkcg->css)) { in blkg_create()
451 css_put(&blkcg->css); in blkg_create()
[all …]
Dblk-cgroup.h94 struct cgroup_subsys_state css; member
119 static inline struct blkcg *css_to_blkcg(struct cgroup_subsys_state *css) in css_to_blkcg() argument
121 return css ? container_of(css, struct blkcg, css) : NULL; in css_to_blkcg()
311 return cgroup_path(blkg->blkcg->css.cgroup, buf, buflen); in blkg_path()
359 css_for_each_descendant_pre((pos_css), &(p_blkg)->blkcg->css) \
374 css_for_each_descendant_post((pos_css), &(p_blkg)->blkcg->css) \
388 atomic_inc(&blkg->blkcg->css.cgroup->congestion_count); in blkcg_use_delay()
413 atomic_dec(&blkg->blkcg->css.cgroup->congestion_count); in blkcg_unuse_delay()
432 atomic_inc(&blkg->blkcg->css.cgroup->congestion_count); in blkcg_set_delay()
449 atomic_dec(&blkg->blkcg->css.cgroup->congestion_count); in blkcg_clear_delay()
/linux-6.6.21/tools/cgroup/
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-6.6.21/security/
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-6.6.21/mm/
Dhugetlb_cgroup.c56 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()
224 static void hugetlb_cgroup_css_offline(struct cgroup_subsys_state *css) in hugetlb_cgroup_css_offline() argument
226 struct hugetlb_cgroup *h_cg = hugetlb_cgroup_from_css(css); in hugetlb_cgroup_css_offline()
274 if (!css_tryget(&h_cg->css)) { in __hugetlb_cgroup_charge_cgroup()
285 css_put(&h_cg->css); in __hugetlb_cgroup_charge_cgroup()
292 css_put(&h_cg->css); in __hugetlb_cgroup_charge_cgroup()
[all …]

12345