Lines Matching refs:str
228 static int fake_ide_setup(char *str) in fake_ide_setup() argument
243 char *str = *ptr, *end; in parse_unit() local
246 if(isdigit(*str)) { in parse_unit()
247 n = simple_strtoul(str, &end, 0); in parse_unit()
248 if(end == str) in parse_unit()
252 else if (('a' <= *str) && (*str <= 'z')) { in parse_unit()
253 n = *str - 'a'; in parse_unit()
254 str++; in parse_unit()
255 *ptr = str; in parse_unit()
264 static int ubd_setup_common(char *str, int *index_out, char **error_out) in ubd_setup_common() argument
272 n = *str; in ubd_setup_common()
277 str++; in ubd_setup_common()
278 if(!strcmp(str, "sync")){ in ubd_setup_common()
284 major = simple_strtoul(str, &end, 0); in ubd_setup_common()
285 if((*end != '\0') || (end == str)){ in ubd_setup_common()
306 n = parse_unit(&str); in ubd_setup_common()
330 switch (*str) { in ubd_setup_common()
344 str++; in ubd_setup_common()
351 str++; in ubd_setup_common()
354 if (*str == '=') in ubd_setup_common()
361 backing_file = strchr(str, ','); in ubd_setup_common()
364 backing_file = strchr(str, ':'); in ubd_setup_common()
377 ubd_dev->file = str; in ubd_setup_common()
385 static int ubd_setup(char *str) in ubd_setup() argument
390 err = ubd_setup_common(str, NULL, &error); in ubd_setup()
393 "%s\n", str, error); in ubd_setup()
423 static int udb_setup(char *str) in udb_setup() argument
426 "udb TYPO\n", str); in udb_setup()
898 static int ubd_config(char *str, char **error_out) in ubd_config() argument
906 str = kstrdup(str, GFP_KERNEL); in ubd_config()
907 if (str == NULL) { in ubd_config()
912 ret = ubd_setup_common(str, &n, error_out); in ubd_config()
931 kfree(str); in ubd_config()
935 static int ubd_get_config(char *name, char *str, int size, char **error_out) in ubd_get_config() argument
950 CONFIG_CHUNK(str, size, len, "", 1); in ubd_get_config()
954 CONFIG_CHUNK(str, size, len, ubd_dev->file, 0); in ubd_get_config()
957 CONFIG_CHUNK(str, size, len, ",", 0); in ubd_get_config()
958 CONFIG_CHUNK(str, size, len, ubd_dev->cow.file, 1); in ubd_get_config()
960 else CONFIG_CHUNK(str, size, len, "", 1); in ubd_get_config()
967 static int ubd_id(char **str, int *start_out, int *end_out) in ubd_id() argument
971 n = parse_unit(str); in ubd_id()