Lines Matching refs:inner_map
14 struct bpf_map *inner_map, *inner_map_meta; in bpf_map_meta_alloc() local
18 inner_map = __bpf_map_get(f); in bpf_map_meta_alloc()
19 if (IS_ERR(inner_map)) in bpf_map_meta_alloc()
20 return inner_map; in bpf_map_meta_alloc()
26 if (inner_map->map_type == BPF_MAP_TYPE_PROG_ARRAY || in bpf_map_meta_alloc()
27 inner_map->map_type == BPF_MAP_TYPE_CGROUP_STORAGE) { in bpf_map_meta_alloc()
33 if (inner_map->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->ops = inner_map->ops; in bpf_map_meta_alloc()
49 inner_map_meta->max_entries = inner_map->max_entries; in bpf_map_meta_alloc()
75 struct bpf_map *inner_map; in bpf_map_fd_get_ptr() local
79 inner_map = __bpf_map_get(f); in bpf_map_fd_get_ptr()
80 if (IS_ERR(inner_map)) in bpf_map_fd_get_ptr()
81 return inner_map; in bpf_map_fd_get_ptr()
83 if (bpf_map_meta_equal(map->inner_map_meta, inner_map)) in bpf_map_fd_get_ptr()
84 inner_map = bpf_map_inc(inner_map, false); in bpf_map_fd_get_ptr()
86 inner_map = ERR_PTR(-EINVAL); in bpf_map_fd_get_ptr()
89 return inner_map; in bpf_map_fd_get_ptr()