Lines Matching refs:namelen
291 check_suffix (const FTSENT *f, size_t namelen) in check_suffix() argument
294 if ((namelen ? f->fts_namelen == namelen + sizeof sfx - 1 \ in check_suffix()
672 const size_t namelen) in INTDEF()
674 const char *n = memchr (module_name, from, namelen); in INTDEF()
681 while ((p = memchr (n, from, namelen - (n - module_name))) != NULL) in INTDEF()
687 memcpy (a, n, namelen - (n - module_name) + 1); in INTDEF()
728 size_t namelen = strlen (module_name); in dwfl_linux_kernel_find_elf() local
741 char *alternate_name = malloc (namelen + 1); in dwfl_linux_kernel_find_elf()
747 if (!subst_name ('-', '_', module_name, alternate_name, namelen) && in dwfl_linux_kernel_find_elf()
748 !subst_name ('_', '-', module_name, alternate_name, namelen)) in dwfl_linux_kernel_find_elf()
771 if (check_suffix (f, namelen) in dwfl_linux_kernel_find_elf()
772 && (!memcmp (f->fts_name, module_name, namelen) in dwfl_linux_kernel_find_elf()
773 || !memcmp (f->fts_name, alternate_name, namelen))) in dwfl_linux_kernel_find_elf()
871 size_t namelen = strlen (secname); in INTDEF() local
872 if (namelen >= MODULE_SECT_NAME_LEN) in INTDEF()
885 sysfile[len - namelen] = '_'; in INTDEF()
887 sysfile[len - namelen] = '.'; in INTDEF()
891 && end - &sysfile[len - namelen] >= MODULE_SECT_NAME_LEN); in INTDEF()