Home
last modified time | relevance | path

Searched refs:hierarchy (Results 1 – 25 of 141) sorted by relevance

123456

/linux/security/landlock/
H A Ddomain.h31 * observable from user space. A hierarchy is born in this state (the
32 * zero value, so a partially initialized hierarchy defaults to "not
36 * fires while a hierarchy is in this state, so a hierarchy that never
88 * struct landlock_hierarchy - Node in a domain hierarchy
151 int landlock_init_hierarchy_log(struct landlock_hierarchy *const hierarchy);
154 landlock_free_hierarchy_details(struct landlock_hierarchy *const hierarchy)
156 if (!hierarchy || !hierarchy->details) in landlock_get_hierarchy()
159 put_pid(hierarchy in landlock_get_hierarchy()
130 landlock_free_hierarchy_details(struct landlock_hierarchy * const hierarchy) landlock_free_hierarchy_details() argument
142 landlock_init_hierarchy_log(struct landlock_hierarchy * const hierarchy) landlock_init_hierarchy_log() argument
148 landlock_free_hierarchy_details(struct landlock_hierarchy * const hierarchy) landlock_free_hierarchy_details() argument
155 landlock_get_hierarchy(struct landlock_hierarchy * const hierarchy) landlock_get_hierarchy() argument
161 landlock_put_hierarchy(struct landlock_hierarchy * hierarchy) landlock_put_hierarchy() argument
[all...]
H A Daudit.c129 static void log_domain(struct landlock_hierarchy *const hierarchy) in log_domain()
134 if (READ_ONCE(hierarchy->log_status) == LANDLOCK_LOG_RECORDED) in log_domain()
143 WARN_ON_ONCE(hierarchy->id == 0); in get_hierarchy()
147 hierarchy->id, pid_nr(hierarchy->details->pid), in get_hierarchy()
148 hierarchy->details->uid); in get_hierarchy()
149 audit_log_untrustedstring(ab, hierarchy->details->exe_path); in get_hierarchy()
151 audit_log_untrustedstring(ab, hierarchy->details->comm); in get_hierarchy()
158 WRITE_ONCE(hierarchy->log_status, LANDLOCK_LOG_RECORDED); in test_get_hierarchy()
165 * @youngest_denied: The youngest hierarchy nod in test_get_hierarchy()
104 log_domain(struct landlock_hierarchy * const hierarchy) log_domain() argument
139 struct landlock_hierarchy *hierarchy = domain->hierarchy; get_hierarchy() local
445 landlock_log_drop_domain(const struct landlock_hierarchy * const hierarchy) landlock_log_drop_domain() argument
[all...]
H A Ddomain.c73 landlock_put_hierarchy(domain->hierarchy); in get_current_exe()
322 if (WARN_ON_ONCE(!dst || !dst->hierarchy))
410 if (WARN_ON_ONCE(!parent->hierarchy))
413 landlock_get_hierarchy(parent->hierarchy);
414 child->hierarchy->parent = parent->hierarchy;
459 new_dom->hierarchy =
460 kzalloc_obj(*new_dom->hierarchy, GFP_KERNEL_ACCOUNT);
461 if (!new_dom->hierarchy)
464 refcount_set(&new_dom->hierarchy
120 landlock_init_hierarchy_log(struct landlock_hierarchy * const hierarchy) landlock_init_hierarchy_log() argument
[all...]
H A Druleset.c
H A Dtask.c56 for (walker = child->hierarchy; walker; walker = walker->parent) { in domain_scope_le()
57 if (walker == parent->hierarchy) in domain_scope_le()
58 /* @parent is in the scoped hierarchy of @child. */ in domain_scope_le()
105 tracee_domain_id = child_dom->hierarchy->id; in hook_ptrace_access_check()
160 tracee_domain_id = child_dom->hierarchy->id; in hook_ptrace_traceme()
205 client_walker = client->hierarchy; in domain_is_scoped()
216 server_walker = server ? server->hierarchy : NULL; in domain_is_scoped()
219 * Walks client's parent domains down to the same hierarchy level in domain_is_scoped()
230 * Walks server's parent domains down to the same hierarchy level as in domain_is_scoped()
240 * hierarchy in sock_is_scoped()
[all...]
H A Dsyscalls.c650 new_dom->hierarchy->log_same_exec = log_same_exec;
651 new_dom->hierarchy->log_new_exec = log_new_exec;
660 new_dom->hierarchy->log_status = LANDLOCK_LOG_DISABLED;
662 new_dom->hierarchy->log_status = LANDLOCK_LOG_PENDING;
/linux/net/shaper/
H A Dshaper.c236 * Acquires the lock protecting the hierarchy (instance lock for netdev).
314 struct net_shaper_hierarchy *hierarchy; in net_shaper_lookup() local
317 hierarchy = net_shaper_hierarchy_rcu(binding); in net_shaper_lookup()
318 if (!hierarchy) in net_shaper_lookup()
321 cur = xa_load(&hierarchy->shapers, index); in net_shaper_lookup()
329 /* Allocate on demand the per device shaper's hierarchy container.
330 * Called under the lock protecting the hierarchy (instance lock for netdev)
335 struct net_shaper_hierarchy *hierarchy = net_shaper_hierarchy(binding); in net_shaper_hierarchy_setup() local
337 if (hierarchy) in net_shaper_hierarchy_setup()
338 return hierarchy; in net_shaper_hierarchy_setup()
363 struct net_shaper_hierarchy *hierarchy = net_shaper_hierarchy(binding); net_shaper_pre_insert() local
427 struct net_shaper_hierarchy *hierarchy = net_shaper_hierarchy(binding); net_shaper_commit() local
451 struct net_shaper_hierarchy *hierarchy = net_shaper_hierarchy(binding); net_shaper_rollback() local
862 struct net_shaper_hierarchy *hierarchy; net_shaper_nl_get_dumpit() local
894 struct net_shaper_hierarchy *hierarchy; net_shaper_nl_set_doit() local
942 struct net_shaper_hierarchy *hierarchy = net_shaper_hierarchy(binding); __net_shaper_delete() local
1153 struct net_shaper_hierarchy *hierarchy = net_shaper_hierarchy(binding); net_shaper_pre_del_node() local
1208 struct net_shaper_hierarchy *hierarchy; net_shaper_nl_delete_doit() local
1271 struct net_shaper_hierarchy *hierarchy; net_shaper_nl_group_doit() local
1468 struct net_shaper_hierarchy *hierarchy = net_shaper_hierarchy(binding); net_shaper_flush() local
1498 struct net_shaper_hierarchy *hierarchy; net_shaper_set_real_num_tx_queues() local
[all...]
/linux/drivers/powercap/
H A Ddtpm.c415 static struct dtpm *dtpm_setup_virtual(const struct dtpm_node *hierarchy, in dtpm_setup_virtual() argument
426 ret = dtpm_register(hierarchy->name, dtpm, parent); in dtpm_setup_virtual()
429 hierarchy->name, ret); in dtpm_setup_virtual()
437 static struct dtpm *dtpm_setup_dt(const struct dtpm_node *hierarchy, in dtpm_setup_dt() argument
443 np = of_find_node_by_path(hierarchy->name); in dtpm_setup_dt()
445 pr_err("Failed to find '%s'\n", hierarchy->name); in dtpm_setup_dt()
478 static int dtpm_for_each_child(const struct dtpm_node *hierarchy, in dtpm_for_each_child() argument
484 for (i = 0; hierarchy[i].name; i++) { in dtpm_for_each_child()
486 if (hierarchy[i].parent != it) in dtpm_for_each_child()
489 dtpm = dtpm_node_callback[hierarchy[i].type](&hierarchy[i], parent); in dtpm_for_each_child()
[all …]
/linux/drivers/media/dvb-frontends/
H A Das102_fe.c125 switch (c->hierarchy) { in as102_fe_set_frontend()
127 tune_args.hierarchy = HIER_NONE; in as102_fe_set_frontend()
130 tune_args.hierarchy = HIER_ALPHA_1; in as102_fe_set_frontend()
133 tune_args.hierarchy = HIER_ALPHA_2; in as102_fe_set_frontend()
136 tune_args.hierarchy = HIER_ALPHA_4; in as102_fe_set_frontend()
139 tune_args.hierarchy = HIER_UNKNOWN; in as102_fe_set_frontend()
152 if ((tune_args.hierarchy != HIER_NONE) && in as102_fe_set_frontend()
169 tune_args.hierarchy, in as102_fe_set_frontend()
210 switch (tps.hierarchy) { in as102_fe_get_frontend()
212 c->hierarchy = HIERARCHY_NONE; in as102_fe_get_frontend()
[all …]
H A Dl64781.c157 if (p->hierarchy != HIERARCHY_NONE && in apply_frontend_param()
175 if ((int)p->hierarchy < HIERARCHY_NONE || in apply_frontend_param()
176 p->hierarchy > HIERARCHY_4) in apply_frontend_param()
200 if (p->hierarchy != HIERARCHY_NONE) in apply_frontend_param()
203 val0x06 = (p->hierarchy << 2) | p->modulation; in apply_frontend_param()
323 p->hierarchy = HIERARCHY_NONE; in get_frontend()
326 p->hierarchy = HIERARCHY_1; in get_frontend()
329 p->hierarchy = HIERARCHY_2; in get_frontend()
332 p->hierarchy = HIERARCHY_4; in get_frontend()
H A Dmt352.c201 if (op->hierarchy == HIERARCHY_AUTO || in mt352_set_parameters()
202 op->hierarchy == HIERARCHY_NONE) in mt352_set_parameters()
251 switch (op->hierarchy) { in mt352_set_parameters()
373 op->hierarchy = HIERARCHY_NONE; in mt352_get_parameters()
376 op->hierarchy = HIERARCHY_1; in mt352_get_parameters()
379 op->hierarchy = HIERARCHY_2; in mt352_get_parameters()
382 op->hierarchy = HIERARCHY_4; in mt352_get_parameters()
385 op->hierarchy = HIERARCHY_AUTO; in mt352_get_parameters()
H A Ddib3000mb.c224 switch (c->hierarchy) { in dib3000mb_set_frontend()
247 if (c->hierarchy == HIERARCHY_NONE) { in dib3000mb_set_frontend()
251 } else if (c->hierarchy != HIERARCHY_AUTO) { in dib3000mb_set_frontend()
328 c->hierarchy == HIERARCHY_AUTO || in dib3000mb_set_frontend()
504 c->hierarchy = HIERARCHY_NONE; in dib3000mb_get_frontend()
508 c->hierarchy = HIERARCHY_1; in dib3000mb_get_frontend()
512 c->hierarchy = HIERARCHY_2; in dib3000mb_get_frontend()
516 c->hierarchy = HIERARCHY_4; in dib3000mb_get_frontend()
529 c->hierarchy = HIERARCHY_NONE; in dib3000mb_get_frontend()
H A Dzl10353.c258 if (c->hierarchy == HIERARCHY_AUTO || in zl10353_set_parameters()
259 c->hierarchy == HIERARCHY_NONE) in zl10353_set_parameters()
308 switch (c->hierarchy) { in zl10353_set_parameters()
427 c->hierarchy = HIERARCHY_NONE; in zl10353_get_parameters()
430 c->hierarchy = HIERARCHY_1; in zl10353_get_parameters()
433 c->hierarchy = HIERARCHY_2; in zl10353_get_parameters()
436 c->hierarchy = HIERARCHY_4; in zl10353_get_parameters()
439 c->hierarchy = HIERARCHY_AUTO; in zl10353_get_parameters()
H A Dcx22702.c159 p->hierarchy = HIERARCHY_NONE; in cx22702_get_tps()
162 p->hierarchy = HIERARCHY_1; in cx22702_get_tps()
165 p->hierarchy = HIERARCHY_2; in cx22702_get_tps()
168 p->hierarchy = HIERARCHY_4; in cx22702_get_tps()
286 if ((p->hierarchy == HIERARCHY_AUTO) || in cx22702_set_tps()
321 switch (p->hierarchy) { /* mask 0x07 */ in cx22702_set_tps()
H A Dcx22700.c143 if ((int)p->hierarchy < HIERARCHY_NONE || in cx22700_set_tps()
144 p->hierarchy > HIERARCHY_4) in cx22700_set_tps()
156 val |= p->hierarchy - HIERARCHY_NONE; in cx22700_set_tps()
196 p->hierarchy = HIERARCHY_AUTO; in cx22700_get_tps()
198 p->hierarchy = HIERARCHY_NONE + (val & 0x7); in cx22700_get_tps()
H A Das102_fe_types.h101 uint8_t hierarchy; member
122 uint8_t hierarchy; member
H A Dcxd2820r_t.c179 c->hierarchy = HIERARCHY_NONE; in cxd2820r_get_frontend_t()
182 c->hierarchy = HIERARCHY_1; in cxd2820r_get_frontend_t()
185 c->hierarchy = HIERARCHY_2; in cxd2820r_get_frontend_t()
188 c->hierarchy = HIERARCHY_4; in cxd2820r_get_frontend_t()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Drl.c37 bool mlx5_qos_tsar_type_supported(struct mlx5_core_dev *dev, int type, u8 hierarchy) in mlx5_qos_tsar_type_supported() argument
41 switch (hierarchy) { in mlx5_qos_tsar_type_supported()
66 bool mlx5_qos_element_type_supported(struct mlx5_core_dev *dev, int type, u8 hierarchy) in mlx5_qos_element_type_supported() argument
70 switch (hierarchy) { in mlx5_qos_element_type_supported()
100 int mlx5_create_scheduling_element_cmd(struct mlx5_core_dev *dev, u8 hierarchy, in mlx5_create_scheduling_element_cmd() argument
113 hierarchy); in mlx5_create_scheduling_element_cmd()
125 int mlx5_modify_scheduling_element_cmd(struct mlx5_core_dev *dev, u8 hierarchy, in mlx5_modify_scheduling_element_cmd() argument
141 hierarchy); in mlx5_modify_scheduling_element_cmd()
147 int mlx5_destroy_scheduling_element_cmd(struct mlx5_core_dev *dev, u8 hierarchy, in mlx5_destroy_scheduling_element_cmd() argument
157 hierarchy); in mlx5_destroy_scheduling_element_cmd()
H A Dmlx5_core.h248 bool mlx5_qos_element_type_supported(struct mlx5_core_dev *dev, int type, u8 hierarchy);
249 bool mlx5_qos_tsar_type_supported(struct mlx5_core_dev *dev, int type, u8 hierarchy);
250 int mlx5_create_scheduling_element_cmd(struct mlx5_core_dev *dev, u8 hierarchy,
252 int mlx5_modify_scheduling_element_cmd(struct mlx5_core_dev *dev, u8 hierarchy,
255 int mlx5_destroy_scheduling_element_cmd(struct mlx5_core_dev *dev, u8 hierarchy,
/linux/Documentation/admin-guide/cgroup-v1/
H A Dpids.rst8 The process number controller is used to allow a cgroup hierarchy to stop any
13 preventable in the scope of a cgroup hierarchy by allowing resource limiting of
32 limit in the hierarchy is followed).
50 Then we create a hierarchy, set limits and attach processes to it::
69 not be able to overcome the most stringent limit in the hierarchy (in this case,
/linux/drivers/media/usb/dvb-usb-v2/
H A Dmxl111sf-demod.c171 enum fe_hierarchy *hierarchy) in mxl1x1sf_demod_get_tps_hierarchy() argument
181 *hierarchy = HIERARCHY_NONE; in mxl1x1sf_demod_get_tps_hierarchy()
184 *hierarchy = HIERARCHY_1; in mxl1x1sf_demod_get_tps_hierarchy()
187 *hierarchy = HIERARCHY_2; in mxl1x1sf_demod_get_tps_hierarchy()
190 *hierarchy = HIERARCHY_4; in mxl1x1sf_demod_get_tps_hierarchy()
523 &p->hierarchy); in mxl111sf_demod_get_frontend()
/linux/drivers/soc/rockchip/
H A DKconfig26 tristate "Rockchip DTPM hierarchy"
29 Describe the hierarchy for the Dynamic Thermal Power Management tree
/linux/Documentation/devicetree/bindings/arm/omap/
H A Dprcm.txt4 a DT hierarchy. Each TI SoC can have multiple PRCM entities listed for it,
5 each describing one module and the clock hierarchy under it. see [1] for
/linux/drivers/media/usb/as102/
H A Das10x_cmd.c119 preq->body.set_tune.req.args.hierarchy = ptune->hierarchy; in as10x_cmd_set_tune()
245 ptps->hierarchy = prsp->body.get_tps.rsp.tps.hierarchy; in as10x_cmd_get_tps()
/linux/tools/perf/tests/shell/
H A Dperf-report-hierarchy.sh35 perf report --hierarchy -i "${perf_data}" > /dev/null

123456