Lines Matching refs:ofdev
27 int tah_attach(struct platform_device *ofdev, int channel) in tah_attach() argument
29 struct tah_instance *dev = platform_get_drvdata(ofdev); in tah_attach()
39 void tah_detach(struct platform_device *ofdev, int channel) in tah_detach() argument
41 struct tah_instance *dev = platform_get_drvdata(ofdev); in tah_detach()
48 void tah_reset(struct platform_device *ofdev) in tah_reset() argument
50 struct tah_instance *dev = platform_get_drvdata(ofdev); in tah_reset()
61 printk(KERN_ERR "%pOF: reset timeout\n", ofdev->dev.of_node); in tah_reset()
69 int tah_get_regs_len(struct platform_device *ofdev) in tah_get_regs_len() argument
75 void *tah_dump_regs(struct platform_device *ofdev, void *buf) in tah_dump_regs() argument
77 struct tah_instance *dev = platform_get_drvdata(ofdev); in tah_dump_regs()
90 static int tah_probe(struct platform_device *ofdev) in tah_probe() argument
92 struct device_node *np = ofdev->dev.of_node; in tah_probe()
103 dev->ofdev = ofdev; in tah_probe()
119 platform_set_drvdata(ofdev, dev); in tah_probe()
122 tah_reset(ofdev); in tah_probe()
124 printk(KERN_INFO "TAH %pOF initialized\n", ofdev->dev.of_node); in tah_probe()
135 static int tah_remove(struct platform_device *ofdev) in tah_remove() argument
137 struct tah_instance *dev = platform_get_drvdata(ofdev); in tah_remove()