Lines Matching defs:ofdev
23 int tah_attach(struct platform_device *ofdev, int channel)
25 struct tah_instance *dev = platform_get_drvdata(ofdev);
35 void tah_detach(struct platform_device *ofdev, int channel)
37 struct tah_instance *dev = platform_get_drvdata(ofdev);
44 void tah_reset(struct platform_device *ofdev)
46 struct tah_instance *dev = platform_get_drvdata(ofdev);
57 printk(KERN_ERR "%pOF: reset timeout\n", ofdev->dev.of_node);
65 int tah_get_regs_len(struct platform_device *ofdev)
71 void *tah_dump_regs(struct platform_device *ofdev, void *buf)
73 struct tah_instance *dev = platform_get_drvdata(ofdev);
86 static int tah_probe(struct platform_device *ofdev)
88 struct device_node *np = ofdev->dev.of_node;
99 dev->ofdev = ofdev;
115 platform_set_drvdata(ofdev, dev);
118 tah_reset(ofdev);
120 printk(KERN_INFO "TAH %pOF initialized\n", ofdev->dev.of_node);
131 static int tah_remove(struct platform_device *ofdev)
133 struct tah_instance *dev = platform_get_drvdata(ofdev);