Home
last modified time | relevance | path

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

12345

/linux-6.1.9/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.1.9/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.1.9/kernel/cgroup/
Dlegacy_freezer.c44 struct cgroup_subsys_state css; member
50 static inline struct freezer *css_freezer(struct cgroup_subsys_state *css) in css_freezer() argument
52 return css ? container_of(css, struct freezer, css) : NULL; in css_freezer()
62 return css_freezer(freezer->css.parent); in parent_freezer()
94 return &freezer->css; in freezer_css_alloc()
105 static int freezer_css_online(struct cgroup_subsys_state *css) in freezer_css_online() argument
107 struct freezer *freezer = css_freezer(css); in freezer_css_online()
130 static void freezer_css_offline(struct cgroup_subsys_state *css) in freezer_css_offline() argument
132 struct freezer *freezer = css_freezer(css); in freezer_css_offline()
144 static void freezer_css_free(struct cgroup_subsys_state *css) in freezer_css_free() argument
[all …]
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 …]
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.c246 static void kill_css(struct cgroup_subsys_state *css);
247 static int cgroup_addrm_files(struct cgroup_subsys_state *css,
501 struct cgroup_subsys_state *css; in cgroup_tryget_css() local
504 css = cgroup_css(cgrp, ss); in cgroup_tryget_css()
505 if (css && !css_tryget_online(css)) in cgroup_tryget_css()
506 css = NULL; in cgroup_tryget_css()
509 return css; in cgroup_tryget_css()
559 struct cgroup_subsys_state *css; in cgroup_e_css() local
565 css = cgroup_css(cgrp, ss); in cgroup_e_css()
567 if (css) in cgroup_e_css()
[all …]
Dcpuset.c114 struct cgroup_subsys_state css; member
232 static inline struct cpuset *css_cs(struct cgroup_subsys_state *css) in css_cs() argument
234 return css ? container_of(css, struct cpuset, css) : NULL; in css_cs()
245 return css_cs(cs->css.parent); in parent_cs()
263 return test_bit(CS_ONLINE, &cs->flags) && !css_is_dying(&cs->css); in is_cpuset_online()
350 css_for_each_child((pos_css), &(parent_cs)->css) \
365 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.1.9/include/linux/
Dcgroup.h99 bool css_has_online_children(struct cgroup_subsys_state *css);
149 struct cgroup_subsys_state *css);
152 struct cgroup_subsys_state *css);
159 void css_task_iter_start(struct cgroup_subsys_state *css, unsigned int flags,
242 #define css_for_each_descendant_pre(pos, css) \ argument
243 for ((pos) = css_next_descendant_pre(NULL, (css)); (pos); \
244 (pos) = css_next_descendant_pre((pos), (css)))
265 #define css_for_each_descendant_post(pos, css) \ argument
266 for ((pos) = css_next_descendant_post(NULL, (css)); (pos); \
267 (pos) = css_next_descendant_post((pos), (css)))
[all …]
Dmisc_cgroup.h48 struct cgroup_subsys_state css; member
72 static inline struct misc_cg *css_misc(struct cgroup_subsys_state *css) in css_misc() argument
74 return css ? container_of(css, struct misc_cg, css) : NULL; in css_misc()
97 css_put(&cg->css); in put_misc_cg()
Dcgroup-defs.h602 u64 (*read_u64)(struct cgroup_subsys_state *css, struct cftype *cft);
606 s64 (*read_s64)(struct cgroup_subsys_state *css, struct cftype *cft);
621 int (*write_u64)(struct cgroup_subsys_state *css, struct cftype *cft,
626 int (*write_s64)(struct cgroup_subsys_state *css, struct cftype *cft,
652 int (*css_online)(struct cgroup_subsys_state *css);
653 void (*css_offline)(struct cgroup_subsys_state *css);
654 void (*css_released)(struct cgroup_subsys_state *css);
655 void (*css_free)(struct cgroup_subsys_state *css);
656 void (*css_reset)(struct cgroup_subsys_state *css);
657 void (*css_rstat_flush)(struct cgroup_subsys_state *css, int cpu);
[all …]
Dhugetlb_cgroup.h45 struct cgroup_subsys_state css; member
127 css_put(&h_cg->css); in hugetlb_cgroup_put_rsvd_cgroup()
133 if (resv_map->css) in resv_map_dup_hugetlb_cgroup_uncharge_info()
134 css_get(resv_map->css); in resv_map_dup_hugetlb_cgroup_uncharge_info()
140 if (resv_map->css) in resv_map_put_hugetlb_cgroup_uncharge_info()
141 css_put(resv_map->css); in resv_map_put_hugetlb_cgroup_uncharge_info()
/linux-6.1.9/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.1.9/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.1.9/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.h89 struct cgroup_subsys_state css; member
108 static inline struct blkcg *css_to_blkcg(struct cgroup_subsys_state *css) in css_to_blkcg() argument
110 return css ? container_of(css, struct blkcg, css) : NULL; in css_to_blkcg()
301 return cgroup_path(blkg->blkcg->css.cgroup, buf, buflen); in blkg_path()
349 css_for_each_descendant_pre((pos_css), &(p_blkg)->blkcg->css) \
364 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()
Dblk-cgroup.c51 struct cgroup_subsys_state * const blkcg_root_css = &blkcg_root.css;
72 struct cgroup_subsys_state *css; in blkcg_css() local
74 css = kthread_blkcg(); in blkcg_css()
75 if (css) in blkcg_css()
76 return css; in blkcg_css()
129 css_put(&blkg->blkcg->css); in __blkg_release()
188 return &bio->bi_blkg->blkcg->css; in bio_blkcg_css()
200 return css_to_blkcg(blkcg->css.parent); in blkcg_parent()
286 if (!css_tryget_online(&blkcg->css)) { in blkg_create()
344 css_put(&blkcg->css); in blkg_create()
[all …]
/linux-6.1.9/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.1.9/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.1.9/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()
223 static void hugetlb_cgroup_css_offline(struct cgroup_subsys_state *css) in hugetlb_cgroup_css_offline() argument
225 struct hugetlb_cgroup *h_cg = hugetlb_cgroup_from_css(css); in hugetlb_cgroup_css_offline()
273 if (!css_tryget(&h_cg->css)) { in __hugetlb_cgroup_charge_cgroup()
284 css_put(&h_cg->css); in __hugetlb_cgroup_charge_cgroup()
291 css_put(&h_cg->css); in __hugetlb_cgroup_charge_cgroup()
[all …]
Dmemcontrol.c372 return &memcg->css; in mem_cgroup_css_from_page()
396 while (memcg && !(memcg->css.flags & CSS_ONLINE)) in page_cgroup_ino()
399 ino = cgroup_ino(memcg->css.cgroup); in page_cgroup_ino()
544 !css_tryget(&mz->memcg->css)) in __mem_cgroup_largest_soft_limit_node()
611 cgroup_rstat_updated(memcg->css.cgroup, smp_processor_id()); in memcg_rstat_updated()
635 cgroup_rstat_flush_irqsafe(root_mem_cgroup->css.cgroup); in __mem_cgroup_flush_stats()
1028 css_get(&memcg->css); in get_mem_cgroup_from_mm()
1041 } while (!css_tryget(&memcg->css)); in get_mem_cgroup_from_mm()
1082 struct cgroup_subsys_state *css = NULL; in mem_cgroup_iter() local
1111 if (!pos || css_tryget(&pos->css)) in mem_cgroup_iter()
[all …]

12345