Lines Matching refs:str
235 static int fake_ide_setup(char *str)
250 char *str = *ptr, *end;
253 if(isdigit(*str)) {
254 n = simple_strtoul(str, &end, 0);
255 if(end == str)
259 else if (('a' <= *str) && (*str <= 'z')) {
260 n = *str - 'a';
261 str++;
262 *ptr = str;
268 * otherwise, the str pointer is used (and owned) inside ubd_devs array, so it
271 static int ubd_setup_common(char *str, int *index_out, char **error_out)
279 n = *str;
284 str++;
285 if(!strcmp(str, "sync")){
291 major = simple_strtoul(str, &end, 0);
292 if((*end != '\0') || (end == str)){
313 n = parse_unit(&str);
337 switch (*str) {
354 str++;
361 str++;
364 if (*str == '=')
371 backing_file = strchr(str, ',');
374 backing_file = strchr(str, ':');
387 ubd_dev->file = str;
395 static int ubd_setup(char *str)
400 err = ubd_setup_common(str, NULL, &error);
403 "%s\n", str, error);
434 static int udb_setup(char *str)
437 "udb TYPO\n", str);
980 static int ubd_config(char *str, char **error_out)
988 str = kstrdup(str, GFP_KERNEL);
989 if (str == NULL) {
994 ret = ubd_setup_common(str, &n, error_out);
1013 kfree(str);
1017 static int ubd_get_config(char *name, char *str, int size, char **error_out)
1032 CONFIG_CHUNK(str, size, len, "", 1);
1036 CONFIG_CHUNK(str, size, len, ubd_dev->file, 0);
1039 CONFIG_CHUNK(str, size, len, ",", 0);
1040 CONFIG_CHUNK(str, size, len, ubd_dev->cow.file, 1);
1042 else CONFIG_CHUNK(str, size, len, "", 1);
1049 static int ubd_id(char **str, int *start_out, int *end_out)
1053 n = parse_unit(str);