Searched refs:slen (Results 1 – 4 of 4) sorted by relevance
/scripts/basic/ |
D | fixdep.c | 141 static void print_dep(const char *m, int slen, const char *dir) in print_dep() argument 146 for (i = 0; i < slen; i++) { in print_dep() 215 static void use_config(const char *m, int slen) in use_config() argument 217 unsigned int hash = strhash(m, slen); in use_config() 219 if (is_defined_config(m, slen, hash)) in use_config() 222 define_config(m, slen, hash); in use_config() 223 print_dep(m, slen, "include/config"); in use_config() 227 static int str_ends_with(const char *s, int slen, const char *sub) in str_ends_with() argument 231 if (sublen > slen) in str_ends_with() 234 return !memcmp(s + slen - sublen, sub, sublen); in str_ends_with()
|
/scripts/kconfig/ |
D | confdata.c | 296 static int add_byte(int c, char **lineptr, size_t slen, size_t *n) in add_byte() argument 299 size_t new_size = slen + 1; in add_byte() 311 (*lineptr)[slen] = c; in add_byte() 319 size_t slen = 0; in compat_getline() local 326 if (add_byte(c, &line, slen, n) < 0) in compat_getline() 328 slen++; in compat_getline() 331 if (add_byte('\0', &line, slen, n) < 0) in compat_getline() 334 if (slen == 0) in compat_getline() 336 return slen; in compat_getline() 338 if (add_byte(c, &line, slen, n) < 0) in compat_getline() [all …]
|
/scripts/dtc/libfdt/ |
D | fdt_ro.c | 108 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/ |
D | modpost.c | 808 int slen, sublen; in strrcmp() local 813 slen = strlen(s); in strrcmp() 816 if ((slen == 0) || (sublen == 0)) in strrcmp() 819 if (sublen > slen) in strrcmp() 822 return memcmp(s + slen - sublen, sub, sublen); in strrcmp()
|