Lines Matching refs:mesh_dev

110 		if (priv->mesh_dev) {  in lbs_mesh_config()
111 mesh_wdev = priv->mesh_dev->ieee80211_ptr; in lbs_mesh_config()
275 return sysfs_emit(buf, "0x%X\n", !!priv->mesh_dev); in lbs_mesh_show()
297 if (enable == !!priv->mesh_dev) in lbs_mesh_store()
981 struct net_device *mesh_dev = NULL; in lbs_add_mesh() local
993 mesh_dev = alloc_netdev(0, "msh%d", NET_NAME_UNKNOWN, ether_setup); in lbs_add_mesh()
994 if (!mesh_dev) { in lbs_add_mesh()
1008 mesh_wdev->netdev = mesh_dev; in lbs_add_mesh()
1010 mesh_dev->ml_priv = priv; in lbs_add_mesh()
1011 mesh_dev->ieee80211_ptr = mesh_wdev; in lbs_add_mesh()
1012 priv->mesh_dev = mesh_dev; in lbs_add_mesh()
1014 mesh_dev->netdev_ops = &mesh_netdev_ops; in lbs_add_mesh()
1015 mesh_dev->ethtool_ops = &lbs_ethtool_ops; in lbs_add_mesh()
1016 eth_hw_addr_inherit(mesh_dev, priv->dev); in lbs_add_mesh()
1018 SET_NETDEV_DEV(priv->mesh_dev, priv->dev->dev.parent); in lbs_add_mesh()
1020 mesh_dev->flags |= IFF_BROADCAST | IFF_MULTICAST; in lbs_add_mesh()
1021 mesh_dev->sysfs_groups[0] = &lbs_mesh_attr_group; in lbs_add_mesh()
1022 mesh_dev->sysfs_groups[1] = &boot_opts_group; in lbs_add_mesh()
1023 mesh_dev->sysfs_groups[2] = &mesh_ie_group; in lbs_add_mesh()
1026 ret = register_netdev(mesh_dev); in lbs_add_mesh()
1037 free_netdev(mesh_dev); in lbs_add_mesh()
1048 struct net_device *mesh_dev; in lbs_remove_mesh() local
1050 mesh_dev = priv->mesh_dev; in lbs_remove_mesh()
1051 if (!mesh_dev) in lbs_remove_mesh()
1054 netif_stop_queue(mesh_dev); in lbs_remove_mesh()
1055 netif_carrier_off(mesh_dev); in lbs_remove_mesh()
1056 unregister_netdev(mesh_dev); in lbs_remove_mesh()
1057 priv->mesh_dev = NULL; in lbs_remove_mesh()
1058 kfree(mesh_dev->ieee80211_ptr); in lbs_remove_mesh()
1059 free_netdev(mesh_dev); in lbs_remove_mesh()
1069 if (priv->mesh_dev) { in lbs_mesh_set_dev()
1072 dev = priv->mesh_dev; in lbs_mesh_set_dev()
1075 dev = priv->mesh_dev; in lbs_mesh_set_dev()
1085 if (dev == priv->mesh_dev) { in lbs_mesh_set_txpd()
1147 if (sset == ETH_SS_STATS && dev == priv->mesh_dev) in lbs_mesh_ethtool_get_sset_count()