Home
last modified time | relevance | path

Searched refs:ifname (Results 1 – 25 of 28) sorted by relevance

12

/drivers/net/bonding/
Dbond_sysfs.c79 static struct net_device *bond_get_by_name(struct bond_net *bn, const char *ifname) in bond_get_by_name() argument
84 if (strncmp(bond->dev->name, ifname, IFNAMSIZ) == 0) in bond_get_by_name()
102 char *ifname; in bonding_store_bonds() local
106 ifname = command + 1; in bonding_store_bonds()
108 !dev_valid_name(ifname)) in bonding_store_bonds()
112 pr_info("%s is being created...\n", ifname); in bonding_store_bonds()
113 rv = bond_create(bn->net, ifname); in bonding_store_bonds()
116 pr_info("%s already exists\n", ifname); in bonding_store_bonds()
118 pr_info("%s creation failed\n", ifname); in bonding_store_bonds()
125 bond_dev = bond_get_by_name(bn, ifname); in bonding_store_bonds()
[all …]
Dbond_options.c709 char ifname[IFNAMSIZ] = { 0, }; in bond_option_active_slave_set() local
713 sscanf(newval->string, "%15s", ifname); /* IFNAMSIZ */ in bond_option_active_slave_set()
714 if (!strlen(ifname) || newval->string[0] == '\n') { in bond_option_active_slave_set()
717 slave_dev = __dev_get_by_name(dev_net(bond->dev), ifname); in bond_option_active_slave_set()
1302 char *ifname; in bond_option_slaves_set() local
1306 ifname = command + 1; in bond_option_slaves_set()
1308 !dev_valid_name(ifname)) in bond_option_slaves_set()
1311 dev = __dev_get_by_name(dev_net(bond->dev), ifname); in bond_option_slaves_set()
1314 ifname); in bond_option_slaves_set()
/drivers/staging/rtl8712/
Dos_intfs.c45 static char ifname[IFNAMSIZ] = "wlan%d"; variable
100 module_param_string(ifname, ifname, sizeof(ifname), S_IRUGO|S_IWUSR);
122 MODULE_PARM_DESC(ifname, " Net interface name, wlan%d=default");
220 if (dev_alloc_name(pnetdev, ifname) < 0) { in r8712_init_netdev()
221 strcpy(ifname, "wlan%d"); in r8712_init_netdev()
222 dev_alloc_name(pnetdev, ifname); in r8712_init_netdev()
/drivers/net/wireless/brcm80211/brcmfmac/
Dfweh.c54 char ifname[IFNAMSIZ]; member
207 brcmf_dbg(EVENT, "adding %s (%pM)\n", emsg->ifname, in brcmf_fweh_handle_if_event()
210 emsg->ifname, emsg->addr); in brcmf_fweh_handle_if_event()
286 memcpy(emsg.ifname, emsg_be->ifname, sizeof(emsg.ifname)); in brcmf_fweh_event_worker()
Dfweh.h211 char ifname[IFNAMSIZ]; member
/drivers/staging/rtl8723au/os_dep/
Dos_intfs.c117 static char *ifname = "wlan%d"; variable
118 module_param(ifname, charp, 0644);
119 MODULE_PARM_DESC(ifname, "The default name to allocate for first interface");
233 snprintf(registry_par->ifname, 16, "%s", ifname); in loadparam()
342 int rtw_init_netdev23a_name23a(struct net_device *pnetdev, const char *ifname) in rtw_init_netdev23a_name23a() argument
344 if (dev_alloc_name(pnetdev, ifname) < 0) { in rtw_init_netdev23a_name23a()
635 name = if1->registrypriv.ifname; in rtw_drv_register_netdev()
/drivers/net/
Dveth.c330 char ifname[IFNAMSIZ]; in veth_newlink() local
361 nla_strlcpy(ifname, tbp[IFLA_IFNAME], IFNAMSIZ); in veth_newlink()
364 snprintf(ifname, IFNAMSIZ, DRV_NAME "%%d"); in veth_newlink()
372 peer = rtnl_create_link(net, ifname, name_assign_type, in veth_newlink()
/drivers/scsi/fcoe/
Dfcoe_transport.c695 char ifname[IFNAMSIZ + 2]; in fcoe_if_to_netdev() local
698 strlcpy(ifname, buffer, IFNAMSIZ); in fcoe_if_to_netdev()
699 cp = ifname + strlen(ifname); in fcoe_if_to_netdev()
700 while (--cp >= ifname && *cp == '\n') in fcoe_if_to_netdev()
702 return dev_get_by_name(&init_net, ifname); in fcoe_if_to_netdev()
/drivers/staging/lustre/lnet/klnds/o2iblnd/
Do2iblnd.c2678 kiblnd_create_dev(char *ifname) in kiblnd_create_dev() argument
2687 rc = libcfs_ipif_query(ifname, &up, &ip, &netmask); in kiblnd_create_dev()
2690 ifname, rc); in kiblnd_create_dev()
2695 CERROR("Can't query IPoIB interface %s: it's down\n", ifname); in kiblnd_create_dev()
2703 netdev = dev_get_by_name(&init_net, ifname); in kiblnd_create_dev()
2715 strcpy(&dev->ibd_ifname[0], ifname); in kiblnd_create_dev()
3030 kiblnd_dev_search(char *ifname) in kiblnd_dev_search() argument
3037 colon = strchr(ifname, ':'); in kiblnd_dev_search()
3039 if (strcmp(&dev->ibd_ifname[0], ifname) == 0) in kiblnd_dev_search()
3051 if (strcmp(&dev->ibd_ifname[0], ifname) == 0) in kiblnd_dev_search()
[all …]
/drivers/staging/rtl8188eu/os_dep/
Dos_intfs.c112 static char *ifname = "wlan%d"; variable
113 module_param(ifname, charp, 0644);
114 MODULE_PARM_DESC(ifname, "The default name to allocate for first interface");
582 snprintf(registry_par->ifname, 16, "%s", ifname); in loadparam()
695 int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname) in rtw_init_netdev_name() argument
697 if (dev_alloc_name(pnetdev, ifname) < 0) in rtw_init_netdev_name()
Dusb_intf.c434 rtw_init_netdev_name(pnetdev, padapter->registrypriv.ifname); in rtw_usb_if1_init()
/drivers/net/hamradio/
Dbaycom_par.c505 char ifname[IFNAMSIZ]; in init_baycompar() local
507 sprintf(ifname, "bcp%d", i); in init_baycompar()
516 ifname, iobase[i], 0, 0); in init_baycompar()
Dbaycom_ser_fdx.c640 char ifname[IFNAMSIZ]; in init_baycomserfdx() local
642 sprintf(ifname, "bcsf%d", i); in init_baycomserfdx()
651 ifname, iobase[i], irq[i], 0); in init_baycomserfdx()
Dbaycom_ser_hdx.c668 char ifname[IFNAMSIZ]; in init_baycomserhdx() local
670 sprintf(ifname, "bcsh%d", i); in init_baycomserhdx()
679 ifname, iobase[i], irq[i], 0); in init_baycomserhdx()
Dhdlcdrv.c689 unsigned int privsize, const char *ifname, in hdlcdrv_register() argument
702 dev = alloc_netdev(privsize, ifname, NET_NAME_UNKNOWN, hdlcdrv_setup); in hdlcdrv_register()
/drivers/staging/rtl8723au/include/
Dosdep_intf.h31 int rtw_init_netdev23a_name23a(struct net_device *pnetdev, const char *ifname);
Ddrv_types.h123 u8 ifname[16]; member
/drivers/staging/rtl8188eu/include/
Dosdep_intf.h40 int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname);
Ddrv_types.h130 u8 ifname[16]; member
/drivers/net/usb/
Dcdc-phonet.c333 static const char ifname[] = "usbpn%d"; in usbpn_probe() local
390 ifname, NET_NAME_UNKNOWN, usbpn_setup); in usbpn_probe()
/drivers/usb/gadget/function/
Du_ether_configfs.h162 __CONFIGFS_ATTR_RO(ifname, _f_##_opts_ifname_show)
/drivers/staging/vt6655/
Dioctl.c623 memset(wpa_Result.ifname, 0, sizeof(wpa_Result.ifname)); in private_ioctl()
Diocmd.h134 char ifname[100]; member
/drivers/staging/rtl8192e/rtl8192e/
Drtl_core.c60 static char *ifname = "wlan%d"; variable
2942 if (dev_alloc_name(dev, ifname) < 0) { in rtl8192_pci_probe()
2945 dev_alloc_name(dev, ifname); in rtl8192_pci_probe()
3126 module_param(ifname, charp, S_IRUGO|S_IWUSR);
3130 MODULE_PARM_DESC(ifname, " Net interface name, wlan%d=default");
/drivers/hsi/clients/
Dssi_protocol.c1071 static const char ifname[] = "phonet%d"; in ssi_protocol_probe() local
1118 ssi->netdev = alloc_netdev(0, ifname, NET_NAME_UNKNOWN, ssip_pn_setup); in ssi_protocol_probe()

12