/Linux-v4.19/drivers/net/bonding/ |
D | bond_sysfs.c | 78 static struct net_device *bond_get_by_name(struct bond_net *bn, const char *ifname) in bond_get_by_name() argument 83 if (strncmp(bond->dev->name, ifname, IFNAMSIZ) == 0) in bond_get_by_name() 101 char *ifname; in bonding_store_bonds() local 105 ifname = command + 1; in bonding_store_bonds() 107 !dev_valid_name(ifname)) in bonding_store_bonds() 111 pr_info("%s is being created...\n", ifname); in bonding_store_bonds() 112 rv = bond_create(bn->net, ifname); in bonding_store_bonds() 115 pr_info("%s already exists\n", ifname); in bonding_store_bonds() 117 pr_info("%s creation failed\n", ifname); in bonding_store_bonds() 124 bond_dev = bond_get_by_name(bn, ifname); in bonding_store_bonds() [all …]
|
D | bond_options.c | 775 char ifname[IFNAMSIZ] = { 0, }; in bond_option_active_slave_set() local 779 sscanf(newval->string, "%15s", ifname); /* IFNAMSIZ */ in bond_option_active_slave_set() 780 if (!strlen(ifname) || newval->string[0] == '\n') { in bond_option_active_slave_set() 783 slave_dev = __dev_get_by_name(dev_net(bond->dev), ifname); in bond_option_active_slave_set() 1372 char *ifname; in bond_option_slaves_set() local 1376 ifname = command + 1; in bond_option_slaves_set() 1378 !dev_valid_name(ifname)) in bond_option_slaves_set() 1381 dev = __dev_get_by_name(dev_net(bond->dev), ifname); in bond_option_slaves_set() 1384 ifname); in bond_option_slaves_set()
|
/Linux-v4.19/drivers/staging/rtl8712/ |
D | os_intfs.c | 41 static char ifname[IFNAMSIZ] = "wlan%d"; variable 96 module_param_string(ifname, ifname, sizeof(ifname), 0644); 118 MODULE_PARM_DESC(ifname, " Net interface name, wlan%d=default"); 213 if (dev_alloc_name(pnetdev, ifname) < 0) { in r8712_init_netdev() 214 strcpy(ifname, "wlan%d"); in r8712_init_netdev() 215 dev_alloc_name(pnetdev, ifname); in r8712_init_netdev()
|
/Linux-v4.19/include/uapi/linux/ |
D | atmbr2684.h | 58 char ifname[IFNAMSIZ]; member 72 char ifname[IFNAMSIZ]; member
|
/Linux-v4.19/net/batman-adv/ |
D | sysfs.c | 367 char ifname[IFNAMSIZ + 3] = ""; in batadv_store_uint_attr() local 394 snprintf(ifname, sizeof(ifname), "%s: ", slave_dev->name); in batadv_store_uint_attr() 397 attr_name, ifname, atomic_read(attr), uint_val); in batadv_store_uint_attr() 899 const char *ifname; in batadv_show_mesh_iface() local 906 ifname = "none"; in batadv_show_mesh_iface() 908 ifname = hard_iface->soft_iface->name; in batadv_show_mesh_iface() 910 length = sprintf(buff, "%s\n", ifname); in batadv_show_mesh_iface() 928 char ifname[IFNAMSIZ]) in batadv_store_mesh_iface_finish() 941 if (strncmp(ifname, "none", 4) == 0) in batadv_store_mesh_iface_finish() 950 strncmp(hard_iface->soft_iface->name, ifname, IFNAMSIZ) == 0) in batadv_store_mesh_iface_finish() [all …]
|
/Linux-v4.19/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | fweh.c | 168 brcmf_dbg(EVENT, "adding %s (%pM)\n", emsg->ifname, in brcmf_fweh_handle_if_event() 171 is_p2pdev, emsg->ifname, emsg->addr); in brcmf_fweh_handle_if_event() 251 memcpy(emsg.ifname, emsg_be->ifname, sizeof(emsg.ifname)); in brcmf_fweh_event_worker()
|
D | fweh.h | 242 char ifname[IFNAMSIZ]; member 284 char ifname[IFNAMSIZ]; member
|
/Linux-v4.19/drivers/net/can/ |
D | vxcan.c | 174 char ifname[IFNAMSIZ]; in vxcan_newlink() local 198 nla_strlcpy(ifname, tbp[IFLA_IFNAME], IFNAMSIZ); in vxcan_newlink() 201 snprintf(ifname, IFNAMSIZ, DRV_NAME "%%d"); in vxcan_newlink() 209 peer = rtnl_create_link(peer_net, ifname, name_assign_type, in vxcan_newlink()
|
/Linux-v4.19/samples/bpf/ |
D | xdp_rxq_info_user.c | 31 static char *ifname; variable 62 ifindex, ifname); in int_exit() 340 ifname, ifindex, action2str(action), options2str(cfg_opt)); in stats_print() 498 ifname = (char *)&ifname_buf; in main() 499 strncpy(ifname, optarg, IF_NAMESIZE); in main() 500 ifindex = if_nametoindex(ifname); in main()
|
D | xdp_redirect_cpu_user.c | 38 static char *ifname; variable 68 ifindex, ifname); in int_exit() 611 ifname = (char *)&ifname_buf; in main() 612 strncpy(ifname, optarg, IF_NAMESIZE); in main() 613 ifindex = if_nametoindex(ifname); in main()
|
/Linux-v4.19/drivers/staging/rtl8188eu/os_dep/ |
D | os_intfs.c | 83 static char *ifname = "wlan%d"; variable 84 module_param(ifname, charp, 0644); 85 MODULE_PARM_DESC(ifname, "The default name to allocate for first interface"); 181 snprintf(registry_par->ifname, 16, "%s", ifname); in loadparam() 295 int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname) in rtw_init_netdev_name() argument 297 if (dev_alloc_name(pnetdev, ifname) < 0) in rtw_init_netdev_name()
|
/Linux-v4.19/net/l2tp/ |
D | l2tp_core.h | 71 char *ifname; member 101 char ifname[IFNAMSIZ]; member 205 const char *ifname);
|
D | l2tp_eth.c | 274 if (cfg->ifname) { in l2tp_eth_create() 275 strlcpy(name, cfg->ifname, IFNAMSIZ); in l2tp_eth_create() 335 strlcpy(session->ifname, dev->name, IFNAMSIZ); in l2tp_eth_create()
|
/Linux-v4.19/Documentation/usb/ |
D | gadget-testing.txt | 66 ifname - network device interface name associated with this 76 Except for ifname they can be written to until the function is linked to a 77 configuration. The ifname is read-only and contains the name of the interface 99 ifname - network device interface name associated with this 109 Except for ifname they can be written to until the function is linked to a 110 configuration. The ifname is read-only and contains the name of the interface 132 ifname - network device interface name associated with this 142 Except for ifname they can be written to until the function is linked to a 143 configuration. The ifname is read-only and contains the name of the interface 390 ifname - network device interface name associated with this [all …]
|
/Linux-v4.19/net/core/ |
D | pktgen.c | 470 static int pktgen_add_device(struct pktgen_thread *t, const char *ifname); 472 const char *ifname, bool exact); 1863 const char *ifname, int remove) in __pktgen_NN_threads() argument 1870 pkt_dev = pktgen_find_dev(t, ifname, exact); in __pktgen_NN_threads() 1885 static void pktgen_mark_device(const struct pktgen_net *pn, const char *ifname) in pktgen_mark_device() argument 1892 pr_debug("%s: marking %s for removal\n", __func__, ifname); in pktgen_mark_device() 1896 pkt_dev = __pktgen_NN_threads(pn, ifname, REMOVE); in pktgen_mark_device() 1902 __func__, ifname); in pktgen_mark_device() 1908 __func__, msec_per_try * i, ifname); in pktgen_mark_device() 1975 const char *ifname) in pktgen_dev_get_by_name() argument [all …]
|
D | rtnetlink.c | 2312 struct nlattr **tb, char *ifname, int status) in do_setlink() argument 2329 err = dev_change_net_namespace(dev, net, ifname); in do_setlink() 2403 if (ifm->ifi_index > 0 && ifname[0]) { in do_setlink() 2404 err = dev_change_name(dev, ifname); in do_setlink() 2654 char ifname[IFNAMSIZ]; in rtnl_setlink() local 2666 nla_strlcpy(ifname, tb[IFLA_IFNAME], IFNAMSIZ); in rtnl_setlink() 2668 ifname[0] = '\0'; in rtnl_setlink() 2675 dev = __dev_get_by_name(net, ifname); in rtnl_setlink() 2684 err = do_setlink(skb, dev, ifm, extack, tb, ifname, 0); in rtnl_setlink() 2748 char ifname[IFNAMSIZ]; in rtnl_dellink() local [all …]
|
/Linux-v4.19/Documentation/ABI/testing/ |
D | configfs-usb-gadget-phonet | 6 This item contains just one readonly attribute: ifname.
|
D | configfs-usb-gadget-eem | 7 ifname - network device interface name associated with
|
D | configfs-usb-gadget-ncm | 7 ifname - network device interface name associated with
|
D | configfs-usb-gadget-subset | 7 ifname - network device interface name associated with
|
D | configfs-usb-gadget-ecm | 7 ifname - network device interface name associated with
|
D | configfs-usb-gadget-rndis | 7 ifname - network device interface name associated with
|
/Linux-v4.19/drivers/scsi/fcoe/ |
D | fcoe_transport.c | 720 char ifname[IFNAMSIZ + 2]; in fcoe_if_to_netdev() local 723 strlcpy(ifname, buffer, IFNAMSIZ); in fcoe_if_to_netdev() 724 cp = ifname + strlen(ifname); in fcoe_if_to_netdev() 725 while (--cp >= ifname && *cp == '\n') in fcoe_if_to_netdev() 727 return dev_get_by_name(&init_net, ifname); in fcoe_if_to_netdev()
|
/Linux-v4.19/drivers/staging/rtl8188eu/include/ |
D | osdep_intf.h | 26 int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname);
|
/Linux-v4.19/tools/testing/selftests/net/ |
D | udpgso.c | 286 static unsigned int get_device_mtu(int fd, const char *ifname) in get_device_mtu() argument 292 strcpy(ifr.ifr_name, ifname); in get_device_mtu() 300 static void __set_device_mtu(int fd, const char *ifname, unsigned int mtu) in __set_device_mtu() argument 307 strcpy(ifr.ifr_name, ifname); in __set_device_mtu()
|