Lines Matching refs:ofdev
129 static int gfar_probe(struct platform_device *ofdev);
130 static int gfar_remove(struct platform_device *ofdev);
731 static int gfar_of_init(struct platform_device *ofdev, struct net_device **pdev) in gfar_of_init() argument
739 struct device_node *np = ofdev->dev.of_node; in gfar_of_init()
766 dev_err(&ofdev->dev, "Invalid # of int groups(%d)\n", in gfar_of_init()
1125 struct device *dev = &priv->ofdev->dev; in gfar_detect_errata()
1314 static int gfar_probe(struct platform_device *ofdev) in gfar_probe() argument
1320 err = gfar_of_init(ofdev, &dev); in gfar_probe()
1327 priv->ofdev = ofdev; in gfar_probe()
1328 priv->dev = &ofdev->dev; in gfar_probe()
1329 SET_NETDEV_DEV(dev, &ofdev->dev); in gfar_probe()
1333 platform_set_drvdata(ofdev, priv); in gfar_probe()
1430 device_set_wakeup_capable(&ofdev->dev, priv->wol_supported); in gfar_probe()
1475 static int gfar_remove(struct platform_device *ofdev) in gfar_remove() argument
1477 struct gfar_private *priv = platform_get_drvdata(ofdev); in gfar_remove()