• Home
  • Raw
  • Download

Lines Matching refs:s

23 const char *_parse_integer_fixup_radix(const char *s, unsigned int *base)  in _parse_integer_fixup_radix()  argument
26 if (s[0] == '0') { in _parse_integer_fixup_radix()
27 if (_tolower(s[1]) == 'x' && isxdigit(s[2])) in _parse_integer_fixup_radix()
34 if (*base == 16 && s[0] == '0' && _tolower(s[1]) == 'x') in _parse_integer_fixup_radix()
35 s += 2; in _parse_integer_fixup_radix()
36 return s; in _parse_integer_fixup_radix()
47 unsigned int _parse_integer(const char *s, unsigned int base, unsigned long long *p) in _parse_integer() argument
54 while (*s) { in _parse_integer()
57 if ('0' <= *s && *s <= '9') in _parse_integer()
58 val = *s - '0'; in _parse_integer()
59 else if ('a' <= _tolower(*s) && _tolower(*s) <= 'f') in _parse_integer()
60 val = _tolower(*s) - 'a' + 10; in _parse_integer()
76 s++; in _parse_integer()
82 static int _kstrtoull(const char *s, unsigned int base, unsigned long long *res) in _kstrtoull() argument
87 s = _parse_integer_fixup_radix(s, &base); in _kstrtoull()
88 rv = _parse_integer(s, base, &_res); in _kstrtoull()
93 s += rv; in _kstrtoull()
94 if (*s == '\n') in _kstrtoull()
95 s++; in _kstrtoull()
96 if (*s) in _kstrtoull()
118 int kstrtoull(const char *s, unsigned int base, unsigned long long *res) in kstrtoull() argument
120 if (s[0] == '+') in kstrtoull()
121 s++; in kstrtoull()
122 return _kstrtoull(s, base, res); in kstrtoull()
142 int kstrtoll(const char *s, unsigned int base, long long *res) in kstrtoll() argument
147 if (s[0] == '-') { in kstrtoll()
148 rv = _kstrtoull(s + 1, base, &tmp); in kstrtoll()
155 rv = kstrtoull(s, base, &tmp); in kstrtoll()
167 int _kstrtoul(const char *s, unsigned int base, unsigned long *res) in _kstrtoul() argument
172 rv = kstrtoull(s, base, &tmp); in _kstrtoul()
183 int _kstrtol(const char *s, unsigned int base, long *res) in _kstrtol() argument
188 rv = kstrtoll(s, base, &tmp); in _kstrtol()
214 int kstrtouint(const char *s, unsigned int base, unsigned int *res) in kstrtouint() argument
219 rv = kstrtoull(s, base, &tmp); in kstrtouint()
245 int kstrtoint(const char *s, unsigned int base, int *res) in kstrtoint() argument
250 rv = kstrtoll(s, base, &tmp); in kstrtoint()
260 int kstrtou16(const char *s, unsigned int base, u16 *res) in kstrtou16() argument
265 rv = kstrtoull(s, base, &tmp); in kstrtou16()
275 int kstrtos16(const char *s, unsigned int base, s16 *res) in kstrtos16() argument
280 rv = kstrtoll(s, base, &tmp); in kstrtos16()
290 int kstrtou8(const char *s, unsigned int base, u8 *res) in kstrtou8() argument
295 rv = kstrtoull(s, base, &tmp); in kstrtou8()
305 int kstrtos8(const char *s, unsigned int base, s8 *res) in kstrtos8() argument
310 rv = kstrtoll(s, base, &tmp); in kstrtos8()
329 int kstrtobool(const char *s, bool *res) in kstrtobool() argument
331 if (!s) in kstrtobool()
334 switch (s[0]) { in kstrtobool()
347 switch (s[1]) { in kstrtobool()
371 int kstrtobool_from_user(const char __user *s, size_t count, bool *res) in kstrtobool_from_user() argument
377 if (copy_from_user(buf, s, count)) in kstrtobool_from_user()
385 int f(const char __user *s, size_t count, unsigned int base, type *res) \
391 if (copy_from_user(buf, s, count)) \