Home
last modified time | relevance | path

Searched refs:str (Results 1 – 17 of 17) sorted by relevance

/lib/
Dcmdline.c25 static int get_range(char **str, int *pint, int n) in get_range() argument
29 (*str)++; in get_range()
30 upper_range = simple_strtol((*str), NULL, 0); in get_range()
52 int get_option(char **str, int *pint) in get_option() argument
54 char *cur = *str; in get_option()
58 *pint = simple_strtol(cur, str, 0); in get_option()
59 if (cur == *str) in get_option()
61 if (**str == ',') { in get_option()
62 (*str)++; in get_option()
65 if (**str == '-') in get_option()
[all …]
Dvsprintf.c1726 char *str, *end; in vsnprintf() local
1734 str = buf; in vsnprintf()
1752 if (str < end) { in vsnprintf()
1753 if (copy > end - str) in vsnprintf()
1754 copy = end - str; in vsnprintf()
1755 memcpy(str, old_fmt, copy); in vsnprintf()
1757 str += read; in vsnprintf()
1774 if (str < end) in vsnprintf()
1775 *str = ' '; in vsnprintf()
1776 ++str; in vsnprintf()
[all …]
Dargv_split.c11 static int count_argc(const char *str) in count_argc() argument
16 for (was_space = true; *str; str++) { in count_argc()
17 if (isspace(*str)) { in count_argc()
59 char **argv_split(gfp_t gfp, const char *str, int *argcp) in argv_split() argument
66 argv_str = kstrndup(str, KMALLOC_MAX_SIZE - 1, gfp); in argv_split()
Dglob.c40 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()
136 char const *pat, *str; member
140 static bool __pure __init test(char const *pat, char const *str, bool expected) in test() argument
142 bool match = glob_match(pat, str); in test()
160 printk(message, pat, str, mismatch + 3*match); in test()
Dstrnlen_user.c95 long strnlen_user(const char __user *str, long count) in strnlen_user() argument
103 src_addr = (unsigned long)str; in strnlen_user()
109 retval = do_strnlen_user(str, count, max); in strnlen_user()
131 long strlen_user(const char __user *str) in strlen_user() argument
136 src_addr = (unsigned long)str; in strlen_user()
142 retval = do_strnlen_user(str, ~0ul, max); in strlen_user()
Dtest-kstrtox.c9 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); \
Dparser.c210 bool match_wildcard(const char *pattern, const char *str) in match_wildcard() argument
212 const char *s = str; in match_wildcard()
224 str = s; in match_wildcard()
236 str++; in match_wildcard()
237 s = str; in match_wildcard()
Ddynamic_debug.c269 static inline int parse_lineno(const char *str, unsigned int *val) in parse_lineno() argument
271 BUG_ON(str == NULL); in parse_lineno()
272 if (*str == '\0') { in parse_lineno()
276 if (kstrtouint(str, 10, val) < 0) { in parse_lineno()
277 pr_err("bad line-number: %s\n", str); in parse_lineno()
386 static int ddebug_parse_flags(const char *str, unsigned int *flagsp, in ddebug_parse_flags() argument
392 switch (*str) { in ddebug_parse_flags()
396 op = *str++; in ddebug_parse_flags()
399 pr_err("bad flag-op %c, at start of %s\n", *str, str); in ddebug_parse_flags()
404 for (; *str ; ++str) { in ddebug_parse_flags()
[all …]
Dswiotlb.c100 setup_io_tlb_npages(char *str) in setup_io_tlb_npages() argument
102 if (isdigit(*str)) { in setup_io_tlb_npages()
103 io_tlb_nslabs = simple_strtoul(str, &str, 0); in setup_io_tlb_npages()
107 if (*str == ',') in setup_io_tlb_npages()
108 ++str; in setup_io_tlb_npages()
109 if (!strcmp(str, "force")) in setup_io_tlb_npages()
Dfault-inject.c17 int setup_fault_attr(struct fault_attr *attr, char *str) in setup_fault_attr() argument
25 if (sscanf(str, "%lu,%lu,%d,%d", in setup_fault_attr()
Ddma-debug.c1027 static __init int dma_debug_cmdline(char *str) in dma_debug_cmdline() argument
1029 if (!str) in dma_debug_cmdline()
1032 if (strncmp(str, "off", 3) == 0) { in dma_debug_cmdline()
1040 static __init int dma_debug_entries_cmdline(char *str) in dma_debug_entries_cmdline() argument
1044 if (!str) in dma_debug_entries_cmdline()
1047 res = get_option(&str, &req_entries); in dma_debug_entries_cmdline()
1618 static int __init dma_debug_driver_setup(char *str) in dma_debug_driver_setup() argument
1622 for (i = 0; i < NAME_MAX_LEN - 1; ++i, ++str) { in dma_debug_driver_setup()
1623 current_driver_name[i] = *str; in dma_debug_driver_setup()
1624 if (*str == 0) in dma_debug_driver_setup()
Dnlattr.c311 int nla_strcmp(const struct nlattr *nla, const char *str) in nla_strcmp() argument
313 int len = strlen(str); in nla_strcmp()
323 d = memcmp(nla_data(nla), str, len); in nla_strcmp()
Dstring.c446 char *skip_spaces(const char *str) in skip_spaces() argument
448 while (isspace(*str)) in skip_spaces()
449 ++str; in skip_spaces()
450 return (char *)str; in skip_spaces()
Ddebugobjects.c61 static int __init enable_object_debug(char *str) in enable_object_debug() argument
67 static int __init disable_object_debug(char *str) in disable_object_debug() argument
Dlocking-selftest.c32 static int __init setup_debug_locks_verbose(char *str) in setup_debug_locks_verbose() argument
34 get_option(&str, &debug_locks_verbose); in setup_debug_locks_verbose()
/lib/zlib_deflate/
Ddeflate.c153 #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))
Ddefutil.h4 #define Assert(err, str) argument