Searched refs:slen (Results 1 – 3 of 3) sorted by relevance
/scripts/basic/ |
D | fixdep.c | 164 static void use_config(const char *m, int slen) in use_config() argument 166 unsigned int hash = strhash(m, slen); in use_config() 168 if (is_defined_config(m, slen, hash)) in use_config() 171 define_config(m, slen, hash); in use_config() 173 printf(" $(wildcard include/config/%.*s) \\\n", slen, m); in use_config() 177 static int str_ends_with(const char *s, int slen, const char *sub) in str_ends_with() argument 181 if (sublen > slen) in str_ends_with() 184 return !memcmp(s + slen - sublen, sub, sublen); in str_ends_with()
|
/scripts/kconfig/ |
D | confdata.c | 290 static int add_byte(int c, char **lineptr, size_t slen, size_t *n) in add_byte() argument 293 size_t new_size = slen + 1; in add_byte() 305 (*lineptr)[slen] = c; in add_byte() 313 size_t slen = 0; in compat_getline() local 320 if (add_byte(c, &line, slen, n) < 0) in compat_getline() 322 slen++; in compat_getline() 325 if (add_byte('\0', &line, slen, n) < 0) in compat_getline() 328 if (slen == 0) in compat_getline() 330 return slen; in compat_getline() 332 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_()
|