Lines Matching refs:name

70 	char *name;  member
78 type->name = NULL; in type_expansion_init()
85 free(type->name); in type_expansion_free()
86 type->name = NULL; in type_expansion_free()
105 static int __type_map_get(const char *name, struct type_expansion **res) in __type_map_get() argument
109 hash_for_each_possible(type_map, e, hash, hash_str(name)) { in __type_map_get()
110 if (!strcmp(name, e->name)) { in __type_map_get()
119 static struct type_expansion *type_map_add(const char *name, in type_map_add() argument
124 if (__type_map_get(name, &e)) { in type_map_add()
127 e->name = xstrdup(name); in type_map_add()
129 hash_add(type_map, &e->hash, hash_str(e->name)); in type_map_add()
132 debug("adding %s", e->name); in type_map_add()
141 debug("replacing %s", e->name); in type_map_add()
149 checkp(fputs(e->name, stderr)); in type_map_add()
158 static void type_parse(const char *name, const char *str,
161 static int type_map_get(const char *name, struct type_expansion **res) in type_map_get() argument
166 if (!__type_map_get(name, res)) in type_map_get()
173 if (stable && kabi_get_type_string(name, &override)) { in type_map_get()
175 type_parse(name, override, &type); in type_map_get()
176 *res = type_map_add(name, &type); in type_map_get()
189 return strcmp((*e1)->name, (*e2)->name); in cmp_expansion_name()
212 checkp(fputs(es[i]->name, file)); in type_map_write()
297 char *name; in get_type_name() local
316 if (asprintf(&name, "%c#%s%s%s", prefix, quote, cache->fqn, quote) < 0) in get_type_name()
319 return name; in get_type_name()
333 entry->str, type->name); in __calculate_version()
363 char *name; in __type_expand() local
379 name = get_type_name(child); in __type_expand()
380 if (name) in __type_expand()
381 type_expansion_append(type, name, name); in __type_expand()
402 static void type_expand(const char *name, struct die *cache, in type_expand() argument
409 if (stable && kabi_get_type_string(name, &override)) in type_expand()
410 type_parse(name, override, type); in type_expand()
415 static void type_parse(const char *name, const char *str, in type_parse() argument
424 error("empty type string override for '%s'", name); in type_parse()
450 str[pos], name, str); in type_parse()
458 str[pos], name, str); in type_parse()
486 char *name; in expand_type() local
505 name = get_type_name(cache); in expand_type()
506 if (!name) in expand_type()
509 debug("%s", name); in expand_type()
511 type_expand(name, cache, &type); in expand_type()
512 type_map_add(name, &type); in expand_type()
514 free(name); in expand_type()
534 type_expand(sym->name, cache, &type); in expand_symbol()
540 debug("%s = %lx", sym->name, version.crc); in expand_symbol()
543 checkp(fputs(sym->name, stderr)); in expand_symbol()
554 type_map_add(sym->name, &type); in expand_symbol()