Lines Matching refs:name

157 		if (strcmp(mod->name, modname) == 0)
170 strcpy(mod->name, modname);
196 char name[];
202 static inline unsigned int tdb_hash(const char *name)
208 for (value = 0x238F13AF * strlen(name), i = 0; name[i]; i++)
209 value = (value + (((unsigned char *)name)[i] << (i*5 % 24)));
218 static struct symbol *alloc_symbol(const char *name, unsigned int weak,
221 struct symbol *s = NOFAIL(malloc(sizeof(*s) + strlen(name) + 1));
224 strcpy(s->name, name);
232 static struct symbol *new_symbol(const char *name, struct module *module,
237 hash = tdb_hash(name) % SYMBOL_HASH_SIZE;
238 symbolhash[hash] = alloc_symbol(name, 0, symbolhash[hash]);
243 static struct symbol *find_symbol(const char *name)
248 if (name[0] == '.')
249 name++;
251 for (s = symbolhash[tdb_hash(name) % SYMBOL_HASH_SIZE]; s; s = s->next) {
252 if (strcmp(s->name, name) == 0)
412 static struct symbol *sym_add_exported(const char *name, struct module *mod,
415 struct symbol *s = find_symbol(name);
418 s = new_symbol(name, mod, export);
422 mod->name, name, s->module->name,
432 static void sym_set_crc(const char *name, unsigned int crc)
434 struct symbol *s = find_symbol(name);
679 symname, mod->name, mod->is_vmlinux ? "" : ".ko");
699 const char *name;
711 warn("\"%s\" [%s] is COMMON symbol\n", symname, mod->name);
740 name = symname + strlen("__ksymtab_");
741 sym_add_exported(name, mod, export);
1272 * If there's no name there, ignore it; likewise, ignore it if it's
1282 const char *name = elf->strtab + sym->st_name;
1284 if (!name || !strlen(name))
1286 return !is_arm_mapping_symbol(name);
1309 * Strive to find a better symbol name, but the resulting name may not
1340 * If we find two symbols with equal offset prefer one with a valid name.
1374 * Convert a section name to the function/data attribute
1430 static inline void get_pretty_name(int is_func, const char** name, const char** name_p)
1433 case 0: *name = "variable"; *name_p = ""; break;
1434 case 1: *name = "function"; *name_p = "()"; break;
1435 default: *name = "(unknown reference)"; *name_p = ""; break;
1490 "or name the variable:\n",
1512 "name the variable:\n",
1877 /* if from section (name) is know good then skip it */
1930 /* if from section (name) is know good then skip it */
2217 exp = find_symbol(s->name);
2222 s->name, mod->name);
2228 basename = strrchr(mod->name, '/');
2232 basename = mod->name;
2238 basename, exp->name, exp->namespace);
2245 check_for_gpl_usage(exp->export, basename, exp->name);
2246 check_for_unused(exp->export, basename, exp->name);
2256 mod_name = strrchr(mod->name, '/');
2258 mod_name = mod->name;
2262 merror("module name is too long [%s.ko]\n", mod->name);
2287 buf_printf(b, "MODULE_INFO(name, KBUILD_MODNAME);\n");
2291 buf_printf(b, "\t.name = KBUILD_MODNAME,\n");
2316 static void add_staging_flag(struct buffer *b, const char *name)
2318 if (strstarts(name, "drivers/staging"))
2331 exp = find_symbol(s->name);
2351 s->name, mod->name);
2354 if (strlen(s->name) >= MODULE_NAME_LEN) {
2356 s->name, mod->name);
2361 s->crc, s->name);
2390 p = strrchr(s->module->name, '/');
2394 p = s->module->name;
2530 symbol->crc, symbol->name,
2531 symbol->module->name,
2553 buf_printf(&ns_deps_buf, "%s.ko:", mod->name);
2663 add_staging_flag(&buf, mod->name);
2669 sprintf(fname, "%s.mod.c", mod->name);
2687 s->name, s->module->name,