Lines Matching refs:str

298 static void setup_etheraddr(struct net_device *dev, char *str)  in setup_etheraddr()  argument
304 if (str == NULL) in setup_etheraddr()
308 addr[i] = simple_strtoul(str, &end, 16); in setup_etheraddr()
309 if ((end == str) || in setup_etheraddr()
313 "as an ethernet address\n", str); in setup_etheraddr()
316 str = end + 1; in setup_etheraddr()
529 static int eth_parse(char *str, int *index_out, char **str_out, in eth_parse() argument
535 n = simple_strtoul(str, &end, 0); in eth_parse()
536 if (end == str) { in eth_parse()
541 str = end; in eth_parse()
542 if (*str != '=') { in eth_parse()
547 str++; in eth_parse()
554 *str_out = str; in eth_parse()
623 static int eth_setup_common(char *str, int index) in eth_setup_common() argument
634 if (!check_transport(transport, str, index, &init, &mac)) in eth_setup_common()
648 static int __init eth_setup(char *str) in eth_setup() argument
654 err = eth_parse(str, &n, &str, &error); in eth_setup()
657 str, error); in eth_setup()
665 new->init = str; in eth_setup()
677 static int net_config(char *str, char **error_out) in net_config() argument
681 err = eth_parse(str, &n, &str, error_out); in net_config()
688 str = kstrdup(str, GFP_KERNEL); in net_config()
689 if (str == NULL) { in net_config()
693 err = !eth_setup_common(str, n); in net_config()
695 kfree(str); in net_config()
699 static int net_id(char **str, int *start_out, int *end_out) in net_id() argument
704 n = simple_strtoul(*str, &end, 0); in net_id()
705 if ((*end != '\0') || (end == *str)) in net_id()
710 *str = end; in net_id()
893 int tap_setup_common(char *str, char *type, char **dev_name, char **mac_out, in tap_setup_common() argument
898 remain = split_if_spec(str, dev_name, mac_out, gate_addr, NULL); in tap_setup_common()