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, in eth_setup_common()
649 static int __init eth_setup(char *str) in eth_setup() argument
655 err = eth_parse(str, &n, &str, &error); in eth_setup()
658 str, error); in eth_setup()
666 new->init = str; in eth_setup()
678 static int net_config(char *str, char **error_out) in net_config() argument
682 err = eth_parse(str, &n, &str, error_out); in net_config()
689 str = kstrdup(str, GFP_KERNEL); in net_config()
690 if (str == NULL) { in net_config()
694 err = !eth_setup_common(str, n); in net_config()
696 kfree(str); in net_config()
700 static int net_id(char **str, int *start_out, int *end_out) in net_id() argument
705 n = simple_strtoul(*str, &end, 0); in net_id()
706 if ((*end != '\0') || (end == *str)) in net_id()
711 *str = end; in net_id()
894 int tap_setup_common(char *str, char *type, char **dev_name, char **mac_out, in tap_setup_common() argument
899 remain = split_if_spec(str, dev_name, mac_out, gate_addr, NULL); in tap_setup_common()