Lines Matching refs:new_dev
247 struct net_device *new_dev; in qmimux_register_device() local
251 new_dev = alloc_netdev(sizeof(struct qmimux_priv), in qmimux_register_device()
253 if (!new_dev) in qmimux_register_device()
256 dev_net_set(new_dev, dev_net(real_dev)); in qmimux_register_device()
257 priv = netdev_priv(new_dev); in qmimux_register_device()
261 new_dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in qmimux_register_device()
262 if (!new_dev->tstats) { in qmimux_register_device()
267 new_dev->sysfs_groups[0] = &qmi_wwan_sysfs_qmimux_attr_group; in qmimux_register_device()
269 err = register_netdevice(new_dev); in qmimux_register_device()
276 err = netdev_upper_dev_link(real_dev, new_dev, NULL); in qmimux_register_device()
280 netif_stacked_transfer_operstate(real_dev, new_dev); in qmimux_register_device()
285 unregister_netdevice(new_dev); in qmimux_register_device()
289 free_netdev(new_dev); in qmimux_register_device()