/kernel/linux/linux-5.10/drivers/staging/media/ipu3/ |
D | ipu3-css-fw.c | 72 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 …]
|
D | ipu3-css.c | 326 static void imgu_css_hw_enable_irq(struct imgu_css *css) in imgu_css_hw_enable_irq() argument 328 void __iomem *const base = css->base; in imgu_css_hw_enable_irq() 374 static int imgu_css_hw_init(struct imgu_css *css) in imgu_css_hw_init() argument 425 struct device *dev = css->dev; in imgu_css_hw_init() 426 void __iomem *const base = css->base; in imgu_css_hw_init() 432 &css->fwp->binary_header[css->fw_sp[i]]; in imgu_css_hw_init() 434 writel(css->binary[css->fw_sp[i]].daddr, in imgu_css_hw_init() 440 writel(css->binary[css->fw_bl].daddr, base + IMGU_REG_ISP_ICACHE_ADDR); in imgu_css_hw_init() 482 static int imgu_css_hw_start_sp(struct imgu_css *css, int sp) in imgu_css_hw_start_sp() argument 484 void __iomem *const base = css->base; in imgu_css_hw_start_sp() [all …]
|
D | ipu3-css.h | 168 int imgu_css_init(struct device *dev, struct imgu_css *css, 170 void imgu_css_cleanup(struct imgu_css *css); 171 int imgu_css_fmt_try(struct imgu_css *css, 175 int imgu_css_fmt_set(struct imgu_css *css, 180 int imgu_css_buf_queue(struct imgu_css *css, unsigned int pipe, 182 struct imgu_css_buffer *imgu_css_buf_dequeue(struct imgu_css *css); 183 int imgu_css_start_streaming(struct imgu_css *css); 184 void imgu_css_stop_streaming(struct imgu_css *css); 185 bool imgu_css_queue_empty(struct imgu_css *css); 186 bool imgu_css_is_streaming(struct imgu_css *css); [all …]
|
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
|
D | ipu3.c | 233 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() 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 …]
|
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,
|
/kernel/linux/linux-5.10/net/core/ |
D | netclassid_cgroup.c | 16 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() 102 struct cgroup_subsys_state *css; in cgrp_attach() local 105 cgroup_taskset_for_each(p, css, tset) { in cgrp_attach() [all …]
|
D | netprio_cgroup.c | 93 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 …]
|
/kernel/linux/linux-5.10/kernel/cgroup/ |
D | legacy_freezer.c | 44 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 …]
|
D | debug.c | 17 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 …]
|
D | pids.c | 42 struct cgroup_subsys_state css; member 58 static struct pids_cgroup *css_pids(struct cgroup_subsys_state *css) in css_pids() argument 60 return container_of(css, struct pids_cgroup, css); in css_pids() 65 return css_pids(pids->css.parent); in parent_pids() 80 return &pids->css; in pids_css_alloc() 83 static void pids_css_free(struct cgroup_subsys_state *css) in pids_css_free() argument 85 kfree(css_pids(css)); in pids_css_free() 220 struct cgroup_subsys_state *css; in pids_can_fork() local 225 css = cset->subsys[pids_cgrp_id]; in pids_can_fork() 227 css = task_css_check(current, pids_cgrp_id, true); in pids_can_fork() [all …]
|
D | cgroup.c | 220 static void kill_css(struct cgroup_subsys_state *css); 221 static int cgroup_addrm_files(struct cgroup_subsys_state *css, 480 struct cgroup_subsys_state *css; in cgroup_tryget_css() local 483 css = cgroup_css(cgrp, ss); in cgroup_tryget_css() 484 if (css && !css_tryget_online(css)) in cgroup_tryget_css() 485 css = NULL; in cgroup_tryget_css() 488 return css; in cgroup_tryget_css() 538 struct cgroup_subsys_state *css; in cgroup_e_css() local 541 css = cgroup_css(cgrp, ss); in cgroup_e_css() 543 if (css) in cgroup_e_css() [all …]
|
D | cpuset.c | 83 struct cgroup_subsys_state css; member 194 static inline struct cpuset *css_cs(struct cgroup_subsys_state *css) in css_cs() argument 196 return css ? container_of(css, struct cpuset, css) : NULL; in css_cs() 207 return css_cs(cs->css.parent); in parent_cs() 225 return test_bit(CS_ONLINE, &cs->flags) && !css_is_dying(&cs->css); in is_cpuset_online() 284 css_for_each_child((pos_css), &(parent_cs)->css) \ 299 css_for_each_descendant_pre((pos_css), &(root_cs)->css) \ 579 struct cgroup_subsys_state *css; in validate_change() local 587 cpuset_for_each_child(c, css, cur) in validate_change() 608 cpuset_for_each_child(c, css, par) { in validate_change() [all …]
|
/kernel/linux/linux-5.10/drivers/s390/cio/ |
D | css.c | 867 css_generate_pgid(struct channel_subsystem *css, u32 tod_high) in css_generate_pgid() argument 872 css->global_pgid.pgid_high.ext_cssid.version = 0x80; in css_generate_pgid() 873 css->global_pgid.pgid_high.ext_cssid.cssid = in css_generate_pgid() 874 css->id_valid ? css->cssid : 0; in css_generate_pgid() 876 css->global_pgid.pgid_high.cpu_addr = stap(); in css_generate_pgid() 879 css->global_pgid.cpu_id = cpu_id.ident; in css_generate_pgid() 880 css->global_pgid.cpu_model = cpu_id.machine; in css_generate_pgid() 881 css->global_pgid.tod_high = tod_high; in css_generate_pgid() 886 struct channel_subsystem *css = to_css(dev); in channel_subsystem_release() local 888 mutex_destroy(&css->mutex); in channel_subsystem_release() [all …]
|
D | chsc.c | 777 chsc_remove_cmg_attr(struct channel_subsystem *css) in chsc_remove_cmg_attr() argument 782 if (!css->chps[i]) in chsc_remove_cmg_attr() 784 chp_remove_cmg_attr(css->chps[i]); in chsc_remove_cmg_attr() 789 chsc_add_cmg_attr(struct channel_subsystem *css) in chsc_add_cmg_attr() argument 795 if (!css->chps[i]) in chsc_add_cmg_attr() 797 ret = chp_add_cmg_attr(css->chps[i]); in chsc_add_cmg_attr() 804 if (!css->chps[i]) in chsc_add_cmg_attr() 806 chp_remove_cmg_attr(css->chps[i]); in chsc_add_cmg_attr() 811 int __chsc_do_secm(struct channel_subsystem *css, int enable) in __chsc_do_secm() argument 840 secm_area->cub_addr1 = (u64)(unsigned long)css->cub_addr1; in __chsc_do_secm() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | cgroup.h | 99 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 …]
|
D | blk-cgroup.h | 48 struct cgroup_subsys_state css; member 220 struct cgroup_subsys_state *css; in blkcg_css() local 222 css = kthread_blkcg(); in blkcg_css() 223 if (css) in blkcg_css() 224 return css; in blkcg_css() 228 static inline struct blkcg *css_to_blkcg(struct cgroup_subsys_state *css) in css_to_blkcg() argument 230 return css ? container_of(css, struct blkcg, css) : NULL; in css_to_blkcg() 271 struct cgroup_subsys_state *css; in blk_cgroup_congested() local 275 css = kthread_blkcg(); in blk_cgroup_congested() 276 if (!css) in blk_cgroup_congested() [all …]
|
D | cgroup-defs.h | 577 u64 (*read_u64)(struct cgroup_subsys_state *css, struct cftype *cft); 581 s64 (*read_s64)(struct cgroup_subsys_state *css, struct cftype *cft); 596 int (*write_u64)(struct cgroup_subsys_state *css, struct cftype *cft, 601 int (*write_s64)(struct cgroup_subsys_state *css, struct cftype *cft, 627 int (*css_online)(struct cgroup_subsys_state *css); 628 void (*css_offline)(struct cgroup_subsys_state *css); 629 void (*css_released)(struct cgroup_subsys_state *css); 630 void (*css_free)(struct cgroup_subsys_state *css); 631 void (*css_reset)(struct cgroup_subsys_state *css); 632 void (*css_rstat_flush)(struct cgroup_subsys_state *css, int cpu); [all …]
|
/kernel/linux/linux-5.10/kernel/sched/ |
D | cpuacct.c | 30 struct cgroup_subsys_state css; member 36 static inline struct cpuacct *css_ca(struct cgroup_subsys_state *css) in css_ca() argument 38 return css ? container_of(css, struct cpuacct, css) : NULL; in css_ca() 49 return css_ca(ca->css.parent); in parent_ca() 65 return &root_cpuacct.css; in cpuacct_css_alloc() 79 return &ca->css; in cpuacct_css_alloc() 90 static void cpuacct_css_free(struct cgroup_subsys_state *css) in cpuacct_css_free() argument 92 struct cpuacct *ca = css_ca(css); in cpuacct_css_free() 156 static u64 __cpuusage_read(struct cgroup_subsys_state *css, in __cpuusage_read() argument 159 struct cpuacct *ca = css_ca(css); in __cpuusage_read() [all …]
|
/kernel/linux/linux-5.10/mm/ |
D | memcg_control.c | 59 if (!css_tryget(&memcg->css)) in get_next_memcg() 66 css_put(&prev->css); in get_next_memcg() 74 css_put(&memcg->css); in get_next_memcg_break() 105 if (!css_tryget(&memcg->css)) in get_prev_memcg() 112 css_put(&next->css); in get_prev_memcg() 119 css_put(&memcg->css); in get_prev_memcg_break() 140 static u64 mem_cgroup_app_score_read(struct cgroup_subsys_state *css, in mem_cgroup_app_score_read() argument 143 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_app_score_read() 148 static int mem_cgroup_app_score_write(struct cgroup_subsys_state *css, in mem_cgroup_app_score_write() argument 151 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_app_score_write() [all …]
|
D | memcontrol.c | 250 return &container_of(vmpr, struct mem_cgroup, vmpressure)->css; in vmpressure_to_css() 330 css_get(&parent->css); in memcg_reparent_objcgs() 335 css_get(&parent->css); in memcg_reparent_objcgs() 337 css_put(&memcg->css); in memcg_reparent_objcgs() 542 return &memcg->css; in mem_cgroup_css_from_page() 575 while (memcg && !(memcg->css.flags & CSS_ONLINE)) in page_cgroup_ino() 578 ino = cgroup_ino(memcg->css.cgroup); in page_cgroup_ino() 758 !css_tryget(&mz->memcg->css)) in __mem_cgroup_largest_soft_limit_node() 1061 } while (!css_tryget(&memcg->css)); in get_mem_cgroup_from_mm() 1083 if (!memcg || WARN_ON_ONCE(!css_tryget(&memcg->css))) in get_mem_cgroup_from_page() [all …]
|
/kernel/linux/linux-5.10/tools/cgroup/ |
D | memcg_slabinfo.py | 36 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)
|
/kernel/linux/linux-5.10/security/ |
D | device_cgroup.c | 43 struct cgroup_subsys_state css; member 50 return s ? container_of(s, struct dev_cgroup, css) : NULL; in css_to_devcgroup() 187 static int devcgroup_online(struct cgroup_subsys_state *css) in devcgroup_online() argument 189 struct dev_cgroup *dev_cgroup = css_to_devcgroup(css); in devcgroup_online() 190 struct dev_cgroup *parent_dev_cgroup = css_to_devcgroup(css->parent); in devcgroup_online() 208 static void devcgroup_offline(struct cgroup_subsys_state *css) in devcgroup_offline() argument 210 struct dev_cgroup *dev_cgroup = css_to_devcgroup(css); in devcgroup_offline() 231 return &dev_cgroup->css; in devcgroup_css_alloc() 234 static void devcgroup_css_free(struct cgroup_subsys_state *css) in devcgroup_css_free() argument 236 struct dev_cgroup *dev_cgroup = css_to_devcgroup(css); in devcgroup_css_free() [all …]
|
/kernel/linux/linux-5.10/block/ |
D | blk-cgroup.c | 50 struct cgroup_subsys_state * const blkcg_root_css = &blkcg_root.css; 95 css_put(&blkg->blkcg->css); in __blkg_release() 248 if (!css_tryget_online(&blkcg->css)) { in blkg_create() 306 css_put(&blkcg->css); in blkg_create() 440 static int blkcg_reset_stats(struct cgroup_subsys_state *css, in blkcg_reset_stats() argument 443 struct blkcg *blkcg = css_to_blkcg(css); in blkcg_reset_stats() 775 static void blkcg_rstat_flush(struct cgroup_subsys_state *css, int cpu) in blkcg_rstat_flush() argument 777 struct blkcg *blkcg = css_to_blkcg(css); in blkcg_rstat_flush() 875 cgroup_rstat_flush(blkcg->css.cgroup); in blkcg_print_stat() 1007 static void blkcg_css_offline(struct cgroup_subsys_state *css) in blkcg_css_offline() argument [all …]
|
/kernel/linux/linux-5.10/include/net/ |
D | netprio_cgroup.h | 24 struct cgroup_subsys_state *css; in task_netprioidx() local 28 css = task_css(p, net_prio_cgrp_id); in task_netprioidx() 29 idx = css->id; in task_netprioidx()
|