Lines Matching defs:ofdev
25 int tah_attach(struct platform_device *ofdev, int channel)
27 struct tah_instance *dev = platform_get_drvdata(ofdev);
37 void tah_detach(struct platform_device *ofdev, int channel)
39 struct tah_instance *dev = platform_get_drvdata(ofdev);
46 void tah_reset(struct platform_device *ofdev)
48 struct tah_instance *dev = platform_get_drvdata(ofdev);
59 printk(KERN_ERR "%pOF: reset timeout\n", ofdev->dev.of_node);
67 int tah_get_regs_len(struct platform_device *ofdev)
73 void *tah_dump_regs(struct platform_device *ofdev, void *buf)
75 struct tah_instance *dev = platform_get_drvdata(ofdev);
88 static int tah_probe(struct platform_device *ofdev)
90 struct device_node *np = ofdev->dev.of_node;
101 dev->ofdev = ofdev;
117 platform_set_drvdata(ofdev, dev);
120 tah_reset(ofdev);
122 printk(KERN_INFO "TAH %pOF initialized\n", ofdev->dev.of_node);
133 static int tah_remove(struct platform_device *ofdev)
135 struct tah_instance *dev = platform_get_drvdata(ofdev);