/lib/ |
D | cmdline.c | 23 static int get_range(char **str, int *pint, int n) in get_range() argument 27 (*str)++; in get_range() 28 upper_range = simple_strtol((*str), NULL, 0); in get_range() 50 int get_option(char **str, int *pint) in get_option() argument 52 char *cur = *str; in get_option() 56 *pint = simple_strtol(cur, str, 0); in get_option() 57 if (cur == *str) in get_option() 59 if (**str == ',') { in get_option() 60 (*str)++; in get_option() 63 if (**str == '-') in get_option() [all …]
|
D | vsprintf.c | 688 static int __init debug_boot_weak_hash_enable(char *str) in debug_boot_weak_hash_enable() argument 772 const char *str = sizeof(ptr) == 8 ? "(____ptrval____)" : "(ptrval)"; in ptr_to_id() local 786 return error_string(buf, end, str, spec); in ptr_to_id() 2461 char *str, *end; in vsnprintf() local 2469 str = buf; in vsnprintf() 2487 if (str < end) { in vsnprintf() 2488 if (copy > end - str) in vsnprintf() 2489 copy = end - str; in vsnprintf() 2490 memcpy(str, old_fmt, copy); in vsnprintf() 2492 str += read; in vsnprintf() [all …]
|
D | argv_split.c | 12 static int count_argc(const char *str) in count_argc() argument 17 for (was_space = true; *str; str++) { in count_argc() 18 if (isspace(*str)) { in count_argc() 60 char **argv_split(gfp_t gfp, const char *str, int *argcp) in argv_split() argument 67 argv_str = kstrndup(str, KMALLOC_MAX_SIZE - 1, gfp); in argv_split()
|
D | bitmap.c | 536 static const char *bitmap_getnum(const char *str, unsigned int *num) in bitmap_getnum() argument 541 len = _parse_integer(str, 10, &n); in bitmap_getnum() 548 return str + len; in bitmap_getnum() 570 static const char *bitmap_find_region(const char *str) in bitmap_find_region() argument 572 while (__end_of_region(*str)) in bitmap_find_region() 573 str++; in bitmap_find_region() 575 return end_of_str(*str) ? NULL : str; in bitmap_find_region() 578 static const char *bitmap_parse_region(const char *str, struct region *r) in bitmap_parse_region() argument 580 str = bitmap_getnum(str, &r->start); in bitmap_parse_region() 581 if (IS_ERR(str)) in bitmap_parse_region() [all …]
|
D | glob.c | 40 bool __pure glob_match(char const *pat, char const *str) in glob_match() argument 56 unsigned char c = *str++; in glob_match() 68 back_str = --str; /* Allow zero-length match */ in glob_match() 118 str = ++back_str; in glob_match()
|
D | globtest.c | 15 char const *pat, *str; member 19 static bool __pure __init test(char const *pat, char const *str, bool expected) in test() argument 21 bool match = glob_match(pat, str); in test() 39 printk(message, pat, str, mismatch + 3*match); in test()
|
D | strnlen_user.c | 92 long strnlen_user(const char __user *str, long count) in strnlen_user() argument 100 src_addr = (unsigned long)untagged_addr(str); in strnlen_user() 112 if (user_access_begin(str, max)) { in strnlen_user() 113 retval = do_strnlen_user(str, count, max); in strnlen_user()
|
D | test-kstrtox.c | 9 const char *str; member 18 const char *str; \ 36 rv = fn(t->str, t->base, &tmp); \ 39 t->str, t->base, rv, tmp); \ 54 rv = fn(t->str, t->base, &res); \ 57 t->str, t->base, t->expected_res, rv); \ 62 t->str, t->base, t->expected_res, res); \
|
D | dynamic_debug.c | 278 static inline int parse_lineno(const char *str, unsigned int *val) in parse_lineno() argument 280 BUG_ON(str == NULL); in parse_lineno() 281 if (*str == '\0') { in parse_lineno() 285 if (kstrtouint(str, 10, val) < 0) { in parse_lineno() 286 pr_err("bad line-number: %s\n", str); in parse_lineno() 395 static int ddebug_parse_flags(const char *str, unsigned int *flagsp, in ddebug_parse_flags() argument 401 switch (*str) { in ddebug_parse_flags() 405 op = *str++; in ddebug_parse_flags() 408 pr_err("bad flag-op %c, at start of %s\n", *str, str); in ddebug_parse_flags() 413 for (; *str ; ++str) { in ddebug_parse_flags() [all …]
|
D | parser.c | 249 bool match_wildcard(const char *pattern, const char *str) in match_wildcard() argument 251 const char *s = str; in match_wildcard() 263 str = s; in match_wildcard() 275 str++; in match_wildcard() 276 s = str; in match_wildcard()
|
D | seq_buf.c | 141 int seq_buf_puts(struct seq_buf *s, const char *str) in seq_buf_puts() argument 143 size_t len = strlen(str); in seq_buf_puts() 151 memcpy(s->buffer + s->len, str, len); in seq_buf_puts()
|
D | ubsan.c | 117 static void val_to_string(char *str, size_t size, struct type_descriptor *type, in val_to_string() argument 125 scnprintf(str, size, "0x%08x%08x%08x%08x", in val_to_string() 134 scnprintf(str, size, "%lld", in val_to_string() 137 scnprintf(str, size, "%llu", in val_to_string()
|
D | string.c | 484 char *skip_spaces(const char *str) in skip_spaces() argument 486 while (isspace(*str)) in skip_spaces() 487 ++str; in skip_spaces() 488 return (char *)str; in skip_spaces() 714 int __sysfs_match_string(const char * const *array, size_t n, const char *str) in __sysfs_match_string() argument 723 if (sysfs_streq(item, str)) in __sysfs_match_string()
|
D | fault-inject.c | 18 int setup_fault_attr(struct fault_attr *attr, char *str) in setup_fault_attr() argument 26 if (sscanf(str, "%lu,%lu,%d,%d", in setup_fault_attr()
|
D | nlattr.c | 605 int nla_strcmp(const struct nlattr *nla, const char *str) in nla_strcmp() argument 607 int len = strlen(str); in nla_strcmp() 617 d = memcmp(nla_data(nla), str, len); in nla_strcmp()
|
D | ioremap.c | 23 static int __init set_nohugeiomap(char *str) in set_nohugeiomap() argument
|
D | debugobjects.c | 105 static int __init enable_object_debug(char *str) in enable_object_debug() argument 111 static int __init disable_object_debug(char *str) in disable_object_debug() argument
|
D | locking-selftest.c | 34 static int __init setup_debug_locks_verbose(char *str) in setup_debug_locks_verbose() argument 36 get_option(&str, &debug_locks_verbose); in setup_debug_locks_verbose()
|
/lib/zstd/ |
D | fse.h | 59 #define FSE_QUOTE(str) #str argument 60 #define FSE_EXPAND_AND_QUOTE(str) FSE_QUOTE(str) argument
|
/lib/zlib_deflate/ |
D | deflate.c | 153 #define INSERT_STRING(s, str, match_head) \ argument 154 (UPDATE_HASH(s, s->ins_h, s->window[(str) + (MIN_MATCH-1)]), \ 155 s->prev[(str) & s->w_mask] = match_head = s->head[s->ins_h], \ 156 s->head[s->ins_h] = (Pos)(str))
|
D | defutil.h | 4 #define Assert(err, str) argument
|