Lines Matching refs:inner_map_meta

12 	struct bpf_map *inner_map, *inner_map_meta;  in bpf_map_meta_alloc()  local
23 if (inner_map->inner_map_meta) { in bpf_map_meta_alloc()
33 inner_map_meta_size = sizeof(*inner_map_meta); in bpf_map_meta_alloc()
38 inner_map_meta = kzalloc(inner_map_meta_size, GFP_USER); in bpf_map_meta_alloc()
39 if (!inner_map_meta) { in bpf_map_meta_alloc()
44 inner_map_meta->map_type = inner_map->map_type; in bpf_map_meta_alloc()
45 inner_map_meta->key_size = inner_map->key_size; in bpf_map_meta_alloc()
46 inner_map_meta->value_size = inner_map->value_size; in bpf_map_meta_alloc()
47 inner_map_meta->map_flags = inner_map->map_flags; in bpf_map_meta_alloc()
48 inner_map_meta->max_entries = inner_map->max_entries; in bpf_map_meta_alloc()
50 inner_map_meta->record = btf_record_dup(inner_map->record); in bpf_map_meta_alloc()
51 if (IS_ERR(inner_map_meta->record)) { in bpf_map_meta_alloc()
56 ret = PTR_ERR(inner_map_meta->record); in bpf_map_meta_alloc()
66 inner_map_meta->btf = inner_map->btf; in bpf_map_meta_alloc()
70 inner_map_meta->ops = inner_map->ops; in bpf_map_meta_alloc()
73 container_of(inner_map_meta, struct bpf_array, map); in bpf_map_meta_alloc()
78 inner_map_meta->bypass_spec_v1 = inner_map->bypass_spec_v1; in bpf_map_meta_alloc()
82 return inner_map_meta; in bpf_map_meta_alloc()
84 kfree(inner_map_meta); in bpf_map_meta_alloc()
112 struct bpf_map *inner_map, *inner_map_meta; in bpf_map_fd_get_ptr() local
120 inner_map_meta = map->inner_map_meta; in bpf_map_fd_get_ptr()
121 if (inner_map_meta->ops->map_meta_equal(inner_map_meta, inner_map)) in bpf_map_fd_get_ptr()