Lines Matching refs:s

239 	struct symbol *s = xmalloc(sizeof(*s) + strlen(name) + 1);  in alloc_symbol()  local
241 memset(s, 0, sizeof(*s)); in alloc_symbol()
242 strcpy(s->name, name); in alloc_symbol()
244 return s; in alloc_symbol()
265 struct symbol *s; in sym_find_with_module() local
271 hash_for_each_possible(symbol_hashtable, s, hnode, hash_str(name)) { in sym_find_with_module()
272 if (strcmp(s->name, name) == 0 && (!mod || s->module == mod)) in sym_find_with_module()
273 return s; in sym_find_with_module()
354 struct symbol *s = find_symbol(name); in sym_add_exported() local
356 if (s && (!external_module || s->module->is_vmlinux || s->module == mod)) { in sym_add_exported()
358 mod->name, name, s->module->name, in sym_add_exported()
359 s->module->is_vmlinux ? "" : ".ko"); in sym_add_exported()
362 s = alloc_symbol(name); in sym_add_exported()
363 s->module = mod; in sym_add_exported()
364 s->is_gpl_only = gpl_only; in sym_add_exported()
365 s->namespace = xstrdup(namespace); in sym_add_exported()
366 list_add_tail(&s->list, &mod->exported_symbols); in sym_add_exported()
367 hash_add_symbol(s); in sym_add_exported()
369 return s; in sym_add_exported()
1073 struct symbol *s; in check_export_symbol() local
1111 s = sym_add_exported(name, mod, is_gpl, data); in check_export_symbol()
1117 s->is_func = (ELF_ST_TYPE(sym->st_info) == STT_FUNC); in check_export_symbol()
1126 s->is_func = true; in check_export_symbol()
1455 static char *remove_dot(char *s) in remove_dot() argument
1457 size_t n = strcspn(s, "."); in remove_dot()
1459 if (n && s[n]) { in remove_dot()
1460 size_t m = strspn(s + n + 1, "0123456789"); in remove_dot()
1461 if (m && (s[n + m + 1] == '.' || s[n + m + 1] == 0)) in remove_dot()
1462 s[n] = 0; in remove_dot()
1464 return s; in remove_dot()
1682 void buf_write(struct buffer *buf, const char *s, int len) in buf_write() argument
1688 strncpy(buf->p + buf->pos, s, len); in buf_write()
1734 struct symbol *s, *exp; in check_exports() local
1736 list_for_each_entry(s, &mod->unresolved_symbols, list) { in check_exports()
1738 exp = find_symbol(s->name); in check_exports()
1740 if (!s->weak && nr_unresolved++ < MAX_UNRESOLVED_REPORTS) in check_exports()
1743 s->name, mod->name); in check_exports()
1748 s->name, mod->name); in check_exports()
1753 s->module = exp->module; in check_exports()
1754 s->crc_valid = exp->crc_valid; in check_exports()
1755 s->crc = exp->crc; in check_exports()
1799 for (char *s = mod->no_trim_symbol; s; s = next_string(s , &size)) { in keep_no_trim_symbols() local
1806 sym = find_symbol(s); in keep_no_trim_symbols()
1895 struct symbol *s; in add_extended_versions() local
1903 list_for_each_entry(s, &mod->unresolved_symbols, list) { in add_extended_versions()
1904 if (!s->module) in add_extended_versions()
1906 if (!s->crc_valid) { in add_extended_versions()
1908 s->name, mod->name); in add_extended_versions()
1911 buf_printf(b, "\t0x%08x,\n", s->crc); in add_extended_versions()
1917 list_for_each_entry(s, &mod->unresolved_symbols, list) { in add_extended_versions()
1918 if (!s->module) in add_extended_versions()
1920 if (!s->crc_valid) in add_extended_versions()
1928 buf_printf(b, "\t\"%s\\0\"\n", s->name); in add_extended_versions()
1938 struct symbol *s; in add_versions() local
1947 list_for_each_entry(s, &mod->unresolved_symbols, list) { in add_versions()
1948 if (!s->module) in add_versions()
1950 if (!s->crc_valid) { in add_versions()
1952 s->name, mod->name); in add_versions()
1955 if (strlen(s->name) >= MODULE_NAME_LEN) { in add_versions()
1961 s->name, mod->name); in add_versions()
1966 s->crc, s->name); in add_versions()
1974 struct symbol *s; in add_depends() local
1978 list_for_each_entry(s, &mod->unresolved_symbols, list) { in add_depends()
1979 if (s->module) in add_depends()
1980 s->module->seen = s->module->is_vmlinux; in add_depends()
1985 list_for_each_entry(s, &mod->unresolved_symbols, list) { in add_depends()
1987 if (!s->module) in add_depends()
1990 if (s->module->seen) in add_depends()
1993 s->module->seen = true; in add_depends()
1994 p = get_basename(s->module->name); in add_depends()
2132 struct symbol *s; in read_dump() local
2166 s = sym_add_exported(symname, mod, gpl_only, namespace); in read_dump()
2167 sym_set_crc(s, crc); in read_dump()
2230 short s; in check_host_endian() member
2234 switch (endian_test.s) { in check_host_endian()