• Home
  • Raw
  • Download

Lines Matching refs:s

26 const char *_parse_integer_fixup_radix(const char *s, unsigned int *base)  in _parse_integer_fixup_radix()  argument
29 if (s[0] == '0') { in _parse_integer_fixup_radix()
30 if (_tolower(s[1]) == 'x' && isxdigit(s[2])) in _parse_integer_fixup_radix()
37 if (*base == 16 && s[0] == '0' && _tolower(s[1]) == 'x') in _parse_integer_fixup_radix()
38 s += 2; in _parse_integer_fixup_radix()
39 return s; in _parse_integer_fixup_radix()
52 unsigned int _parse_integer_limit(const char *s, unsigned int base, unsigned long long *p, in _parse_integer_limit() argument
61 unsigned int c = *s; in _parse_integer_limit()
84 s++; in _parse_integer_limit()
91 unsigned int _parse_integer(const char *s, unsigned int base, unsigned long long *p) in _parse_integer() argument
93 return _parse_integer_limit(s, base, p, INT_MAX); in _parse_integer()
96 static int _kstrtoull(const char *s, unsigned int base, unsigned long long *res) in _kstrtoull() argument
101 s = _parse_integer_fixup_radix(s, &base); in _kstrtoull()
102 rv = _parse_integer(s, base, &_res); in _kstrtoull()
107 s += rv; in _kstrtoull()
108 if (*s == '\n') in _kstrtoull()
109 s++; in _kstrtoull()
110 if (*s) in _kstrtoull()
132 int kstrtoull(const char *s, unsigned int base, unsigned long long *res) in kstrtoull() argument
134 if (s[0] == '+') in kstrtoull()
135 s++; in kstrtoull()
136 return _kstrtoull(s, base, res); in kstrtoull()
156 int kstrtoll(const char *s, unsigned int base, long long *res) in kstrtoll() argument
161 if (s[0] == '-') { in kstrtoll()
162 rv = _kstrtoull(s + 1, base, &tmp); in kstrtoll()
169 rv = kstrtoull(s, base, &tmp); in kstrtoll()
181 int _kstrtoul(const char *s, unsigned int base, unsigned long *res) in _kstrtoul() argument
186 rv = kstrtoull(s, base, &tmp); in _kstrtoul()
197 int _kstrtol(const char *s, unsigned int base, long *res) in _kstrtol() argument
202 rv = kstrtoll(s, base, &tmp); in _kstrtol()
228 int kstrtouint(const char *s, unsigned int base, unsigned int *res) in kstrtouint() argument
233 rv = kstrtoull(s, base, &tmp); in kstrtouint()
259 int kstrtoint(const char *s, unsigned int base, int *res) in kstrtoint() argument
264 rv = kstrtoll(s, base, &tmp); in kstrtoint()
275 int kstrtou16(const char *s, unsigned int base, u16 *res) in kstrtou16() argument
280 rv = kstrtoull(s, base, &tmp); in kstrtou16()
291 int kstrtos16(const char *s, unsigned int base, s16 *res) in kstrtos16() argument
296 rv = kstrtoll(s, base, &tmp); in kstrtos16()
307 int kstrtou8(const char *s, unsigned int base, u8 *res) in kstrtou8() argument
312 rv = kstrtoull(s, base, &tmp); in kstrtou8()
323 int kstrtos8(const char *s, unsigned int base, s8 *res) in kstrtos8() argument
328 rv = kstrtoll(s, base, &tmp); in kstrtos8()
348 int kstrtobool(const char *s, bool *res) in kstrtobool() argument
350 if (!s) in kstrtobool()
353 switch (s[0]) { in kstrtobool()
370 switch (s[1]) { in kstrtobool()
395 int kstrtobool_from_user(const char __user *s, size_t count, bool *res) in kstrtobool_from_user() argument
401 if (copy_from_user(buf, s, count)) in kstrtobool_from_user()
409 int f(const char __user *s, size_t count, unsigned int base, type *res) \
415 if (copy_from_user(buf, s, count)) \