/openbmc/linux/security/landlock/ |
H A D | ruleset.c | 245 static inline void get_hierarchy(struct landlock_hierarchy *const hierarchy) in get_hierarchy() argument 247 if (hierarchy) in get_hierarchy() 248 refcount_inc(&hierarchy->usage); in get_hierarchy() 251 static void put_hierarchy(struct landlock_hierarchy *hierarchy) in put_hierarchy() argument 253 while (hierarchy && refcount_dec_and_test(&hierarchy->usage)) { in put_hierarchy() 254 const struct landlock_hierarchy *const freeme = hierarchy; in put_hierarchy() 256 hierarchy = hierarchy->parent; in put_hierarchy() 272 if (WARN_ON_ONCE(!dst || !dst->hierarchy)) in merge_ruleset() 346 if (WARN_ON_ONCE(!parent->hierarchy)) { in inherit_ruleset() 350 get_hierarchy(parent->hierarchy); in inherit_ruleset() [all …]
|
H A D | ptrace.c | 41 for (walker = child->hierarchy; walker; walker = walker->parent) { in domain_scope_le() 42 if (walker == parent->hierarchy) in domain_scope_le()
|
/openbmc/linux/tools/testing/selftests/landlock/ |
H A D | ptrace_test.c | 89 FIXTURE(hierarchy) {}; in FIXTURE() argument 92 FIXTURE_VARIANT(hierarchy) in FIXTURE_VARIANT() argument 116 FIXTURE_VARIANT_ADD(hierarchy, allow_without_domain) { in FIXTURE_VARIANT_ADD() argument 133 FIXTURE_VARIANT_ADD(hierarchy, allow_with_one_domain) { in FIXTURE_VARIANT_ADD() argument 149 FIXTURE_VARIANT_ADD(hierarchy, deny_with_parent_domain) { in FIXTURE_VARIANT_ADD() argument 166 FIXTURE_VARIANT_ADD(hierarchy, deny_with_sibling_domain) { in FIXTURE_VARIANT_ADD() argument 183 FIXTURE_VARIANT_ADD(hierarchy, allow_sibling_domain) { in FIXTURE_VARIANT_ADD() argument 201 FIXTURE_VARIANT_ADD(hierarchy, allow_with_nested_domain) { in FIXTURE_VARIANT_ADD() argument 219 FIXTURE_VARIANT_ADD(hierarchy, deny_with_nested_and_parent_domain) { in FIXTURE_VARIANT_ADD() argument 239 FIXTURE_VARIANT_ADD(hierarchy, deny_with_forked_domain) { in FIXTURE_VARIANT_ADD() argument [all …]
|
/openbmc/linux/drivers/powercap/ |
H A D | dtpm.c | 415 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 …]
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A D | as102_fe.c | 125 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 D | l64781.c | 157 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 D | mt352.c | 201 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 D | dib3000mb.c | 224 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 D | zl10353.c | 258 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 D | cx22702.c | 159 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 D | cx22700.c | 143 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 D | rtl2830.c | 326 c->hierarchy = HIERARCHY_NONE; in rtl2830_get_frontend() 329 c->hierarchy = HIERARCHY_1; in rtl2830_get_frontend() 332 c->hierarchy = HIERARCHY_2; in rtl2830_get_frontend() 335 c->hierarchy = HIERARCHY_4; in rtl2830_get_frontend() 431 unsigned int hierarchy, constellation; in rtl2830_read_status() local 448 hierarchy = (u8tmp >> 4) & 0x07; /* [6:4] */ in rtl2830_read_status() 449 if (hierarchy > HIERARCHY_NUM - 1) in rtl2830_read_status() 458 stmp = (constant[constellation][hierarchy] - in rtl2830_read_status()
|
H A D | as102_fe_types.h | 101 uint8_t hierarchy; member 122 uint8_t hierarchy; member
|
/openbmc/u-boot/drivers/tpm/ |
H A D | tpm2_tis_sandbox.c | 66 enum tpm2_hierarchy *hierarchy) in sandbox_tpm2_check_session() argument 108 *hierarchy = TPM2_HIERARCHY_LOCKOUT; in sandbox_tpm2_check_session() 115 *hierarchy = TPM2_HIERARCHY_ENDORSEMENT; in sandbox_tpm2_check_session() 118 *hierarchy = TPM2_HIERARCHY_PLATFORM; in sandbox_tpm2_check_session() 161 if (!pw_sz && !tpm->pw_sz[*hierarchy]) in sandbox_tpm2_check_session() 175 if (pw_sz != tpm->pw_sz[*hierarchy] || in sandbox_tpm2_check_session() 176 strncmp(pw, tpm->pw[*hierarchy], tpm->pw_sz[*hierarchy])) { in sandbox_tpm2_check_session() 259 enum tpm2_hierarchy hierarchy = 0; in sandbox_tpm2_xfer() local 298 rc = sandbox_tpm2_check_session(dev, command, tag, &sent, &hierarchy); in sandbox_tpm2_xfer() 339 tpm->pw_sz[hierarchy] = 0; in sandbox_tpm2_xfer() [all …]
|
/openbmc/qemu/hw/acpi/ |
H A D | hmat.c | 99 assert(!(hmat_lb->hierarchy >> 4)); in build_hmat_lb() 100 build_append_int_noprefix(table_data, hmat_lb->hierarchy, 1); in build_hmat_lb() 204 int i, hierarchy, type, cache_level, total_levels; in hmat_build_table_structs() local 237 for (hierarchy = HMAT_LB_MEM_MEMORY; in hmat_build_table_structs() 238 hierarchy <= HMAT_LB_MEM_CACHE_3RD_LEVEL; hierarchy++) { in hmat_build_table_structs() 241 hmat_lb = numa_state->hmat_lb[hierarchy][type]; in hmat_build_table_structs()
|
/openbmc/openbmc/poky/meta/recipes-graphics/xorg-lib/ |
H A D | libxcomposite_0.4.6.bb | 4 mechanisms: per-hierarchy storage, automatic shadow update, and external \ 5 parent. In per-hierarchy storage, the rendering of an entire hierarchy \ 7 update, when a hierarchy is rendered off-screen, the X server provides \
|
/openbmc/linux/Documentation/admin-guide/cgroup-v1/ |
H A D | cgroups.rst | 60 A *hierarchy* is a set of cgroups arranged in a tree, such that 62 hierarchy, and a set of subsystems; each subsystem has system-specific 63 state attached to each cgroup in the hierarchy. Each hierarchy has 67 cgroups. Each hierarchy is a partition of all tasks in the system. 72 a cgroup. Those creations and assignments only affect the hierarchy 101 Multiple hierarchy support is provided to allow for situations where 104 hierarchy to be a natural division of tasks, without having to handle 110 separate hierarchy; at the other extreme, all subsystems 111 would be attached to the same hierarchy. 149 With only a single hierarchy, he now would potentially have to create [all …]
|
H A D | pids.rst | 8 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). 49 Then we create a hierarchy, set limits and attach processes to it:: 68 not be able to overcome the most stringent limit in the hierarchy (in this case,
|
/openbmc/linux/Documentation/mm/ |
H A D | page_tables.rst | 16 Linux defines page tables as a hierarchy which is currently five levels in 38 Over time a deeper hierarchy has been developed in response to increasing memory 44 The software page table hierarchy reflects the fact that page table hardware has 53 to mark large areas as unmapped at a higher level in the page table hierarchy. 59 traverse deeper in the hierarchy when you find a large mapped range like this. 61 The page table hierarchy has now developed into this:: 84 Symbols on the different levels of the page table hierarchy have the following 102 - **pmd**, `pmd_t`, `pmdval_t` = **Page Middle Directory**, the hierarchy right 124 To repeat: each level in the page table hierarchy is a *array of pointers*, so
|
/openbmc/linux/Documentation/core-api/irq/ |
H A D | irq-domain.rst | 232 interrupt controller and those irq_domains are organized into hierarchy. 233 When building irq_domain hierarchy, the irq_domain near to the device is 234 child and the irq_domain near to CPU is parent. So a hierarchy structure 245 There are four major interfaces to use hierarchy irq_domain: 256 Following changes are needed to support hierarchy irq_domain: 259 maintain irq_domain hierarchy information. 261 build hierarchy irq_data to match hierarchy irq_domains. The irq_data 263 3) new callbacks are added to struct irq_domain_ops to support hierarchy 266 With support of hierarchy irq_domain and hierarchy irq_data ready, an 269 IRQ. Now we could go one step further to support stacked(hierarchy) [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | rl.c | 38 int mlx5_create_scheduling_element_cmd(struct mlx5_core_dev *dev, u8 hierarchy, in mlx5_create_scheduling_element_cmd() argument 51 hierarchy); in mlx5_create_scheduling_element_cmd() 63 int mlx5_modify_scheduling_element_cmd(struct mlx5_core_dev *dev, u8 hierarchy, in mlx5_modify_scheduling_element_cmd() argument 79 hierarchy); in mlx5_modify_scheduling_element_cmd() 85 int mlx5_destroy_scheduling_element_cmd(struct mlx5_core_dev *dev, u8 hierarchy, in mlx5_destroy_scheduling_element_cmd() argument 95 hierarchy); in mlx5_destroy_scheduling_element_cmd()
|
/openbmc/u-boot/doc/ |
H A D | README.power-framework | 35 The "flat" hierarchy for power devices works well when each device performs only 46 The directory hierarchy has following structure: 68 - Block diagram of the hierarchy: 81 1. When hierarchy is not needed (no complex battery charge): 88 hierarchy. 109 hierarchy battery device 139 2. Charging battery with hierarchy
|
/openbmc/linux/drivers/media/usb/dvb-usb-v2/ |
H A D | mxl111sf-demod.c | 171 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()
|
/openbmc/qemu/docs/ |
H A D | pcie.txt | 77 2.2 PCI Express only hierarchy 87 to keep a simple flat hierarchy that is enough for most scenarios. 133 2.3 PCI only hierarchy 188 if devices with IO BARs are used in the PCI Express hierarchy. Using the 190 PCI Express devices within PCI Express hierarchy. 193 without using IO ports. The PCI hierarchy has no such limitations. 202 Each element of the PCI Express hierarchy (Root Complexes, 210 Express hierarchy) enables the hierarchy to not spend bus numbers on 242 (1) PCI hierarchy 254 (2) PCI Express hierarchy: [all …]
|
/openbmc/linux/Documentation/userspace-api/ |
H A D | landlock.rst | 32 file hierarchy, and the related filesystem actions are defined with `access 111 file hierarchy ``/usr``. Without another rule, write actions would then be 182 It is recommended setting access rights to file hierarchy leaves as much as 184 read-only hierarchy and ``~/tmp/`` as a read-write hierarchy, compared to 185 ``~/`` as a read-only hierarchy and ``~/tmp/`` as a read-write hierarchy. 224 A bind mount mirrors a source file hierarchy to a destination. The destination 225 hierarchy is then composed of the exact same files, on which Landlock rules can 232 combined in a merge directory, result of the mount point. This merge hierarchy 234 on the merge hierarchy only reflects on the upper layer. From a Landlock 238 restrict the resulted merged hierarchy, and vice versa. Landlock users should [all …]
|