Lines Matching refs:new_dev
246 struct net_device *new_dev; in qmimux_register_device() local
250 new_dev = alloc_netdev(sizeof(struct qmimux_priv), in qmimux_register_device()
252 if (!new_dev) in qmimux_register_device()
255 dev_net_set(new_dev, dev_net(real_dev)); in qmimux_register_device()
256 priv = netdev_priv(new_dev); in qmimux_register_device()
260 new_dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in qmimux_register_device()
261 if (!new_dev->tstats) { in qmimux_register_device()
266 new_dev->sysfs_groups[0] = &qmi_wwan_sysfs_qmimux_attr_group; in qmimux_register_device()
268 err = register_netdevice(new_dev); in qmimux_register_device()
275 err = netdev_upper_dev_link(real_dev, new_dev, NULL); in qmimux_register_device()
279 netif_stacked_transfer_operstate(real_dev, new_dev); in qmimux_register_device()
284 unregister_netdevice(new_dev); in qmimux_register_device()
288 free_netdev(new_dev); in qmimux_register_device()