inner_map 795 kernel/bpf/arraymap.c struct bpf_map **inner_map = array_map_lookup_elem(map, key); inner_map 797 kernel/bpf/arraymap.c if (!inner_map) inner_map 800 kernel/bpf/arraymap.c return READ_ONCE(*inner_map); inner_map 1472 kernel/bpf/hashtab.c struct bpf_map **inner_map = htab_map_lookup_elem(map, key); inner_map 1474 kernel/bpf/hashtab.c if (!inner_map) inner_map 1477 kernel/bpf/hashtab.c return READ_ONCE(*inner_map); inner_map 11 kernel/bpf/map_in_map.c struct bpf_map *inner_map, *inner_map_meta; inner_map 16 kernel/bpf/map_in_map.c inner_map = __bpf_map_get(f); inner_map 17 kernel/bpf/map_in_map.c if (IS_ERR(inner_map)) inner_map 18 kernel/bpf/map_in_map.c return inner_map; inner_map 24 kernel/bpf/map_in_map.c if (inner_map->map_type == BPF_MAP_TYPE_PROG_ARRAY || inner_map 25 kernel/bpf/map_in_map.c inner_map->map_type == BPF_MAP_TYPE_CGROUP_STORAGE || inner_map 26 kernel/bpf/map_in_map.c inner_map->map_type == BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE) { inner_map 32 kernel/bpf/map_in_map.c if (inner_map->inner_map_meta) { inner_map 37 kernel/bpf/map_in_map.c if (map_value_has_spin_lock(inner_map)) { inner_map 44 kernel/bpf/map_in_map.c if (inner_map->ops == &array_map_ops) inner_map 53 kernel/bpf/map_in_map.c inner_map_meta->map_type = inner_map->map_type; inner_map 54 kernel/bpf/map_in_map.c inner_map_meta->key_size = inner_map->key_size; inner_map 55 kernel/bpf/map_in_map.c inner_map_meta->value_size = inner_map->value_size; inner_map 56 kernel/bpf/map_in_map.c inner_map_meta->map_flags = inner_map->map_flags; inner_map 57 kernel/bpf/map_in_map.c inner_map_meta->max_entries = inner_map->max_entries; inner_map 58 kernel/bpf/map_in_map.c inner_map_meta->spin_lock_off = inner_map->spin_lock_off; inner_map 61 kernel/bpf/map_in_map.c inner_map_meta->ops = inner_map->ops; inner_map 62 kernel/bpf/map_in_map.c if (inner_map->ops == &array_map_ops) { inner_map 63 kernel/bpf/map_in_map.c inner_map_meta->unpriv_array = inner_map->unpriv_array; inner_map 65 kernel/bpf/map_in_map.c container_of(inner_map, struct bpf_array, map)->index_mask; inner_map 92 kernel/bpf/map_in_map.c struct bpf_map *inner_map; inner_map 96 kernel/bpf/map_in_map.c inner_map = __bpf_map_get(f); inner_map 97 kernel/bpf/map_in_map.c if (IS_ERR(inner_map)) inner_map 98 kernel/bpf/map_in_map.c return inner_map; inner_map 100 kernel/bpf/map_in_map.c if (bpf_map_meta_equal(map->inner_map_meta, inner_map)) inner_map 101 kernel/bpf/map_in_map.c inner_map = bpf_map_inc(inner_map, false); inner_map 103 kernel/bpf/map_in_map.c inner_map = ERR_PTR(-EINVAL); inner_map 106 kernel/bpf/map_in_map.c return inner_map; inner_map 73 samples/bpf/test_map_in_map_kern.c static __always_inline int do_reg_lookup(void *inner_map, u32 port) inner_map 77 samples/bpf/test_map_in_map_kern.c result = bpf_map_lookup_elem(inner_map, &port); inner_map 81 samples/bpf/test_map_in_map_kern.c static __always_inline int do_inline_array_lookup(void *inner_map, u32 port) inner_map 85 samples/bpf/test_map_in_map_kern.c if (inner_map != &port_a) inner_map 92 samples/bpf/test_map_in_map_kern.c static __always_inline int do_inline_hash_lookup(void *inner_map, u32 port) inner_map 96 samples/bpf/test_map_in_map_kern.c if (inner_map != &port_h) inner_map 110 samples/bpf/test_map_in_map_kern.c void *outer_map, *inner_map; inner_map 151 samples/bpf/test_map_in_map_kern.c inner_map = bpf_map_lookup_elem(outer_map, &port_key); inner_map 152 samples/bpf/test_map_in_map_kern.c if (!inner_map) { inner_map 158 samples/bpf/test_map_in_map_kern.c ret = do_reg_lookup(inner_map, port_key); inner_map 161 samples/bpf/test_map_in_map_kern.c inline_ret = do_inline_array_lookup(inner_map, port_key); inner_map 163 samples/bpf/test_map_in_map_kern.c inline_ret = do_inline_hash_lookup(inner_map, port_key);