Lines Matching defs:ofdev
1535 static void grcan_sanitize_module_config(struct platform_device *ofdev)
1537 grcan_sanitize_enable0(ofdev);
1538 grcan_sanitize_enable1(ofdev);
1539 grcan_sanitize_select(ofdev);
1540 grcan_sanitize_txsize(ofdev);
1541 grcan_sanitize_rxsize(ofdev);
1570 static int grcan_setup_netdev(struct platform_device *ofdev,
1593 priv->ofdev_dev = &ofdev->dev;
1610 dev_dbg(&ofdev->dev, "Hardware supports triple-sampling\n");
1622 SET_NETDEV_DEV(dev, &ofdev->dev);
1623 dev_info(&ofdev->dev, "regs=0x%p, irq=%d, clock=%d\n",
1630 platform_set_drvdata(ofdev, dev);
1643 static int grcan_probe(struct platform_device *ofdev)
1645 struct device_node *np = ofdev->dev.of_node;
1666 dev_err(&ofdev->dev, "unable to fetch \"freq\" property\n");
1670 base = devm_platform_ioremap_resource(ofdev, 0);
1678 dev_err(&ofdev->dev, "no irq found\n");
1683 grcan_sanitize_module_config(ofdev);
1685 err = grcan_setup_netdev(ofdev, base, irq, ambafreq, txbug);
1694 dev_err(&ofdev->dev,
1700 static void grcan_remove(struct platform_device *ofdev)
1702 struct net_device *dev = platform_get_drvdata(ofdev);