• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/lib/

Lines Matching defs: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
64 args[argc].to = s + len;
67 simple_strtol(s, &args[argc].to, 0);
70 simple_strtoul(s, &args[argc].to, 0);
73 simple_strtoul(s, &args[argc].to, 8);
76 simple_strtoul(s, &args[argc].to, 16);
78 if (args[argc].to == args[argc].from)
84 s = args[argc].to;
91 * @s: the string to examine for token/argument pairs
94 * &struct match_token whose pattern is set to the NULL pointer.
95 * @args: array of %MAX_OPT_ARGS &substring_t elements. Used to return match
99 * to it. Tokens can include up to MAX_OPT_ARGS instances of basic c-style
115 * @s: substring to be scanned
117 * @base: base to use when converting string
119 * Description: Given a &substring_t and a base, attempts to parse the substring
120 * as a number in that base. On success, sets @result to the integer represented
129 buf = kmalloc(s->to - s->from + 1, GFP_KERNEL);
132 memcpy(buf, s->from, s->to - s->from);
133 buf[s->to - s->from] = '\0';
144 * @s: substring_t to be scanned
147 * Description: Attempts to parse the &substring_t @s as a decimal integer. On
148 * success, sets @result to the integer represented by the string and returns 0.
158 * @s: substring_t to be scanned
161 * Description: Attempts to parse the &substring_t @s as an octal integer. On
162 * success, sets @result to the integer represented by the string and returns
172 * @s: substring_t to be scanned
175 * Description: Attempts to parse the &substring_t @s as a hexadecimal integer.
176 * On success, sets @result to the integer represented by the string and
185 * match_strcpy: - copies the characters from a substring_t to a string
186 * @to: string to copy characters to.
187 * @s: &substring_t to copy
190 * &substring_t @s to the c-style string @to. Caller guarantees that @to is
191 * large enough to hold the characters of @s.
193 void match_strcpy(char *to, const substring_t *s)
195 memcpy(to, s->from, s->to - s->from);
196 to[s->to - s->from] = '\0';
201 * @s: &substring_t to copy
209 char *p = kmalloc(s->to - s->from + 1, GFP_KERNEL);