Lines Matching defs:str
277 void uml_net_setup_etheraddr(struct net_device *dev, char *str)
283 if (str == NULL)
287 addr[i] = simple_strtoul(str, &end, 16);
288 if ((end == str) ||
292 "as an ethernet address\n", str);
295 str = end + 1;
505 static int eth_parse(char *str, int *index_out, char **str_out,
511 n = simple_strtoul(str, &end, 0);
512 if (end == str) {
517 str = end;
518 if (*str != '=') {
523 str++;
530 *str_out = str;
599 static int eth_setup_common(char *str, int index)
610 if (!check_transport(transport, str, index, &init,
625 static int __init eth_setup(char *str)
631 err = eth_parse(str, &n, &str, &error);
634 str, error);
645 new->init = str;
657 static int net_config(char *str, char **error_out)
661 err = eth_parse(str, &n, &str, error_out);
668 str = kstrdup(str, GFP_KERNEL);
669 if (str == NULL) {
673 err = !eth_setup_common(str, n);
675 kfree(str);
679 static int net_id(char **str, int *start_out, int *end_out)
684 n = simple_strtoul(*str, &end, 0);
685 if ((*end != '\0') || (end == *str))
690 *str = end;
873 int tap_setup_common(char *str, char *type, char **dev_name, char **mac_out,
878 remain = split_if_spec(str, dev_name, mac_out, gate_addr, NULL);