Lines Matching refs:ofdev

1553 static void grcan_sanitize_module_config(struct platform_device *ofdev)  in grcan_sanitize_module_config()  argument
1555 grcan_sanitize_enable0(ofdev); in grcan_sanitize_module_config()
1556 grcan_sanitize_enable1(ofdev); in grcan_sanitize_module_config()
1557 grcan_sanitize_select(ofdev); in grcan_sanitize_module_config()
1558 grcan_sanitize_txsize(ofdev); in grcan_sanitize_module_config()
1559 grcan_sanitize_rxsize(ofdev); in grcan_sanitize_module_config()
1584 static int grcan_setup_netdev(struct platform_device *ofdev, in grcan_setup_netdev() argument
1622 dev_dbg(&ofdev->dev, "Hardware supports triple-sampling\n"); in grcan_setup_netdev()
1639 SET_NETDEV_DEV(dev, &ofdev->dev); in grcan_setup_netdev()
1640 dev_info(&ofdev->dev, "regs=0x%p, irq=%d, clock=%d\n", in grcan_setup_netdev()
1647 platform_set_drvdata(ofdev, dev); in grcan_setup_netdev()
1660 static int grcan_probe(struct platform_device *ofdev) in grcan_probe() argument
1662 struct device_node *np = ofdev->dev.of_node; in grcan_probe()
1679 dev_err(&ofdev->dev, "unable to fetch \"freq\" property\n"); in grcan_probe()
1683 res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); in grcan_probe()
1684 base = devm_ioremap_resource(&ofdev->dev, res); in grcan_probe()
1692 dev_err(&ofdev->dev, "no irq found\n"); in grcan_probe()
1697 grcan_sanitize_module_config(ofdev); in grcan_probe()
1699 err = grcan_setup_netdev(ofdev, base, irq, ambafreq, txbug); in grcan_probe()
1708 dev_err(&ofdev->dev, in grcan_probe()
1714 static int grcan_remove(struct platform_device *ofdev) in grcan_remove() argument
1716 struct net_device *dev = platform_get_drvdata(ofdev); in grcan_remove()