• Home
  • Raw
  • Download

Lines Matching refs:inner_map

12 	struct bpf_map *inner_map, *inner_map_meta;  in bpf_map_meta_alloc()  local
17 inner_map = __bpf_map_get(f); in bpf_map_meta_alloc()
18 if (IS_ERR(inner_map)) in bpf_map_meta_alloc()
19 return inner_map; in bpf_map_meta_alloc()
22 if (inner_map->inner_map_meta) { in bpf_map_meta_alloc()
27 if (!inner_map->ops->map_meta_equal) { in bpf_map_meta_alloc()
32 if (map_value_has_spin_lock(inner_map)) { in bpf_map_meta_alloc()
39 if (inner_map->ops == &array_map_ops) in bpf_map_meta_alloc()
48 inner_map_meta->map_type = inner_map->map_type; in bpf_map_meta_alloc()
49 inner_map_meta->key_size = inner_map->key_size; in bpf_map_meta_alloc()
50 inner_map_meta->value_size = inner_map->value_size; in bpf_map_meta_alloc()
51 inner_map_meta->map_flags = inner_map->map_flags; in bpf_map_meta_alloc()
52 inner_map_meta->max_entries = inner_map->max_entries; in bpf_map_meta_alloc()
53 inner_map_meta->spin_lock_off = inner_map->spin_lock_off; in bpf_map_meta_alloc()
54 inner_map_meta->timer_off = inner_map->timer_off; in bpf_map_meta_alloc()
55 inner_map_meta->kptr_off_tab = bpf_map_copy_kptr_off_tab(inner_map); in bpf_map_meta_alloc()
56 if (inner_map->btf) { in bpf_map_meta_alloc()
57 btf_get(inner_map->btf); in bpf_map_meta_alloc()
58 inner_map_meta->btf = inner_map->btf; in bpf_map_meta_alloc()
62 inner_map_meta->ops = inner_map->ops; in bpf_map_meta_alloc()
63 if (inner_map->ops == &array_map_ops) { in bpf_map_meta_alloc()
66 struct bpf_array *inner_array = container_of(inner_map, struct bpf_array, map); in bpf_map_meta_alloc()
70 inner_map_meta->bypass_spec_v1 = inner_map->bypass_spec_v1; in bpf_map_meta_alloc()
100 struct bpf_map *inner_map, *inner_map_meta; in bpf_map_fd_get_ptr() local
104 inner_map = __bpf_map_get(f); in bpf_map_fd_get_ptr()
105 if (IS_ERR(inner_map)) in bpf_map_fd_get_ptr()
106 return inner_map; in bpf_map_fd_get_ptr()
109 if (inner_map_meta->ops->map_meta_equal(inner_map_meta, inner_map)) in bpf_map_fd_get_ptr()
110 bpf_map_inc(inner_map); in bpf_map_fd_get_ptr()
112 inner_map = ERR_PTR(-EINVAL); in bpf_map_fd_get_ptr()
115 return inner_map; in bpf_map_fd_get_ptr()