Home
last modified time | relevance | path

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

123456

/linux-6.12.1/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 …]
Dipu3.c234 if (!imgu_css_is_streaming(&imgu->css)) in imgu_queue_buffers()
240 if (!imgu_css_pipe_queue_empty(&imgu->css, pipe)) { in imgu_queue_buffers()
267 r = imgu_css_set_parameters(&imgu->css, pipe, in imgu_queue_buffers()
288 r = imgu_css_buf_queue(&imgu->css, pipe, buf); in imgu_queue_buffers()
354 for_each_set_bit(pipe, imgu->css.enabled_pipes, IMGU_MAX_PIPE_NUM) { in imgu_powerup()
386 imgu_css_stop_streaming(&imgu->css); in imgu_s_stream()
410 r = imgu_css_start_streaming(&imgu->css); in imgu_s_stream()
416 for_each_set_bit(pipe, imgu->css.enabled_pipes, IMGU_MAX_PIPE_NUM) { in imgu_s_stream()
434 for_each_set_bit(pipe, imgu->css.enabled_pipes, IMGU_MAX_PIPE_NUM) in imgu_s_stream()
437 imgu_css_stop_streaming(&imgu->css); in imgu_s_stream()
[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
/linux-6.12.1/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.h98 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,
240 #define css_for_each_descendant_pre(pos, css) \ argument
241 for ((pos) = css_next_descendant_pre(NULL, (css)); (pos); \
242 (pos) = css_next_descendant_pre((pos), (css)))
263 #define css_for_each_descendant_post(pos, css) \ argument
264 for ((pos) = css_next_descendant_post(NULL, (css)); (pos); \
265 (pos) = css_next_descendant_post((pos), (css)))
[all …]
Dmisc_cgroup.h53 struct cgroup_subsys_state css; member
77 static inline struct misc_cg *css_misc(struct cgroup_subsys_state *css) in css_misc() argument
79 return css ? container_of(css, struct misc_cg, css) : NULL; in css_misc()
102 css_put(&cg->css); in put_misc_cg()
Dcgroup-defs.h660 u64 (*read_u64)(struct cgroup_subsys_state *css, struct cftype *cft);
664 s64 (*read_s64)(struct cgroup_subsys_state *css, struct cftype *cft);
679 int (*write_u64)(struct cgroup_subsys_state *css, struct cftype *cft,
684 int (*write_s64)(struct cgroup_subsys_state *css, struct cftype *cft,
708 int (*css_online)(struct cgroup_subsys_state *css);
709 void (*css_offline)(struct cgroup_subsys_state *css);
710 void (*css_released)(struct cgroup_subsys_state *css);
711 void (*css_free)(struct cgroup_subsys_state *css);
712 void (*css_reset)(struct cgroup_subsys_state *css);
713 void (*css_rstat_flush)(struct cgroup_subsys_state *css, int cpu);
[all …]
/linux-6.12.1/fs/xfs/scrub/
Dstats.c92 struct xchk_scrub_stats *css = &cs->cs_stats[0]; in xchk_stats_format() local
97 for (i = 0; i < XFS_SCRUB_TYPE_NR; i++, css++) { in xchk_stats_format()
104 (unsigned int)css->invocations, in xchk_stats_format()
105 (unsigned int)css->clean, in xchk_stats_format()
106 (unsigned int)css->corrupt, in xchk_stats_format()
107 (unsigned int)css->preen, in xchk_stats_format()
108 (unsigned int)css->xfail, in xchk_stats_format()
109 (unsigned int)css->xcorrupt, in xchk_stats_format()
110 (unsigned int)css->incomplete, in xchk_stats_format()
111 (unsigned int)css->warning, in xchk_stats_format()
[all …]
/linux-6.12.1/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()
107 struct cgroup_subsys_state *css; in cgrp_attach() local
110 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.12.1/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()
111 static int freezer_css_online(struct cgroup_subsys_state *css) in freezer_css_online() argument
113 struct freezer *freezer = css_freezer(css); in freezer_css_online()
138 static void freezer_css_offline(struct cgroup_subsys_state *css) in freezer_css_offline() argument
140 struct freezer *freezer = css_freezer(css); in freezer_css_offline()
154 static void freezer_css_free(struct cgroup_subsys_state *css) in freezer_css_free() argument
[all …]
Dcgroup.c249 static void kill_css(struct cgroup_subsys_state *css);
250 static int cgroup_addrm_files(struct cgroup_subsys_state *css,
544 struct cgroup_subsys_state *css; in cgroup_e_css() local
550 css = cgroup_css(cgrp, ss); in cgroup_e_css()
552 if (css) in cgroup_e_css()
553 return css; in cgroup_e_css()
574 struct cgroup_subsys_state *css; in cgroup_get_e_css() local
582 css = cgroup_css(cgrp, ss); in cgroup_get_e_css()
584 if (css && css_tryget_online(css)) in cgroup_get_e_css()
589 css = init_css_set.subsys[ss->id]; in cgroup_get_e_css()
[all …]
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()
304 struct cgroup_subsys_state *css = of_css(of); in pids_max_write() local
305 struct pids_cgroup *pids = css_pids(css); in pids_max_write()
[all …]
Dcpuset-v1.c164 static int cpuset_write_s64(struct cgroup_subsys_state *css, struct cftype *cft, in cpuset_write_s64() argument
167 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()
242 css_task_iter_start(&cs->css, 0, &it); in cpuset1_update_tasks_flags()
268 if (cgroup_transfer_tasks(parent->css.cgroup, cs->css.cgroup)) { in remove_tasks_in_empty_cpuset()
270 pr_cont_cgroup_name(cs->css.cgroup); in remove_tasks_in_empty_cpuset()
281 css_put(&s->cs->css); in cpuset_migrate_tasks_workfn()
315 if (is_empty && cs->css.cgroup->nr_populated_csets && in cpuset1_hotplug_update_tasks()
316 css_tryget_online(&cs->css)) { in cpuset1_hotplug_update_tasks()
[all …]
Dcpuset-internal.h75 struct cgroup_subsys_state css; member
185 static inline struct cpuset *css_cs(struct cgroup_subsys_state *css) in css_cs() argument
187 return css ? container_of(css, struct cpuset, css) : NULL; in css_cs()
198 return css_cs(cs->css.parent); in parent_cs()
204 return test_bit(CS_ONLINE, &cs->flags) && !css_is_dying(&cs->css); in is_cpuset_online()
252 css_for_each_child((pos_css), &(parent_cs)->css) \
267 css_for_each_descendant_pre((pos_css), &(root_cs)->css) \
/linux-6.12.1/drivers/s390/cio/
Dcss.c851 css_generate_pgid(struct channel_subsystem *css, u32 tod_high) in css_generate_pgid() argument
856 css->global_pgid.pgid_high.ext_cssid.version = 0x80; in css_generate_pgid()
857 css->global_pgid.pgid_high.ext_cssid.cssid = in css_generate_pgid()
858 css->id_valid ? css->cssid : 0; in css_generate_pgid()
860 css->global_pgid.pgid_high.cpu_addr = stap(); in css_generate_pgid()
863 css->global_pgid.cpu_id = cpu_id.ident; in css_generate_pgid()
864 css->global_pgid.cpu_model = cpu_id.machine; in css_generate_pgid()
865 css->global_pgid.tod_high = tod_high; in css_generate_pgid()
870 struct channel_subsystem *css = to_css(dev); in channel_subsystem_release() local
872 mutex_destroy(&css->mutex); in channel_subsystem_release()
[all …]
/linux-6.12.1/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.12.1/tools/testing/selftests/bpf/progs/
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()
Diters_task_failure.c41 bpf_for_each(css, pos, root_css, BPF_CGROUP_ITER_DESCENDANTS_POST) { in BPF_PROG()
77 bpf_for_each(css, pos, root_css, BPF_CGROUP_ITER_DESCENDANTS_POST) { in BPF_PROG()
93 struct cgroup_subsys_state *css; in BPF_PROG() local
98 css = &cgrp->self; in BPF_PROG()
100 bpf_for_each(css_task, task, css, CSS_TASK_ITER_PROCS) { in BPF_PROG()
/linux-6.12.1/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()
/linux-6.12.1/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.12.1/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 …]

123456