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