Lines Matching refs:ofdev

1554 static void grcan_sanitize_module_config(struct platform_device *ofdev)  in grcan_sanitize_module_config()  argument
1556 grcan_sanitize_enable0(ofdev); in grcan_sanitize_module_config()
1557 grcan_sanitize_enable1(ofdev); in grcan_sanitize_module_config()
1558 grcan_sanitize_select(ofdev); in grcan_sanitize_module_config()
1559 grcan_sanitize_txsize(ofdev); in grcan_sanitize_module_config()
1560 grcan_sanitize_rxsize(ofdev); in grcan_sanitize_module_config()
1585 static int grcan_setup_netdev(struct platform_device *ofdev, in grcan_setup_netdev() argument
1623 dev_dbg(&ofdev->dev, "Hardware supports triple-sampling\n"); in grcan_setup_netdev()
1640 SET_NETDEV_DEV(dev, &ofdev->dev); in grcan_setup_netdev()
1641 dev_info(&ofdev->dev, "regs=0x%p, irq=%d, clock=%d\n", in grcan_setup_netdev()
1648 platform_set_drvdata(ofdev, dev); in grcan_setup_netdev()
1661 static int grcan_probe(struct platform_device *ofdev) in grcan_probe() argument
1663 struct device_node *np = ofdev->dev.of_node; in grcan_probe()
1680 dev_err(&ofdev->dev, "unable to fetch \"freq\" property\n"); in grcan_probe()
1684 res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); in grcan_probe()
1685 base = devm_ioremap_resource(&ofdev->dev, res); in grcan_probe()
1693 dev_err(&ofdev->dev, "no irq found\n"); in grcan_probe()
1698 grcan_sanitize_module_config(ofdev); in grcan_probe()
1700 err = grcan_setup_netdev(ofdev, base, irq, ambafreq, txbug); in grcan_probe()
1709 dev_err(&ofdev->dev, in grcan_probe()
1715 static int grcan_remove(struct platform_device *ofdev) in grcan_remove() argument
1717 struct net_device *dev = platform_get_drvdata(ofdev); in grcan_remove()