Lines Matching defs:names_map
5930 static int btf_dedup_fill_unique_names_map(struct btf_dedup *d, struct hashmap *names_map)
5953 err = hashmap__add(names_map, t->name_off, type_id);
5955 err = hashmap__set(names_map, t->name_off, 0, NULL, NULL);
5964 static int btf_dedup_resolve_fwd(struct btf_dedup *d, struct hashmap *names_map, __u32 type_id)
5979 if (!hashmap__find(names_map, t->name_off, &cand_id))
6032 struct hashmap *names_map;
6034 names_map = hashmap__new(btf_dedup_identity_hash_fn, btf_dedup_equal_fn, NULL);
6035 if (IS_ERR(names_map))
6036 return PTR_ERR(names_map);
6038 err = btf_dedup_fill_unique_names_map(d, names_map);
6043 err = btf_dedup_resolve_fwd(d, names_map, d->btf->start_id + i);
6049 hashmap__free(names_map);