Searched refs:num_layers (Results 1 – 9 of 9) sorted by relevance
| /linux/security/landlock/ |
| H A D | ruleset.c | 88 .num_layers = ~0, in build_check_rule() 92 * Checks that .num_layers is large enough for at least in is_object_pointer() 95 BUILD_BUG_ON(rule.num_layers < LANDLOCK_MAX_NUM_LAYERS); in is_object_pointer() 117 const struct landlock_layer (*layers)[], const u32 num_layers, in create_rule() 126 if (WARN_ON_ONCE(num_layers >= LANDLOCK_MAX_NUM_LAYERS)) in create_rule() 128 new_num_layers = num_layers + 1; in create_rule() 130 new_num_layers = num_layers; in create_rule() 144 new_rule->num_layers = new_num_layers; in create_rule() 147 flex_array_size(new_rule, layers, num_layers)); in get_root() 150 new_rule->layers[new_rule->num_layers in get_root() 31 create_ruleset(const u32 num_layers) create_ruleset() argument 110 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 210 insert_rule(struct landlock_ruleset * const ruleset,const struct landlock_id id,const struct landlock_layer (* layers)[],const size_t num_layers) insert_rule() argument 543 u32 num_layers; landlock_merge_ruleset() local [all...] |
| H A D | ruleset.h | 111 * @num_layers: Number of entries in @layers. 113 u32 num_layers; 118 struct landlock_layer layers[] __counted_by(num_layers); 213 const size_t num_layers); 116 u32 num_layers; global() member 185 u32 num_layers; global() member
|
| H A D | task.c | 123 .layer_plus_one = parent_subject->domain->num_layers, 176 .layer_plus_one = parent_subject->domain->num_layers, 204 client_layer = client->num_layers - 1; in domain_is_scoped() 215 server_layer = server ? (server->num_layers - 1) : -1; in domain_is_scoped()
|
| H A D | audit.c | |
| H A D | syscalls.c | 670 new_llcred->domain_exec |= BIT(new_dom->num_layers - 1);
|
| H A D | fs.c | 1716 client_layer = client->num_layers - 1; in hook_file_ioctl_common() 1718 server_layer = server->num_layers - 1; in hook_file_ioctl_common()
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmw_surface_cache.h | 153 u32 num_layers) in vmw_surface_get_serialized_size() argument 166 return total_size * num_layers; in vmw_surface_get_serialized_size() 177 u32 num_layers, in vmw_surface_get_serialized_size_extended() argument 184 num_layers); in vmw_surface_get_serialized_size_extended() 342 u32 num_layers; member 387 u32 num_layers, in vmw_surface_setup_cache() argument 397 cache->num_layers = num_layers; in vmw_surface_setup_cache() 420 cache->sheet_bytes = cache->mip_chain_bytes * num_layers; in vmw_surface_setup_cache()
|
| H A D | vmwgfx_surface.c | 2019 u32 num_layers = 1; in vmw_surface_dirty_alloc() local 2027 num_layers = metadata->array_size; in vmw_surface_dirty_alloc() 2029 num_layers *= SVGA3D_MAX_SURFACE_FACES; in vmw_surface_dirty_alloc() 2035 num_subres = num_layers * num_mip; in vmw_surface_dirty_alloc() 2046 num_mip, num_layers, num_samples, in vmw_surface_dirty_alloc() 2119 u32 num_layers = 1; in vmw_gb_surface_define() local 2173 num_layers = req->array_size; in vmw_gb_surface_define() 2175 num_layers = SVGA3D_MAX_SURFACE_FACES; in vmw_gb_surface_define() 2185 num_layers, in vmw_gb_surface_define()
|
| /linux/tools/testing/selftests/landlock/ |
| H A D | net_test.c | 1960 const size_t num_layers; in FIXTURE_SETUP() 1987 .num_layers = 0, in FIXTURE_VARIANT_ADD() 1994 .num_layers = 1, in FIXTURE_VARIANT_ADD() 2001 .num_layers = 2, in FIXTURE_VARIANT_ADD() 2008 .num_layers = 3, in FIXTURE_VARIANT_ADD() 2015 .num_layers = 0, in FIXTURE_VARIANT_ADD() 2022 .num_layers = 1, in FIXTURE_VARIANT_ADD() 2029 .num_layers = 2, in FIXTURE_VARIANT_ADD() 2036 .num_layers = 3, in TEST_F() 2055 if (variant->num_layers > in TEST_F() 1956 const size_t num_layers; FIXTURE_VARIANT() local [all...] |