Lines Matching refs:names_map
4782 static int btf_dedup_fill_unique_names_map(struct btf_dedup *d, struct hashmap *names_map) in btf_dedup_fill_unique_names_map() argument
4805 err = hashmap__add(names_map, t->name_off, type_id); in btf_dedup_fill_unique_names_map()
4807 err = hashmap__set(names_map, t->name_off, 0, NULL, NULL); in btf_dedup_fill_unique_names_map()
4816 static int btf_dedup_resolve_fwd(struct btf_dedup *d, struct hashmap *names_map, __u32 type_id) in btf_dedup_resolve_fwd() argument
4831 if (!hashmap__find(names_map, t->name_off, &cand_id)) in btf_dedup_resolve_fwd()
4884 struct hashmap *names_map; in btf_dedup_resolve_fwds() local
4886 names_map = hashmap__new(btf_dedup_identity_hash_fn, btf_dedup_equal_fn, NULL); in btf_dedup_resolve_fwds()
4887 if (IS_ERR(names_map)) in btf_dedup_resolve_fwds()
4888 return PTR_ERR(names_map); in btf_dedup_resolve_fwds()
4890 err = btf_dedup_fill_unique_names_map(d, names_map); in btf_dedup_resolve_fwds()
4895 err = btf_dedup_resolve_fwd(d, names_map, d->btf->start_id + i); in btf_dedup_resolve_fwds()
4901 hashmap__free(names_map); in btf_dedup_resolve_fwds()