Home
last modified time | relevance | path

Searched refs:slen (Results 1 – 4 of 4) sorted by relevance

/scripts/basic/
Dfixdep.c183 static void use_config(const char *m, int slen) in use_config() argument
185 unsigned int hash = strhash(m, slen); in use_config()
187 if (is_defined_config(m, slen, hash)) in use_config()
190 define_config(m, slen, hash); in use_config()
192 xprintf(" $(wildcard include/config/%.*s) \\\n", slen, m); in use_config()
196 static int str_ends_with(const char *s, int slen, const char *sub) in str_ends_with() argument
200 if (sublen > slen) in str_ends_with()
203 return !memcmp(s + slen - sublen, sub, sublen); in str_ends_with()
/scripts/kconfig/
Dconfdata.c292 static int add_byte(int c, char **lineptr, size_t slen, size_t *n) in add_byte() argument
295 size_t new_size = slen + 1; in add_byte()
307 (*lineptr)[slen] = c; in add_byte()
315 size_t slen = 0; in compat_getline() local
322 if (add_byte(c, &line, slen, n) < 0) in compat_getline()
324 slen++; in compat_getline()
327 if (add_byte('\0', &line, slen, n) < 0) in compat_getline()
330 if (slen == 0) in compat_getline()
332 return slen; in compat_getline()
334 if (add_byte(c, &line, slen, n) < 0) in compat_getline()
[all …]
/scripts/dtc/libfdt/
Dfdt_ro.c108 int slen; in fdt_string_eq_() local
109 const char *p = fdt_get_string(fdt, stroffset, &slen); in fdt_string_eq_()
111 return p && (slen == len) && (memcmp(p, s, len) == 0); in fdt_string_eq_()
/scripts/mod/
Dmodpost.c802 int slen, sublen; in strrcmp() local
807 slen = strlen(s); in strrcmp()
810 if ((slen == 0) || (sublen == 0)) in strrcmp()
813 if (sublen > slen) in strrcmp()
816 return memcmp(s + slen - sublen, sub, sublen); in strrcmp()