• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/lib/

Lines Matching refs:to

16  * @s: the string to examine for presense of the pattern
18 * @args: array of %MAX_OPT_ARGS &substring_t elements. Used to return match
66 args[argc].to = s + len;
70 simple_strtol(s, &args[argc].to, 0);
73 simple_strtoul(s, &args[argc].to, 0);
76 simple_strtoul(s, &args[argc].to, 8);
79 simple_strtoul(s, &args[argc].to, 16);
81 if (args[argc].to == args[argc].from)
87 s = args[argc].to;
94 * @s: the string to examine for token/argument pairs
97 * &struct match_token whose pattern is set to the NULL pointer.
98 * @args: array of %MAX_OPT_ARGS &substring_t elements. Used to return match
102 * to it. Tokens can include up to MAX_OPT_ARGS instances of basic c-style
118 * @s: substring to be scanned
120 * @base: base to use when converting string
122 * Description: Given a &substring_t and a base, attempts to parse the substring
123 * as a number in that base. On success, sets @result to the integer represented
132 buf = kmalloc(s->to - s->from + 1, GFP_KERNEL);
135 memcpy(buf, s->from, s->to - s->from);
136 buf[s->to - s->from] = '\0';
147 * @s: substring_t to be scanned
150 * Description: Attempts to parse the &substring_t @s as a decimal integer. On
151 * success, sets @result to the integer represented by the string and returns 0.
161 * @s: substring_t to be scanned
164 * Description: Attempts to parse the &substring_t @s as an octal integer. On
165 * success, sets @result to the integer represented by the string and returns
175 * @s: substring_t to be scanned
178 * Description: Attempts to parse the &substring_t @s as a hexadecimal integer.
179 * On success, sets @result to the integer represented by the string and
188 * match_strlcpy: - Copy the characters from a substring_t to a sized buffer
189 * @dest: where to copy to
190 * @src: &substring_t to copy
193 * Description: Copy the characters in &substring_t @src to the
199 size_t ret = src->to - src->from;
211 * @s: &substring_t to copy
219 size_t sz = s->to - s->from + 1;