Lines Matching refs:str
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()
56 int get_option(char **str, int *pint) in get_option() argument
58 char *cur = *str; in get_option()
64 value = -simple_strtoull(++cur, str, 0); in get_option()
66 value = simple_strtoull(cur, str, 0); in get_option()
69 if (cur == *str) in get_option()
71 if (**str == ',') { in get_option()
72 (*str)++; in get_option()
75 if (**str == '-') in get_option()
107 char *get_options(const char *str, int nints, int *ints) in get_options() argument
115 res = get_option((char **)&str, pint); in get_options()
122 range_nums = get_range((char **)&str, pint, n); in get_options()
137 return (char *)str; in get_options()
203 bool parse_option_str(const char *str, const char *option) in parse_option_str() argument
205 while (*str) { in parse_option_str()
206 if (!strncmp(str, option, strlen(option))) { in parse_option_str()
207 str += strlen(option); in parse_option_str()
208 if (!*str || *str == ',') in parse_option_str()
212 while (*str && *str != ',') in parse_option_str()
213 str++; in parse_option_str()
215 if (*str == ',') in parse_option_str()
216 str++; in parse_option_str()