Lines Matching full:dr
24 struct net_device_devres *dr; in devm_alloc_etherdev_mqs() local
26 dr = devres_alloc(devm_free_netdev, sizeof(*dr), GFP_KERNEL); in devm_alloc_etherdev_mqs()
27 if (!dr) in devm_alloc_etherdev_mqs()
30 dr->ndev = alloc_etherdev_mqs(sizeof_priv, txqs, rxqs); in devm_alloc_etherdev_mqs()
31 if (!dr->ndev) { in devm_alloc_etherdev_mqs()
32 devres_free(dr); in devm_alloc_etherdev_mqs()
36 devres_add(dev, dr); in devm_alloc_etherdev_mqs()
38 return dr->ndev; in devm_alloc_etherdev_mqs()
69 struct net_device_devres *dr; in devm_register_netdev() local
80 dr = devres_alloc(devm_unregister_netdev, sizeof(*dr), GFP_KERNEL); in devm_register_netdev()
81 if (!dr) in devm_register_netdev()
86 devres_free(dr); in devm_register_netdev()
90 dr->ndev = ndev; in devm_register_netdev()
91 devres_add(ndev->dev.parent, dr); in devm_register_netdev()