Lines Matching refs:str

51 lnet_syntax(char *name, char *str, int offset, int width)
61 LCONSOLE_ERROR_MSG(0x10f, "Error parsing '%s=\"%s\"'\n", name, str);
183 char *str;
205 str = tmp = tokens;
212 while (str != NULL && *str != 0) {
213 char *comma = strchr(str, ',');
214 char *bracket = strchr(str, '(');
215 char *square = strchr(str, '[');
255 net = libcfs_str2net(cfs_trimwhite(str));
260 tmp = str;
273 str = comma;
278 net = libcfs_str2net(cfs_trimwhite(str));
280 tmp = str;
326 str = bracket + 1;
330 str = cfs_trimwhite(str);
331 if (*str != 0) {
332 tmp = str;
335 str = comma + 1;
339 str = cfs_trimwhite(str);
340 if (*str != 0) {
341 tmp = str;
418 lnet_str2tbs_sep(struct list_head *tbs, char *str)
428 /* Split 'str' into separate commands */
431 while (isspace(*str))
432 str++;
435 for (sep = str; *sep != 0; sep++)
439 nob = (int)(sep - str);
448 if (isspace(str[i]))
451 ltb->ltb_text[i] = str[i];
468 str = sep + 1;
477 char *str, char *sep1, char *sep2,
480 int len1 = (int)(sep1 - str);
491 memcpy(ltb->ltb_text, str, len1);
501 lnet_str2tbs_expand(struct list_head *tbs, char *str)
518 sep = strchr(str, '[');
540 if (lnet_expand1tb(&pending, str, sep, sep2,
566 if (lnet_expand1tb(&pending, str, sep, sep2,
581 lnet_parse_hops(char *str, unsigned int *hops)
583 int len = strlen(str);
586 return (sscanf(str, "%u%n", hops, &nob) >= 1 &&
594 lnet_parse_priority(char *str, unsigned int *priority, char **token)
600 sep = strchr(str, LNET_PRIORITY_SEPARATOR);
610 *token += sep - str + 1;
614 CDEBUG(D_NET, "gateway %s, priority %d, nob %d\n", str, *priority, nob);
624 lnet_parse_route(char *str, int *im_a_router)
638 char *token = str;
649 strncpy(cmd, str, sizeof(cmd) - 1);
652 sep = str;
759 lnet_syntax("routes", cmd, (int)(token - str), strlen(token));