| /linux/security/landlock/ |
| H A D | ruleset.c | 104 * LANDLOCK_MAX_NUM_LAYERS layers. in is_object_pointer() 128 const struct landlock_layer (*layers)[], const u32 num_layers, in create_rule() 143 new_rule = kzalloc_flex(*new_rule, layers, new_num_layers, in create_rule() 157 memcpy(new_rule->layers, layers, in free_rule() 158 flex_array_size(new_rule, layers, num_layers)); in free_rule() 161 new_rule->layers[new_rule->num_layers - 1] = *new_layer; in free_rule() 194 * @layers: One or multiple layers to be copied into the new rule. 195 * @num_layers: The number of @layers entrie 117 create_rule(const struct landlock_id id,const struct landlock_layer (* layers)[],const u32 num_layers,const struct landlock_layer * const new_layer) create_rule() argument 199 landlock_store_rule(struct landlock_rules * const rules,const struct landlock_id id,const struct landlock_layer (* layers)[],const size_t num_layers) landlock_store_rule() argument 300 struct landlock_layer layers[] = { { landlock_insert_rule() local [all...] |
| H A D | domain.c | 53 new_domain = kzalloc_flex(*new_domain, layers, num_layers, in create_domain() 166 * layers for each inode, from the first added layer to the last one. in landlock_unmask_layers() 174 * is per-layer: access is granted iff masks->layers[l].access == 0 for in landlock_unmask_layers() 175 * all layers l. When two independent mechanisms can each grant access in landlock_unmask_layers() 179 * different layers grant via different mechanisms. in landlock_unmask_layers() 182 const struct landlock_layer *const layer = &rule->layers[i]; in landlock_unmask_layers() 185 masks->layers[layer->level - 1].access &= ~layer->access; in landlock_unmask_layers() 190 masks->layers[layer->level - 1].quiet = true; in landlock_unmask_layers() 194 for (size_t i = 0; i < ARRAY_SIZE(masks->layers); i++) { in landlock_unmask_layers() 195 if (masks->layers[ in landlock_unmask_layers() 287 struct landlock_layer layers[] = { { merge_tree() local [all...] |
| H A D | fs.c | 457 for (size_t i = 0; i < ARRAY_SIZE(new_parent->layers); i++) { in may_refer() 458 access_mask_t child_access = src_parent->layers[i].access & in may_refer() 459 src_child->layers[i].access; in may_refer() 460 access_mask_t parent_access = new_parent->layers[i].access; in may_refer() 506 .layers[0].access = LANDLOCK_ACCESS_FS_EXECUTE | in test_no_more_access() 510 .layers[0].access = LANDLOCK_ACCESS_FS_EXECUTE | in test_no_more_access() 514 .layers[0].access = LANDLOCK_ACCESS_FS_EXECUTE, in test_no_more_access() 517 .layers[1].access = LANDLOCK_ACCESS_FS_EXECUTE, in test_no_more_access() 520 .layers[0].access = LANDLOCK_ACCESS_FS_EXECUTE, in test_no_more_access() 521 .layers[ in test_no_more_access() [all...] |
| H A D | ruleset.h | 111 * @num_layers: Number of entries in @layers. 115 * @layers: Stack of layers, from the latest to the newest, implemented 118 struct landlock_layer layers[] __counted_by(num_layers); 220 const struct landlock_layer (*layers)[],
|
| H A D | domain.h | 225 * @layers are then unused. 235 * @num_layers: Number of layers that are used in this 236 * domain. This enables to check that all the layers 241 * @layers: Per-layer access configuration. A domain 242 * saves all layers of merged rulesets in a stack (FAM), 244 * layers are used when merging rulesets, for user space 247 * access rights. These layers are set once and never 256 struct layer_config layers[]; 267 * layers handling filesystem accesses, see in landlock_get_net_access_mask() 270 return domain->layers[layer_leve in landlock_get_net_access_mask() [all...] |
| /linux/drivers/edac/ |
| H A D | loongson_edac.c | 85 struct edac_mc_layer layers[2]; in edac_probe() local 94 layers[0].type = EDAC_MC_LAYER_CHANNEL; in edac_probe() 95 layers[0].size = 1; in edac_probe() 96 layers[0].is_virt_csrow = false; in edac_probe() 97 layers[1].type = EDAC_MC_LAYER_SLOT; in edac_probe() 98 layers[1].size = 1; in edac_probe() 99 layers[1].is_virt_csrow = true; in edac_probe() 100 mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, in edac_probe()
|
| H A D | pasemi_edac.c | 183 struct edac_mc_layer layers[2]; in pasemi_edac_probe() local 200 layers[0].type = EDAC_MC_LAYER_CHIP_SELECT; in pasemi_edac_probe() 201 layers[0].size = PASEMI_EDAC_NR_CSROWS; in pasemi_edac_probe() 202 layers[0].is_virt_csrow = true; in pasemi_edac_probe() 203 layers[1].type = EDAC_MC_LAYER_CHANNEL; in pasemi_edac_probe() 204 layers[1].size = PASEMI_EDAC_NR_CHANS; in pasemi_edac_probe() 205 layers[1].is_virt_csrow = false; in pasemi_edac_probe() 206 mci = edac_mc_alloc(system_mmc_id++, ARRAY_SIZE(layers), layers, in pasemi_edac_probe()
|
| H A D | highbank_mc_edac.c | 149 struct edac_mc_layer layers[2]; in highbank_mc_probe() local 163 layers[0].type = EDAC_MC_LAYER_CHIP_SELECT; in highbank_mc_probe() 164 layers[0].size = 1; in highbank_mc_probe() 165 layers[0].is_virt_csrow = true; in highbank_mc_probe() 166 layers[1].type = EDAC_MC_LAYER_CHANNEL; in highbank_mc_probe() 167 layers[1].size = 1; in highbank_mc_probe() 168 layers[1].is_virt_csrow = false; in highbank_mc_probe() 169 mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, in highbank_mc_probe()
|
| H A D | aspeed_edac.c | 280 struct edac_mc_layer layers[2]; in aspeed_probe() local 305 layers[0].type = EDAC_MC_LAYER_CHIP_SELECT; in aspeed_probe() 306 layers[0].size = 1; in aspeed_probe() 307 layers[0].is_virt_csrow = true; in aspeed_probe() 308 layers[1].type = EDAC_MC_LAYER_CHANNEL; in aspeed_probe() 309 layers[1].size = 1; in aspeed_probe() 310 layers[1].is_virt_csrow = false; in aspeed_probe() 312 mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, 0); in aspeed_probe()
|
| H A D | octeon_edac-lmc.c | 228 struct edac_mc_layer layers[1]; in octeon_lmc_edac_probe() local 233 layers[0].type = EDAC_MC_LAYER_CHANNEL; in octeon_lmc_edac_probe() 234 layers[0].size = 1; in octeon_lmc_edac_probe() 235 layers[0].is_virt_csrow = false; in octeon_lmc_edac_probe() 246 mci = edac_mc_alloc(mc, ARRAY_SIZE(layers), layers, sizeof(struct octeon_lmc_pvt)); in octeon_lmc_edac_probe() 278 mci = edac_mc_alloc(mc, ARRAY_SIZE(layers), layers, sizeof(struct octeon_lmc_pvt)); in octeon_lmc_edac_probe()
|
| H A D | edac_mc.c | 70 edac_layer_name[mci->layers[i].type], in edac_dimm_info_location() 294 edac_layer_name[mci->layers[layer].type], in edac_mc_alloc_dimms() 307 if (mci->layers[0].is_virt_csrow) { in edac_mc_alloc_dimms() 324 if (pos[layer] < mci->layers[layer].size) in edac_mc_alloc_dimms() 335 struct edac_mc_layer *layers, in edac_mc_alloc() argument 352 tot_dimms *= layers[idx].size; in edac_mc_alloc() 354 if (layers[idx].is_virt_csrow) in edac_mc_alloc() 355 tot_csrows *= layers[idx].size; in edac_mc_alloc() 357 tot_channels *= layers[idx].size; in edac_mc_alloc() 359 if (layers[idx].type == EDAC_MC_LAYER_CHIP_SELECT) in edac_mc_alloc() [all …]
|
| H A D | al_mc_edac.c | 219 struct edac_mc_layer layers[1]; in al_mc_edac_probe() local 233 layers[0].type = EDAC_MC_LAYER_CHIP_SELECT; in al_mc_edac_probe() 234 layers[0].size = 1; in al_mc_edac_probe() 235 layers[0].is_virt_csrow = false; in al_mc_edac_probe() 236 mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, in al_mc_edac_probe()
|
| H A D | fsl_ddr_edac.c | 496 struct edac_mc_layer layers[2]; in fsl_mc_err_probe() local 506 layers[0].type = EDAC_MC_LAYER_CHIP_SELECT; in fsl_mc_err_probe() 507 layers[0].size = 4; in fsl_mc_err_probe() 508 layers[0].is_virt_csrow = true; in fsl_mc_err_probe() 509 layers[1].type = EDAC_MC_LAYER_CHANNEL; in fsl_mc_err_probe() 510 layers[1].size = 1; in fsl_mc_err_probe() 511 layers[1].is_virt_csrow = false; in fsl_mc_err_probe() 512 mci = edac_mc_alloc(edac_mc_idx, ARRAY_SIZE(layers), layers, in fsl_mc_err_probe()
|
| H A D | bluefield_edac.c | 356 struct edac_mc_layer layers[1]; in bluefield_edac_mc_probe() local 384 layers[0].type = EDAC_MC_LAYER_SLOT; in bluefield_edac_mc_probe() 385 layers[0].size = dimm_count; in bluefield_edac_mc_probe() 386 layers[0].is_virt_csrow = true; in bluefield_edac_mc_probe() 388 mci = edac_mc_alloc(mc_idx, ARRAY_SIZE(layers), layers, sizeof(*priv)); in bluefield_edac_mc_probe()
|
| /linux/Documentation/devicetree/bindings/display/ |
| H A D | xylon,logicvc-display.yaml | 14 The Xylon LogiCVC is a display controller that supports multiple layers. 24 Layers are declared in the "layers" sub-node and have dedicated configuration. 109 xylon,layers-configurable: 112 Configuration of layers' size, position and offset is enabled 115 layers: 187 The description of the display controller layers, containing layer 207 - layers 238 xylon,layers-configurable; 240 layers {
|
| /linux/Documentation/filesystems/ |
| H A D | overlayfs.rst | 32 In the special case of all overlay layers on the same underlying 39 On 64bit systems, even if all overlay layers are not on the same 66 | All layers | Y | Y | Y | Y | Y | Y | Y | Y | 69 | Layers not | N | N | Y | N | N | Y | N | Y | 250 kernel/module config, on data-only lower layers and on the "userxattr" 335 Check (b) ensures that no task gains permissions to underlying layers that 363 how overlayfs accesses the underlying layers: those are still accessed with 370 Multiple lower layers 373 Multiple lower layers can now be given using the colon (":") as a 424 for untrusted layers lik [all...] |
| /linux/fs/overlayfs/ |
| H A D | super.c | 446 * file handles, so they require that all layers support them. in ovl_lower_dir() 544 pr_err("upper fs is r/o, try multi-lower layers mount\n"); in ovl_get_upper() 976 * as all lower layers with null uuid are on the same fs. in ovl_get_fsid() 1037 * The fsid after the last lower fsid is used for the data layers. in ovl_set_encoding() 1066 struct ovl_fs_context *ctx, struct ovl_layer *layers) in ovl_get_layers() 1078 * and the last fsid is reserved for "null fs" of the data layers. in ovl_get_layers() 1083 * All lower layers that share the same fs as upper layer, use the same in ovl_get_layers() 1120 * Check if lower root conflicts with this overlay layers before in ovl_get_layers() 1170 * Make lower layers R/O. That way fchmod/fchown on lower file in ovl_get_layers() 1175 layers[of in ovl_get_layers() 1043 ovl_get_layers(struct super_block * sb,struct ovl_fs * ofs,struct ovl_fs_context * ctx,struct ovl_layer * layers) ovl_get_layers() argument 1192 ovl_get_lowerstack(struct super_block * sb,struct ovl_fs_context * ctx,struct ovl_fs * ofs,struct ovl_layer * layers) ovl_get_lowerstack() argument 1395 struct ovl_layer *layers; ovl_fill_super_creds() local [all...] |
| H A D | ovl_entry.h | 62 /* Number of unique fs among layers including upper fs */ 64 /* Number of data-only lower layers */ member 66 struct ovl_layer *layers; 99 /* Number of lower layers, not including data-only layers */ in ovl_numlowerlayer() 107 return ofs->layers[0].mnt;
|
| H A D | params.c | 131 /* Data-only layers cannot be used without following redirects to them */ 136 * The default for show_options() is resolved as if there are no data-only layers, in ovl_verity_mode() 137 * so that redirect_dir=followdata, which is auto selected with data-only layers, in ovl_verity_mode() 249 /* count layers, not colons */ in ovl_parse_param_split_lowerdirs() 358 return invalfc(fc, "regular lower layers cannot follow data layers"); in ovl_ctx_realloc_lower() 538 * Set "/lower1", "/lower2", and "/lower3" as lower layers and in ovl_parse_param_lowerdir() 539 * "/data1" and "/data2" as data lower layers. Any existing lower in ovl_parse_param_lowerdir() 540 * layers are replaced. in ovl_parse_param_lowerdir() 555 /* drop all existing lower layers */ in ovl_parse_param_lowerdir() [all...] |
| /linux/Documentation/scsi/ |
| H A D | scsi_eh.rst | 152 Note that this does not mean lower layers are quiescent. If a LLDD 153 completed a scmd with error status, the LLDD and lower layers are 155 has timed out, unless hostt->eh_timed_out() made lower layers forget 157 active as long as lower layers are concerned and completion could 206 lower layers and lower layers are ready to process or fail the scmd 364 that lower layers have forgotten about the scmd and we can 373 and STU doesn't make lower layers forget about those 375 if STU succeeds leaving lower layers in an inconsistent 428 On completion, the handler should have made lower layers forget about 468 - Know that timed out scmds are still active on lower layers. Make [all …]
|
| H A D | ufs.rst | 59 UFS communication architecture consists of the following layers. 80 layers. Device level configurations involve handling of query 88 the higher layers through Service Access Points. UTP defines 3 89 service access points for higher layers. 110 * UIO_SAP: To issue commands to Unipro layers.
|
| /linux/Documentation/driver-api/fpga/ |
| H A D | intro.rst | 9 * The FPGA subsystem separates upper layers (userspace interfaces and 10 enumeration) from lower layers that know how to program a specific 13 * Code should not be shared between upper and lower layers. This
|
| /linux/drivers/gpu/drm/xlnx/ |
| H A D | zynqmp_dpsub.h | 60 * @layers: Video and graphics layers 81 struct zynqmp_disp_layer *layers[ZYNQMP_DPSUB_NUM_LAYERS]; member
|
| /linux/drivers/parisc/ |
| H A D | pdc_stable.c | 358 for (i = 0; i < 6 && devpath->layers[i]; i++) in pdcspath_layer_read() 359 out += sprintf(out, "%u ", devpath->layers[i]); in pdcspath_layer_read() 373 * Layers are to be given '.'-delimited, without brackets. 381 unsigned int layers[6]; /* device-specific info (ctlr#, unit#, ...) */ in pdcspath_layer_write() local 393 memset(&layers, 0, sizeof(layers)); in pdcspath_layer_write() 398 layers[0] = simple_strtoul(in, NULL, 10); in pdcspath_layer_write() 399 DPRINTK("%s: layer[0]: %d\n", __func__, layers[0]); in pdcspath_layer_write() 405 layers[i] = simple_strtoul(temp, NULL, 10); in pdcspath_layer_write() 406 DPRINTK("%s: layer[%d]: %d\n", __func__, i, layers[ in pdcspath_layer_write() [all...] |
| /linux/drivers/gpu/drm/imagination/ |
| H A D | pvr_hwrt.c | 49 hwrt->max_rts = args->layers; in hwrt_init_kernel_structure() 387 rta_ctl->max_rts = args->layers; in hwrt_data_init_fw_structure() 389 if (args->layers > 1) { in hwrt_data_init_fw_structure() 390 err = pvr_fw_object_create(pvr_dev, args->layers * SRTC_ENTRY_SIZE, in hwrt_data_init_fw_structure() 398 err = pvr_fw_object_create(pvr_dev, args->layers * RAA_ENTRY_SIZE, in hwrt_data_init_fw_structure() 418 if (args->layers > 1) in hwrt_data_init_fw_structure() 422 if (args->layers > 1) in hwrt_data_init_fw_structure()
|