Lines Matching defs:names_map
4791 static int btf_dedup_fill_unique_names_map(struct btf_dedup *d, struct hashmap *names_map)
4814 err = hashmap__add(names_map, t->name_off, type_id);
4816 err = hashmap__set(names_map, t->name_off, 0, NULL, NULL);
4825 static int btf_dedup_resolve_fwd(struct btf_dedup *d, struct hashmap *names_map, __u32 type_id)
4840 if (!hashmap__find(names_map, t->name_off, &cand_id))
4893 struct hashmap *names_map;
4895 names_map = hashmap__new(btf_dedup_identity_hash_fn, btf_dedup_equal_fn, NULL);
4896 if (IS_ERR(names_map))
4897 return PTR_ERR(names_map);
4899 err = btf_dedup_fill_unique_names_map(d, names_map);
4904 err = btf_dedup_resolve_fwd(d, names_map, d->btf->start_id + i);
4910 hashmap__free(names_map);